Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-229

Button image resource not rendering with Pluto

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: liferay-faces-2.1.5-ga6, liferay-faces-2.2.5-ga6, liferay-faces-3.0.5-legacy-ga6, liferay-faces-3.0.5-ga6, liferay-faces-3.1.5-ga6, liferay-faces-3.2.5-ga6, liferay-faces-4.2.5-ga6
    • Fix Version/s: bridge-impl-3.0.0
    • Labels:
      None
    • Environment:
      JSF 2.1 (not JSF 1.2 or JSF 2.2) portlets that use h:commandButton

      Description

      The example JSF2 portlet has an h:dataTable that lists all of the uploaded files. The first column contains a button with the following XHTML markup:

      <h:column>
      	<h:commandButton actionListener="#{applicantBackingBean.deleteUploadedFile}"
      		image="#{resource['example:icon-delete.png']}"
      		onclick="if (! confirm('#{i18n['are-you-sure-you-want-to-delete-this']}')) {return false;}"
      		value="#{uploadedFile.id}">
      		<f:ajax render="@form"/>
      	</h:commandButton>
      </h:column>
      

      However under Pluto, the image does not render for JSF2 portlets. For JSF1 portlets it works just fine – so the button renderer in Mojarra 2.x might be a little different that Mojarra 1.x – perhaps it has an extra call to ExternalContext.encodeResourceURL(String).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  bridge-impl-3.0.0