You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2007/09/10 12:02:30 UTC

[jira] Created: (TRINIDAD-700) EL isn't evalutaed for the datestyle / timestyle attrs of tr:convertDateTime

EL isn't evalutaed for the datestyle / timestyle attrs of tr:convertDateTime
----------------------------------------------------------------------------

                 Key: TRINIDAD-700
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-700
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 1.2.2-core
            Reporter: Matthias Weßendorf


compare

<tr:outputText value="#{clientValidation.date}">
<tr:convertDateTime type="both" dateStyle="#{'full'}"
              timeStyle="#{'full'}" locale="#{commonBean.currLocale}"/>
</tr:outputText>

vs.

<tr:outputText value="#{clientValidation.date}">
<f:convertDateTime type="both" dateStyle="#{'full'}"
              timeStyle="#{'full'}" locale="#{commonBean.currLocale}"/>
</tr:outputText>

and notice the difference

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


[jira] Resolved: (TRINIDAD-700) EL isn't evalutaed for the datestyle / timestyle attrs of tr:convertDateTime

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf resolved TRINIDAD-700.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.3-core
         Assignee: Matthias Weßendorf

fixed the DateTime/Number Converters of the Trinidad API.
see commit log for more.

> EL isn't evalutaed for the datestyle / timestyle attrs of tr:convertDateTime
> ----------------------------------------------------------------------------
>
>                 Key: TRINIDAD-700
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-700
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.2.2-core
>            Reporter: Matthias Weßendorf
>            Assignee: Matthias Weßendorf
>             Fix For: 1.0.3-core
>
>
> compare
> <tr:outputText value="#{clientValidation.date}">
> <tr:convertDateTime type="both" dateStyle="#{'full'}"
>               timeStyle="#{'full'}" locale="#{commonBean.currLocale}"/>
> </tr:outputText>
> vs.
> <tr:outputText value="#{clientValidation.date}">
> <f:convertDateTime type="both" dateStyle="#{'full'}"
>               timeStyle="#{'full'}" locale="#{commonBean.currLocale}"/>
> </tr:outputText>
> and notice the difference

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


[jira] Commented: (TRINIDAD-700) EL isn't evalutaed for the datestyle / timestyle attrs of tr:convertDateTime

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526852 ] 

Matthias Weßendorf commented on TRINIDAD-700:
---------------------------------------------

this is true for timeStyle="#{bean.style}" as well.

The problem is:

FacesBeanImp.getProperty(key)

does

...
   Object o = getLocalProperty(key);
   if (o != null)
     return o;
...

o is the default.

Adam pointed out, that the issue is the Constructor of the DateTimeConverter (from the API package)

<snip>
since we're explicitly setting the time style
and date style and type, the value binding will be ignored.
Instead of using setters in the constructor, we should put
that default into the getters.
</snip>

> EL isn't evalutaed for the datestyle / timestyle attrs of tr:convertDateTime
> ----------------------------------------------------------------------------
>
>                 Key: TRINIDAD-700
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-700
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.2.2-core
>            Reporter: Matthias Weßendorf
>
> compare
> <tr:outputText value="#{clientValidation.date}">
> <tr:convertDateTime type="both" dateStyle="#{'full'}"
>               timeStyle="#{'full'}" locale="#{commonBean.currLocale}"/>
> </tr:outputText>
> vs.
> <tr:outputText value="#{clientValidation.date}">
> <f:convertDateTime type="both" dateStyle="#{'full'}"
>               timeStyle="#{'full'}" locale="#{commonBean.currLocale}"/>
> </tr:outputText>
> and notice the difference

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