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
0
votes
1 answer

PrimeFaces ManyCheckbox ArrayList not Updating inside modal dialog

I have a modal dialog, where a user can select and deselect roles based on another user and then submit this to the database to be updated. However, after debugging, the ArrayList that backs the ManyCheckbox doesn't get updated, and the…
James
  • 1,471
  • 3
  • 23
  • 52
0
votes
1 answer

How to make checkboxes display checked on display

I am using the following guide to implement many checkboxes into my tool: http://www.primefaces.org/showcase/ui/input/manyCheckbox.xhtml I have successfully done so, but what I want to happen is I want the checkboxes to be already ticked on display…
James
  • 1,471
  • 3
  • 23
  • 52
0
votes
0 answers

Load checked checkbox from database in JSF based on boolean

I am having dynamic Checkboxes from database and I need them to be checked on page load based on a boolean true or false: My xhtml:
Stanley Mungai
  • 4,044
  • 30
  • 100
  • 168
0
votes
0 answers

How to make a paginator in SelectManyCheckBox in Primefaces

I have 26,000 records that will display in a form. It will run so slowly if I display them all in 1 page. I see if we can make paginator in list ex: dataList, dataTable, and dataGrid. But I want to make a paginator in my many-check-box and paginator…
0
votes
1 answer

How to enable/disable specific item in selectManyCheckbox on ajax keyUp

I need your help in enabling/disabling a specific item in the selectManyCheckbox component based on the ajax call keyup. When the page loads, I am firing the below method to populate the selectManyCheckbox items in the form: @PostConstruct …
99maas
  • 1,239
  • 12
  • 34
  • 59
0
votes
0 answers

Primefaces selectManyCheckbox Pre-selection / Default-selection

I am using a selectmanycheckbox to edit entries of a table in a DB (in this case for a user) to create like: userid | system 1 4 2 4 2 5 2 6 3 4 ... like this. And it's working just fine. The problem is, that…
PROLOGik
  • 68
  • 1
  • 1
  • 8
0
votes
0 answers

Dynamic form with selectManyCheckbox in hashmap structure

I have a bit complex structure. First, I start problems table. Each problem has a subcategory and maincategory and also each subcategory has a main category. Besides, a main category have sub categories and a subcategory have problems. Then, I tried…
Armagan
  • 68
  • 9
0
votes
1 answer

How to bind p:selectManyCheckbox value to List of a Map>

I am trying to find a way to populate a map from multiple p:selectManyCheckbox. However, when i go look at the selected data in the map I get an array of Object array of Attribute which I cant access.
allegjdm93
  • 592
  • 6
  • 24
0
votes
1 answer

Select many checkbox selected items return null when there is nested ui:repeat

I have a problem list. Each problem has a sub category and main category and also each sub category has a main category. I want to list the problems like above. --Main category1 (1 is id) ----subcat1 ------problem1 ------problem2 …
Armagan
  • 68
  • 9
0
votes
1 answer

Primefaces Select Many

Is there any way to use the select many component with an input text inside, in order to be able to both select an option and specify a number of instances of it. Any idea please?
callafa
  • 385
  • 2
  • 6
  • 20
0
votes
2 answers

Primefaces selectManyCheckbox

I have selectManyCheckbox, but I cant get checked values from it after change event (list of selected values stay empty). Change event is triggered but in debug mode there is no values in listSelectedSignalCauses. I tried to set some converter but…
Zivko
  • 367
  • 5
  • 16
0
votes
1 answer

f:selectItems is not rendering checkboxes in view

I am trying to render a few check boxes by using f:selectItems but web page is just not displaying check boxes as expected. Please look at the code below and let me know that what I am missing. HTML:
Akash
  • 179
  • 1
  • 3
  • 12
0
votes
1 answer

Setting values using Primefaces selectManyCheckbox to Java property not working

I want to select values from Primefaces selectManyCheckbox menu and set the selected values to a property which to use later in a method for writing into database. Here is the code from .xhtml page for the component:
Tot
  • 207
  • 8
  • 25
0
votes
0 answers

Ajax in JSF with selectManyCheckbox

I have a datatable and two checkboxes. The content of the datatable is rendered considering which of the checkboxes are selected. I have the following functional code which renders the datable content when pressing the submit button:
Steffi
  • 867
  • 5
  • 14
  • 29
0
votes
2 answers

selectManyCheckbox elements are not copying to array when items are checked

Okay, I am not sure why it is saying that my target is not a collection or array because I am trying to put the results of a selectManyCheckbox into an integer array. It is simply a checkbox of 1-50 where the user can select multiple numbers to be…
Dan Morris
  • 25
  • 1
  • 6