henri17
henri17

Reputation: 33

Wicket component by output markupid

Is there a way to get wicket component by its output markupid? I have ajax function to send two markupId-s and I want to get two components that printed these id-s.

Upvotes: 0

Views: 546

Answers (1)

Robert Niestroj
Robert Niestroj

Reputation: 16131

A MarkupContainer has an Iterator with his children. Components have a method getMarkupId(). You could iterate over this iterator and check if a children a has the desired markup id.

Upvotes: 2

Related Questions