[ http://issues.apache.org/jira/browse/MYFACES-749?page=comments#action_12355887 ]
Mike Kienenberger commented on MYFACES-749: ------------------------------------------- As I stated in the message posted to the list, the behavior you are trying to perform is very hard in JSF. The behavior you're seeing is unlikely to be a bug, though. Using "immediate" is mutually-exclusive with working with updated-models. immediate is only useful for trivial things like implementing cancel buttons. I also need to update selection lists on my page when other selection lists change without triggering validation problems. That's why I'm writing the OptionalValidationFramework. to get around these problems. http://wiki.apache.org/myfaces/OptionalValidationFramework. The only way you'll be able to demonstrate that this is a bug is to remove everything but selectOneMenu, inputText, and outputText from the page and show that it fails to work without any "immediate=true" attributes on the page. If you can get it to this point and still show the problem, post a simplified example of your problem to this issue, and someone will take a look (faces-config, jsp page, backing bean code). Otherwise, you can ask for help on determining a workaround to your situation by asking on the myfaces-user mailing list. I probably won't respond here again unless you've demonstrated it's a bug. > inputText refresh problem > ------------------------- > > Key: MYFACES-749 > URL: http://issues.apache.org/jira/browse/MYFACES-749 > Project: MyFaces > Type: Bug > Components: General > Versions: 1.1.0, 1.0.9m9 > Environment: Windows XP, Tomcat5.x > Reporter: JagMohan > > I have a drop down LEVELS with an valueChangeListener and an inputText field > that is supposed to change when the drop down is changed. The inputText field > is bound to a simple String object. > When the value of the drop down changes, request submits and upon processing > the value of the backing bean changes. when comes to UI, its not showing the > changed value in the <h:inputText> field, but its showing the updated value > in <h:outputText> field. > REFERENCES > --------------------- > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> > <h:selectOneMenu id="SELECTlevel" > immediate="true" > value="#{irisRequestQueueBean.currentRequest.level}" > disabled="#{empty irisRequestQueueBean.levels}" > valueChangeListener="#{irisRequestQueueBean.changedLevel}" > onchange="this.form.submit( );"> > <f:selectItems value="#{irisRequestQueueBean.levels}" /> > <j4j:idProxy id="levelId" /> > </h:selectOneMenu> > upon changing the level, backing bean value changes. but the below inputText > not showing the updated value. but outputText is showing the correct value. > <h:inputText id="checked" size="30" > value="#{irisRequestQueueBean.currentRequest.title}"> > </h:inputText> > <h:outputText value="(#{irisRequestQueueBean.currentRequest.title})"/> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
