myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer Rohloff (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOBAGO-221) tc:sheet -> tc:column -> tc:out does not support f:convertNumber / convertDateTime
Date Tue, 19 Dec 2006 07:46:22 GMT
    [ http://issues.apache.org/jira/browse/TOBAGO-221?page=comments#action_12459562 ] 
            
Rainer Rohloff commented on TOBAGO-221:
---------------------------------------

When using a special Converter no exception occures.

	<tc:column label="Decimal-1" align="right">
		<tc:out value="#{entry.decimal}" converter="de.nordlbit.TableDecimalConverter" />
	</tc:column>

It seems to be a problem of a nested f:convertNumber Tag.


> 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

        

Mime
View raw message