aspose file tools
The moose likes JSF and the fly likes f:convertDateTime converter error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "f:convertDateTime converter error" Watch "f:convertDateTime converter error" New topic
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 ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: f:convertDateTime converter error
 
Similar Threads
f:convertDateTime issue
validate convertDateTime
Weird Conversion Error inputText behavior with Dates
convertDateTime
question on datetime converter and validation of a datetime field