[richfaces-svn-commits] JBoss Rich Faces SVN: r2362 - in trunk/samples/richfaces-demo/src/main: java/org/richfaces/demo/media and 15 other directories.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Mon Aug 20 21:07:29 EDT 2007
Author: SergeySmirnov
Date: 2007-08-20 21:07:29 -0400 (Mon, 20 Aug 2007)
New Revision: 2362
Added:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/MediaBean.java
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaBean.java
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaData.java
trunk/samples/richfaces-demo/src/main/webapp/images/cn_include2.gif
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/navigation.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/jpeg.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wizard.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml
Log:
demo update. include and media output
Added: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/MediaBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/MediaBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/media/MediaBean.java 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,28 @@
+package org.richfaces.demo.media;
+
+import java.awt.Graphics2D;
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+import java.io.OutputStream;
+import javax.imageio.ImageIO;
+
+public class MediaBean {
+
+ public void paint(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);
+ Graphics2D graphics2D = img.createGraphics();
+ graphics2D.setBackground(paintData.getBackground());
+ graphics2D.setColor(paintData.getDrawColor());
+ graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
+ graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
+ graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
+ graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
+
+ ImageIO.write(img,"jpeg",out);
+
+ }
+ }
+}
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-21 01:07:29 UTC (rev 2362)
@@ -55,8 +55,8 @@
loadScript= ajaxResources, Script, /images/ico_common.gif, /images/cn_Script.gif, RichFacesComponentsLibrary.html#loadScript, jbossajax4jsf/freezone/docs/tlddoc/a4j/loadScript.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIResource.html, /richfaces/script.jsf
loadStyle= ajaxResources, Style, /images/ico_common.gif, /images/cn_Style.gif, RichFacesComponentsLibrary.html#loadStyle, jbossajax4jsf/freezone/docs/tlddoc/a4j/loadStyle.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIResource.html, /richfaces/style.jsf
keepAlive= ajaxResources, Keep Alive, /images/ico_common.gif, /images/cn_KeepAlive.gif, RichFacesComponentsLibrary.html#keepAlive, jbossajax4jsf/freezone/docs/tlddoc/a4j/keepAlive.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/taglib/html/jsp/KeepAliveTag.html, /richfaces/keepAlive.jsf
-include= ajaxOutput, Include, /images/ico_common.gif, /images/cn_include.gif, RichFacesComponentsLibrary.html#include, jbossajax4jsf/freezone/docs/tlddoc/a4j/include.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIInclude.html, /richfaces/include.jsf
-mediaOutput= ajaxOutput, Media Output, /images/ico_common.gif, /images/cn_MediaOutput.gif, RichFacesComponentsLibrary.html#mediaOutput, jbossajax4jsf/freezone/docs/tlddoc/a4j/mediaOutput.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/resource/UIMediaOutput.html, /richfaces/comingSoon.jsf
+include= ajaxOutput, Include, /images/ico_common.gif, /images/cn_include2.gif, RichFacesComponentsLibrary.html#include, jbossajax4jsf/freezone/docs/tlddoc/a4j/include.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIInclude.html, /richfaces/include.jsf
+mediaOutput= ajaxOutput, Media Output, /images/ico_common.gif, /images/cn_MediaOutput.gif, RichFacesComponentsLibrary.html#mediaOutput, jbossajax4jsf/freezone/docs/tlddoc/a4j/mediaOutput.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/resource/UIMediaOutput.html, /richfaces/mediaOutput.jsf
outputPanel= ajaxOutput, Output Panel, /images/ico_common.gif, /images/cn_OutputPanel.gif, RichFacesComponentsLibrary.html#outputPanel, jbossajax4jsf/freezone/docs/tlddoc/a4j/outputPanel.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIAjaxOutputPanel.html, /richfaces/outputPanel.jsf
repeat= richDataIterators, Repeat, /images/ico_common.gif, /images/cn_Repeat.gif, RichFacesComponentsLibrary.html#repeat, jbossajax4jsf/freezone/docs/tlddoc/a4j/repeat.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/repeat/UIRepeat.html, /richfaces/comingSoon.jsf
htmlCommandLink= ajaxMisc, Html Command Link, /images/ico_common.gif, /images/cn_HtmlCommandLink.gif, RichFacesComponentsLibrary.html#htmlCommandLink, jbossajax4jsf/freezone/docs/tlddoc/a4j/htmlCommandLink.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/renderkit/html/HtmlCommandLinkRenderer.html, /richfaces/comingSoon.jsf
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/faces-config.xml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -200,6 +200,16 @@
</managed-property>
</managed-bean>
<managed-bean>
+ <managed-bean-name>mediaBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.media.MediaBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>mediaData</managed-bean-name>
+ <managed-bean-class>org.richfaces.demo.media.MediaData</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
<managed-bean-name>auctionDataProvider</managed-bean-name>
<managed-bean-class>org.richfaces.demo.extendeddatamodel.AuctionDataProvider</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
Added: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaBean.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaBean.java 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,28 @@
+package org.richfaces.demo.media;
+
+import java.awt.Graphics2D;
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+import java.io.OutputStream;
+import javax.imageio.ImageIO;
+
+public class MediaBean {
+
+ public void paint(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);
+ Graphics2D graphics2D = img.createGraphics();
+ graphics2D.setBackground(paintData.getBackground());
+ graphics2D.setColor(paintData.getDrawColor());
+ graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
+ graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
+ graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
+ graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
+
+ ImageIO.write(img,"jpeg",out);
+
+ }
+ }
+}
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaData.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaData.java (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/richfaces/demo/media/MediaData.java 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,39 @@
+package org.richfaces.demo.media;
+
+import java.awt.Color;
+import java.io.Serializable;
+
+public class MediaData implements Serializable{
+
+ private static final long serialVersionUID = 1L;
+ Integer Width=110;
+ Integer Height=50;
+ Color Background=new Color(0,0,0);
+ Color DrawColor=new Color(255,255,255);
+ public MediaData() {
+ }
+ public Color getBackground() {
+ return Background;
+ }
+ public void setBackground(Color background) {
+ Background = background;
+ }
+ public Color getDrawColor() {
+ return DrawColor;
+ }
+ public void setDrawColor(Color drawColor) {
+ DrawColor = drawColor;
+ }
+ public Integer getHeight() {
+ return Height;
+ }
+ public void setHeight(Integer height) {
+ Height = height;
+ }
+ public Integer getWidth() {
+ return Width;
+ }
+ public void setWidth(Integer width) {
+ Width = width;
+ }
+}
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_include2.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_include2.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wizard.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wizard.xhtml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wizard.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -17,9 +17,13 @@
.rich-message { color:red; }
</style>
+ <rich:separator height="1" style="padding:10px"/>
<h:panelGrid width="100%" columns="2" columnClasses="col1,col2">
<f:verbatim>
- Additional explanation will be here.
+ The demo shows the example of three-steps wizard created
+ using a4j:include. The navigation rules defined in the
+ faces-config.xml are used to navigate between the steps
+ of the wizard.
</f:verbatim>
<a4j:keepAlive beanName="profile" />
@@ -33,5 +37,6 @@
</rich:panel>
</h:panelGrid>
+ <rich:separator height="1" style="padding:10px"/>
</ui:composition>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/examples/wstep1.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -18,6 +18,8 @@
<h:inputText id="comp" value="#{profile.company}" label="Company" required="true" />
<rich:message for="comp"/>
+
+
</h:panelGrid>
<a4j:commandButton value="Next >>" action="next"/>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/navigation.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/navigation.xml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/snippet/navigation.xml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+<!-- The rest parts of the faces-config.xml are not shown here -->
+<navigation-rule>
+ <from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <from-view-id>/richfaces/include/examples/wstep2.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id>
+ </navigation-case>
+ <navigation-case>
+ <from-outcome>next</from-outcome>
+ <to-view-id>/richfaces/include/examples/finalStep.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <navigation-rule>
+ <from-view-id>/richfaces/include/examples/finalStep.xhtml</from-view-id>
+ <navigation-case>
+ <from-outcome>previous</from-outcome>
+ <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ </faces-config>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include/usage.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -16,8 +16,7 @@
<p>
<b>viewId</b> attribute specify the view id of the page that will be included. It should be
the full context-relative path of the resource in order to use as from-view and to-view in the
- JSF navigation cases. The following demo shows the example of three-steps wizard created
- using a4j:include:
+ JSF navigation cases.
</p>
<div class="sample-container">
@@ -26,7 +25,23 @@
<ui:param name="sourcepath" value="/richfaces/include/examples/wizard.xhtml"/>
<ui:param name="openlabel" value="View Page Source" />
</ui:include>
-
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/include/examples/wstep1.xhtml"/>
+ <ui:param name="openlabel" value="View wstep1.xhtml Source" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/include/examples/wstep2.xhtml"/>
+ <ui:param name="openlabel" value="View wstep2.xhtml Source" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/include/examples/finalStep.xhtml"/>
+ <ui:param name="openlabel" value="View finalStep.xhtml Source" />
+ </ui:include>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/include/snippet/navigation.xml"/>
+ <ui:param name="openlabel" value="View faces-config.xml Navigation Rules" />
+ <ui:param name="sourcetype" value="xml" />
+ </ui:include>
</div>
<p>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/jpeg.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/jpeg.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/examples/jpeg.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,14 @@
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+
+
+ <rich:separator height="1" style="padding:10px"/>
+ <a4j:mediaOutput element="img" cacheable="false" session="true"
+ createContent="#{mediaBean.paint}" value="#{mediaData}" mimeType="image/jpeg" />
+ <rich:separator height="1" style="padding:10px"/>
+
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput/usage.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,58 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>a4j:mediaOutput allows to generate images, video, sounds and other binary
+ resources defined by a user on-the-fly.
+ </p>
+ <p><b>createContent</b> attribute reference to the method that will be used
+ for content creating. The method accept two parameters. The first parameter
+ has an OutputStream type. It is a reference to the steam should be used for output.
+ The second parameter is a reference to 'value' attribute of the component.
+ </p>
+ <p>
+ <b>value</b> attribute references to data can be used as a input data for content
+ creator method. The data should be serializable because it is encoded to the URL
+ to the resource.
+ </p>
+ <p>
+ <b>mimeType</b> attribute defines the type of output content. It is used to define
+ the corresponded type in the header of HTTP response.
+ </p>
+ <p>
+ <b>cacheable</b> attribute is a flag that defines the caching strategy. If 'cachable'
+ is set to false, the request will be cached. If it is set to true, it will be cached
+ and the serialized value of 'value' attribute plays the role of cache key.
+ </p>
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/mediaOutput/examples/jpeg.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/mediaOutput/examples/jpeg.xhtml"/>
+ <ui:param name="openlabel" value="View Page Source" />
+ </ui:include>
+
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/media/MediaBean.java"/>
+ <ui:param name="openlabel" value="View MediaBean.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/media/MediaData.java"/>
+ <ui:param name="openlabel" value="View MediaData.java Source" />
+ <ui:param name="sourcetype" value="java" />
+ </ui:include>
+
+
+ </div>
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -0,0 +1,17 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Media Output</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/mediaOutput/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml 2007-08-20 22:50:19 UTC (rev 2361)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml 2007-08-21 01:07:29 UTC (rev 2362)
@@ -57,6 +57,7 @@
cursor:pointer;
display:block;
background-color:#E6F3F7;
+ text-decoration:none;
}
</style>
@@ -71,7 +72,9 @@
<rich:panel id="source1" bodyClass="viewsourcebody" headerClass="viewsourceheader" styleClass="viewsourcepanel" style="display:none">
<f:facet name="header">
<rich:spacer height="3px" />
- </f:facet>
+ </f:facet>
+
+
<div class="viewsourcediv">
<rich:insert src="#{sourcepath}" highlight="#{empty sourcetype? 'xhtml' : sourcetype }"/>
</div>
More information about the richfaces-svn-commits
mailing list