Problem about displaying selectManyCheckbox

UI Components for JSF
Post Reply
iamwinnie
Posts: 1
Joined: 16 Feb 2012, 04:52

16 Feb 2012, 05:02

Hi! all

I'm new in primeface

I have ArrayList<SelectItem> for selectManyCheckBox now I can display them only horizontal or
vertical

ex. I have 20 item in list I would like to display first line 10 item and second line 10 item.

I don't know how to do .can anybody help me,please.

I use Primefaces 3.0 + Netbean 7.0.1 + Glassfish 3.0
Last edited by iamwinnie on 16 Feb 2012, 05:05, edited 1 time in total.

Matrium
Posts: 112
Joined: 16 May 2011, 08:27

16 Feb 2012, 07:25

i guess you could write your own Renderer, which uses a hidden table for that purpose. Or you could just use 2 selectManyCheckBox-components and combine their selections on server-side.
PrimeFaces (Elite) 4.0.13, Majorra 2.1.28, Tomcat 7.0.53
Testing with Firefox, Chrome and IE9+IE10
<3 Primefaces!!!

francesco.strazzullo
Posts: 54
Joined: 25 Nov 2011, 10:14

16 Feb 2012, 10:20

I think that the quicker solution is to create a composite component. It must have rows/cols attribute. Inside you could use multiple selectManyCheckBox, but your composite should hide that to the outside.
Primefaces: 3.5
Mojarra: 2.1.18
Tomcat: 7.0.20

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

16 Feb 2012, 10:53

SelectOneRadio has custom layout http://www.primefaces.org/showcase-labs ... eRadio.jsf I don't know if it's possible with SelectManyCheckbox.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 43 guests