nilZone

Articles in the category «misc» :

Auto-Increment-Identifier-With-MSSQL-And-Hibernate

In «misc» von nme

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 …

Vergleichen von Dateien in der Windows CLI

In «misc» von nme

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

In «misc» von nme

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 …

Custom BigDecimalConverter for JSF to prevent java.lang.ClassCastException

In «misc» von nme

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

In «misc» von nme

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

In «misc» von nme

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

In «misc» von nme

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 …