Unable to display image for p:commandButton

UI Components for JSF
Post Reply
nirvanbd
Posts: 45
Joined: 16 Oct 2010, 16:17

03 Nov 2010, 05:59

I am trying to display image on p:commandButton, but the image is not getting displayed. If I replace p:commandButton, then the image shows up, which means that the path is correct. I think I am missing some config for p:commandButton. Here is the code for commandButton.

Code: Select all

    <p:toolbar>
        <p:toolbarGroup align="right">
            <p:commandButton action="/changeThis" title="Save"
                             immediate="true" type="push"
                             image="/resources/images/search1.png"
                             style="width:25px;height: 25px;" />
        </p:toolbarGroup>
    </p:toolbar>
regards,
Nirvan.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 Nov 2010, 09:49

You need a style class, see examples or users guide.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 55 guests