You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jan Bols (JIRA)" <my...@incubator.apache.org> on 2005/06/02 11:22:02 UTC
[jira] Created: (MYFACES-267) selectItemGroup doesn't render correctly in selectOneListbox or selectManyCheckbox
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
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
[jira] Closed: (MYFACES-267) selectItemGroup doesn't render correctly in selectOneListbox or selectManyCheckbox
Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-267?page=all ]
Martin Marinschek closed MYFACES-267:
-------------------------------------
Fix Version: Nightly Build
Resolution: Fixed
Thanks to Bruno Aranda for supplying this patch!
> 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
[jira] Closed: (MYFACES-267) selectItemGroup doesn't render correctly in selectOneListbox or selectManyCheckbox
Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-267?page=all ]
Martin Marinschek closed MYFACES-267:
-------------------------------------
Resolution: Fixed
Assign To: Martin Marinschek
Thanks to Bruno Aranda for supplying this patch.
> 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
[jira] Updated: (MYFACES-267) selectItemGroup doesn't render correctly in selectOneListbox or selectManyCheckbox
Posted by "Bruno Aranda (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-267?page=all ]
Bruno Aranda updated MYFACES-267:
---------------------------------
Attachment: HtmlCheckBoxRendererBase.diff
HtmlRadioRendererBase.diff
Here are the patches to fix this issue, following the spec.
Regards,
Bruno
> 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
> 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
[jira] Reopened: (MYFACES-267) selectItemGroup doesn't render correctly in selectOneListbox or selectManyCheckbox
Posted by "Martin Marinschek (JIRA)" <my...@incubator.apache.org>.
[ 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