Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Define width of select multiple object" Watch "Define width of select multiple object" New topic

Define width of select multiple object

Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
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:
<html:select property="usuarioSemPerfilList" multiple="true" size="10">
<html ptions collection="userSemPerfil" property="usuarioId" labelProperty="usuarioNome" />
I agree. Here's the link:
subject: Define width of select multiple object