Render model changes

2007-10-10 Thread Per Newgro
Hi *,

im standing in the wood. I try to implement an update strategy for my issues.

45 Panel1 are included in a Panel2
2 Panel2 are included in a Page

Every contained component (all Panels) has a listener assigned.
The listener for Panel2 will be called if a Panel1 instance has been clicked.
Then page listener in Panel2 will be called on model changes in Panel1.
Now the page computes the models for the Panel2 models.

This is working so far.

But how can i refresh the view. Do i have to simply set the models of the 
panels again and call a render()?

Thanks for your help
Per

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Render model changes

2007-10-10 Thread Igor Vaynberg
you dont need to do anything. after the listener is done executing
wicket will rerender the current page again unless you call
setresponsepage() yourself.

if the listener is in ajax request you have to add all components you
want refreshed to the provided ajax request target

-igor


On 10/10/07, Per Newgro [EMAIL PROTECTED] wrote:
 Hi *,

 im standing in the wood. I try to implement an update strategy for my issues.

 45 Panel1 are included in a Panel2
 2 Panel2 are included in a Page

 Every contained component (all Panels) has a listener assigned.
 The listener for Panel2 will be called if a Panel1 instance has been clicked.
 Then page listener in Panel2 will be called on model changes in Panel1.
 Now the page computes the models for the Panel2 models.

 This is working so far.

 But how can i refresh the view. Do i have to simply set the models of the
 panels again and call a render()?

 Thanks for your help
 Per

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Render model changes

2007-10-10 Thread Per Newgro
A second try :-)

Maybe i can make the issue a bit more clear if i tell you what i want to 
achieve with this.

The 45 Panel1 instances representing the days, week of years and day names of 
a month.
They are all added to a Panel2 which represents the month panel.
The page contains 2 month panels. And if i click a day in month 1 all days 
between day in month 1 and another day should be selected.

The refreshing of model, clicking on the day is clear and working right now. 
But how can i refresh the both month panels and its components?

Cheers
Per

--  Weitergeleitete Nachricht  --

Subject: Render model changes
Date: Mittwoch, 10. Oktober 2007 20:02
From: Per Newgro [EMAIL PROTECTED]
To: wicket-ug,  users@wicket.apache.org

Hi *,

im standing in the wood. I try to implement an update strategy for my issues.

45 Panel1 are included in a Panel2
2 Panel2 are included in a Page

Every contained component (all Panels) has a listener assigned.
The listener for Panel2 will be called if a Panel1 instance has been clicked.
Then page listener in Panel2 will be called on model changes in Panel1.
Now the page computes the models for the Panel2 models.

This is working so far.

But how can i refresh the view. Do i have to simply set the models of the
panels again and call a render()?

Thanks for your help
Per

---

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Render model changes

2007-10-10 Thread Igor Vaynberg
once again, after you click the link the page is rerendered. so if
your panel1 instances properly pull model values when they rerender
they should know they are selected and redraw themselves in a proper
state.

-igor


On 10/10/07, Per Newgro [EMAIL PROTECTED] wrote:
 A second try :-)

 Maybe i can make the issue a bit more clear if i tell you what i want to
 achieve with this.

 The 45 Panel1 instances representing the days, week of years and day names of
 a month.
 They are all added to a Panel2 which represents the month panel.
 The page contains 2 month panels. And if i click a day in month 1 all days
 between day in month 1 and another day should be selected.

 The refreshing of model, clicking on the day is clear and working right now.
 But how can i refresh the both month panels and its components?

 Cheers
 Per

 --  Weitergeleitete Nachricht  --

 Subject: Render model changes
 Date: Mittwoch, 10. Oktober 2007 20:02
 From: Per Newgro [EMAIL PROTECTED]
 To: wicket-ug,  users@wicket.apache.org

 Hi *,

 im standing in the wood. I try to implement an update strategy for my issues.

 45 Panel1 are included in a Panel2
 2 Panel2 are included in a Page

 Every contained component (all Panels) has a listener assigned.
 The listener for Panel2 will be called if a Panel1 instance has been clicked.
 Then page listener in Panel2 will be called on model changes in Panel1.
 Now the page computes the models for the Panel2 models.

 This is working so far.

 But how can i refresh the view. Do i have to simply set the models of the
 panels again and call a render()?

 Thanks for your help
 Per

 ---

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]