This content has been marked as final.
Show 6 replies
-
1. Re: InplaceSelect with Enum with 3.3.1
ilya_shaikovsky Mar 24, 2009 12:13 PM (in response to julienc)please create an issue. It seems different from the issue you mentioned.
-
2. Re: InplaceSelect with Enum with 3.3.1
julienc Mar 24, 2009 12:20 PM (in response to julienc)i've just see with simple inplace select the initial value is not set like the issue.
-
-
4. Re: InplaceSelect with Enum with 3.3.1
julienc Mar 24, 2009 1:02 PM (in response to julienc)i've just see with simple inplace select the initial value is not set like the issue.
Sorry it was an error. (a 3.3.0 richfaceUI was put in my directory richface 3.3.1) -
5. Re: InplaceSelect with Enum with 3.3.1
julienc Mar 25, 2009 12:45 PM (in response to julienc)i found a workaround :
Somewhere in richfaces getAsString is called with a string ...
So ...import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.ConverterException; import org.jboss.seam.ui.converter.EnumConverter; public class MyEnumConverter extends EnumConverter { public MyEnumConverter() { } @SuppressWarnings("unchecked") @Override public String getAsString(FacesContext context, UIComponent component, Object object) throws ConverterException { if (object instanceof String) object = getAsObject(context, component, (String) object); return object == null ? null : ((Enum) object).name(); } }
and use this converter not <s:enumConverter/> -
6. Re: InplaceSelect with Enum with 3.3.1
lenyas66 Mar 10, 2010 11:18 AM (in response to julienc)I put some comment on JIRA regarding this issue.
https://jira.jboss.org/jira/browse/RF-6596
Could somebody reply?