[ 
http://issues.apache.org/jira/browse/TOBAGO-221?page=comments#action_12459549 ] 
            
Rainer Rohloff commented on TOBAGO-221:
---------------------------------------

I'm using jsf v1.1_02 (with Tomcat 5.5.20)

I use JSPs and not Facelets. Maybe this produces the problem.


> tc:sheet -> tc:column -> tc:out does not support f:convertNumber / 
> convertDateTime
> ----------------------------------------------------------------------------------
>
>                 Key: TOBAGO-221
>                 URL: http://issues.apache.org/jira/browse/TOBAGO-221
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.9-RC1
>            Reporter: Rainer Rohloff
>
> assuming following jsp-fragment
>                                               <tc:sheet 
> value="#{table22ListModel}" var="entry"
>                                                       
> state="#{table2SheetState}" columns="1*;1*;1*;1*;1*;1*;1*"
>                                                       rows="5" first="0" 
> showDirectLinks="center" showPageRange="right"
>                                                       showRowRange="left" 
> selectable="single">
>                                                       <tc:column label="Date" 
> sortable="true">
>                                                               <tc:out 
> value="#{entry.date}">
>                                                                       
> <f:convertDateTime pattern="yyyy/MM/dd"/>
>                                                               </tc:out>
>                                                       </tc:column>
>                                                       <tc:column 
> label="Double" sortable="true">
>                                                               <tc:out 
> value="#{entry.double}">
>                                                                       
> <f:convertNumber minFractionDigits="2" maxFractionDigits="3" />
>                                                               </tc:out>
>                                                       </tc:column>
>                                          ..........
> an Exception occures
> javax.faces.convert.ConverterException: java.lang.IllegalArgumentException: 
> Cannot format given Object as a Date
>       
> javax.faces.convert.DateTimeConverter.getAsString(DateTimeConverter.java:369)
>       
> org.apache.myfaces.tobago.component.ComponentUtil.currentValue(ComponentUtil.java:420)
>       
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.OutRenderer.encodeEnd(OutRenderer.java:44)
>       
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
>       
> org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java:84)
>       
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.renderSheet(SheetRenderer.java:394)
>       
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer.encodeEnd(SheetRenderer.java:132)
>       
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
>       org.apache.myfaces.tobago.component.UIData.encodeEnd(UIData.java:111)

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

        

Reply via email to