The moose likes Struts and the fly likes datepicker onChangeTopics to load a div Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "datepicker onChangeTopics to load a div" Watch "datepicker onChangeTopics to load a div" New topic

datepicker onChangeTopics to load a div

Nisha Kala

Joined: Nov 17, 2010
Posts: 21
I am using struts2 jquery 2.3.0. I used date picker onChangeTopcis to load a paticular div and i get error saying this.publish is not a function

<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<sj:head compressed="false"/>
<title><s:text name="application.title"/></title>

Date: <sj:datepicker id="datepicker1" displayFormat="MM/dd/yyyy"
imageTooltip="Select Your Birthdate" showButton="true" onChangeTopics="datepickerSelectedDate"/>
<sj:div src="dateEvents.action" reloadTopics="datepickerSelectedDate"/>
Shashank Ag
Ranch Hand

Joined: Dec 22, 2009
Posts: 88

I am not very sure of this, but doesn't using datepicker needs theme="ajax". Unless you specified so in

SCJP 91%, SCWCD 97%
Johannes Geppert
Ranch Hand

Joined: Jan 12, 2010
Posts: 67
Please try latest version I think this is a problem of version 2.3.0.


My Java and Webprogramming Blog
I agree. Here's the link:
subject: datepicker onChangeTopics to load a div
It's not a secret anymore!