Skip to main content

dropdowndatepicker ERROR: ValueExpressionImpl cannot be cast to String

1 reply [Last post]
groverblue
Offline
Joined: 2006-06-23

I'm getting an error trying to use the dojo.dropdowndatepicker widget. This is how I'm using it:

=================== List.jsp ===========================

=================== faces-config.xml ====================

jobSearchFilter
com.x.JobSearchFilter
session

=============== JobSearchFilter.java ===================
public class JobSearchFilter {
private Date entryDateTime;

public Date getEntryDateTime() {
return entryDateTime;
}

public void setEntryDateTime(Date entryDateTime) {
this.entryDateTime = entryDateTime;
}
}

================= Browser Result =======================
HTTP Status 500 -
exception
org.apache.jasper.JasperException: java.lang.ClassCastException: com.sun.el.ValueExpressionImpl cannot be cast to java.lang.String

================= server.log ======================

ApplicationDispatcher[/DPSAdmin] PWC1231: Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException: com.sun.el.ValueExpressionImpl cannot be cast to java.lang.String
at jmaki.runtime.IOUtil.createJavaScriptObject(IOUtil.java:108)
at jmaki.runtime.IOUtil.createJavaScriptObject(IOUtil.java:73)
at jmaki.runtime.WidgetCommonRenderer.writeAddWidget(WidgetCommonRenderer.java:280)
at jmaki.runtime.WidgetCommonRenderer.writeResources(WidgetCommonRenderer.java:160)
at jmaki.runtime.jsp.WidgetTag.doEndTag(WidgetTag.java:129)
at org.apache.jsp.jobList.List_jsp._jspx_meth_a_widget_0(List_jsp.java from :226)
at org.apache.jsp.jobList.List_jsp._jspx_meth_h_form_0(List_jsp.java from :168)
at org.apache.jsp.jobList.List_jsp._jspx_meth_f_view_0(List_jsp.java from :126)
at org.apache.jsp.jobList.List_jsp._jspService(List_jsp.java from :87)
======================================================

I can't see what I did wrong....

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kenpaulsen
Offline
Joined: 2005-03-30

Hi,

Looking at your stack trace, it appears that you are using the JSP version of the jMaki tag instead of the JSF version. I imagine that is the root cause of your problem. Try switching to jMaki's JSF tags instead.

Good luck!

Ken Paulsen
https://jsftemplating.dev.java.net