[
https://issues.apache.org/jira/browse/MYFACES-3370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134114#comment-13134114
]
Michael Kurz commented on MYFACES-3370:
---------------------------------------
This issue is not valid and should be closed as f:selectItems does not define a
rendered attribute (see [1]). The attribute rendered is only available for
components.
If you want to build dynamic select item lists, you can use f:selectItems with
a property of type List<SelectItem> in the value attribute.
[1]: http://javaserverfaces.java.net/nonav/docs/2.1/
> f:selectItem ignores rendered attribute
> ---------------------------------------
>
> Key: MYFACES-3370
> URL: https://issues.apache.org/jira/browse/MYFACES-3370
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 2.0.9
> Environment: Jetty 6, Myfaces 2.0.9, Primefaces 3.0
> Reporter: Joe Rossi
> Priority: Minor
>
> In the following snippet:
> <h:selectOneMenu id="selector"
> value="#{cc.attrs.backingBean[cc.attrs.property]}"
> required="#{cc.attrs.required}"
> requiredMessage="#{cc.attrs.requiredMessage}"
> disabledClass="tnui-selectDisabled"
> disabled="#{cc.attrs.disabled}"
> immediate="#{cc.attrs.immediate}"
> readonly="#{cc.attrs.readonly}"
> onchange="#{cc.attrs.onchange}"
> style="#{cc.attrs.style}">
> <f:selectItem
>
> itemLabel="#{cc.attrs.noSelectOptionLabel}#{sessionBean.classOfService}"
> itemValue="#{null}"
> noSelectionOption="true"
> rendered="false"/>
> <p:ajax update="#{cc.attrs.updateTargets}"
> disabled="#{!includeAjaxUpdate}"/>
> <composite:insertChildren />
> </h:selectOneMenu>
> The embedded f:selectItem is always included even though it's rendered
> attribute is set to false.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira