I'm unfortunately nowhere near my computer right now, but I just ran into this 
problem exactly the other day with checkgroup and datatable and would be very 
interested to know the solution as well.  In my case, the checks didn't seem to 
persist between post attempts (in the case of validation failures) but the 
model still held the selected object.  I wish I could offer code, but from here 
all I can offer is anecdotal scenarios. 

On Jun 10, 2012, at 7:10 AM, Jürgen Lind <[email protected]> wrote:

> Thanks for the hint. Unfortunately, I was incorrect in my initial post: it is 
> not a
> ListView but a DataView I am using within the form. Is there a similar 
> mechanism for
> this case?
> 
> J.
> 
> On 10.06.2012 12:40, Sven Meier wrote:
>> See ListView#setReuseItems()
>> 
>> Jürgen Lind<[email protected]>  schrieb:
>> 
>>> Ok, I'm answering myself here... The problem was obviously, that upon each 
>>> render
>>> the Check components had new values and so the state was not cleanly 
>>> maintained. I kind
>>> of solved it by overriding the getValue methode and providing a unique id 
>>> that remains
>>> the same on each page rendering.
>>> 
>>> However, I still wonder if that is the way to go or just weird hack which 
>>> solves the
>>> problem more or less by coincidence.
>>> 
>>> Any help would be appreciated.
>>> 
>>> J.
>>> 
>>> On 10.06.2012 12:21, Jürgen Lind wrote:
>>>> Hi,
>>>> 
>>>> I have a little problem in getting a CheckGroup to work... The setup is as 
>>>> follows:
>>>> the page has a Form with a CheckGroup that contains a ListView where each 
>>>> list item
>>>> adds a Check component - giving me a "bulk select" mechanism. Now, 
>>>> everything works
>>>> great if the form is submitted successfully. However, when a required 
>>>> TextField is
>>>> omitted, the selected Checks are not maintained (whereas other form fields 
>>>> are
>>>> maintained). Am I missing something here?
>>>> 
>>>> Cheers,
>>>> 
>>>> J.
>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [email protected]
>>>> For additional commands, e-mail: [email protected]
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
> 
> 
> Mit freundlichen Grüßen,
> 
> Jürgen Lind
> 
> -- 
> Dr. Jürgen Lind
> iteratec GmbH                Fon: +49 (0)89 614551-44
> Inselkammerstrasse 4         Fax: +49 (0)89 614551-10
> 82008 Unterhaching           Web: www.iteratec.de
> 
> Sitz und Registergericht der iteratec GmbH: München HRB 113 519
> Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to