This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Define width of select multiple object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Define width of select multiple object" Watch "Define width of select multiple object" New topic
Author

Define width of select multiple object

Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
Hi,
I am using the object select multiple in my page. The problem is that your width is variable (is dependents of lenght of String that belows the select). When there is not element in the object select your width is strait (small).
I try insert space in the final of Strings, but the object select multiple remove this character.
How I can define the width the object select multiple ? I need define the width of object select multiple independent of number of strings (0 or more) e independent of lenght of string.
It is my object select:
<table>
<td>
<html:select property="usuarioSemPerfilList" multiple="true" size="10">
<html ptions collection="userSemPerfil" property="usuarioId" labelProperty="usuarioNome" />
</html:select>
</table>
 
 
subject: Define width of select multiple object