Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11330

a4j:mediaOutput doesn't work in customcomponent for the composite:attribute

    Details

    • Steps to Reproduce:
      Hide

      See example and use MediaBean from Richfaces documentation to test it.

      Show
      See example and use MediaBean from Richfaces documentation to test it.

      Description

      a4j:mediaOutput doesn't work if it's paint method is called with an attribute of a custom component.

      Example:
      First mediaOuput call with attribute is not working. The same with passing a null value works.

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:composite="http://java.sun.com/jsf/composite">

      <composite:interface>
      <composite:attribute name="value" />
      </composite:interface>

      <composite:implementation>
      <a4j:mediaOutput element="img" createContent="#

      {mediaBean.paint}" value="#{cc.attrs.value}" mimeType="image/jpeg" />
      <a4j:mediaOutput element="img" createContent="#{mediaBean.paint}

      " value="#

      {null}

      " mimeType="image/jpeg" />
      </composite:implementation>
      </html>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ahoehn Adrian Höhn
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: