Hey all,

 

I know this problem most likely would have been addressed before but was just wondering if there has been any solution for it?

 

Say you had

 

<t:selectOneMenu value="#{bean.test}"

  onchange="submit();"

  valueChangeListener="#{bean.changedMethod}">

   <f:selectItem itemValue="a" itemLabel="a"/>

   <f:selectItem itemValue="b" itemLabel="b"/>

</t:selectOneMenu>

                       

<t:inputText  value="#{bean.userName}" />

<t:outputText " value="#{bean.userName}" />

 

 

 

and you have the value change method

 

 

private userName;

//getters and setters for userName

 

public void changedMethod(ValueChangeEvent event)

    {

            userName = "someValue";           

            FacesContext.getCurrentInstance().renderResponse();

   }

 

 

 

Just wondering why does the outputText update but the inputText does not? i.e why does the outputText display “someValue” and the inputText is still empty?

 

I know if you bind the inputText and call the setSubmittedValue() you can update the inputText

 

Just wondering if I can get an explanation of why this problem occurs?

 

 

Reply via email to