wood burning stoves*
The moose likes Struts and the fly likes Enabling the horizontal scrollbar when the it is marked as readonly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Enabling the horizontal scrollbar when the it is marked as readonly" Watch "Enabling the horizontal scrollbar when the it is marked as readonly" New topic
Author

Enabling the horizontal scrollbar when the it is marked as readonly

gowrishankar sundararajan
Greenhorn

Joined: Apr 10, 2007
Posts: 6
Hi,

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?

thanks
Gowri Shankar
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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.
gowrishankar sundararajan
Greenhorn

Joined: Apr 10, 2007
Posts: 6
Hi.
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.

Can i get some inputs on the same?

Hope my question is bit clear now.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enabling the horizontal scrollbar when the it is marked as readonly