f:convertDateTime has wrong signatures of all setters (does not accept 
javax.el.ValueExpression)
------------------------------------------------------------------------------------------------

                 Key: MYFACES-1643
                 URL: https://issues.apache.org/jira/browse/MYFACES-1643
             Project: MyFaces Core
          Issue Type: Bug
          Components: General
    Affects Versions: 1.2.0-SNAPSHOT
         Environment: geronimo-2.0 M5/M6
            Reporter: Alexander Zynevich


I get nightly build of Geronimo 2.0. It uses MyFaces-1.2.0-SNAP.
I see that 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/core/myfaces-impl/1.2.0-SNAPSHOT/myfaces-impl-1.2.0-SNAPSHOT.jar
 has /META-INF/myfaces_core.tld which declares all attributes for 
f:convertDataTime as <deffeted-value> however methods of 
org.apache.myfaces.taglib.core.ConvertDateTimeTag (derived from 
org.apache.myfaces.shared_impl.taglib.core.ConvertDateTimeTagBase) accept only 
strings(thus it may not be deffered):

http://svn.apache.org/viewvc/myfaces/shared/branches/3_0_0/core/src/main/java/org/apache/myfaces/shared/taglib/core/ConvertDateTimeTagBase.java?revision=479743&view=markup
<code>
    private String _dateStyle = "default"; // the default value as required by 
the spec (default in this case)
    private String _locale = null;
    private String _pattern = null;
    private String _timeStyle = "default"; // the default value as required by 
the spec (default in this case)
    private String _timeZone = null;
    private String _type = null;

    public void setDateStyle(String dateStyle)
    {
        _dateStyle = dateStyle;
    }

    public void setLocale(String locale)
    {
        _locale = locale;
    }

    public void setPattern(String pattern)
    {
        _pattern = pattern;
    }

    public void setTimeStyle(String timeStyle)
    {
        _timeStyle = timeStyle;
    }

    public void setTimeZone(String timeZone)
    {
        _timeZone = timeZone;
    }

    public void setType(String type)
    {
        _type = type;
    }
</code>

The indication is:
javax.servlet.ServletException: Unable to compile class for JSP: 

An error occurred at line: 72 in the jsp file: 
/jsp/cust/customer_details_spc.jsp
The method setPattern(String) in the type ConvertDateTimeTagBase is not 
applicable for the arguments (JspValueExpression)
69:             </f:facet>
70:             <w:dragSource dndTypeId="<%=DnDIds.ID_SPECIAL%>" 
dndObjId="#{obj.spclID}" dndText="#{obj.spclShrtName}">
71:                     <h:outputText id="cellFrom" 
styleClass="specials-text-norm-dnd-ds" value="#{obj.spclStrtDate}" >
72:                             <f:convertDateTime pattern="yyyy-MM-dd" 
timeZone="#{commonInfo.timeZone}" />
73:                     </h:outputText>
74:             </w:dragSource>
75:     </h:column>


An error occurred at line: 72 in the jsp file: 
/jsp/cust/customer_details_spc.jsp
The method setTimeZone(String) in the type ConvertDateTimeTagBase is not 
applicable for the arguments (JspValueExpression)
69:             </f:facet>
70:             <w:dragSource dndTypeId="<%=DnDIds.ID_SPECIAL%>" 
dndObjId="#{obj.spclID}" dndText="#{obj.spclShrtName}">
71:                     <h:outputText id="cellFrom" 
styleClass="specials-text-norm-dnd-ds" value="#{obj.spclStrtDate}" >
72:                             <f:convertDateTime pattern="yyyy-MM-dd" 
timeZone="#{commonInfo.timeZone}" />
73:                     </h:outputText>
74:             </w:dragSource>
75:     </h:column>



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