Yes, that's the way it should be. First it sounded a bit unconsistent but there could be situations where page.onDetach() needs to be called. eg. if one of the rendered components uses page's model. On the other hand, they could use for example form's model through compound model. Is onDetach() called for every component?
 
/arto

 
2006/3/30, Igor Vaynberg <[EMAIL PROTECTED]>:
yeah, page.onattach will not be called, only the components that are added to the target.

page.ondetach gets called at the end of any request cycle, i dont think its a problem because unless the page has been attached it should be a noop, and its a good safety net.
 

-Igor



On 3/29/06, Arto Arffman <[EMAIL PROTECTED] > wrote:
I think it's mistake. I was relying on Page's onAttach(). I suppose its only those components that get rendered, am I rigth?
 
Funny though, Page.onDetach() is called, but Page.onAttach() is not.

 
2006/3/29, Arto Arffman <[EMAIL PROTECTED]>:
hmm, i'm using svnroot/wicket/trunk/wicket, if that's what you mean

2006/3/29, Arto Arffman <[EMAIL PROTECTED]>:
OK, I'll check if it's my mistake or is there really a bug.
 
(latest head, don't know what "off trunk" means)

 
2006/3/29, Igor Vaynberg <[EMAIL PROTECTED]>:
it should and i thought i recently fixed it, are you working off trunk?
 

-Igor



On 3/28/06, Arto Arffman < [EMAIL PROTECTED] > wrote:
Should onAttach() be called when ajax is used? (using latest head)
 
If so I'll dig deeper...
 
/arto


 

 

 


Reply via email to