I forgot to state that I'm calling renderResponse() in the value change
listener method.

Matthias

> -----Ursprüngliche Nachricht-----
> Von: Matthias Kahlau [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 29. November 2005 16:05
> An: MyFaces Discussion
> Betreff: AW: What is responsible for component value update in the
> render response phase?
>
>
> Hi!
>
> Thanks for linking to the interesting JIRA comments on the
> rendering behavior of input components in
> http://issues.apache.org/jira/browse/MYFACES-749, but I think JSF
> must work a little different from what is described in the comments:
>
> >The thing is, as Mike explained further up in his post, that an
> input component renders its "submitted value" out to the page if
> this submitted value is not null.
>
> >So what you would need to do is to reset the submittedvalue in
> the valueChangeListener.
>
>
> I have experienced a different behavior:
>
> - I set the ValueBinding property of the inputText before the
> page is displayed to AAA
> - The page is displayed with inputText showing AAA
> - The page is submitted with a selectOneRadio calling submit() if
> an onclick event is fired
> - The value change listener method of selectOneRadio is invoked
> in the Apply Request Values Phase (immediate is true)
> - I change the ValueBinding property of the inputText to BBB in
> the value change listener method
> - The page is redisplayed with the inputText showing BBB
> (component renders NOT its submitted value (AAA), but the new
> ValueBinding property value BBB)
> - The page is submitted again with a selectOneRadio calling
> submit() if an onclick event is fired
> - The value change listener method of selectOneRadio is invoked
> in the Apply Request Values Phase (immediate is true)
> - I change the ValueBinding property of the inputText to CCC in
> the value change listener method
> - The page is redisplayed with the inputText showing still BBB
> (now, the component seems to render its submitted value (BBB),
> but the new ValueBinding property value CCC)
>
> -> It seems that the inputText renders the submitted value only
> after the second submit?!
>
>
> Regards,
> Matthias
>
> > -----Ursprüngliche Nachricht-----
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Auftrag
> > von Mike Kienenberger
> > Gesendet: Montag, 28. November 2005 16:19
> > An: MyFaces Discussion
> > Betreff: Re: What is responsible for component value update in the
> > render response phase?
> >
> >
> > Take a look at the last two comments in
> >
> > http://issues.apache.org/jira/browse/MYFACES-749
> >
> > Basically, you should be able to guarantee this change if you directly
> > set the component's submitted value.   This will override any other
> > values (the component's local value and the component's backing bean
> > value).
> >
> > On 11/28/05, Matthias Kahlau <[EMAIL PROTECTED]> wrote:
> > > Hi!
> > >
> > >
> > > I can see in the MyFaces logging output that the getter
> methods of some
> > > ValueBinding variables are called to update the component
> > values. But not
> > > all possible getter methods are called, so what's responsible
> for that?
> > >
> > > I would like to update the value of an inputText field in a
> value change
> > > listener method, but the component value is not updated in the render
> > > response phase in some cases, so the assignment to the
> > ValueBinding variable
> > > is not reflected in the inputText field.
> > >
> > >
> > >
> > > Regards,
> > > Matthias
> > >
> > >

Reply via email to