There are many ways. This is one way:

modalWindow.setContent(new MyPanel(modalWindow.getContentId()) {
   @Override
   public MagicObject getMagicObject() {
       return magicObject;
   }
});


Also you can just pass your java object as parameter to myPanel or if
it is dynamic you can wrap it into a Model.

**
Martin

2010/8/4 zoran <jeremy...@gmail.com>:
>
> Hi,
>
> I used the approach described in
> http://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popup
> to create a ModalWindow panel with the input form. Everything works fine,
> but I need to send a Java object instance to the panel before calling
> selectModalWindow.show(target), so the panel can use the information to set
> some form values and change the object after the form submit.
>
> Can you suggest me how to make this?
>
> Zoran
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-send-a-Java-object-to-the-ModalWindow-tp2312589p2312589.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to