In the page put:

function initMyDatePickers() {
  $('#initialDate').datepicker({
       changeMonth: true,
       changeYear: true,
       showOn: 'button',
       buttonImage: 'views/images/calendar.jpg',
       buttonImageOnly: true
  });
}

$(document).ready(initMyDatePicker);

Then, in AjaxRequestTarget#appendJavascript("initMyDatePicker()");

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



On Mon, May 17, 2010 at 2:07 PM, Ivoneta <ietaraz...@gmail.com> wrote:

>
> The first time the datepicker field is initialized when the DOM is ready
> $(document).ready(function(){
>       $('#initialDate').datepicker({
>
>          changeMonth: true,
>          changeYear: true,
>          showOn: 'button',
>          buttonImage: 'views/images/calendar.jpg',
>          buttonImageOnly: true
>      });
> }
>
> If I use AjaxRequestTarget#appendJavascript() Will I to put all the
> functions associate with the things that I need in it?
> is there another form to inicialize the javascript? Not only pieces of it?
> I ask you, because put all the content of the javascript like a parameter
> in
> the AjaxRequestTarget#appendJavascript() for all the replace panels that I
> need to do, is like repetitive!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Replace-panel-javaScript-functions-doesn-t-work-tp2220030p2220181.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to