-
1. Re: SimpleTogglePanel marker icon
raog0000 May 29, 2008 9:35 AM (in response to andreiwe)Use the f:facet tag with a h:graphicImage inside it. Here is an example,
<rich:simpleTogglePanel id="createSamplePanel" headerClass="head" label="Label" switchType="client"> <f:facet name="closeMarker"> <h:graphicImage value="image/closeImage.gif" /> </f:facet> <f:facet name="openMarker"> <h:graphicImage value="image/openImage.gif" /> </f:facet> <ui:include src="some.jsp" /> </rich:simpleTogglePanel>
-
2. Re: SimpleTogglePanel marker icon
andreiwe May 30, 2008 6:11 AM (in response to andreiwe)Thanks, it work. But the question is how to apply this to all the panels at once with not putting facet tag inside every panel. And another question is how to align marker image correctly, cause i get marker aligned to the top (i want it aligned to middle) of panel header.[/img]
-
3. Re: SimpleTogglePanel marker icon
andreiwe May 30, 2008 6:39 AM (in response to andreiwe)I solve problem with positioning of the marker by setting padding attribute of rich-stglpanel-marker style. Still have question about setting marker image once - using everywhere automaticly.
-
4. Re: SimpleTogglePanel marker icon
ilya_shaikovsky May 30, 2008 9:27 AM (in response to andreiwe)it seems the second is really not possible.
-
5. Re: SimpleTogglePanel marker icon
sergeysmirnov May 30, 2008 10:18 AM (in response to andreiwe)most likely, it is possible to create a facelets template (or even a facelets composition component) based of the SimpleTogglePanel, customize it inside the template and reuse this template along the whole application.