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

                 Key: RF-11330
                 URL: https://issues.jboss.org/browse/RF-11330
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-a4j-core
    Affects Versions: 4.0.0.Final
         Environment: JSF 2.1.2 with Richfaces 4.0.0 Final
            Reporter: Adrian Höhn


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.value}" mimeType="image/jpeg" />
        <a4j:mediaOutput element="img" createContent="#{mediaBean.paint}" 
value="#{null}" mimeType="image/jpeg" />
    </composite:implementation>
</html>



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to