Hi,
I have added to my page a panel.

CompoundPropertyModel compoundPropertyModel = new 
CompoundPropertyModel(myModel);
add(new myPanel("",compoundPropertyModel).setVisible(false));

I am submitting my form and getting form value to the panel. But I cant find 
how can I reach the component, in the form's onSubmit function.

protected void onSubmit(){
    //How can I reach the panel component and set it to visible?
}

Thanks for your helps.

----- Original Message ----
From: Igor Vaynberg <[EMAIL PROTECTED]>
To: wicket-user@lists.sourceforge.net
Sent: Thursday, February 8, 2007 12:30:01 AM
Subject: Re: [Wicket-user] How can I add panel on submit?

one way:
add the panel and set it to invisible, in your onsubmit set it back to visible. 
see component.is/setvisible()

another way:
add a placeholder component such as webmarkupcontainer and in onsubmit replace 
it with your actual panel 

-igor



On 2/7/07, Ramazan Pekin <[EMAIL PROTECTED]> wrote:
Hi to everyone,
I want to add a new component to my page on my form submit, can I do that?
I want to show the form result on this component. For example I want to show 
the result of the form with the Panel.
Can you help me with example code?
Thank to everyone.



Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? 
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user 




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to