-
1. Re: Not sure how to bind List to selectManyCheckbox
nbelaevski Nov 5, 2008 11:10 PM (in response to meetoblivion)Hello,
That can happen if list of values is not the same on initial rendering and on postback processing. Please check that. -
2. Re: Not sure how to bind List to selectManyCheckbox
meetoblivion Nov 6, 2008 9:47 PM (in response to meetoblivion)how is it defining "same" in this case?
-
3. Re: Not sure how to bind List to selectManyCheckbox
nbelaevski Nov 7, 2008 7:24 PM (in response to meetoblivion)List of submitted and converted values is compared to list of model values using per-item equals. All submitted items should be contained in model items list.
-
4. Re: Not sure how to bind List to selectManyCheckbox
meetoblivion Nov 8, 2008 3:25 AM (in response to meetoblivion)As far as I can tell this is in fact occurring. as I mentioned in my opening post, I added some debug info to the .equals methods, and it is in fact comparing and returning true as appropriate.
-
5. Re: Not sure how to bind List to selectManyCheckbox
nbelaevski Nov 8, 2008 7:41 PM (in response to meetoblivion)Ok, if equals() works correct then you should check whether you have equal set of items in time when component rendered and in time when it's submitted and being processed.
Small example:
1. Render phase. "available" list contains A, B, C items
2. Request processing phase. User submits B' and C' items (B' is former B item after conversion; the same for C'), but "available" list now contains A, C, D, E items for some reason. So this error occurs even if B.equals(B') and C.equals(C') because there's no B item in "available" list