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/12 19:01:32 UTC

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

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