[ http://issues.apache.org/jira/browse/TOBAGO-60?page=all ]
Bernd Bohmann resolved TOBAGO-60:
---------------------------------
Resolution: Fixed
> 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
> Assignee: Bernd Bohmann
> Priority: Minor
> Fix For: 1.0.8
> Attachments: DateRenderer.java.diff, InRenderer.java.diff
>
> 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