• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to align items inside the selectManyCheckbox ?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

i want to align the items inside the selectManyCheckBox.

<h:selectManyCheckbox value="#{baseAction.hlrAppService.eps.notAllowedRATTypes}">
<f:selectItem itemLabel="A" itemValue="LAN" />
<f:selectItem itemLabel="B" itemValue="RAN" />
<f:selectItem itemLabel="C" itemValue="GRAN" />
<f:selectItem itemLabel="D" itemValue="GAN" />
<f:selectItem itemLabel="E" itemValue="HION" />
<f:selectItem itemLabel="F" itemValue="CX" />
<f:selectItem itemLabel="G" itemValue="HD" />
<f:selectItem itemLabel="H" itemValue="UB" />
</h:selectManyCheckbox>
All the items are getting displayed in a single line but I want to display only 3 item in a line? is there any way to do this?


Thanks in Advance.


 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sathya,

As far as I know there is no good way to accomplish this without third party libraries. In my old project, we ended up using multiple select many checkboxes, each with their own setters and getters. When a setter was called, it would simply set the list for it's own data field. When we needed a master list, we had a method that would concatenate the two lists and return it. We only needed 2 columns so it was easy to hardcode two selectMany's and use layout="pageDirection" . If you need a dynamic number of rows/columns then I'm not sure what you could do. I hope this helps some.
 
Greenhorn
Posts: 6
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
you could use tomahawk lib


and use layout and layoutWidth attribute


Regards
 
reply
    Bookmark Topic Watch Topic
  • New Topic