This content has been marked as final.
Show 4 replies
-
1. Re: h:inputText not updating
arturfriesen Aug 4, 2011 2:35 AM (in response to phasor)Is setNameConversation called after you click the Button?
Do you wrap your code in a h:form tag? -
2. Re: h:inputText not updating
phasor Aug 5, 2011 11:43 AM (in response to phasor)Hi,
setconversation was called. Actually i made a change to the mentioned code including a redirect=true on the page navigation definition and also changing the listener to action instead of actionListener.
But now i ran into another issue. If i returned null from action method the input wasn´t updated. But if i returned "/mypage.xhtml" everything works as expected and inputText was reset. Navigation Handler shouldn´t treat "return null" as "navigate to the same page" and redirect to page before render, according to redirect=true expression?
Thanks in advance -
3. Re: h:inputText not updating
kragoth Aug 7, 2011 9:32 PM (in response to phasor)Returning null from your action method is a special case in JSF. I don't have time to go into all the details but essentially it will not build a new uiroot and not redirect you. Basically it will just rerender what was on the screen.
Instead just return and empty string "". (I think this works :S it's been a long time since I used standard JSF navigation).
-
4. Re: h:inputText not updating
phasor Aug 8, 2011 1:19 PM (in response to phasor)Thank you all in helping me out on this issue.
That´s resolved.Thanks
Bruno