5 Replies Latest reply on May 30, 2008 10:18 AM by sergeysmirnov

    SimpleTogglePanel marker icon

    andreiwe

      Please tell me how can I use icons for SimpleTogglePanel marker or at least another symbols instead of "<<|>>"

        • 1. Re: SimpleTogglePanel marker icon
          raog0000

          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

            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

              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

                it seems the second is really not possible.

                • 5. Re: SimpleTogglePanel marker icon

                  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.