Re: button in one panel can change the components in other panel ?

2009-12-08 Thread Alex Objelean

The simplest solution is to make your button a submit button, this way when
it clicked, the entire page will be  reloaded  components will render
according to their new state. 

The second approach can be using ajax. I prefer the approach described on
this blog:
http://techblog.molindo.at/2008/09/wicket-loose-coupling-of-componens-for-ajax-updates.html

Alex Objelean


Madhuri Garimella wrote:
 
 Hi,
 
 I need a help in wicket. I have a panel containing a button and another
 panel containing components. on click of the first panel button i want to
 change the second panel components. Is there any way to do that. Please
 reply ASAP.
 
 
 Regards
 Madhu.
 
 

-- 
View this message in context: 
http://old.nabble.com/button-in-one-panel-can-change-the-components-in-other-panel---tp26692926p26693609.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



Re: button in one panel can change the components in other panel ?

2009-12-08 Thread Pieter Degraeuwe
I suggest you work with a callback/listener mechanism.

ButtonPanel has a reference to a calback/listener. In the onclick() you call
that callback. The implementation of that callback can be done by the
component/page that uses the buttonPanel. (Losely coupling...)

On Tue, Dec 8, 2009 at 12:21 PM, Madhuri Garimella
m.garimel...@gmail.comwrote:

 Hi,

 I need a help in wicket. I have a panel containing a button and another
 panel containing components. on click of the first panel button i want to
 change the second panel components. Is there any way to do that. Please
 reply ASAP.


 Regards
 Madhu.




-- 
Pieter Degraeuwe
Systemworks bvba
Belgiƫlaan 61
9070 Destelbergen
GSM: +32 (0)485/68.60.85
Email: pieter.degrae...@systemworks.be
visit us at http://www.systemworks.be