This content has been marked as final.
Show 5 replies
-
1. Re: commandButton With Image And Text
ilya_shaikovsky Nov 13, 2007 1:20 PM (in response to pourmo)<button type="button"> <a4j:support event="onclick" action="..." reRender="..."></a4j:support> <h:graphicImage value="/pages/tennessee.gif"></h:graphicImage> <h:outputText value="test"></h:outputText> <h:graphicImage value="/pages/texas.gif"></h:graphicImage> </button>
-
2. Re: commandButton With Image And Text
pourmo Nov 14, 2007 1:21 AM (in response to pourmo)Thanks, I had tried this before but the Image and the text appeard outside the button, then I realized this is due to me having panelGrid with columns as a parent, which forced the components to appear as individual.
cheers
mo -
3. Re: commandButton With Image And Text
ilya_shaikovsky Nov 14, 2007 5:12 AM (in response to pourmo)Pay your attention that in my code there is html button element but not h:command* component ;)
-
4. Re: commandButton With Image And Text
pourmo Nov 14, 2007 5:55 AM (in response to pourmo)Thank you :-)
-
5. Re: commandButton With Image And Text
damianharvey Nov 14, 2007 11:17 AM (in response to pourmo)You can always put the image in as a background-image via CSS and position the text with a margin. You can use an a:commandButton then.
Cheers,
Damian.