Is it possible to reload the jsf ui component when running the valuechangelistener method? The reason I'm asking is because my valuechangelistener method changes the values of the input fields in the backup bean, but they don't seem to be reused. The end result is that the values that are printed on the screen are saved in a backup bean, overriding the values loaded by the valuechangelistener method.
The following does not work:
<h:inputText id="inputbox_id" value="#{name}"/>
<h:selectOneMenu valueChangeListener="#{myBean.changeCountryMenu}">
<a4j:support event="onchange" rerender="inputbox_id" action="#{bean.test}>
</h:selectOneMenu>
Note that bean.test () never starts. ( UPDATE ). I had renderResponse()one who missed it before. The values are still not reRender, though) So the solution I was thinking about is to iterate over the input block from valueChangeListener. If there is another better solution, I would be glad to hear ...
Thank! Ben.
source
share