| Author |
f:convertDateTime converter error
|
Adrian Enns
Ranch Hand
Joined: Aug 11, 2004
Posts: 48
|
|
I have the following code in a JSP/JSF page: <h:inputText id="expectedCompletionDate" styleClass="screenFields" size="15" value="#{EducationController.expectedCompletionDate}"> <f:convertDateTime pattern="MM/dd/yyyy" /> </h:inputText> It gives me the following error, any ideas? (p.s. the exact same code seems to work fine in some code before this..???) I have tried making sure that my date isn't null, but that doesn't seem to be the problem. at javax.faces.webapp.UIComponentTag.isValueReference(UIComponentTag.jav a:310) at javax.faces.webapp.ConverterTag.createConverter(ConverterTag.java:161 ) at com.sun.faces.taglib.jsf_core.ConvertDateTimeTag.createConverter(Conv ertDateTimeTag.java:137) at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:110) at jsp_servlet._jsp._content.__trainingdetails._jspService(__trainingdet ails.java:1142)
|
 |
Adrian Enns
Ranch Hand
Joined: Aug 11, 2004
Posts: 48
|
|
full error is: java.lang.NullPointerException at javax.faces.webapp.UIComponentTag.isValueReference(UIComponentTag.jav a:310) at javax.faces.webapp.ConverterTag.createConverter(ConverterTag.java:161 ) at com.sun.faces.taglib.jsf_core.ConvertDateTimeTag.createConverter(Conv ertDateTimeTag.java:137) at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:110) at jsp_servlet._jsp._content.__trainingdetails._jspService(__trainingdet ails.java:1204) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
|
 |
Garann Means
Ranch Hand
Joined: Jan 28, 2002
Posts: 214
|
|
I know you said you checked it, but it really looks like that value is null, judging from the method that's giving you trouble: If it's not null, does playing around with the immediate attribute help? [ September 29, 2005: Message edited by: Garann Rose Means ]
|
 |
 |
|
|
subject: f:convertDateTime converter error
|
|
|