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
1
vote
0 answers

How do I disable a PrimeFaces selectOneRadio using PF widgetVar?

I have a JavaScript function that's called when a selectManyCheckbox selection is made. In that function, depending on the selections, I need to enable or disable various form elements on the page. I'm using PrimeFaces widgetVars to get a handle…
J. Van
  • 190
  • 1
  • 17
1
vote
0 answers

ui:repeat h:selectManyCheckbox choice getting values from the h:selectManyCheckbox

I'm working on a JSF 2.2 project, jboss 8.x I created a dynamic form only with selectManyCheckbox. I have the following code:
tero17
  • 1,570
  • 1
  • 11
  • 20
1
vote
1 answer

How to dynamically refresh h:selectManyCheckbox selectItems

I am trying to implement a scenario using JSF. I have a commandExButton and when user click this button "A" it shows the panelDialog which contains the selectManyCheckBox items. I generat these items in the backend bean by parsing one file which is…
Anil Vishnoi
  • 1,352
  • 3
  • 18
  • 25
1
vote
1 answer

How to implement "Select all" on selectManyCheckbox

I want to set checkboxes of a selectManyCheckbox to checked if a condition is true "#{myBean.isCondition}": MyBean.java public class MyBean{ private boolean isCondition; ... public boolean isCondition{ return isCondition; } …
Nabil Salah
  • 300
  • 3
  • 7
  • 19
1
vote
1 answer

h:inputText between p:selectManyCheckbox items

Is it possible, on some way, to display an h:inputText between the selectItems of a p:selectManyCheckbox? What I'd like to have is: checkbox1 checkbox2 inputTextIfCheckbox2IsMarked (disabled if not marked..) checkbox 3 checkbox 4 I know how to do…
GregD
  • 1,884
  • 2
  • 28
  • 55
1
vote
2 answers

How to enable/disable item in selecManyCheckbox based on flag

I need your help in disabling and enabling an item from the selectManyCheckbox component in a jsf page. First of all, the selectManyCheckbox component is showing three chechboxes which are (Loan - Health - Transfer). The list will be populated from…
99maas
  • 1,239
  • 12
  • 34
  • 59
1
vote
1 answer

How can I pass a list literal to f:selectItems?

For example: this doesn't work, but you get the idea? I want to pass literal…
user3280015
  • 279
  • 2
  • 10
1
vote
1 answer

Using Map to populate multiple SelectManyCheckboxes - ClassCastException

In my controller, there is a Collection of "questions" with possible answer-options. My view iterates the questions with an ui:repeat. When I try to read the selected options, I get a java.lang.ClassCastException: javax.faces.FacesException:…
turbopope
  • 33
  • 4
1
vote
1 answer

Can't render SelectManyCheckbox from my SelectOneMenu with an ValueChangeListener

I have a Map (Integer, List) which I want to fill from a JSF page. I'm only using JSF, no Primefaces or such. On my JSF page there is a selectOneMenu that displays each keys of my Map, and a selectManyBox to choose the values for each key. I want to…
1
vote
1 answer

SelectManyBox - Enum Not saving

I still have problem with selectManyCheckBox.. selectManyCheckBox:
lamostreta
  • 2,359
  • 7
  • 44
  • 61
1
vote
1 answer

JSF f:selectItems value partially bold

This is my checkboxes:
1
vote
0 answers

p:selectManyCheckbox from domain classes stucture and collections inside ui:repeat using AJAX (listener, valueChangeListener), unstable

I do have pretty simple domain structure - groups that contain items whichs are selectable (checkboxes). It is impossible to select items from different groups. It loses the state somehow and behaves unstable.. Why? What am I doing …
1
vote
2 answers

Primefaces selectManyCheckbox withing editable Datatable submitting null to Converter

I am using a Primefaces selectManyCheckbox within an editable Datatable like this one. When the user clicks the edit button, he is able to select between different Documents in the Documents-Column. That is my code. Please note the converter I am…
joshi737
  • 869
  • 3
  • 12
  • 26
1
vote
1 answer

How to set a selectItems to a given String position?

I'm trying to solve some problems here with JSF but I'm having no luck. I will try to resume my code, because I don't think a lot of code here can help you solve me this problem, so I will try to describe better my problem. Now I have a String…
Paladini
  • 4,522
  • 15
  • 53
  • 96
1
vote
1 answer

h:selectManyCheckbox with omnifaces.SelectItemsConverter does not preselect the items

I'm using JSF 2.0, PrimeFaces and OmniFaces. I have 2 dialogs with . The first dialog creates a new Course: The Disciplinas are presented as:
Paladini
  • 4,522
  • 15
  • 53
  • 96