gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

struts2 jquery datepicker not working #1115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hi,

i am using this jquery date picker in my struts2 application

On first load of my JSP Page ,date picker is working fine, after performing 
different action and returning to my same date picker JSP page, the date picker 
is not working.

Please give any solution for this problem.

My jsp page look like this

<%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib prefix="s" 
uri="/struts-tags"%> <%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<html>

    <head>

        <sj:head jqueryui="true"/> <link rel="stylesheet" type="text/css" href="css/jquery-ui.css" /> <link href="css/new.css" type="text/css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="css/jquery.css" media="screen"> <link id="jquery_theme_link" rel="stylesheet" type="text/css" href="css/jquery-ui_002.css"> 

    </head> 

<body> <div id="FindPage_Panel"> <s:form id="findPage">

    <s:url var="addUserUrl" action="MyAction"/>

        <div align="center" style="margin-top:4%;"> <table width="49%"> <tr> <td><s:text name="label.from" /></td> <td><sj:datepicker value="%{date}" id="date" name="date" cssClass="ui-widget-content ui-corner-all" displayFormat="dd-mm-yy" showButtonPanel="true" changeMonth="true" changeYear="true" showAnim="slideDown" duration="fast"/> 

        </td> </tr> 

        </table> </div> 

<sj:submit name="submit" value="ENTER" cssClass="ui-button ui-widget 
ui-state-default ui-corner-all" href="%{addUserUrl}" targets="FindPage_Panel"/>

</div> </s:form> </div> </body> </html>

cntact me : http://velbtech.wordpress.com/contact/

Original issue reported on code.google.com by velmmt...@gmail.com on 4 Aug 2014 at 3:00

Attachments:

GoogleCodeExporter commented 9 years ago
1. On first load of my JSP Page screen is showed in date.png
2. After performing different action and returning to my same date picker JSP 
page screen is showed in date2.png

Original comment by velmmt...@gmail.com on 4 Aug 2014 at 3:04