webtier@glassfish.java.net

Re: h:dataTable w/contained input elements and state

From: <webtier_at_javadesktop.org>
Date: Wed, 28 Jul 2010 14:00:44 PDT

Hi,

I will make some suggestions. I don't know if will work, but you can try :)

1) Istead of use "<h:selectOneMenu immediate="true" onchange="this.form.submit()"/>" why do you don't use:<h:selectOneMenu><f:ajax event="onchange" ...></h:selectOneMenu>? The "f:ajax" component is one of the best features of JSF 2.

2) You can use the "@ViewScoped" annotation in your bean too. This will save the state of your bean between the requests of your screen to the server.

@ManagedBean
@ViewScoped
public class OptionsBean { ...
}

Cheers
[Message sent by forum member 'rbsrodrigues']

http://forums.java.net/jive/thread.jspa?messageID=478746