You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Robert Alexandersson <ro...@lorensbergs.com> on 2006/02/20 10:47:14 UTC

html:option, how to print html characters in the label.

Hello, i want to output the String "&nbsp;Level 2" in my optionlists,
but the label attribute of options does not return this but the
transforemed &amp;nbsp; mending it prints the text instead, is there any
way around this?


<html:options collection="items" property="id" labelProperty="title" />

Regards
Robert A


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: html:option, how to print html characters in the label.

Posted by Nicolas De Loof <ni...@capgemini.com>.
If you're looking for a way to indent options in a select box, you 
should use the <optgroup> HTML tag.

Nico.

Robert Alexandersson a écrit :
> Hello, i want to output the String "&nbsp;Level 2" in my optionlists,
> but the label attribute of options does not return this but the
> transforemed &amp;nbsp; mending it prints the text instead, is there any
> way around this?
>
>
> <html:options collection="items" property="id" labelProperty="title" />
>
> Regards
> Robert A
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>   

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org