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

Yee-Wah Lee commented on TRINIDAD-977:
--------------------------------------

I am looking through the code, and the dependency of the InputDate JS on the 
client converter seems ingrained .

i) The method _getDateFieldFormat() is called by _dfb (Date Field onBlur), 
_dfgv and _dfsv (Date Field G/Set Value, used by the popup). This method 
returns new TrDateTimeConverter(..), and it doesn't seem overridable.
=> Are you able to override this to return your own custom converter? I'm 
assuming that you implement the ClientConverter interface.

ii) In 1.2.3, the _getDateFieldFormat() uses the _dfs array, and the _dl array 
in 1.2.6 is defined in the same place.
=> Do you get the same problem with _dfs being undefined?

> 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