Calling repaint on the entire panel did the job.
target.addComponent(dropdown.getParent()) Thanks 

 

John

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor
Vaynberg
Sent: Tuesday, April 24, 2007 8:38 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] DropDownChoice & Ajax to render 1 of 3 forms

 

do forms start out as invisible when the page renders first? if so try
calling setoutputmarkupplaceholdertag(true) on them, or repaint their
common parent.

-igor

On 4/24/07, John Carlson <[EMAIL PROTECTED]> wrote:

I have a page with a DropDownChoice box and 3 Forms.  The Forms and
DropDownChoice belong to the same Panel.  I would like to only show one
Form at a time via the selection made on the DropDownChoice box.  I have
added a AjaxFormComponentUpdatingBehavior "onchange" to the
DropDownChoice and overridden the onUpdate function to set the
visibility of each Form appropriate to the DropDownChoice and did a
target.addComponent on each Form to ask it to render.   I can trace the
visibilities being changed but no Form is ever rendered.

 

Thanks In Advance

 

John


------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now. 
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list 
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to