• Post Reply Bookmark Topic Watch Topic
  • New Topic

f:convertDateTime converter error  RSS feed

 
Adrian Enns
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!