Do you use certain classes which cause the date pickers to be automatically
initialized?  Try adding this to AjaxRequestTarget#appendJavascript:  "
$('.selector').datepicker()".  The selector obviously needs to be a valid
jQuery selector.

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, May 17, 2010 at 1:06 PM, Ivoneta <[email protected]> wrote:

>
> in the html for the webPage, I have this
>
>  <head>
>        <title>FrontEnd Seguros</title>
>         <link href="views/css/ui.all.css" rel="stylesheet"
> type="text/css"/>
>        <link href="views/css/QuotePage.css" rel="stylesheet"
> type="text/css"/>
>        <script language="JavaScript1.2"
> src="views/js/jqueryMin.js"></script>
>        <script language="JavaScript1.2" src="views/js/ui.core.js"></script>
>        <script language="JavaScript1.2"
> src="views/js/ui.datepicker.js"></script>
>        <script language="JavaScript1.2"
> src="views/js/ui.datepicker-es.js"></script>
>          <script language="JavaScript1.2"
> src="views/js/ui.datepicker-fr.js"></script>
>          <!--<script language="JavaScript1.2"
> src="views/js/accordion.js"></script>-->
>    </head>
>    <body>
>           <div class="quotPan2 bg_gray_plane" wicket:id="CreateQuotePanel"
> ></div>
>          <div wicket:id="InsuranceObjectInformationPanel"></div>
>          <div wicket:id="InsuranceOptionsPanel"></div>
> </body
>
> in the "CreateQuotePanel", I have a form , with two jquery datePickers
> fields(this fields are rendering with jQuery and CSS) and an ajax button.
> When button is clicked the panel is replaced for another one, that contains
> another form with a ajax link. If the ajax link is clicked, the panel is
> replaced again. The replaced panel should have a two jquery datePickers
> fields, but it doesn't work, they don't render!
>
> In the main html is the only place where I inicialize the javascript!
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220086.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to