[
https://issues.jboss.org/browse/RF-10037?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč commented on RF-10037:
---------------------------------
The type-safe iteration over enum values can be done as follows:
{code:xml}
<cc:interface>
<cdk:class>org.richfaces.renderkit.TestComponentRenderer</cdk:class>
<cdk:superclass>org.richfaces.renderkit.TestComponentRendererBase</cdk:superclass>
<cdk:component-family>org.richfaces.TestComponentFamily</cdk:component-family>
<cdk:renderer-type>org.richfaces.TestComponentRenderer</cdk:renderer-type>
<cdk:component-base-class>org.richfaces.component.TestComponent</cdk:component-base-class>
<cdk:import package="org.richfaces.component"
names="MyEnum" />
</cc:interface>
<cc:implementation>
<cdk:object name="myEnumValues" value="#{MyEnum.values()}"
type="MyEnum[]" />
<c:forEach items="#{myEnumValues}" var="item">
#{item}
</c:forEach>
</cc:implementation>
{code}
CDK: <c:forEach > should generate while(){} loop for Iterator
and Enumeration
-----------------------------------------------------------------------------
Key: RF-10037
URL:
https://issues.jboss.org/browse/RF-10037
Project: RichFaces
Issue Type: Task
Components: cdk, optimization
Affects Versions: 4.0.0.Milestone4
Reporter: Alexander Smirnov
Assignee: Lukáš Fryč
Fix For: 4.3.0.Milestone1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira