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
21
votes
3 answers

How to use in or to select multiple items?

I have a Facelets page with a . In each row there is a . If the checkbox is selected the object behind the corresponding row should be set in the bean. How do I do this? How to get the selected rows or their…
c0d3x
  • 691
  • 5
  • 12
  • 19
8
votes
3 answers

SelectBooleanCheckbox in editable DataTable doesn't change

I have a dataTable that is editable (editMode = "cell"). Editing free text field and list box is quite straightforward. However, I cannot figure out how to edit checkbox field. To be more specific when I try to edit checkbox selection, the data in…
gawi
  • 2,843
  • 4
  • 29
  • 44
3
votes
3 answers

Convert h:selectBooleanCheckbox value between boolean and String

I have a backing bean containing a field creditCard which can have two string values y or n populated from the DB. I would like to display this in checkbox so that y and n gets converted to boolean. How can I implement it? I can't use a custom…
Tarun Sapra
  • 1,851
  • 6
  • 26
  • 40
2
votes
1 answer

How to select multiple rows of with

I use to list data from database. We have many records in page, now I would like to select multiple records with a checkbox in each row. How can I achieve this?
xuanhung2401
  • 311
  • 1
  • 5
  • 15
2
votes
1 answer

p:selectbooleancheckbox is moving when slected in a p:dataTable

I placed a p:selectBooleanCheckbox inside a p:dataTable in a JSF project. When the cell is selected the check box floats to the right. I know it's a css thing but i'm not sure how to fix it.
gesus
  • 471
  • 1
  • 10
  • 24
2
votes
2 answers

Value of is not updated according to backing bean value

I'm using JSF2 and Tomcat server. I programmed a simple example in which: User Selects a faculty from "h:selectOneMenu" Upon selection, the value of "h:inputText" is changed to "odd" or "even" based on facultyNo Also, upon selection, the value of…
2
votes
1 answer

How to get checked state of in jQuery

Hi i want a textbox enable or disable dependig of a checkbox status i have this code but nothing happens i´ve tried using others find methods. document.getElementById('j_idt6:docName') and ('j_idt6:docName') But doesn´t works. This is my whole…
Juan Camilo Mejia
  • 952
  • 3
  • 14
  • 28
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
1 answer

How can I set border to panelGroup through selectedBooleanCheckBox

I have selectBooleanCheckbox and h:panelGroup in xhtml page. I want set the border to panelGroup when box value is checked Here the code:
Eldos Narbay
  • 319
  • 4
  • 12
1
vote
0 answers

selectBooleanCheckbox action not working

Using seam I have a list of users that I display in a table. I have a checkbox in the table for each user. I want to be able to check the box and have it perform an action. Right now the action is just to print to the screen but checking the box…
Jym
  • 21
  • 3
1
vote
0 answers

Why h:selectBooleanCheckbox not is updated?

I am developing a Java Web application with JSF 2.2 and I have a list Boolean, but this list not change with the client decisions; when the user does click on h:commandButton the list show every the same result: false false true My xhtml code…
Juan Camacho
  • 736
  • 2
  • 7
  • 15
1
vote
0 answers

disableing primefaces selectBooleanCheckbox using javascript

I try to disable a primefaces input component directly in Javascript. It is about a p:selectBooleanCheckbox that should be disabled (and enabled) based on some other conditions (if certain value is filled in another p:inputText). My environment…
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

What is pre-requisite for value attribute of h:selectBooleanCheckbox to be rendered to HTML

I have a managed bean which contains a list of ids. When I iterate through that list using a data table, I use a h:selectBooleanCheckbox and assign the id value to it like this:
Sujay DSa
  • 1,172
  • 2
  • 22
  • 37
1
vote
2 answers

How do I find in jQuery whether a p:selectBooleanCheckbox has been checked or not

I need to know how to iterate through a list of primefaces p:selectBooleanCheckbox elements and find out rather or not they have been checked. I have found out how to find them but not how to actually get rather or not they are true or false, I was…
user2707813
1
2 3 4