7 Replies Latest reply on Mar 1, 2011 4:05 PM by mr1azl

    how add image inside h:selectOneRadio

    Agustin Sivoplás Ferrari Expert

      I try this, but not works. I search in google but i'm not sure if i can do this.

       

      <h:selectOneRadio layout="pageDirection" styleClass="labelWhite" value="#{administracionBean.idioma}">
           <f:selectItem itemLabel="#{msg.inglesLabel}" itemValue="en_US">
                <h:graphicImage value="/images/UnitedKindom.png" />
           </f:selectItem>
           <f:selectItem itemLabel="#{msg.espaniolLabel}" itemValue="es_ES">
                <h:graphicImage value="/images/Spain.png" />
           </f:selectItem>
      </h:selectOneRadio>
      

       

      Captura.PNG

       

      I need to put the images near the radios, but there are always above.

       

      Anyone have a solution?

       

      If i can't do this, what richfaces component recommended to do this?

       

      Thanks in advanced