I am not sure what "clear the state" means?
I'm also not sure about what to put in reset(), and when it is executed...
should i include a code like this :

reset(){
 this.setCheckedField(false);
}

It seems that the problem is specific to checkboxes :
when unchecked, the state is not updated to the bean
For example, i had this problem before : i had 4 checkboxes, after
validation, trying to read the value of a "left unchecked" chackbox
raised a null pointer exception (following code :)

myBean.get("myUncheckedCheckbox");

If the 4 checkboxes had been checked, everything was fine... If this
helps to help me ;-)


2005/12/5, Laurie Harper <[EMAIL PROTECTED]>:
> Nicolas Bizard wrote:
> > Hi everyone.
> >
> > My question is :
> > I have a strange problem with checkboxes in a formBean :
> > The form initializes (action /init)
> > I validate, get my results
> > I get "back", asking /init, everything is fine, the form shows me my
> > previous selections but....
> > when i uncheck or check one of the boxes and validate again, it does
> > not update the formbean, i still get the same results as previously.
> >
> > Note that  this only happens with checkboxes. When i update a text
> > field, the results are updated in the correct way.
> >
> > Why is that?
> >
> > Thanks.
> >
> > sorry for the off-topic email previously sent , by the way
> > :-s
> >
> > Nicolas
>
> Did you remember to clear the state of the checkbox properties in your
> form bean's reset() method?
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--

Nicolas Bizard
-------------------------------------------------------------------


 Live in such a way that you would not be ashamed to sell your parrot
to the town gossip.
  - Will Rogers


nicolasbizard.free.fr

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to