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

Validation not triggered on af:selectOneRadio component

After some research I found out, that ADF has this bug with validating radio buttons on the page. The problem here is that the validation of the radio groups does not take place at the same time as the input text fields. First the input text fields…
0
votes
1 answer

Conditionally enable/disable p:selectManyMenu based on h:selectOneRadio value

I am having 2 radio buttons one enable and disable. if i click enable the all selectmanymenu tags should be disabled and vece versa. could you please help me. i have attached the code below. radio button code:
0
votes
1 answer

Preset value of inside

I have problem with setting default value of . I've read some related topics, but I was not able to find an answer to my problem. There it is how it works now: I've set value in my backing bean (has session scope) after click on…
dodo
  • 31
  • 6
0
votes
0 answers

Apply different styles for each radio element inside "selectOneRadioButton"

I´m currently working on an application in JSF 2.2 and RichFaces but I´m facing a little problem ... basically, I found myself in a situation where I need to generate a radio button (which I would like to generate using the "h:selectOneRadio" jsf…
0
votes
0 answers

How to enable my radiobutton with primefaces

enable/disable my selectOneRadio does not work like expected. It only activates after a "submit" and the ajax-direct approach does not work. When I change the selection (click) to "Group", then the dropDown after the selection keeps being…
Dimitri Dewaele
  • 10,311
  • 21
  • 80
  • 127
0
votes
0 answers

Create a dynamic radio questionnaire in JSF

I'm working with JSF 2.2 with Primefaces 4.0 and I need to create a questionnaire with a dynamic amount of questions. This questions are radio type questions with 4 options each and I'm wondering the best (or easiest) way to do this. As far my…
0
votes
0 answers

How to set itemValue of a radio button with the value of a text field

I have the following radio button scenario: O picked up O sent to ordering person O sent to owner O sent to support group : "here is a text field where to specify the address" The corresponding code is:
Francesco
  • 2,350
  • 11
  • 36
  • 59
0
votes
2 answers

How to get index of selected item of jsf f:selectItems?

I have seleconeradio, for example: where myList is list of…
Aram Gevorgyan
  • 2,175
  • 7
  • 37
  • 57
0
votes
1 answer

Value of t:radio not being passed to Backing Bean in Myfaces 2.1

I have an issue where the value of t:radio (associated with t:selectOneRadio) is not being passed to the backing bean. We are currently converting from JSF 1.x to JSF 2.x, using MyFaces 2.1.13 on Jboss 7.2.0, and we do have the 2.0 version of the…
RobG
  • 43
  • 1
  • 5
0
votes
2 answers

jsf format selectOneRadio elements with different css

is there an option or a way to style the f:selectItems of a h:selectOneRadio with different styles? i want e.g. a red and a green highlighted radio-button best regards
Niko
  • 1,054
  • 5
  • 25
  • 52
0
votes
1 answer

Primefaces 3.5 selectOneRadio with image as background doesn't work

I want to show selectOneRadio with images above every radio button. I read that best solution set style as background image for every radio button
Ray
  • 1,788
  • 7
  • 55
  • 92
0
votes
1 answer

Primefaces focus form

DD.
  • 21,498
  • 52
  • 157
  • 246
0
votes
1 answer

p:selectOneRadio converter causing stack heap memory issues

Really odd one... I have a converter which works when I use a p:SelectOneMenu, but when I switch to a p:SelectOneRadio, I get a major crash with a java heap space errors. The stacktrace seems to be of no use, just a…
smackenzie
  • 2,880
  • 7
  • 46
  • 99
0
votes
1 answer

How do I set a selectiOneRadioButton-value inside an ui:repeat depending on the iterated entity?

in my usecase I have a (Primefaces) selectOneRadio. This is within an ui:repeat. Values of selectOneRadio are displayed fine. I want each selectOneRadio to have a useful default-value, depending on the iterated entity. This works fine, too, default…
Markus Schulte
  • 4,171
  • 3
  • 47
  • 58
0
votes
1 answer

Selecting another from inside one

I am trying to make an Facelet on which there are two rows each containing two radio buttons are there. I want to make such that if first radio button is selected in first rows, the second radio button in second row should get selected and vice…
tusharagrawa
  • 371
  • 2
  • 5
  • 20