On Wed, Apr 30, 2008 at 2:55 AM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Still - would be nice if the > MarkupInheritanceResolver$TransparentWebMarkupContainer somehow indicated it > was the the page (and returned the pages model).
Component c=...; boolean page=(c==c.getPage()); -igor > > I can live without it. > > > > igor.vaynberg wrote: > > > > hm. dont know if doing localization based on type of model object is a > > great idea. there are many usecases where model type is quiet > > aribitrary, and as you have found out yourself you dont know what > > component you get passed in, so you just need to handle it in a way > > that makes sense to you. > > > > -igor > > > > -- > 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--tp16930303p16979272.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]