You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Mike Kienenberger <mk...@gmail.com> on 2007/04/26 16:53:38 UTC

Re: Submitted values lost - view is "refilled" everytime with model values

For JSF in general, this can be caused if you have input components in
multiple forms (recommended practice is one form per page), or inside
of UIData components (t:dataTable and t:dataList have a
preserveRowStates=true attribute to handle this).

On 4/26/07, Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> wrote:
> Got a problem with clay and flowScoped Spring beans.
>
> My view is everytime filled with the model values. The submitted values
> are lost.
>
> I can enter some data in my input fields and submit the form - if i left
> some required input fields empty, a message appears that something is
> missing, so far so good.
> However, the same field which i left empty - and all others i may have
> changed - are now populated again with values from my bean.
>
> What might cause this? I thought the component should remember this
> value and display this instead of the beans model value. Lifecycle
> stopped processing at Validation phase, so the components should not be
> cleared, any idea or tipps to debug this?
>
> Torsten
>
>

Re: Submitted values lost - view is "refilled" everytime with model values

Posted by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de>.
Don't have any of these.
Me uses one form and input components in this one form, without UIData.

Torsten 

Am Donnerstag, den 26.04.2007, 10:53 -0400 schrieb Mike Kienenberger:
> For JSF in general, this can be caused if you have input components in
> multiple forms (recommended practice is one form per page), or inside
> of UIData components (t:dataTable and t:dataList have a
> preserveRowStates=true attribute to handle this).
> 
> On 4/26/07, Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> wrote:
> > Got a problem with clay and flowScoped Spring beans.
> >
> > My view is everytime filled with the model values. The submitted values
> > are lost.
> >
> > I can enter some data in my input fields and submit the form - if i left
> > some required input fields empty, a message appears that something is
> > missing, so far so good.
> > However, the same field which i left empty - and all others i may have
> > changed - are now populated again with values from my bean.
> >
> > What might cause this? I thought the component should remember this
> > value and display this instead of the beans model value. Lifecycle
> > stopped processing at Validation phase, so the components should not be
> > cleared, any idea or tipps to debug this?
> >
> > Torsten
> >
> >