Questions tagged [selectmanycheckbox]

JSF tag to create a checkbox group.

The <h:selectManyCheckbox> is a JSF UI component which generates a bunch of HTML <input type="checkbox"> elements which allows you to bind the checked values to a managed bean property of collection or array type.

80 questions
20
votes
2 answers

Use enum in h:selectManyCheckbox

I want to use enum values in a . The checkboxes get populated correctly, however, when selecting some values and submitting them, their runtime type is String, and not enum. My code:
Theo
  • 3,074
  • 7
  • 39
  • 54
11
votes
2 answers

Render p:selectManyCheckbox with 10 columns

I developed an interface JEE / JSF for some statistics. I created checkbox to select references that the user wishes to display, but the trouble is that I use to generate the checkbox Arraylist based on data from my database. And I can not position…
Sars
  • 113
  • 1
  • 1
  • 4
10
votes
2 answers

LazyInitializationException in selectManyCheckbox on @ManyToMany(fetch=LAZY)

What is the best way to handle multiple chackboxes when you nead to fill a JPA M:N relation ... for example I have an JPA entity Hardware and the entity Connectivity. Hardware has a set for connectivity : private Set connectivities =…
simonC
  • 4,101
  • 10
  • 50
  • 78
9
votes
2 answers

How can I get the clicked item in the ajax method?

Suppose the code of this page:
yersan
  • 332
  • 1
  • 2
  • 13
9
votes
4 answers

Set background color of every individual checkbox of p:selectManyCheckbox

I am using this http://www.primefaces.org/showcase-labs/ui/selectManyCheckbox.jsf primefaces componenent to get dynamic booleanCheckboxes values
Java
  • 2,451
  • 10
  • 48
  • 85
8
votes
1 answer

com.sun.faces.renderkit.html_basic.MenuRenderer createCollection: Unable to create new Collection instance for type java.util.Arrays$ArrayList

I'm trying to use JSF / SelectManyCheckBox tag with an enum : Here is my xhtml code :
Stéphane
  • 514
  • 5
  • 16
6
votes
1 answer

Primefaces selectManyCheckbox layout from top to bottom in columns

Task: There is a panel, with selectMany checkboxes, having 5 columns. The values of selectboxes are ordered by ascending, but they appear from left to right in columns instead of top to bottom. Using: Primefaces Code:
6
votes
1 answer

How to get all the selected values from selectManyListbox / selectManyMenu / selectManyCheckbox?

How do I collect all selected values from UISelectMany components such as h:selectManyListbox, h:selectManyMenu, h:selectManyCheckbox, p:selectManyListbox, p:selectManyMenu, p:selectManyCheckbox, etc in backing bean? If someone can help with an…
Abhishek Dhote
  • 1,638
  • 10
  • 41
  • 62
4
votes
2 answers

How can I change the layout of h:selectManyCheckbox to have multiple rows?

I'm currently working on a search which goes through a database and delivers the result in form of a h:dataTable in my web application. However that h:dataTable has quite a lot of optional rows. Simple code of my h:selectManyCheckbox:
APL
  • 101
  • 1
  • 3
  • 14
4
votes
1 answer

How to use SelectManyCheckbox with two ArrayList? - Primefaces

I'm trying to implement a but I'm having no success. Now I have the following architecture: Course - have many Disciplines Discipline - belongs to none, one or many Courses. In Course class I have two…
Paladini
  • 4,522
  • 15
  • 53
  • 96
4
votes
1 answer

UISelectMany on a List causes java.lang.ClassCastException: java.lang.String cannot be cast to T

I am using on a List: private List selectedItems; private Map
Shahid Ghafoor
  • 2,991
  • 17
  • 68
  • 123
4
votes
0 answers

h:selectManyCheckbox does not respect attribute "collectionType"

several h:selectManyCheckboxs are backed by this map of type: Map>. The xhtml snippet looks like this:
DanielK313
  • 41
  • 2
3
votes
1 answer

Primefaces 5.2 - p:selectManyCheckbox rendering unnecessary icons

We have had this application for many years. But suddenly this issue cropped up. The checkboxes have these unwanted icons out of the blue. Not sure what went wrong. This issue appeared in all DEV/UAT/PROD environments, even without any recent…
Nishad K Ahamed
  • 1,374
  • 15
  • 25
3
votes
1 answer

ClassCastException for with validation on ajax update when INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL is active

I have a that has a required-validation on. If I submit the form, I get a validation error when nothing is selected. So far, this ist expected. However, if I do an ajax update on the checkbox then, I get a ClassCastException.…
Björn Landmesser
  • 953
  • 10
  • 26
3
votes
1 answer

Define columns for selectManyCheckbox

I need to show the selectManyCheckbox list in 4 columns, but the problem is that this component generates a table, so I do not have any idea of how to define the columns. I am working with PF 3.4, I can't upgrade to PF 4.x. Do you guys have any…
DuSant
  • 970
  • 12
  • 25
1
2 3 4 5 6