myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kalpana kalpana <>
Subject How to insert image in selectOneRadio
Date Sat, 22 Jan 2011 04:14:04 GMT
We are using JBoss Seam 2.2 and would like to use Tomahawk for
rendering / customizing radio buttons.

           <t:selectOneRadio id="sor"
value="#{userHome.instance..gender}" layout="spread" border="1"
                   style="font-weight:bold; font-size: 14;

               <t:selectItems value="#{userHome.genders}"/>
               <s:convertEnum />
               <f:selectItem id="si1" itemLabel="Umbrella" itemValue="A" />
               <f:selectItem id="si2" itemLabel="Star" itemValue="B" />
               <f:selectItem id="si3" itemLabel="Chair" itemValue="C" />
               <f:selectItem id="si4" itemLabel="Football" itemValue="D" />

           <t:panelGrid columns="1" style="font-weight: 15;"
cellpadding="0" cellspacing="5">
                   <t:radio for="sor" index="0"></t:radio>
                   <h:graphicImage value="/muli-umbrella-48x48.png"/>

                   <t:radio for="sor" index="1"></t:radio>
                   <h:graphicImage value="/blue-star-48x48.png"/>

                   <t:radio for="sor" index="2"></t:radio>
                   <h:graphicImage value="/chair-48x48.png"/>

                   <t:radio for="sor" index="3"></t:radio>
                   <h:graphicImage value="/football-48x48.png"/>

1. How to hide the radio button label in the above scenario?
2. How to position the image between the radio button choice and its
associated label? (i.e. image should be in between, the circle
indicating the choice and the label)

View raw message