sorry, but i dont really get what the problem is or why it matters what component stringresourceloader gets. it simply traverses up the hieararchy looking for .properties files
-igor On Tue, Apr 29, 2008 at 4:55 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Do you know an elegant solution Igor? > > Detecting when the component IS a page - when something like <wicket:message > key="foobar"/> is used in a page's markup, the component sent to the > StringResourceLoader is > MarkupInheritanceResolver$TransparentWebMarkupContainer and not Page. > > If the strings are resolved in java (ie, getString("foobar")) (according to > michael) > component instanceof Page == true > > if the strings are resolved in markup (ie, <wicket:message key="foobar"/>) > component instanceof Page == false > > Rgds > > Ned > > > igor.vaynberg wrote: > > > > Page page=component.getPage() ? > > > > -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--tp16930303p16973039.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]