Sorry, answering my own questions ... ;)

On 2012-05-11 17:03, Girts Ziemelis wrote:
1.I assume "_header" is staff added to page header? Can I identify it differently, not by string "_header"? instanceof HtmlHeaderContainer?
Seems that check for HtmlHeaderContainer  works fine.
2. is it sufficient to just override the add?
No other problems so far.
3. Can I use page and border getAssociatedMarkup().find(wicketId) and decide based on checking, if specified wicked id is in a base class/border?
Yes, checking markup works fine, so I can use
      if (border == null
         || getAssociatedMarkup().find(component.getId()) != null
         || component instanceof HtmlHeaderContainer) {
        super.add(component);
      } else {
        border.add(component);
      }

I also do not like the extra path "border:border_body" now to be added in wicket tester asserts
I actually decided to replace border with 2 panels (header and footer). Simpler and no need to have a border in a hierarchy any more ....

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to