Skip to main content

dropdowndatepicker ERROR: ValueExpressionImpl cannot be cast to String

1 reply [Last post]
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 ====================


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

public Date getEntryDateTime() {
return entryDateTime;

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

================= Browser Result =======================
HTTP Status 500 -
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(
at jmaki.runtime.IOUtil.createJavaScriptObject(
at jmaki.runtime.WidgetCommonRenderer.writeAddWidget(
at jmaki.runtime.WidgetCommonRenderer.writeResources(
at jmaki.runtime.jsp.WidgetTag.doEndTag(
at org.apache.jsp.jobList.List_jsp._jspx_meth_a_widget_0( from :226)
at org.apache.jsp.jobList.List_jsp._jspx_meth_h_form_0( from :168)
at org.apache.jsp.jobList.List_jsp._jspx_meth_f_view_0( from :126)
at org.apache.jsp.jobList.List_jsp._jspService( 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.
Joined: 2005-03-30


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