DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
Hello I have a text field with jQuery DatePickerBehavior. When the page is loaded and the field is initially visible, the behavior works just fine. But when toggling the visibility from hidden to visible, the client function is gone. The little date packer icon is gone and so is the click

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Ernesto Reinaldo Barreiro
How do you toggle visibility? Replacing panels via AJAX or client side JavaScript? The AJAX way will work for sure. I think via JavaScript you will have to manually recreate it when making it visible Ernesto On Fri, Jan 21, 2011 at 12:11 PM, Swanthe Lindgren swanthe.lindg...@megasol.se

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
A drop down box fires an AJAX request and the text field with the date picker has an overridden isVisible() method. On 2011-01-21 12:35, Ernesto Reinaldo Barreiro wrote: How do you toggle visibility? Replacing panels via AJAX or client side JavaScript? The AJAX way will work for sure. I think

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Ernesto Reinaldo Barreiro
Are you using wiquery? If so, can you show me your code or send me a simplified Panel showing this behavior? I use wiquery datepickers on my applications in combination with via AJAX replacements and do not have this issue. Ernesto On Fri, Jan 21, 2011 at 12:41 PM, Swanthe Lindgren

RE: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Wilhelmsen Tor Iver
A drop down box fires an AJAX request and the text field with the date picker has an overridden isVisible() method. You have used setOutputMarkupPlaceholderTag(true) on the component that visibility is toggled for yes? - Tor Iver

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
I have just changed to jQuery DatePickerBehavior from wicket extensions YUI DatePicker, which of course worked just fine in this scenario, but since I want some of the customizations available in jQuery we made a switch. On 2011-01-21 12:49, Ernesto Reinaldo Barreiro wrote: Are you using

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Ernesto Reinaldo Barreiro
A said: this works fine on my applications using latest versions of wiquery DatePicker [(see 1]) + AJAX replacements. 1-http://www.google.com/codesearch/p?hl=en#pdLMIUTpzpE/trunk/src/main/java/org/odlabs/wiquery/ui/datepicker/DatePicker.java Ernesto On Fri, Jan 21, 2011 at 12:55 PM, Swanthe

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
Sorry, I didn't get that wiquery also used jQuery. After changing to wiquery I at least got my quickstart-app running On 2011-01-21 13:34, Ernesto Reinaldo Barreiro wrote: A said: this works fine on my applications using latest versions of wiquery DatePicker [(see 1]) + AJAX replacements.