문제

What's the way to find a specific (known wicket id) Wicket Component within a Page regarding less effort performance?

도움이 되었습니까?

해결책

Your options are:

  • The get() method of the component which searches for a component at a specific path.
  • An iterator() on the MarkupContainer which has all his children.
  • Use the visitChildren() that has all children and grandchildren of a MarkupContainer. visitChildren() returns ComponentHierachyIterator which in turn has a method which has a method filterById() that returns another ComponentHierachyIterator with the filtered component(s).
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top