2 Replies Latest reply on Nov 6, 2007 3:27 AM by Jaime Martin

    default value for <h:selectOneRadio with s:selectItems

    Jaime Martin Apprentice

      Hi,
      In a form I´m using s:selectItems to get the values that are to be shown by means of a selectOneRadio.
      This is the code:

      <s:decorate id="varMethodologyDecorationSelect" template="layout/edit.xhtml">
       <ui:define name="label">#{messages['RstReport.rstMethodology']}</ui:define>
       <h:selectOneRadio value="#{rstReportHome.instance.rstMethodology}" required="true" requiredMessage="true">
       <s:selectItems value="#{rstMethodologyList.resultList}" var="rstMethodology" label="#{rstMethodology.shortDescription}" />
       <s:convertEntity/>
       <a:support event="onchange" reRender="varMethodologyDecorationSelect"/>
       </h:selectOneRadio>
       </s:decorate>
      


      It works ok, but I would like one specific value of the List to be selected by default. is it possible?
      thanks in advance!