[ 
http://issues.apache.org/jira/browse/MYFACES-749?page=comments#action_12355869 
] 

Mike Kienenberger commented on MYFACES-749:
-------------------------------------------

The short answer is that this is probably not a bug.

If you remove the  immediate="true" field, you should see the behavor you 
expect.

If you have more questions about why this is (it's complicated but boils down 
to short-circuiting the JSF lifecyle and skipping the model update phase), ask 
on the myfaces-users mailing list.

I just posted a topic to a similar question that will answer most, if not all 
of your questions about it.

Message-ID: <[EMAIL PROTECTED]>
Date: Tue, 25 Oct 2005 11:24:20 -0400
From: Mike Kienenberger <[EMAIL PROTECTED]>
To: MyFaces Discussion <[email protected]>
Subject: Re: valueChangeListener - inputText - Which method is correct?

> 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

Reply via email to