Author: jpapouse
Date: 2011-09-14 09:52:49 -0400 (Wed, 14 Sep 2011)
New Revision: 22718
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/audioMpeg.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/imagePng.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textHtml.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textPlain.xhtml
Removed:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/a4j/A4JMediaOutputBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/list.xhtml
Log:
RFPL-1444 (media output): added pages with other mime types
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/a4j/A4JMediaOutputBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/a4j/A4JMediaOutputBean.java 2011-09-14
08:47:24 UTC (rev 22717)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/a4j/A4JMediaOutputBean.java 2011-09-14
13:52:49 UTC (rev 22718)
@@ -50,10 +50,12 @@
@RequestScoped
public class A4JMediaOutputBean implements Serializable {
+ public static final String HTML_TEXT = "<span id='htmlText'
style='color: red'>SOME RED HTML TEXT</span>";
+ public static final String PLAIN_TEXT = "SOME PLAIN TEXT";
private static final long serialVersionUID = -1L;
private static Logger logger;
private Attributes attributes;
-
+
/**
* Initializes the managed bean.
*/
@@ -92,7 +94,24 @@
this.attributes = attributes;
}
- public void paint(OutputStream out, Object data) throws IOException {
+ public void createContentAudioMpeg(OutputStream out, Object data) throws IOException
{
+ InputStream in = null;
+ try {
+ in =
A4JMediaOutputBean.class.getClassLoader().getResourceAsStream("audio/alarm.mp3");
+ byte[] dataBytes = new byte[1000];
+ int length;
+ while((length = in.read(dataBytes)) != 0) {
+ out.write(dataBytes, 0, length);
+ }
+ out.flush();
+ } finally {
+ if (in != null) {
+ in.close();
+ }
+ }
+ }
+
+ public void createContentImagePng(OutputStream out, Object data) throws IOException
{
if (data instanceof MediaData) {
MediaData paintData = (MediaData) data;
BufferedImage img = new BufferedImage(paintData.getWidth(),
paintData.getHeight(), BufferedImage.TYPE_INT_RGB);
@@ -115,6 +134,15 @@
}
}
+ public void createContentTextHtml(OutputStream out, Object data) throws IOException
{
+ out.write(HTML_TEXT.getBytes());
+ }
+
+ public void createContentTextPlain(OutputStream out, Object data) throws IOException
{
+ out.write(PLAIN_TEXT.getBytes());
+ out.flush();
+ }
+
private void copy(InputStream in, OutputStream out) throws IOException {
byte[] buffer = new byte[2048];
int read;
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/audioMpeg.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/audioMpeg.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/audioMpeg.xhtml 2011-09-14
13:52:49 UTC (rev 22718)
@@ -0,0 +1,100 @@
+<?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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head"/>
+
+ <ui:define name="component">
+ <a4j:mediaOutput id="mediaOutput"
+
accesskey="#{a4jMediaOutputBean.attributes['accesskey'].value}"
+
align="#{a4jMediaOutputBean.attributes['align'].value}"
+
archive="#{a4jMediaOutputBean.attributes['archive'].value}"
+
border="#{a4jMediaOutputBean.attributes['border'].value}"
+
cacheable="#{a4jMediaOutputBean.attributes['cacheable'].value}"
+
charset="#{a4jMediaOutputBean.attributes['charset'].value}"
+
classid="#{a4jMediaOutputBean.attributes['classid'].value}"
+
codebase="#{a4jMediaOutputBean.attributes['codebase'].value}"
+
codetype="#{a4jMediaOutputBean.attributes['codetype'].value}"
+
converter="#{a4jMediaOutputBean.attributes['converter'].value}"
+
coords="#{a4jMediaOutputBean.attributes['coords'].value}"
+
createContent="#{a4jMediaOutputBean.createContentAudioMpeg}"
+
declare="#{a4jMediaOutputBean.attributes['declare'].value}"
+
dir="#{a4jMediaOutputBean.attributes['dir'].value}"
+ element="object"
+
expires="#{a4jMediaOutputBean.attributes['expires'].value}"
+
hreflang="#{a4jMediaOutputBean.attributes['hreflang'].value}"
+
hspace="#{a4jMediaOutputBean.attributes['hspace'].value}"
+
ismap="#{a4jMediaOutputBean.attributes['ismap'].value}"
+
lang="#{a4jMediaOutputBean.attributes['lang'].value}"
+
lastModified="#{a4jMediaOutputBean.attributes['lastModified'].value}"
+ mimeType="audio/mpeg"
+
onblur="#{a4jMediaOutputBean.attributes['onblur'].value}"
+
onclick="#{a4jMediaOutputBean.attributes['onclick'].value}"
+
ondblclick="#{a4jMediaOutputBean.attributes['ondblclick'].value}"
+
onfocus="#{a4jMediaOutputBean.attributes['onfocus'].value}"
+
onkeydown="#{a4jMediaOutputBean.attributes['onkeydown'].value}"
+
onkeypress="#{a4jMediaOutputBean.attributes['onkeypress'].value}"
+
onkeyup="#{a4jMediaOutputBean.attributes['onkeyup'].value}"
+
onmousedown="#{a4jMediaOutputBean.attributes['onmousedown'].value}"
+
onmousemove="#{a4jMediaOutputBean.attributes['onmousemove'].value}"
+
onmouseout="#{a4jMediaOutputBean.attributes['onmouseout'].value}"
+
onmouseover="#{a4jMediaOutputBean.attributes['onmouseover'].value}"
+
onmouseup="#{a4jMediaOutputBean.attributes['onmouseup'].value}"
+
rel="#{a4jMediaOutputBean.attributes['rel'].value}"
+
rendered="#{a4jMediaOutputBean.attributes['rendered'].value}"
+
rev="#{a4jMediaOutputBean.attributes['rev'].value}"
+
shape="#{a4jMediaOutputBean.attributes['shape'].value}"
+
standby="#{a4jMediaOutputBean.attributes['standby'].value}"
+
style="#{a4jMediaOutputBean.attributes['style'].value}"
+
styleClass="#{a4jMediaOutputBean.attributes['styleClass'].value}"
+
tabindex="#{a4jMediaOutputBean.attributes['tabindex'].value}"
+
target="#{a4jMediaOutputBean.attributes['target'].value}"
+
title="#{a4jMediaOutputBean.attributes['title'].value}"
+
type="#{a4jMediaOutputBean.attributes['type'].value}"
+ uriAttribute="data"
+
usemap="#{a4jMediaOutputBean.attributes['usemap'].value}"
+ value="#{mediaData}"
+
vspace="#{a4jMediaOutputBean.attributes['vspace'].value}"
+ />
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{a4jMediaOutputBean.attributes}"
id="attributes" render="panel"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Property changes on:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/audioMpeg.xhtml
___________________________________________________________________
Added: svn:executable
+ *
Deleted:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml 2011-09-14
08:47:24 UTC (rev 22717)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml 2011-09-14
13:52:49 UTC (rev 22718)
@@ -1,100 +0,0 @@
-<?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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
-
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
-
- <!--
-JBoss, Home of Professional Open Source
-Copyright 2010-2011, Red Hat, Inc. and individual contributors
-by the @authors tag. See the copyright.txt in the distribution for a
-full listing of individual contributors.
-
-This is free software; you can redistribute it and/or modify it
-under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation; either version 2.1 of
-the License, or (at your option) any later version.
-
-This software is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this software; if not, write to the Free
-Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- -->
-
- <ui:composition template="/templates/template.xhtml">
-
- <ui:define name="view">
- <f:metadata>
- <f:viewParam name="templates"
value="#{templateBean.templates}">
- <f:converter converterId="templatesListConverter" />
- </f:viewParam>
- </f:metadata>
- </ui:define>
-
- <ui:define name="head"/>
-
- <ui:define name="component">
- <a4j:mediaOutput id="mediaOutput"
-
accesskey="#{a4jMediaOutputBean.attributes['accesskey'].value}"
-
align="#{a4jMediaOutputBean.attributes['align'].value}"
-
archive="#{a4jMediaOutputBean.attributes['archive'].value}"
-
border="#{a4jMediaOutputBean.attributes['border'].value}"
-
cacheable="#{a4jMediaOutputBean.attributes['cacheable'].value}"
-
charset="#{a4jMediaOutputBean.attributes['charset'].value}"
-
classid="#{a4jMediaOutputBean.attributes['classid'].value}"
-
codebase="#{a4jMediaOutputBean.attributes['codebase'].value}"
-
codetype="#{a4jMediaOutputBean.attributes['codetype'].value}"
-
converter="#{a4jMediaOutputBean.attributes['converter'].value}"
-
coords="#{a4jMediaOutputBean.attributes['coords'].value}"
- createContent="#{a4jMediaOutputBean.paint}"
-
declare="#{a4jMediaOutputBean.attributes['declare'].value}"
-
dir="#{a4jMediaOutputBean.attributes['dir'].value}"
- element="img"
-
expires="#{a4jMediaOutputBean.attributes['expires'].value}"
-
hreflang="#{a4jMediaOutputBean.attributes['hreflang'].value}"
-
hspace="#{a4jMediaOutputBean.attributes['hspace'].value}"
-
ismap="#{a4jMediaOutputBean.attributes['ismap'].value}"
-
lang="#{a4jMediaOutputBean.attributes['lang'].value}"
-
lastModified="#{a4jMediaOutputBean.attributes['lastModified'].value}"
- mimeType="image/png"
-
onblur="#{a4jMediaOutputBean.attributes['onblur'].value}"
-
onclick="#{a4jMediaOutputBean.attributes['onclick'].value}"
-
ondblclick="#{a4jMediaOutputBean.attributes['ondblclick'].value}"
-
onfocus="#{a4jMediaOutputBean.attributes['onfocus'].value}"
-
onkeydown="#{a4jMediaOutputBean.attributes['onkeydown'].value}"
-
onkeypress="#{a4jMediaOutputBean.attributes['onkeypress'].value}"
-
onkeyup="#{a4jMediaOutputBean.attributes['onkeyup'].value}"
-
onmousedown="#{a4jMediaOutputBean.attributes['onmousedown'].value}"
-
onmousemove="#{a4jMediaOutputBean.attributes['onmousemove'].value}"
-
onmouseout="#{a4jMediaOutputBean.attributes['onmouseout'].value}"
-
onmouseover="#{a4jMediaOutputBean.attributes['onmouseover'].value}"
-
onmouseup="#{a4jMediaOutputBean.attributes['onmouseup'].value}"
-
rel="#{a4jMediaOutputBean.attributes['rel'].value}"
-
rendered="#{a4jMediaOutputBean.attributes['rendered'].value}"
-
rev="#{a4jMediaOutputBean.attributes['rev'].value}"
-
shape="#{a4jMediaOutputBean.attributes['shape'].value}"
-
standby="#{a4jMediaOutputBean.attributes['standby'].value}"
-
style="#{a4jMediaOutputBean.attributes['style'].value}"
-
styleClass="#{a4jMediaOutputBean.attributes['styleClass'].value}"
-
tabindex="#{a4jMediaOutputBean.attributes['tabindex'].value}"
-
target="#{a4jMediaOutputBean.attributes['target'].value}"
-
title="#{a4jMediaOutputBean.attributes['title'].value}"
-
type="#{a4jMediaOutputBean.attributes['type'].value}"
- uriAttribute="src"
-
usemap="#{a4jMediaOutputBean.attributes['usemap'].value}"
- value="#{mediaData}"
-
vspace="#{a4jMediaOutputBean.attributes['vspace'].value}"
- />
- </ui:define>
-
- <ui:define name="outOfTemplateAfter">
- <metamer:attributes value="#{a4jMediaOutputBean.attributes}"
id="attributes" render="panel"/>
- </ui:define>
-
- </ui:composition>
-</html>
\ No newline at end of file
Copied:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/imagePng.xhtml
(from rev 22702,
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/image.xhtml)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/imagePng.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/imagePng.xhtml 2011-09-14
13:52:49 UTC (rev 22718)
@@ -0,0 +1,100 @@
+<?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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head"/>
+
+ <ui:define name="component">
+ <a4j:mediaOutput id="mediaOutput"
+
accesskey="#{a4jMediaOutputBean.attributes['accesskey'].value}"
+
align="#{a4jMediaOutputBean.attributes['align'].value}"
+
archive="#{a4jMediaOutputBean.attributes['archive'].value}"
+
border="#{a4jMediaOutputBean.attributes['border'].value}"
+
cacheable="#{a4jMediaOutputBean.attributes['cacheable'].value}"
+
charset="#{a4jMediaOutputBean.attributes['charset'].value}"
+
classid="#{a4jMediaOutputBean.attributes['classid'].value}"
+
codebase="#{a4jMediaOutputBean.attributes['codebase'].value}"
+
codetype="#{a4jMediaOutputBean.attributes['codetype'].value}"
+
converter="#{a4jMediaOutputBean.attributes['converter'].value}"
+
coords="#{a4jMediaOutputBean.attributes['coords'].value}"
+
createContent="#{a4jMediaOutputBean.createContentImagePng}"
+
declare="#{a4jMediaOutputBean.attributes['declare'].value}"
+
dir="#{a4jMediaOutputBean.attributes['dir'].value}"
+ element="img"
+
expires="#{a4jMediaOutputBean.attributes['expires'].value}"
+
hreflang="#{a4jMediaOutputBean.attributes['hreflang'].value}"
+
hspace="#{a4jMediaOutputBean.attributes['hspace'].value}"
+
ismap="#{a4jMediaOutputBean.attributes['ismap'].value}"
+
lang="#{a4jMediaOutputBean.attributes['lang'].value}"
+
lastModified="#{a4jMediaOutputBean.attributes['lastModified'].value}"
+ mimeType="image/png"
+
onblur="#{a4jMediaOutputBean.attributes['onblur'].value}"
+
onclick="#{a4jMediaOutputBean.attributes['onclick'].value}"
+
ondblclick="#{a4jMediaOutputBean.attributes['ondblclick'].value}"
+
onfocus="#{a4jMediaOutputBean.attributes['onfocus'].value}"
+
onkeydown="#{a4jMediaOutputBean.attributes['onkeydown'].value}"
+
onkeypress="#{a4jMediaOutputBean.attributes['onkeypress'].value}"
+
onkeyup="#{a4jMediaOutputBean.attributes['onkeyup'].value}"
+
onmousedown="#{a4jMediaOutputBean.attributes['onmousedown'].value}"
+
onmousemove="#{a4jMediaOutputBean.attributes['onmousemove'].value}"
+
onmouseout="#{a4jMediaOutputBean.attributes['onmouseout'].value}"
+
onmouseover="#{a4jMediaOutputBean.attributes['onmouseover'].value}"
+
onmouseup="#{a4jMediaOutputBean.attributes['onmouseup'].value}"
+
rel="#{a4jMediaOutputBean.attributes['rel'].value}"
+
rendered="#{a4jMediaOutputBean.attributes['rendered'].value}"
+
rev="#{a4jMediaOutputBean.attributes['rev'].value}"
+
shape="#{a4jMediaOutputBean.attributes['shape'].value}"
+
standby="#{a4jMediaOutputBean.attributes['standby'].value}"
+
style="#{a4jMediaOutputBean.attributes['style'].value}"
+
styleClass="#{a4jMediaOutputBean.attributes['styleClass'].value}"
+
tabindex="#{a4jMediaOutputBean.attributes['tabindex'].value}"
+
target="#{a4jMediaOutputBean.attributes['target'].value}"
+
title="#{a4jMediaOutputBean.attributes['title'].value}"
+
type="#{a4jMediaOutputBean.attributes['type'].value}"
+ uriAttribute="src"
+
usemap="#{a4jMediaOutputBean.attributes['usemap'].value}"
+ value="#{mediaData}"
+
vspace="#{a4jMediaOutputBean.attributes['vspace'].value}"
+ />
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{a4jMediaOutputBean.attributes}"
id="attributes" render="panel"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/list.xhtml 2011-09-14
08:47:24 UTC (rev 22717)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/list.xhtml 2011-09-14
13:52:49 UTC (rev 22718)
@@ -31,11 +31,22 @@
<ui:define name="links">
- <metamer:testPageLink id="image" outcome="image"
value="Image">
- Simple page that contains <b>a4j:mediaOutput</b> (image) and
input boxes for all its attributes.
+ <metamer:testPageLink id="imagePng" outcome="imagePng"
value="Image Png">
+ Simple page that contains <b>a4j:mediaOutput</b> (image/png)
and input boxes for all its attributes.
</metamer:testPageLink>
+ <metamer:testPageLink id="textHtml" outcome="textHtml"
value="Text HTML">
+ Simple page that contains <b>a4j:mediaOutput</b> (text/html)
and input boxes for all its attributes.
+ </metamer:testPageLink>
+
+ <metamer:testPageLink id="textPlain"
outcome="textPlain" value="Text Plain">
+ Simple page that contains <b>a4j:mediaOutput</b> (text/plain)
and input boxes for all its attributes.
+ </metamer:testPageLink>
+
<ui:remove>
+ <metamer:testPageLink id="audioMpeg"
outcome="audioMpeg" value="Audio Mpeg">
+ Simple page that contains <b>a4j:mediaOutput</b>
(audio/mpeg) and input boxes for all its attributes.
+ </metamer:testPageLink>
<metamer:testPageLink id="flash" outcome="flash"
value="Flash">
Simple page that contains <b>a4j:mediaOutput</b> (flash)
and input boxes for all its attributes.
</metamer:testPageLink>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textHtml.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textHtml.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textHtml.xhtml 2011-09-14
13:52:49 UTC (rev 22718)
@@ -0,0 +1,100 @@
+<?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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head"/>
+
+ <ui:define name="component">
+ <a4j:mediaOutput id="mediaOutput"
+
accesskey="#{a4jMediaOutputBean.attributes['accesskey'].value}"
+
align="#{a4jMediaOutputBean.attributes['align'].value}"
+
archive="#{a4jMediaOutputBean.attributes['archive'].value}"
+
border="#{a4jMediaOutputBean.attributes['border'].value}"
+
cacheable="#{a4jMediaOutputBean.attributes['cacheable'].value}"
+
charset="#{a4jMediaOutputBean.attributes['charset'].value}"
+
classid="#{a4jMediaOutputBean.attributes['classid'].value}"
+
codebase="#{a4jMediaOutputBean.attributes['codebase'].value}"
+
codetype="#{a4jMediaOutputBean.attributes['codetype'].value}"
+
converter="#{a4jMediaOutputBean.attributes['converter'].value}"
+
coords="#{a4jMediaOutputBean.attributes['coords'].value}"
+
createContent="#{a4jMediaOutputBean.createContentTextHtml}"
+
declare="#{a4jMediaOutputBean.attributes['declare'].value}"
+
dir="#{a4jMediaOutputBean.attributes['dir'].value}"
+ element="object"
+
expires="#{a4jMediaOutputBean.attributes['expires'].value}"
+
hreflang="#{a4jMediaOutputBean.attributes['hreflang'].value}"
+
hspace="#{a4jMediaOutputBean.attributes['hspace'].value}"
+
ismap="#{a4jMediaOutputBean.attributes['ismap'].value}"
+
lang="#{a4jMediaOutputBean.attributes['lang'].value}"
+
lastModified="#{a4jMediaOutputBean.attributes['lastModified'].value}"
+ mimeType="text/html"
+
onblur="#{a4jMediaOutputBean.attributes['onblur'].value}"
+
onclick="#{a4jMediaOutputBean.attributes['onclick'].value}"
+
ondblclick="#{a4jMediaOutputBean.attributes['ondblclick'].value}"
+
onfocus="#{a4jMediaOutputBean.attributes['onfocus'].value}"
+
onkeydown="#{a4jMediaOutputBean.attributes['onkeydown'].value}"
+
onkeypress="#{a4jMediaOutputBean.attributes['onkeypress'].value}"
+
onkeyup="#{a4jMediaOutputBean.attributes['onkeyup'].value}"
+
onmousedown="#{a4jMediaOutputBean.attributes['onmousedown'].value}"
+
onmousemove="#{a4jMediaOutputBean.attributes['onmousemove'].value}"
+
onmouseout="#{a4jMediaOutputBean.attributes['onmouseout'].value}"
+
onmouseover="#{a4jMediaOutputBean.attributes['onmouseover'].value}"
+
onmouseup="#{a4jMediaOutputBean.attributes['onmouseup'].value}"
+
rel="#{a4jMediaOutputBean.attributes['rel'].value}"
+
rendered="#{a4jMediaOutputBean.attributes['rendered'].value}"
+
rev="#{a4jMediaOutputBean.attributes['rev'].value}"
+
shape="#{a4jMediaOutputBean.attributes['shape'].value}"
+
standby="#{a4jMediaOutputBean.attributes['standby'].value}"
+
style="#{a4jMediaOutputBean.attributes['style'].value}"
+
styleClass="#{a4jMediaOutputBean.attributes['styleClass'].value}"
+
tabindex="#{a4jMediaOutputBean.attributes['tabindex'].value}"
+
target="#{a4jMediaOutputBean.attributes['target'].value}"
+
title="#{a4jMediaOutputBean.attributes['title'].value}"
+
type="#{a4jMediaOutputBean.attributes['type'].value}"
+ uriAttribute="data"
+
usemap="#{a4jMediaOutputBean.attributes['usemap'].value}"
+ value="#{mediaData}"
+
vspace="#{a4jMediaOutputBean.attributes['vspace'].value}"
+ />
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{a4jMediaOutputBean.attributes}"
id="attributes" render="panel"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Property changes on:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textHtml.xhtml
___________________________________________________________________
Added: svn:executable
+ *
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textPlain.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textPlain.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textPlain.xhtml 2011-09-14
13:52:49 UTC (rev 22718)
@@ -0,0 +1,100 @@
+<?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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="head"/>
+
+ <ui:define name="component">
+ <a4j:mediaOutput id="mediaOutput"
+
accesskey="#{a4jMediaOutputBean.attributes['accesskey'].value}"
+
align="#{a4jMediaOutputBean.attributes['align'].value}"
+
archive="#{a4jMediaOutputBean.attributes['archive'].value}"
+
border="#{a4jMediaOutputBean.attributes['border'].value}"
+
cacheable="#{a4jMediaOutputBean.attributes['cacheable'].value}"
+
charset="#{a4jMediaOutputBean.attributes['charset'].value}"
+
classid="#{a4jMediaOutputBean.attributes['classid'].value}"
+
codebase="#{a4jMediaOutputBean.attributes['codebase'].value}"
+
codetype="#{a4jMediaOutputBean.attributes['codetype'].value}"
+
converter="#{a4jMediaOutputBean.attributes['converter'].value}"
+
coords="#{a4jMediaOutputBean.attributes['coords'].value}"
+
createContent="#{a4jMediaOutputBean.createContentTextPlain}"
+
declare="#{a4jMediaOutputBean.attributes['declare'].value}"
+
dir="#{a4jMediaOutputBean.attributes['dir'].value}"
+ element="object"
+
expires="#{a4jMediaOutputBean.attributes['expires'].value}"
+
hreflang="#{a4jMediaOutputBean.attributes['hreflang'].value}"
+
hspace="#{a4jMediaOutputBean.attributes['hspace'].value}"
+
ismap="#{a4jMediaOutputBean.attributes['ismap'].value}"
+
lang="#{a4jMediaOutputBean.attributes['lang'].value}"
+
lastModified="#{a4jMediaOutputBean.attributes['lastModified'].value}"
+ mimeType="text/plain"
+
onblur="#{a4jMediaOutputBean.attributes['onblur'].value}"
+
onclick="#{a4jMediaOutputBean.attributes['onclick'].value}"
+
ondblclick="#{a4jMediaOutputBean.attributes['ondblclick'].value}"
+
onfocus="#{a4jMediaOutputBean.attributes['onfocus'].value}"
+
onkeydown="#{a4jMediaOutputBean.attributes['onkeydown'].value}"
+
onkeypress="#{a4jMediaOutputBean.attributes['onkeypress'].value}"
+
onkeyup="#{a4jMediaOutputBean.attributes['onkeyup'].value}"
+
onmousedown="#{a4jMediaOutputBean.attributes['onmousedown'].value}"
+
onmousemove="#{a4jMediaOutputBean.attributes['onmousemove'].value}"
+
onmouseout="#{a4jMediaOutputBean.attributes['onmouseout'].value}"
+
onmouseover="#{a4jMediaOutputBean.attributes['onmouseover'].value}"
+
onmouseup="#{a4jMediaOutputBean.attributes['onmouseup'].value}"
+
rel="#{a4jMediaOutputBean.attributes['rel'].value}"
+
rendered="#{a4jMediaOutputBean.attributes['rendered'].value}"
+
rev="#{a4jMediaOutputBean.attributes['rev'].value}"
+
shape="#{a4jMediaOutputBean.attributes['shape'].value}"
+
standby="#{a4jMediaOutputBean.attributes['standby'].value}"
+
style="#{a4jMediaOutputBean.attributes['style'].value}"
+
styleClass="#{a4jMediaOutputBean.attributes['styleClass'].value}"
+
tabindex="#{a4jMediaOutputBean.attributes['tabindex'].value}"
+
target="#{a4jMediaOutputBean.attributes['target'].value}"
+
title="#{a4jMediaOutputBean.attributes['title'].value}"
+
type="#{a4jMediaOutputBean.attributes['type'].value}"
+ uriAttribute="data"
+
usemap="#{a4jMediaOutputBean.attributes['usemap'].value}"
+ value="#{mediaData}"
+
vspace="#{a4jMediaOutputBean.attributes['vspace'].value}"
+ />
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{a4jMediaOutputBean.attributes}"
id="attributes" render="panel"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Property changes on:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jMediaOutput/textPlain.xhtml
___________________________________________________________________
Added: svn:executable
+ *