This content has been marked as final.
Show 2 replies
-
1. How to set width for rich:select with richfaces4.0M5 ?
nbelaevski Jan 30, 2011 6:15 PM (in response to kittop)Hi,
Try this: component.getAttributes().put("style", "width: 128px");
-
2. Re: How to set width for rich:select with richfaces4.0M5 ?
andrejs Aug 22, 2011 7:50 AM (in response to kittop)try this:
1. set in css
...
.mySelectWidth{
width=50px;
}
2. in you code search/edit JavaScript function by fired at event (simple: onbeforeshow, if exist) and input code:
function adjustWidth() {
document.getElementById("rootForm:mySelect").className = "mySelectWidth " + document.getElementById("rootForm:mySelect").className;
}
It's works!
PS. for list width can use <rich:select ... listWidth="40px" ..>