[ 
http://issues.apache.org/jira/browse/MYFACES-1172?page=comments#action_12424176 
] 
            
Pat McCabe commented on MYFACES-1172:
-------------------------------------

Any progress on this issue ?? I can't set the timezone properly at all. 

e.g. using MyFaces 1.1.5 SNAPSHOT
<h:outputText value="#{listingBean.cl.dateSubmitted.time}">   
        <t:convertDateTime timeZone="#{listingBean.cl.timeZone}" type="both" 
dateStyle="short" timeStyle="short" />
</h:outputText>

I tried using both a TimeZone object, and then the string ID of the timezone.  
Both cases resulted in a null pointer exception.

Caused by: java.lang.NullPointerException
        at 
org.apache.myfaces.shared_impl.taglib.core.ConvertDateTimeTagBase.setConverterTimeZone(ConvertDateTimeTagBase.java:184)
        at 
org.apache.myfaces.shared_impl.taglib.core.ConvertDateTimeTagBase.createConverter(ConvertDateTimeTagBase.java:85)
        at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:63)
        at 
org.apache.jsp.view.CategoryList_jsp._jspx_meth_f_convertDateTime_0(CategoryList_jsp.java:1236)
        at 
org.apache.jsp.view.CategoryList_jsp._jspx_meth_h_outputText_11(CategoryList_jsp.java:1211)
        at 
org.apache.jsp.view.CategoryList_jsp._jspx_meth_h_column_4(CategoryList_jsp.java:1129)
        at 
org.apache.jsp.view.CategoryList_jsp._jspx_meth_t_dataTable_1(CategoryList_jsp.java:648)
        at 
org.apache.jsp.view.CategoryList_jsp._jspx_meth_h_form_0(CategoryList_jsp.java:199)
        at 
org.apache.jsp.view.CategoryList_jsp._jspx_meth_f_view_0(CategoryList_jsp.java:151)
        at 
org.apache.jsp.view.CategoryList_jsp._jspService(CategoryList_jsp.java:115)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


> convertDateTime does not work with EL
> -------------------------------------
>
>                 Key: MYFACES-1172
>                 URL: http://issues.apache.org/jira/browse/MYFACES-1172
>             Project: MyFaces Core
>          Issue Type: Bug
>         Environment: Weblogic 8.1 SP4 myfaces 1.1.1
>            Reporter: Raphael A BEREHOUDOUGOU
>
> When used with el <f: convertDateTime > does not seem to be able to resolve 
> the EL. 
> <f:convertDateTime type="date" dateStyle="#{attr.patternStyle}" 
> pattern="#{attr.patternFormat}" />
> Typically parttern in ConvertDateTime when you debug the code is null. Yet a 
> system.out displays the right pattern.
> Beacsuse the pattern cannot be resolved a convertion error is thrown. When 
> the value of pattern is change to be a static string line "dd-MM-yyyy", 
> everything works fine.
> In the case above attr is the Object in the current row of a <x:dataTable>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to