[ 
https://issues.apache.org/jira/browse/TRINIDAD-977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573614#action_12573614
 ] 

Jan Görß commented on TRINIDAD-977:
-----------------------------------

I have found the problem.

We are using org.joda.time.YearMonthDay instead java.util.Date and thus we have 
a own Converter (YearMonthDayConverter).
In the Method getClientScript in own Converter is without  the _dl construct.

Why is the tr:inputDate (javascript) depends from DateTimeConverter?
So I can never used other converter without adaption JavaScript of  
DateTimeConverter.
















> tr:inputDate Javascript bug
> ---------------------------
>
>                 Key: TRINIDAD-977
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-977
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.2.6-core
>            Reporter: Jan Görß
>
> We are using tr:inputDate and the Firefox throw an error in method
> function _getDateFieldFormat(dateField)
> {
>   var name = dateField.name;
>   if (name && _dfs)
>   {
>     var format = _dfs[name];
>     if (_dl)
>     {
>       var locale = _dl[name];
>       return new TrDateTimeConverter (format, locale);
>     }
>    return new TrDateTimeConverter(format);
>   }
>   return new TrDateTimeConverter();
> }
> _dl is not defined
> and  our javascript code will not execute by onblur because _dl is not 
> defined.
> client-validation-disabled is true in our webapp.
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to