Questions tagged [selectbooleancheckbox]

JSF tag to create a single checkbox.

The <h:selectBooleanCheckbox> is a JSF UI component which generates a <input type="checkbox"> element which allows you to bind the checked value to a managed bean property of boolean type.

47 questions
1
vote
0 answers

JSF 2.2.10: The f:ajax execute="@this" doesn't process h:selectBooleanCheckbox

I was using the Wildfly with JSF version 2.2.8-jboss.org version of this server. After migrating to JBoss EAP 6.3.x, packaging version of the JSF 2.2.9, 2.2.10 or 2.2.11 is happening the following: If I use the attribute execute as below, the map…
Pereira
  • 719
  • 8
  • 22
1
vote
2 answers

ValueChangeListener of h:selectBooleanCheckbox never invoked

Can someone tell me why the valueChangeListener method is never fired?
Yassine
  • 29
  • 1
  • 5
1
vote
1 answer

Commandbutton works only on second click until a on a HashMap is removed

I'm working with JSF 2.2.9, i have the following dataTable and buttons:
Shelly
  • 1,035
  • 5
  • 27
  • 51
1
vote
1 answer

Damaged parameter of javascript function in selectBooleanCheckbox

We have table with h:selectBooleanCheckbox in each row (checkbox represents boolean). We want to call backing bean action on change the checkbox value (in any row). Following code works in funny way: if ID number (parameter from 1st column - String…
Vasil Lukach
  • 3,658
  • 3
  • 31
  • 40
1
vote
1 answer

Prevent selectBooleanCheckbox from changing value

I have an h:selectBooleanCheckbox which I'd like to validate inside the managed bean before allowing it to change it's value.
Mihnea Mihai
  • 181
  • 1
  • 3
  • 18
1
vote
1 answer

Set bean value on click of selectbooleancheckbox

I have a bean class and a selectBooleanCheckbox in xhtml page. I want that on the click of the box the value should be set in the backing bean. Here is code:
code_fish
  • 3,381
  • 5
  • 47
  • 90
1
vote
1 answer

Ajax render not working on SelectBooleanCheckbox

I have a JSF form and on which I have a selectBooleanCheckbox. If the value of the checkbox is true I want to display the combo box next to it. But somehow it is not working. Here is my code:
code_fish
  • 3,381
  • 5
  • 47
  • 90
0
votes
1 answer

p:selectBooleanCheckbox *look only* shifted after adding a row to a p:dataTable

I have a p:dataTable. In this table, I have a checkbox in a column. This is the code: After I add a row and update the whole table, the selected checkboxes…
Marco Sulla
  • 15,299
  • 14
  • 65
  • 100
0
votes
1 answer

selectBooleanCheckBox in ui:repeat doesn't call listener

I am trying to populate selectBooleanCheckbox values using ui:repeat as the values are taken from a list. The checkbox values are assigned fine, but the listener is not called when I change the selectBooleanCheckbox value. I also got this error when…
0
votes
1 answer

How to get the ID attribute of h:selectBooleanCheckbox in backing bean

So, here is the jsf component: And here is a part of the backing bean java: /** * getValue is a method which checks if a checkbox is selected or not, using the checkbox ID …
0
votes
1 answer

PrimeFaces selectBooleanCheckbox cheked on label click

I am new to this Website. My issue is related to SelectBooleanCheckbox in primefaces. How to check Checkbox when user click on label? Here is my xhtml
capitann
  • 1
  • 2
0
votes
0 answers

h:selectBooleanCheckbox ajaxsupport event is not working if it exists in two different h:forms in jsf

Actually had h:selectBooleanCheckbox with ajaxSupport event inside one , so while checking, invoking action/listener but once open modal panel and it contains h:selectBooleanCheckbox as well (which is inside another
San2's
  • 3
  • 3
0
votes
1 answer

JSF boolean property not getting updated selectBooleanCheckbox

I am trying to update a boolean in the backend from the html. I found that h:selectBooleanCheckbox could to that. I have put it in my xhtml like this:
Luud van Keulen
  • 1,204
  • 12
  • 38
0
votes
0 answers

Update on h:selectBooleanCheckbox loose css

I have a problem regarding rendering h:selectBooleanCheckbox after ajax event on selectOneMenu is triggered. When I open the page the select items displays values (Tip) and checkbox near select item is rendered OK (picture bellow). Then when I…
michas
  • 35
  • 1
  • 5