Author: ppitonak(a)redhat.com
Date: 2010-12-23 07:58:58 -0500 (Thu, 23 Dec 2010)
New Revision: 20766
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JMediaOutputBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml
Log:
* sample for a4j:mediaOutput fixed
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JMediaOutputBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JMediaOutputBean.java 2010-12-23
12:44:56 UTC (rev 20765)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JMediaOutputBean.java 2010-12-23
12:58:58 UTC (rev 20766)
@@ -33,7 +33,7 @@
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
-import javax.faces.bean.ViewScoped;
+import javax.faces.bean.RequestScoped;
import javax.imageio.ImageIO;
import org.richfaces.component.UIMediaOutput;
@@ -48,7 +48,7 @@
* @version $Revision$
*/
@ManagedBean(name = "a4jMediaOutputBean")
-@ViewScoped
+@RequestScoped
public class A4JMediaOutputBean implements Serializable {
private static final long serialVersionUID = -1L;
@@ -71,6 +71,7 @@
attributes.remove("element");
attributes.remove("value");
attributes.remove("mimeType");
+ attributes.remove("uriAttribute");
}
/**
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml 2010-12-23
12:44:56 UTC (rev 20765)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml 2010-12-23
12:58:58 UTC (rev 20766)
@@ -87,7 +87,7 @@
target="#{a4jMediaOutputBean.attributes['target'].value}"
title="#{a4jMediaOutputBean.attributes['title'].value}"
type="#{a4jMediaOutputBean.attributes['type'].value}"
-
uriAttribute="#{a4jMediaOutputBean.attributes['uriAttribute'].value}"
+ uriAttribute="src"
usemap="#{a4jMediaOutputBean.attributes['usemap'].value}"
value="#{mediaData}"
vspace="#{a4jMediaOutputBean.attributes['vspace'].value}"
Show replies by date