[richfaces-issues] [JBoss JIRA] Work stopped: (RF-6596) InplaceSelect with Enum => Cast exception

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Mon Mar 30 13:52:42 EDT 2009


     [ https://jira.jboss.org/jira/browse/RF-6596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on RF-6596 stopped by Nick Belaevski.

> InplaceSelect with Enum => Cast exception
> -----------------------------------------
>
>                 Key: RF-6596
>                 URL: https://jira.jboss.org/jira/browse/RF-6596
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>            Reporter: julien colin
>            Assignee: Nick Belaevski
>             Fix For: 3.3.1
>
>
> I've an Enum "Report" with these values "ALL,DELIVERED,NONE,UNDEFINED"
> This code with 3.2.2 it works.
> Code:
> <rich:inplaceSelect value="#{account.deliveryReport}"
> editEvent="onclick" selectOnEdit="true"
> defaultLabel="click to edit">
> <s:enumItem enumValue="ALL" itemLabel="ALL" />
> <s:enumItem enumValue="DELIVERED" itemLabel="DELIVERED" />
> <s:enumItem enumValue="NONE" itemLabel="NONE" />
> <s:enumItem enumValue="UNDEFINED" itemLabel="UNDEFINED" />
> <s:convertEnum />
> <a4j:support event="onviewactivated" eventsQueue="customer"
> action="#{entityManager.flush}" />
> </rich:inplaceSelect>	
> with 3.3.1 i have a cast exception:
> java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Enum
>         at org.jboss.seam.ui.converter.EnumConverter.getAsString(EnumConverter.java:56)
>         at org.ajax4jsf.util.InputUtils.getConvertedStringValue(InputUtils.java:114)
>         at org.richfaces.renderkit.ComboBoxBaseRenderer.getConvertedStringValue(ComboBoxBaseRenderer
> .java:131)
>         at org.richfaces.renderkit.ComboBoxBaseRenderer.encodeSuggestion(ComboBoxBaseRenderer.java:1
> 38)
>         at org.richfaces.renderkit.InplaceSelectBaseRenderer.encodeItems(InplaceSelectBaseRenderer.j
> ava:101)
>         at org.richfaces.renderkit.html.InplaceSelectRenderer.doEncodeEnd(InplaceSelectRenderer.java
> :612)
>         at org.richfaces.renderkit.html.InplaceSelectRenderer.doEncodeEnd(InplaceSelectRenderer.java
> :645)
>         at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
>         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
> 	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list