You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bernd Bohmann (JIRA)" <de...@myfaces.apache.org> on 2006/12/18 22:45:22 UTC

[jira] Commented: (TOBAGO-221) tc:sheet -> tc:column -> tc:out does not support f:convertNumber / convertDateTime

    [ http://issues.apache.org/jira/browse/TOBAGO-221?page=comments#action_12459474 ] 
            
Bernd Bohmann commented on TOBAGO-221:
--------------------------------------

Just testing it in a sheet.
I didn't found any problem

See commit

http://svn.apache.org/viewvc?view=rev&revision=488431

Which jsf implementation is used?

> 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