Hi All,
I think I have an issue related to this topic.
I have created a HtmlInputText object in the Backing Bean (the getter and setter are in another Bean used to manage the data, getEditableInputText and setEditableInputText)
//getter and setter in Bean
public HtmlInputText getEditableInputText() {
return this.editableInputText;}
public void setEditableInputText(HtmlInputText editableInputText) {
this.editableInputText = editableInputText;
I set the value in the Backin Bean
initializing the component in this way:
HtmlInputText newIT = new HtmlInputText ();
newIT.setId("Test");
newIT.setValue("Luca");
bean.setEditableInputText(newIT);
in the OnContextChange
The HtmlInputText is bound in the
jsp page in this way:
<h:inputText id="test" binding="#{Bean.editableInputText}"></h:inputText>
When I load the page I can see the TextField with the value that I set previously (in the backin bean).
The problem is when I try to change the value of the texField:
I change the value, then I click on a button (its action is to call a method to get the value of the field).
In debug mode I see that the value is allways the first set instead of the new value inserted.
I tried with getValue and similar but it does not work.
I tried also to put HtmlInputText in a panel (using a similar logic) and then to get it using getChildren() method but also this does not work.
Is it possible?
Any idea?
Thanks in advance