-
1. Re: s:selectItems inside a h:selectManyCheckbox
giunad Aug 20, 2009 11:28 AM (in response to giunad)just to be complete
my environment is:
- richfaces 3.2.2.SR1
- jboss-seam-2.1.1.GA
- jboss-4.2.3.GA
- richfaces 3.2.2.SR1
-
2. Re: s:selectItems inside a h:selectManyCheckbox
kahlua Aug 24, 2009 1:14 PM (in response to giunad)Hi,
From my memories the lifecycle is something like that :
- restore view phase : component initialized with the model values
- invoke application : model values modified.
- render response : it checked the equality with the value initialized during the restore view.
At this point, the object are the same (same reference) between restore view and render response so to avoid useless treatment the component doesn't generate a new set of selectedItems from the model values and used the previous entries.
I ididn't check out but that's what I'm thinking about the UIOutput :
The output component display the right value because its internal behavior is more basic than the one of the selectitems tag.
Check if the component compute the value for each call ?You can check my post about this problem too. No reply so far (except yours).
My problem was resvoled using a quick and dirty fix : the value atrtibute of the Selectitems component points to a method which returns a new List with the model values each time.
If someone can validate or invalidate my explanation (what is right and what is wrong) ?
thanks in advance.
François -
3. Re: s:selectItems inside a h:selectManyCheckbox
giunad Aug 25, 2009 10:13 AM (in response to giunad)Christof created an jira issue for this: https://jira.jboss.org/jira/browse/JBSEAM-4382
see also
http://seamframework.org/Community/SselectItemsValueAttributeNotUpdatedthat's all folks!