Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

datepicker onChangeTopics to load a div

 
Nisha Kala
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 88
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not very sure of this, but doesn't using datepicker needs theme="ajax". Unless you specified so in struts.properties
 
Johannes Geppert
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try latest version I think this is a problem of version 2.3.0.

Johannes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic