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

Adding space between Radio button and Label in selectOneRadio in jsf

can any one advice on adding a space between a radio button and its label. do we have any attributes in f:selectItem for doing this I have to align the radios to the other components of the page. My Labels are aligned but to align the radio, I need…
romil gaurav
  • 1,121
  • 11
  • 23
  • 43
1
vote
1 answer
1
vote
1 answer

creating dynamic selectOneRadion using a bean

I need to build an app of Quiz that contains questions (each question has 2 possible answers) I stored some questions in database. once you select an answer and click "Next", you'll see the next question. I have a bean that represent each question,…
user3168286
  • 81
  • 1
  • 1
  • 3
1
vote
0 answers

SelectOneRadio generated html table

I'm using JSF 2 and the h:selectOneRadio component that renders all the inputs inside a table tbody, tr, td... Is there a way to generate divs instead of this table rows and columns in order to use a previously designed html and css page for this…
dcalap
  • 1,048
  • 2
  • 13
  • 37
1
vote
1 answer

How display something near h:selectOneRadio item?

I have some list of elements, that generates my items:
Aram Gevorgyan
  • 2,175
  • 7
  • 37
  • 57
1
vote
2 answers

JSF multiple groups of selectOneRadio on a page: how to recover the values?

I have a jsf page with multiple radiobutton groups (dynamically generated) on it. I need to retrieve the values from it in a backing bean, but fails to do so. The business: a user wants to subscribe to a course that consists of multiple groups of…
0
votes
0 answers

f:selectitems labels can't be unescaped

The labels of f:selectItems inside p:selectRadio / h:selectRadio can't be unescaped. I am using labels that have bold text (lorem ipsum), but the tags won't be escaped eventhough I am using itemEscaped="false". In single selectitems…
0
votes
0 answers

How to use some of enum values in selectItem of selectOneRadio in Jsf

I have an old project to implement some tasks but i'm not sure how to make it. jsff file i want to put some of the enum values as select item of oneRadio I found some answers but all of them shows how to add list of each enum value but i want to…
Erdi Atalay
  • 153
  • 1
  • 1
  • 8
0
votes
0 answers

SelectOneRadio returns always 0

I am developing a web application with JSF and EJB 3.1, I want to retrieve a value from a selectOneRadio :
0
votes
0 answers

Hide show components which are created dynamically using PrimeFaces

I have the following code which generates the radio button properly.
Joe
  • 4,460
  • 19
  • 60
  • 106
0
votes
0 answers

Primefaces SelectOneRadio outcome page with change

A basic problem, i guess, but i cannot get it to work: with changing the selection in primefaces selectoneradio a backing bean should be called and afterwards a new page should be loaded. as there is no action attribute, how can i solve this? i also…
crossl
  • 1
  • 3
0
votes
1 answer

How can i do a dynamic SelectOneRadio in ADF with CollectionModel binding?

im trying to do a SelectOneRadio that was linked with a binding in ADF. Mi binding have this structure: Parent named "Group" (ID, Group, Orden). Child named "Action" (ID, Action, Desc). I want one radio group for each "Group" with each…
0
votes
0 answers

Hide specific items

Please refer this related question. how ever i do not want to disable instead i need to hide. seems there is no render property for select one radio items. how can i achieve this
teja
  • 93
  • 2
  • 11
0
votes
0 answers

h:selectItems itemLabel escapes witch is unwanted

I can't escape selectItems itemLabel to generate an image Example:
0
votes
1 answer

Default value for if the value is from database object

I am struggling with this for a really long time. I am changing code and I need to put default value to selectOneRadio element from Trinidad. I have object from database (for example called result). This object has attribute decision. In the select…
Bulva
  • 1,208
  • 14
  • 28