I am having a jsp page with struts 2. we have the list box with some values which is made readonly for some users. since its readonly the scrollbar is also not movable. any idea on how to make it scrollable when its readonly?
This isn't a Struts question; this is an HTML question.
Different browsers handle disabled elements in different ways, apparently (I assume you mean "disabled" since the "select" element doesn't have a "readonly" attribute). If I have a select box with 10 options, set its size to 5, and set "disabled" it's scrollable in FF and Safari.
Joined: Apr 10, 2007
Thanks for the response. I am using IE6 and the list box's disabled attribute is set to true. I have lets say 10 values and the size of the box is 5 and i have selected the 10th value i am not able to scroll down and look at the same.
I think you misunderstood me: this isn't a Struts issue--it's an HTML issue. As I said, both Firefox and Safari allow scrolling of a disabled select box. If IE doesn't, there's nothing Struts can do about that.