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 <[email protected]> wrote: > 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, is there a workaround > available? > > greets chris > > snippet: > ... > pComponent.add(new FXValidationAjaxHandler(pFXJavascriptEvent)); > this.pComponent.setOutputMarkupPlaceholderTag(true); > this.pComponent.setOutputMarkupId(true) > this.pComponent.setVisible(false); // no javascript is added > //this.pComponent.setVisible(true); // javascript is added > form.add(this.pComponent); > ... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
