just call secondForm.setModel(loaded model); secondForm.setVisible(true);

-Igor


On 5/4/06, Aditya Patel < [EMAIL PROTECTED]> wrote:
I have 2 forms in my wicket page. Only the first form is visible at the beginnning.
The first form has a drop down and based on the selection of the drop down, there's a database call and then the second form needs to be populated based on the model returned by the database call.

  My problem is, in the main contructor, I am adding the second form with an empty model and am setting secondForm.isVisible(false)
  Now when the selection on the first form changes I try to I do secondForm.setVisible(true). This does not work since the form is already initialized and shows up with default values. I also tried re-initializing the secondForm and doing this does not even show the secondForm.
    Is there a way of doing this without navigating to a different page when the selection changes.

Thanks

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Reply via email to