You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Hakan Steisjo <ha...@foxt.com> on 2011/10/14 22:27:33 UTC
ListChoice and it's renderer
Hi All,
I want to extend a simple listchoice component to also include a "title"
attribute in the generated html code. So basically I want the <option> tag
to be generated like this:
<option value="value" title="title">User display</option>
Can anyone give me some input on where I can add this feature to an existing
ListChoice or the IChoiceRenderer.
Thanks
Re: ListChoice and it's renderer
Posted by hsteisjo <ha...@foxt.com>.
Great thanks, exactly what I was looking for.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListChoice-and-it-s-renderer-tp3906100p3908065.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: ListChoice and it's renderer
Posted by Andrea Del Bene <an...@gmail.com>.
Hi,
take a look at method AbstractChoice.appendOptionHtml. You can override
it and manipulate the HTML as you desire.
> Hi All,
>
> I want to extend a simple listchoice component to also include a "title"
> attribute in the generated html code. So basically I want the<option> tag
> to be generated like this:
>
> <option value="value" title="title">User display</option>
>
> Can anyone give me some input on where I can add this feature to an existing
> ListChoice or the IChoiceRenderer.
>
> Thanks
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org