Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i add Horizantal scrollbar in jsf  RSS feed

 
Ganeshsharma Ballijapally
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i m trying to add horizantal scrollbar in selectManyListBox in jsf,
i have tried all posible options, but it was not working in jsf,
can anyone please give me better solution ASAP???



Thanks in advance,
 
Vaibhav Mittal
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
horizontal scroll bar appears automatically in selectManyListBox when you define the size of your list box. If the values that the list takes exceed that box that you have defined, the scroll bar would appear.
 
Ganeshsharma Ballijapally
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vaibhav,

Thank you for your reply..

but..i have defined size in selectManyListBox, it is showing vertical scroll bar only not horizontal.

here is the code:

h:selectManyListbox styleClass="icwMulti" style="width:200px;" id="selectedProductFamilies" size="10" >
<f:selectItems value="#{downLoad.productFamilies}" ></f:selectItems>
</h:selectManyListbox>

 
Ganeshsharma Ballijapally
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,


Can anyone do help on this issue???




thanks in advence,
 
Praison Selvaraj
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ganesh,

The combo-box does not support horizontal scroll bars. You will need some Client-side scripting to make a horizontal scroll bar appear with the combo-box.

Do refer
http://www.codeproject.com/KB/scripting/WithHorizontalScrollbar.aspx

Thanks,
Praison
 
Ganeshsharma Ballijapally
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Praison,

Thank you very much !!!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!