Hi,
a new article on Trinidad/Mobile JSF development:
http://twitter.com/lucb_/status/13146979264
-Matthias
--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
Hi all,
I have a little bit stupid question. I got this message: End of weekend:
'Tuesday' must be convertible to an enum from the enum that contains the
constant 'Tuesday'. Do I have to write my own converter or what should I
do.
public enum DayOfWeek {
MONDAY(Monday),
Hi Jozef,
see it:
public class EnumConverter implements Converter {
public Object getAsObject(FacesContext context, UIComponent comp, String
value) throws ConverterException {
Class enumType = comp.getValueBinding(value).getType(context);
return Enum.valueOf(enumType, value);
Thanks a lot Anton, I've got it working now.
Jozef
On 1.5.2010 21:20, Anton Gavazuk wrote:
Hi Jozef,
see it:
public class EnumConverter implements Converter {
public Object getAsObject(FacesContext context, UIComponent comp, String
value) throws ConverterException {
Class
4 matches
Mail list logo