aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "datepicker onChangeTopics to load a div" Watch "datepicker onChangeTopics to load a div" New topic
Author

datepicker onChangeTopics to load a div

Nisha Kala
Greenhorn

Joined: Nov 17, 2010
Posts: 21
Hi
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"%>
<html>
<head>
<sj:head compressed="false"/>
<title><s:text name="application.title"/></title>

</head>
<body>
Date: <sj:datepicker id="datepicker1" displayFormat="MM/dd/yyyy"
imageTooltip="Select Your Birthdate" showButton="true" onChangeTopics="datepickerSelectedDate"/>
<sj:div src="dateEvents.action" reloadTopics="datepickerSelectedDate"/>
</body>
</html>
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 struts.properties


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.

Johannes


My Java and Webprogramming Blog
 
Don't get me started about those stupid light bulbs.
 
subject: datepicker onChangeTopics to load a div