I just subclassed ComponentStringResourceLoader and tried calling getString("foobar"); from a page (that extends another page). There instanceof Page returns true. Maybe it'd be helpful to see some code (and your usecase 'cause maybe there's another way to do it).
regards Michael Ned Collyer wrote: > > > Michael Sparer wrote: >> >> comp instanceof Page ? >> >> or am I misunderstanding somethin? >> > comp instanceof Page == false > > comp is instance of > MarkupInheritanceResolver$TransparentWebMarkupContainer > > I need to get the model out of the page - if its a page. Unfortunatly > "getModel" returns null > > I'm not sure if there are other circumstances where > MarkupInheritanceResolver$TransparentWebMarkupContainer could match the > component. > > I can call comp.getPage() or comp.getParent() a few times - but I need to > determine that it IS a page - because if it is not, then I handle it > differently. > ----- Michael Sparer http://talk-on-tech.blogspot.com -- 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--tp16930303p16953713.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]