You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Matthew Baird <ma...@ecommstats.com> on 2005/10/30 01:52:44 UTC

selectManyCheckbox broken in 1.1.0 and 1.1.1

I think I might be the only person using selectManyCheckbox, I've found
almost no examples or docs on it on the net.

 

If I put this in my page

                        <h:selectManyCheckbox id="items"
value="#{bean.items}">

                                    <f:selectItems
value="#{bean.selectedItems}"/>

                        </h:selectManyCheckbox>

 

The page will render correctly the first time, but if I submit back to that
page, it loses state if some of the checkboxes are checked. If I uncheck
them it seems to fix itself. The behavior is pretty strange. It's a
relatively easy thing to replicate.

 

The same code works perfectly with 1.0.9, and fails with both 1.1.0 and
1.1.1

 

Are there any known gotchas?

 

m


Re: selectManyCheckbox broken in 1.1.0 and 1.1.1

Posted by Mathias Brökelmann <mb...@googlemail.com>.
please post your bean code and the scope of your bean (application,
session or request)

2005/10/30, Matthew Baird <ma...@ecommstats.com>:
>
>
>
> I think I might be the only person using selectManyCheckbox, I've found
> almost no examples or docs on it on the net.
>
>
>
> If I put this in my page
>
>                         <h:selectManyCheckbox id="items"
> value="#{bean.items}">
>
>                                     <f:selectItems
> value="#{bean.selectedItems}"/>
>
>                         </h:selectManyCheckbox>
>
>
>
> The page will render correctly the first time, but if I submit back to that
> page, it loses state if some of the checkboxes are checked. If I uncheck
> them it seems to fix itself. The behavior is pretty strange. It's a
> relatively easy thing to replicate.
>
>
>
> The same code works perfectly with 1.0.9, and fails with both 1.1.0 and
> 1.1.1
>
>
>
> Are there any known gotchas?
>
>
>
> m


--
Mathias