nilZone

Articles de nme :

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 …

Duplicate Id Error Message with JSF 1.1 and 1.2

In «misc» von nme

Today I spent quite some time to figure out why the following piece of code causes a Duplicate Id Error Message.

...
    <rich:columns value="#{myBean.listWithFields}" var="field" index="myIndex">
        <h:inputText id="#{field.identifier}" value="#{field.value}" rendered="#{field.inputField}"/>
        <h:outputText id="#{field.identifier}" value="#{field.value}" rendered …

Where To Place Struts 2 struts.xml

In «misc» von nme

Contrary to most of other configuration files, placing the struts.xml configuration file in the WEB-INF folder does not work. But you can place it, eg. in the root source folder of your application. I spent about two hours after cleaning/building my test project in Eclipse without realizing, that …

Use Of @Factory with Seam

In «misc» von nme

Using "normal" JSF one has often the problem of returning properties somewhat more complex than simple Strings or native data types. In these cases, the generation may for example need a connection to the database which increases the costs additionally. Usually, you would place the construction in the getter method …