webtier@glassfish.java.net

Re: ValueChangeListeners+ajax

From: <webtier_at_javadesktop.org>
Date: Mon, 27 Jul 2009 06:21:39 PDT

You will want to make sure that the inputText components (that have the valuechangelisteners attached) are processed over ajax - make sure you specify the identifiers of the inputText components as part of the "execute" option. For example:

<h:selectOneRadio...
     <f:ajax execute="foo bar"... />
....

<h:inputText id="foo"...
     <f:valueChangeListener.../>
..
<h:inputText id="bar"....
    <f:valueChangeListener.../>
....

This should cause the Ajax request to fire when a radio option is activated, and it should cause the value change listeners to execute on the server.
Next, you probably want to generate some JavaScript on the server to be sent back to the client for the popup dialog.
[Message sent by forum member 'rogerk' (rogerk)]

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