myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard van Nieuwenhoven (JIRA)" <...@myfaces.apache.org>
Subject [jira] Updated: (TOBAGO-60) Application-Converter ist not used for tx:date component
Date Thu, 27 Apr 2006 15:42:40 GMT
     [ http://issues.apache.org/jira/browse/TOBAGO-60?page=all ]

Richard van Nieuwenhoven updated TOBAGO-60:
-------------------------------------------

    Status: Patch Available  (was: Open)

> Application-Converter ist not used for tx:date component
> --------------------------------------------------------
>
>          Key: TOBAGO-60
>          URL: http://issues.apache.org/jira/browse/TOBAGO-60
>      Project: MyFaces Tobago
>         Type: Bug

>     Versions: 1.0.7
>     Reporter: Richard van Nieuwenhoven
>     Priority: Minor

>
> only the local converter is used for tx:date valuebinding conversions
> the java jsf doc says we should also use the application-global-version:
> http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/api/javax/faces/component/UIOutput.html
> To fix this we made the following changes:
> 1. In the class org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.InRendererBase.java

> we included this method:
> protected Converter getConverter(FacesContext facesContext, UIOutput component) {
> 	Converter converter = component.getConverter();
> 	if (converter != null)
> 		return converter;
> 	ValueBinding vb = component.getValueBinding("value");
> 	if (vb == null)
> 		return null;
> 	return facesContext.getApplication().createConverter(vb.getType(facesContext));
> }
> in the method  "protected void renderMain(FacesContext facesContext, UIInput input,TobagoResponseWriter
writer) throws IOException"
> we replaced the "component.getConverter()" with "getConverter(facesContext, input)"
>  2. in the class org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DateRenderer
we also changed the "((UIOutput) component).getConverter()" with "getConverter(facesContext,
(UIOutput) component)"
> please include this in the next release.

-- 
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