Get a specific Wicket component on a page

How do I find a specific (known calibration identifier) ​​Wicket component on a page regarding performance degradation?

+6
source share
1 answer

Your options:

  • The get () method of the component that searches for the component in a specific path.
  • iterator () on MarkupContainer, which has all his children.
  • Use visitChildren () , which has all the children and grandchildren of MarkupContainer. visitChildren() returns a ComponentHierachyIterator , which in turn has a filterById () method that returns another ComponentHierachyIterator with filtered component (s).
+13
source

All Articles