Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-10-01 Thread Nicolas Melendez
hi, in your example, there aren't behaviours, or where are they? On Thu, Sep 24, 2009 at 5:54 AM, jWeekend jweekend_for...@cabouge.comwrote: Chris, The fact that you've chosen to use Wicket probably shows there's not so much danger of that! To better see what's going on, try the snippet

FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
Hi all, ich have a component (textfield) with an FXValidationAjaxHandler. If i set this component in pageconstructor to visible(false) then the needed javascript code for validation is not contributed to pageheader. if set to visible(true) all is fine. does anyone had the same problem and if so,

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Igor Vaynberg
javascript contributions do not show up for components that are not visible, add it to a visible component instead. -igor On Wed, Sep 23, 2009 at 7:15 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Hi all, ich have a component (textfield) with an FXValidationAjaxHandler.

AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
Hi, first thanks for reply. Well, it's not possible to add it to a visible component. Let me explain. I have 2 custom panels and depending on the selection in a dropdownchoice the corresponding panel gets visible or hidden. Because one of these panels need to be invisible on page construction

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Igor Vaynberg
put the two panels into a parent container that is always visible. -igor On Wed, Sep 23, 2009 at 1:37 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Hi, first thanks for reply. Well, it's not possible to add it to a visible component. Let me explain. I have 2 custom

AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
i'm sorry, but doesn't work. i attached a simple project. i added the needed components to a webmarkupcontainer. instead of panels this time i used requiredtextfields to keep it as simple as possible. one textfield is visible the other invisible. here is the generated markup: ?xml version=1.0

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Igor Vaynberg
i meant add the javascript to a container that is visible. components that are not visible do not render their javascript, it wouldnt make any sense for them to do otherwise. -igor On Wed, Sep 23, 2009 at 5:16 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: i'm sorry, but

AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
well, it makes no sense to add the javascript to another container. how should i validate the textfields if the javascript points to a different component? or could you give me an example? -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Do

AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
maybe i'm to stupid to understand what you mean. so please provide an example. thx -Ursprüngliche Nachricht- Von: Giambalvo, Christian [mailto:christian.giamba...@excelsisnet.com] Gesendet: Do 24.09.2009 02:45 An: users@wicket.apache.org Betreff: AW: FXValidationAjaxHandler - Javascript

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Jeremy Thomerson
Why validate the input on a textfield that isn't displayed to the user? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 23, 2009 at 7:45 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: well, it makes no sense to add the javascript to another container. how

re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread jWeekend
Chris, The fact that you've chosen to use Wicket probably shows there's not so much danger of that! To better see what's going on, try the snippet below in the project you attached // ... mark t2 final and // append this to your BasePage constructor