Hi all,
I am relatively new to JSF and have run into a bit of a problem and need some advice.
I have a semi complex web form where I would like to use a selectOneMenu and valueChange events to alter various form field values depending on what is selected.
selectOneMenu is used like this:
<select jsfc="h:selectOneMenu" value="#{backing.params.strings['dbType']}" );" valueChangeListener="#{backing.loadCannedQuery
}" immediate="true">
<option jsfc="f:selectItems" value="#{backing.data.mapStrStr['dbTypes']}"/>
</select>
The loadCannedQuery method above, reloads the 'params' object with updated values and then calls renderResponse() on the FacesContext.
The updated values of the Map strings in the params object are correct when displayed with a outputText component. But when used with an inputText component the value isn't updated.
I found these threads which seem to be about this issue, but they don't seem to provide a solution :
http://www.mail-archive.com/[email protected]/msg12368.html
http://forum.java.sun.com/thread.jspa?threadID=720889&start=0&tstart=0
Any help is greatly appreciated.
Cheers,
Mikael
- Advice please, updated model via valueChange event not r... Mikael Andersson
- Re: Advice please, updated model via valueChange ev... Mario Ivankovits
- Re: Advice please, updated model via valueChang... Mikael Andersson
- Re: Advice please, updated model via valueChang... Mikael Andersson
- Re: Advice please, updated model via valueC... Mike Kienenberger
- Re: Advice please, updated model via va... Anthony Hong

