• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

f:convertDateTime converter error

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic