default radio selection

UI Components for JSF
Post Reply
charishmar
Posts: 3
Joined: 21 Jul 2014, 16:40

22 Jul 2014, 08:29

Hi..how to get default selected radio button in primefaces/jsf without :oops: server side code...I searched a lot but I couldn't get the proper answer pls anyone help me....

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

22 Jul 2014, 16:40

Do you mean retrieving the default state on client side.Please read forum rules and provide the details accordingly.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

charishmar
Posts: 3
Joined: 21 Jul 2014, 16:40

25 Jul 2014, 15:25

sudheer wrote:Do you mean retrieving the default state on client side.Please read forum rules and provide the details accordingly.
I have two radio buttons in my xhtml page so from them i want one button selected by default
environment i'm using are
primefaces 5.0
jsf 2.2

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

25 Jul 2014, 15:35

charishmar wrote:I have two radio buttons in my xhtml page so from them i want one button selected by default
environment i'm using are
primefaces 5.0
jsf 2.2
Just initialize the radio input component with any one value.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

charishmar
Posts: 3
Joined: 21 Jul 2014, 16:40

26 Jul 2014, 08:36

sudheer wrote:
charishmar wrote:I have two radio buttons in my xhtml page so from them i want one button selected by default
environment i'm using are
primefaces 5.0
jsf 2.2
Just initialize the radio input component with any one value.
Thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests