I did an elegantish... workaround.  - the page instantiates a panel - the
panel has the model.

Basically my pages defer almost everything to panels - and I guess it also
aids in their reuse/embeddability.

I'm quite familiar with instanceof thanks ;)


Michael Sparer wrote:
> 
> well one (as said ugly ;-)) way that comes to my mind is to ask if
> component.getParent().getParent() instanceof Page (that should also work
> if you use nested subpages).
> 
> regards, 
> Michael
> 

-- 
View this message in context: 
http://www.nabble.com/loadStringResource%28Component-component%2C-String-key%29---correct-method-to-check-if-the-component-IS-a-Page--tp16930303p16957861.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to