You could pass the modal window as an argument in the MyPanel constructor.

e.g.

ModalWindow modal = new ModalWindow("myWindow");

then later:

modal.setContent(new MyPanel(someProps, modal));

then in your Panel you can manipulate the ModalWindow.





On 18/11/2010, at 8:14 AM, meduolis wrote:

> 
> I'm little confused here,
> 
> Let say this is my page
> 
> 
> MyPage {
> 
> widthProp;
> heightProp;
> 
> // setters getters stuff
> 
> //button shows modal with MyPanel inside it
> // modal content
> modal.setContent(new MyPanel(someProps));
> 
> }
> 
> 
> And thats a panel
> 
> 
> MyPanel {
> 
> MyPanel(props) {
> //?? Eclipse makes those props final here, so i cannot modify it
> }
> 
> //button to resize the modal window
> 
> }
> 
> 
> I think I can not set those properties width and height from MyPanel, we
> dont know about them here, do we?? :)
> -- 
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/ModalWindow-update-size-tp3047558p3047662.html
> Sent from the Users forum 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
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to