Hi,

I suspect you're dealing with a Calendar instance instead of a Date.
It may be a bug, how far is your date in your hierarchy of fields? How 
do your access it?

Thanks,
anahide.

Nel Taurisson a écrit :
> Hi,
> 
> I have a problem when nesting a date widget within a list widget.
> 
> As long as the field is empty, all is correct. I can enter a date, it 
> gets save ok. I can see it in view mode, but when I try to switch in 
> edit mode then I get the following error :
> 
> 17:36:36,179 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
> Servlet threw exception
> java.lang.IllegalArgumentException: Cannot format given Object as a Date
>         at java.text.DateFormat.format(DateFormat.java:281)
>         at java.text.Format.format(Format.java:140)
>         at 
> javax.faces.convert.DateTimeConverter.getAsString(DateTimeConverter.java:448)
>         at 
> com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469)
>         at 
> org.nuxeo.ecm.platform.ui.web.component.date.InputDateTimeRenderer.encodeBegin(InputDateTimeRenderer.java:79)
>         at 
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:785)
>         ...
> 
> 
> If someone any cues...
> 
> Thanks
> 
> Nel
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to