This content has been marked as final.
Show 3 replies
-
1. Re: why modalPancel can't refresh <h:outputText/> value wit
ishabalov Jul 31, 2007 11:42 PM (in response to terryzhou2k)input uses local value if re-render same page. output always evaluate value binding. if you need to change input local value use component binding and manually set value in action code.
-
2. Re: why modalPancel can't refresh <h:outputText/> value wit
terryzhou2k Aug 1, 2007 12:30 AM (in response to terryzhou2k)2 ishabalov,thanks for u reply
Sorry for write something wrong...
value of outputText is correct,
value of inputText is wrong.
i try to use component binding ,change value of inputText by backBean...
but can effect it only one time...555555555... -
3. Re: why modalPancel can't refresh <h:outputText/> value wit
terryzhou2k Aug 1, 2007 12:32 AM (in response to terryzhou2k)bookInfo.jsp
<h:inputText id="book_name" align="right" size="20" binding="#{bookEditor.inputText}"/>
bookEditor.java(back bean)
private HtmlInputText inputText;
public void edit(ActionEvent e) {
book = bookBO.queryBookById(Integer.parseInt(strId));
Double d = Math.random();
inputText.setValue(d+"value");
}