[richfaces-issues] [JBoss JIRA] Closed: (RF-11330) a4j:mediaOutput doesn't work in customcomponent for the composite:attribute
Adrian Höhn (JIRA)
jira-events at lists.jboss.org
Tue Sep 6 10:28:26 EDT 2011
[ https://issues.jboss.org/browse/RF-11330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Höhn closed RF-11330.
----------------------------
Fix Version/s: 4.0.0.Final
Resolution: Done
Problem was depending on data and not on implementation code.
> 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
> Labels: customcomponent, mediaOutput
> Fix For: 4.0.0.Final
>
>
> 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>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list