Articles in the category «misc» :
Unit Testing with TestNG and Seam
When using the test cases build for TestNG within JBoss Seam you do not need to run an Application Server explicitly. The Testing Framework delivered with Seam uses an JBoss Embedded (http://www.jboss.org/community/wiki/EmbeddedJBoss) to execute the tests.
If you have created a Seam project by …
Auto-Increment-Identifier-With-MSSQL-And-Hibernate
If you’re using MSSQL Server and wondering about this error message produced by Hibernate:
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert explicit value for identity column in table '<TABELNAME>' when IDENTITY_INSERT is set to OFF.
you’re annotated classes are maybe missing the @GeneratedValue annotation for the …
Create Wiki Pages For MS Sharepoint Programmatically
Ok, it’s not what I would call a Wiki (at least in Sharepoint version 2007). But if you have to use with Sharepoint and there is no way to maintain a separate, real Wiki you have to use Sharepoint’s Wiki.
In my case there was the task to …
Vergleichen von Dateien in der Windows CLI
Vergleichen von Dateiinhalten auf der Windows Commandline:
for /f "delims=" %i in (completeList20080410.txt) do @Findstr /I "%i" uidok.txt >nul || @echo %i
gibt alle Einträge aus, die in completeList20080410.txt aber nicht in uidok.txt sind. /I gibt hier an, nicht case-sensitive zu sein. Dabei bestimmt delims den Trenner …
Update Multiple Rows In Tales With Richfaces
As far as I know, AJAX4JSF was a standalone project once but has been integrated into Richfaces which itself belongs now to JBoss.
Given to tables with different rows and the need to update them both e.g. as a respond to an AJAX call, you can use the ajaxKeys …
Use 'Message' Tags For Specific Tables Or Elements with Richfaces
Although the
Custom BigDecimalConverter for JSF to prevent java.lang.ClassCastException
Using the
<f:convertNumber/>
together with It seems that the BigDecimal results in a java.lang.IllegalArgumentException: java.lang.ClassCastException. To get around this, either use
<f:converter converterId="javax.faces.BigDecimal"/>
or use your own converter, eg:
import java.math.BigDecimal;
import javax.faces.component.UIComponent;
import javax.faces …SeamRemote and @WebRemote
Think of the scenario that you develop a Seam based application and you want to do some AJAX calls / requests to your bean but you don’t want to use the Richfaces/A4J based AJAX functionality (maybe because you have some large forms and don’t want to post the …
Updating Cells Inside A Table With Richfaces
Sometimes one wants to update some cells of a table using AJAX. Re-render the whole table is mostly not an option ,especially if the table(s) are very large. Using the Richfaces framework it’s quite simply.
This may be the JSF code:
...
<rich:subTable value="#{myBackingBean.descriptions}" var="oneTableRow …Display Status Message For AJAX Request With Richfaces
Sometimes an AJAX request takes some time. Because of the asynchronous of AJAX the user does not note that there is something happening on the server. So it is a nice thing to display the status of the request.
Using Richfaces/A4J you can use the tag to display such …