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

contains an unknown id cannot locate it in the context of the component

I'm trying to refresh state of boolean variable every time user change selected value from h:selectManyCheckbox. I have survey that loads dynamicly from DB. There are two types of questions multiple choice and single choice. When one of the answers…
Onizuka
  • 61
  • 1
  • 4
3
votes
1 answer

JSF2 or primefaces p:selectManyCheckbox styling with icons

One question who styled manycheckboxes with icons?
Armen Arzumanyan
  • 1,939
  • 3
  • 30
  • 56
2
votes
1 answer

Select all items in Multiple SelectManyCheckBox with dynamic ids

I want to select all check box in some groups of checkboxes using PrimeFaces component on top of JSF. My code is like this:
2
votes
1 answer

How to display items with image in p:selectManyCheckbox

I need to display items with images. I tried to display images with in . It works fine. I am programmatically adding components on UI. This is my code. answerRadio.setLayout("custom"); //answerRadio is…
Duk
  • 23
  • 4
2
votes
1 answer

f:selectItem inside ui:repeat - doesn't work

I want to loop through List and make each element a checkbox. The code which i have is:
Tot
  • 207
  • 8
  • 25
2
votes
1 answer

Using SelectManyCheckbox with list of objects

Im trying to create a JSF page that lets the user select X amount of ingredients, and then saves those selected ingredients to a list. Ingredient is an object with two values, String IngredientName and int ingredientPrice. What I want to do is to…
Hallow
  • 103
  • 1
  • 2
  • 10
2
votes
0 answers

PrimeFaces selectManyCheckBox don't work with enctype="multipart/form-data"

I'm having a problem with a form that has the enctype="multipart/form-data" attribute and the Primefaces . This is my code:
mxch
  • 835
  • 2
  • 10
  • 20
2
votes
1 answer

Primefaces ManyCheckbox inside ui:repeat calls setter method only for last loop

I have a inside , getting it's items from a List of a certain Object Class (provided by -variable) and is supposed to save the chosen items into another List of the same Object Class. But it calls the…
Lester
  • 1,830
  • 1
  • 27
  • 44
2
votes
1 answer

JSF 1.1: selectManyCheckbox not submitting properly

I have a problem with the selectManyCheckbox tag.. We are using JSF 1.1 inside a JBoss Portal (i think its version 4.2, but not sure).. I have the following JSF markup:
Morten Jacobsen
  • 986
  • 1
  • 11
  • 31
2
votes
1 answer

The checked values clear when the page is refreshed. in h:selectManyCheckbox

I have a problem on using h:selectManyCheckbox. The checked values clear when the page is refreshed. I have used JSF 1.2
IjoneTihiy
  • 41
  • 4
2
votes
2 answers

Select ALL checkboxes in t:selectManyCheckbox

I have created web-application using JSF 2.0 where I have many checkboxes. I want to select those checkboxes on clicking Select All Checkbox. I have below code
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
1
vote
1 answer

Uncheck all p:selectManyCheckbox checkboxes from a p:selectOneRadio item

How could I Uncheck all checkboxes from selectManyCheckbox when choosing "No" from selectOneRadio
1
vote
2 answers

List Received List in JSF 2.3

I have Upgrade my project from JSFContainer 2.2 to JSFContainer 2.3 filinglist has class…
Jai
  • 352
  • 2
  • 18
1
vote
1 answer

Select all checkbox in primefaces

The requirement of the logic is: - I have a list of checkbox (I use p:selectManyCheckbox). - I also have a checkbox which if it is checked, other check box should be checked also (I use p:selectBooleanCheckbox for this) - Let me give an specific…
1
vote
0 answers

Primefaces SelectManyCheckbox with disabled checkbox on load,behaves differently

I found some weird behaviour with p:selectManyCheckbox. On page load, two checkbox values are selected and one of the checkbox is disabled conditionally. If i deselect the one of checkbox(not disabled), it deselect the disabled one as well. if i…
Newbie
  • 41
  • 6