[ http://issues.apache.org/jira/browse/MYFACES-267?page=all ] Martin Marinschek reopened MYFACES-267: ---------------------------------------
nightly build not chosen... > selectItemGroup doesn't render correctly in selectOneListbox or > selectManyCheckbox > ---------------------------------------------------------------------------------- > > Key: MYFACES-267 > URL: http://issues.apache.org/jira/browse/MYFACES-267 > Project: MyFaces > Type: Bug > Versions: Nightly Build > Environment: WinXP, JBoss 4.0 > Reporter: Jan Bols > Assignee: Martin Marinschek > Fix For: Nightly Build > Attachments: HtmlCheckBoxRendererBase.diff, HtmlRadioRendererBase.diff > > In a form like the following: > > <h:form> > <h:selectManyCheckbox> > <f:selectItems value="#{test.items}"/> > </h:selectManyCheckbox> > </h:form> > > where test.items is an ArrayList with a number of SelectItemGroup objects, > each one containing some SelectItem objects, the following happens: Only the > SelectItemGroup labels are rendered together with a checkbox before each > label. The selectItem objects inside the selectItemGroup objects aren't > rendered. > The same is true when using selectOneRadio instead of selectManyChexkbox. > To reproduce create a jsf page containing the above form and hook the #{test} > managed bean to the following class: > > public class Test { > private Collection items; > public Test() { > items = new ArrayList(2); > SelectItem options1[] = { > new SelectItem("200", "Duke's Quarterly", ""), > new SelectItem("202", "Duke's Diet and Exercise Journal", ""), > }; > SelectItem options2[] = { > new SelectItem("201", "Innovator's Almanac", ""), > new SelectItem("203", "Random Ramblings", ""), > }; > SelectItemGroup g1 = new SelectItemGroup("Duke's", null, true, options1); > SelectItemGroup g2 = new SelectItemGroup("General Interest", null, false, > options2); > items.add(g1); > items.add(g2); > } > public Collection getItems() { > return items; > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
