-
1. how add image inside h:selectOneRadio
ilya40umov Feb 2, 2011 11:31 AM (in response to spiritfox26)f:selectItem definetly does not support a nested h:graphicImage. But may be you can try to do this with CSS. The only problem is that f:selectItem does not have any CSS attributes either.
The simplest way out is to create HTML+JS based solution which should pass user's choise to the server side in a hidden field.
-
2. how add image inside h:selectOneRadio
spiritfox26 Feb 2, 2011 12:17 PM (in response to ilya40umov)Thanks for your answer.
Regards
-
3. how add image inside h:selectOneRadio
mr1azl Feb 25, 2011 3:36 AM (in response to spiritfox26)hey Agustin,
I have the same problem if u found a solution plz let me know
thx!!
-
4. Re: how add image inside h:selectOneRadio
spiritfox26 Feb 25, 2011 7:39 AM (in response to mr1azl)Hi Marl, i resolve it, but not is the best solution, i use some h:panelGrid.
<h:panelGrid columns="2"> <h:selectOneRadio layout="pageDirection" styleClass="labelWhite" value="#{administracionBean.idioma}"> <f:selectItem itemLabel="#{msg.inglesLabel}" itemValue="en_US"/> <f:selectItem itemLabel="#{msg.espaniolLabel}" itemValue="es_ES"/> </h:selectOneRadio> <h:panelGrid columns="1"> <h:graphicImage value="/images/UnitedKindom.png" /> <h:graphicImage value="/images/Spain.png" /> </h:panelGrid> </h:panelGrid>
The result
Regards
-
5. Re: how add image inside h:selectOneRadio
mr1azl Feb 25, 2011 7:56 AM (in response to spiritfox26) -
6. how add image inside h:selectOneRadio
danielk Mar 1, 2011 3:59 PM (in response to mr1azl)Than you should look at suggestion box instead of selectOneRadio. With this tag you have the ability to create drop down lists by using complex java objects. I think in richfaces livedemo they already used flags combined with names as example. But much simpler would be to use a combobox, perhaps with the right flag, after user has chosen a language.
-
7. how add image inside h:selectOneRadio
mr1azl Mar 1, 2011 4:05 PM (in response to danielk)aaaaaaah thx i will use a drop down menu !! I ve already used it with pics !! thx a lot !