I need to create a HtmlSelectOneRadio box and add it to a panelGrid. Can anyone give me some sample code for how to create a radio box and initialize it with some test data (any data will do) through a backing bean.

My problem is I can't seem to figure out what is supposed to be in the setValue of htmlSelectOneRadio



   HtmlSelectOneRadio htmlSelectOneRadio = new HtmlSelectOneRadio();
   htmlSelectOneRadio.setId("_"+random.nextInt());
   htmlSelectOneRadio.setValue(??????);
   htmlSelectOneRadio.setTitle("test");



And without a value nothing is being displayed on the page...


Reply via email to