Is there a way to have the DropDownChoice in Wicket assign tooltips (e.g. title attributes) to individual option elements?
I have selectbox items in the following form:
public class SelectBoxItem
{
private Long id;
private String label;
private String description;
}
All items are loaded from the database.
I configure the DropDownChoice component using a ChoiceRenderer to use the ids as keys and the labels as values.
Now I would need to configure it to use the descriptions as tooltip messages as well.
I have only found this related thread on the Internet. Browsing the relevant Wicket classes let me to the same conclusions as the author, e.g. that this was probably not possible with the current versions of the DropDownChoice/ChoiceRenderer classes. Is that right? And in that case, is there a similar component which would allow that?
(For a more comprehensive description of my code base see my other question where I asked about a different problem within the same context.)