Questions tagged [selectoneradio]

JSF tag to create a single-select radio button group.

A <h:selectOneRadio> is a JSF UI component which generates a group of HTML <input type="radio"> elements which allows you to bind the selected value to a managed bean property.

Programmatically, it can be used in exactly the same way as <h:selectOneMenu>. Therefore, it's sufficient to just advance to its tag wiki page. You just have to substitute the <h:selectOneMenu> in all examples by <h:selectOneRadio>.

83 questions
0
votes
1 answer

Disable specific items

I have 5 radio buttons in my form, selecting one and proceeding takes me to a form that the user need to fill up. Now out of these 5, I have not yet finished 2 of the forms that these radio buttons take me. So I wanted to disable the radio buttons…
mona
  • 6,079
  • 12
  • 41
  • 46
0
votes
0 answers

How to get the selected value in selectOneRadio with JSF

my question is that simple. How to get the selected value in a mark in a Bean with JSF ? I have this simple form, which works but I didn't find how to get the value of the user choice. Can someone help ? Here is the form :
jozinho22
  • 459
  • 2
  • 7
  • 24
0
votes
1 answer

selectOneRadio lost checked value inside a dataList with pagination

I have this example code, My xhtml page.
Felipe
  • 75
  • 1
  • 11
0
votes
1 answer

Selected values of selectBooleanCheckbox and selectoneradio is reset while navigating between tabs of tabview

I am trying to do a page with a few tabs, by using primefaces. But some some selected values are lost while navigating between tabs. Last tab contains 2 selectBooleanCheckboxes and 2 selectOneRadios and one of the selectoneradio grid is rendered…
0
votes
1 answer

Call a method in SelectOneRadio JSF

I 'm trying to call a method in java through the SelectOneRadio component, but nothing happen. But the component is created by my company to accept ENUM. THE COMPONENT:
0
votes
1 answer

Ajax event change doesn't work

I've a form, and i want it to show some inputs only if the user mark yes on a selectOneRadio. Here is the code:
Baptista
  • 128
  • 2
  • 11
0
votes
0 answers

How to auto-select a selectOneRadio on the basis of selection of another selectOneRadio in primefaces

I have two SelectOneRadio menus in an xhtml form. How can I automatically select a radiobutton, in the second menu, on the basis of the selection of a radiobutton in the first menu?
Ankit Tripathi
  • 405
  • 4
  • 13
0
votes
0 answers

Create prime face radio button from list of complex object

I am trying to built a web page using prime-faces.I want to implement a page for a quiz. My bean has list of Question DTO which contains list of Answer DTO and I want to show the answers of each question with radio button because user can choose…
rahul
  • 383
  • 1
  • 8
  • 20
0
votes
0 answers

jsf: How to work with more than one SelectOneRadio in one enum

first of all sorry for my english, i'll try my best to be understandable. I'm working on a wep app to administrate user profiles. But now I'm stuck at create usergroups. I have an enum class for the rights public enum UsergroupRights { Ja("Ja"), …
NoRatu
  • 1
0
votes
1 answer

Using f:selectOneRadio var in passtrough attribute

selectOneMenu with forEach as described here (https://stackoverflow.com/a/29676353/1521710) does the job but when trying to use selectOneRadio in same case passthrough is ignored. Is there any quick way to fix this.
0
votes
0 answers

SelectItem's values

When traversing the source code for UISelectOne, I came across the following piece of code within the protected void validateValue(FacesContext context, Object value) method: boolean found = SelectUtils.matchValue(getFacesContext(), …
St.Antario
  • 26,175
  • 41
  • 130
  • 318
0
votes
3 answers

SelectOneRadio not hidden the panelGrid after selection

I am using primefaces selectoneradio control which will show or hide the panelgrid after selection. But does not know why it cannot hide this panelgrid when selectl allTeachers radio. public boolean getVisibleTeacherList() { if…
0
votes
1 answer

Hide and show components depending on h:selectOneRadio value

I have a page with a p:selectOneRadio and I want to show one datatable depending on the chosen value of the radio selection. I have the error: GRAVE: javax.el.MethodNotFoundException: …
nightcall
  • 11
  • 4
0
votes
1 answer

how to pass result 'repeat'-'h:selectOneRadio' to List on Backing bean,using Ajax

how to pass the result of in List on Backing bean, using Ajax?
0
votes
1 answer

Add space between the radio button and lable in h:selectOneRadio and f:selectItems

I am using jsf2 with primefaces. h:selectOneRadio f:selectItems h:selectOneRadio This produces a radio button and the input label inside the same td such as label My problem is I need…