JBoss Rich Faces SVN: r2637 - trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples.
by richfaces-svn-commits@lists.jboss.org
Author: maksimkaszynski
Date: 2007-08-31 05:55:08 -0400 (Fri, 31 Aug 2007)
New Revision: 2637
Added:
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Placeholder.java
Log:
fixed build by adding placeholder
Added: trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Placeholder.java
===================================================================
--- trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Placeholder.java (rev 0)
+++ trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/Placeholder.java 2007-08-31 09:55:08 UTC (rev 2637)
@@ -0,0 +1,10 @@
+package org.richfaces.samples;
+
+/**
+ * Placeholder class - to build project with Maven
+ * @author Maksim Kaszynski
+ *
+ */
+public class Placeholder {
+
+}
\ No newline at end of file
17 years, 3 months
JBoss Rich Faces SVN: r2636 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-31 05:29:53 -0400 (Fri, 31 Aug 2007)
New Revision: 2636
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-524
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml 2007-08-31 00:41:00 UTC (rev 2635)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml 2007-08-31 09:29:53 UTC (rev 2636)
@@ -8,11 +8,11 @@
<ui:composition template="/templates/component-sample.xhtml">
<ui:define name="sample">
- <p>rich:virtualEarth presents the dynamically generated map based on the
+ <p>rich:virtualEarth presents a dynamically generated map based on the
Microsoft Virtual Earth API. API is a pure Javascript library. So, you do not need
to have any external program or plugin installed to make it working. The component
- allows to place the map on the page and define the initial parameters for it. You
- can use the Virtual Earth SDK to manipulate with map after that. The folowing links
+ allows to place the map on a page and define the initial parameters for it. You
+ can use the Virtual Earth SDK to manipulate with the map after that. The following links
helps you to be familiar to this technology:
<ul>
<li> <a href="http://dev.live.com/virtualearth/sdk/" target="_blank">
@@ -35,27 +35,27 @@
</div>
<p>
- <b>var</b> attribute define the javascript variable you can use then as a reference to the
+ <b>var</b> attribute define a javascript variable you can use then as a reference to the
map from your custom javascript.
</p>
<p>
- <b>lat</b> and <b>lng</b> attributes define the initial latitude and longitud of the
+ <b>lat</b> and <b>lng</b> attributes define the initial latitude and longitude of the
center of the map.
</p>
<p>
- <b>zoom</b> attributes define the initial zoom. The available range from 1 to
- 19 (close look). The maximum might depends of the location.
+ <b>zoom</b> attributes define the initial zoom. The available range from 1 to
+ 19 (close look). The maximum might depend of the location.
</p>
<p>
- <b>mapStyle</b> attributes define the initial map style. The available value for this
- attribute are "Road","Aerial","Hybrid","Birdseye". "Birdseye" is available for the limited
- number of location only.
+ <b>mapStyle</b> attributes define the initial map style. The available values for this
+ attribute are "Road","Aerial","Hybrid","Birdseye". "Birdseye", they are available for the limited
+ number of locations only.
</p>
<p>
Use <b>style</b> attribute to define the size of the map. For example, style="width:600px;height:400px".
</p>
<p>
- Virtual Earth does not support xhtml format of the page. So, if you use Facelets
+ Virtual Earth does not support xhtml format of the page. Thus, if you use Facelets
and JSF 1.2, do not forget <f:view contentType="text/html"> somewhere on the
page. To avoid re-initialization, do not re-render the component during Ajax
updates.
17 years, 3 months
JBoss Rich Faces SVN: r2635 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-08-30 20:41:00 -0400 (Thu, 30 Aug 2007)
New Revision: 2635
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/examples/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/examples/placeToGo.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
Log:
demo update. VirtualEarth has been added
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-31 00:09:02 UTC (rev 2634)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-08-31 00:41:00 UTC (rev 2635)
@@ -36,8 +36,8 @@
calendar= richInputs, Calendar, /images/ico_common.gif, /images/cn_Calendar.gif, RichFacesComponentsLibrary.html#calendar, jbossrichfaces/freezone/docs/tlddoc/rich/calendar.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UICalendar.html, /richfaces/calendar.jsf
message= richMisc, Message, /images/ico_common.gif, /images/cn_Message.gif, RichFacesComponentsLibrary.html#message, jbossrichfaces/freezone/docs/tlddoc/rich/message.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIMessage.html, /richfaces/message.jsf
messages= richMisc, Messages, /images/ico_common.gif, /images/cn_Messages.gif, RichFacesComponentsLibrary.html#messages, jbossrichfaces/freezone/docs/tlddoc/rich/messages.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIMessages.html, /richfaces/messages.jsf
-virtualEarth= richMisc, Virtual Earth, /images/ico_VirtualEarth.gif, /images/cn_VirtualEarth.gif, RichFacesComponentsLibrary.html#virtualEarth, jbossrichfaces/freezone/docs/tlddoc/rich/virtualEarth.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIVirtualEarth.html, /richfaces/comingSoon.jsf
-insert= richMisc, Insert, /images/ico_common.gif, /images/cn_insert.gif, RichFacesComponentsLibrary.html#insert, jbossrichfaces/freezone/docs/tlddoc/rich/insert.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIInsert.html, /richfaces/insert.jsf
+virtualEarth= richMisc, Virtual Earth, /images/ico_VirtualEarth.gif, /images/cn_VirtualEarth.gif, RichFacesComponentsLibrary.html#virtualEarth, jbossrichfaces/freezone/docs/tlddoc/rich/virtualEarth.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIVirtualEarth.html, /richfaces/virtualEarth.jsf
+insert= richMisc, Insert, /images/ico_common.gif, /images/cn_insert.gif, RichFacesComponentsLibrary.html#insert, jbossrichfaces/freezone/docs/tlddoc/rich/insert.html, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIInsert.html, /richfaces/insert.jsf
scrollableDataTable= richDataIterators, Scrollable Data Table, /images/ico_common.gif, /images/cn_ScrollableDataTable.gif, RichFacesComponentsLibrary.html#scrollableDataTable, jbossrichfaces/freezone/docs/tlddoc/rich/scrollableDataTable, jbossrichfaces/freezone/docs/apidoc/org/richfaces/component/UIscrollableDataTable.html, /richfaces/scrollableDataTable.jsf
ajaxattributes= ajaxSupport, Ajax Attributes, /images/ico_common.gif, /images/cn_ajaxAttributes.gif, ArchitectureOverview.html, jbossajax4jsf/freezone/docs/tlddoc/overview-summary.html, jbossajax4jsf/freezone/docs/apidoc/overview-summary.html, /richfaces/ajaxAttributes.jsf
actionparam= ajaxSupport, Action Parameter, /images/ico_common.gif, /images/cn_actionParameter.gif, RichFacesComponentsLibrary.html#actionparam, jbossajax4jsf/freezone/docs/tlddoc/a4j/actionparam.html, jbossajax4jsf/freezone/docs/apidoc/org/ajax4jsf/ajax/UIActionParameter.html, /richfaces/actionparam.jsf
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/examples/placeToGo.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/examples/placeToGo.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/examples/placeToGo.xhtml 2007-08-31 00:41:00 UTC (rev 2635)
@@ -0,0 +1,56 @@
+<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">
+
+ <f:view contentType="text/html">
+
+ <style type="text/css">
+ .col1 { width:510px; }
+ .col2 { vertical-align: top; }
+ </style>
+
+
+ <h:panelGrid columnClasses="col1, col2" columns="2">
+
+ <rich:virtualEarth id="gm" style="width:500px"
+ lat="37.9467" lng="-122.0238" dashboardSize="Normal"
+ zoom="17" mapStyle="Birdseye" var="map" />
+
+ <h:panelGroup>
+ Dashboard:<br />
+ <a href="javascript:void(0);" onclick="map.HideDashboard();return false;">Remove</a>
+ <a href="javascript:void(0);" onclick="map.ShowDashboard();return false;">Show</a>
+ <br /><br />
+ Type:<br/>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
+ <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
+ <br /><br />
+ Zoom:<br/>
+ <a href="javascript:void(0);" onclick="map.ZoomIn();return false;">In</a>
+ <a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
+ <br /><br />
+ <a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel, Inc. Office</a>
+
+ </h:panelGroup>
+
+
+ </h:panelGrid>
+
+ <script type="text/javascript">
+ function showExadel() {
+
+ var point = new VELatLong(37.9721046, -122.0424842834);
+ map.SetCenterAndZoom(point, 16);
+ map.SetMapStyle(VEMapStyle.Birdseye);
+
+ }
+
+ </script>
+
+ </f:view>
+</ui:composition>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth/usage.xhtml 2007-08-31 00:41:00 UTC (rev 2635)
@@ -0,0 +1,67 @@
+<!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>rich:virtualEarth presents the dynamically generated map based on the
+ Microsoft Virtual Earth API. API is a pure Javascript library. So, you do not need
+ to have any external program or plugin installed to make it working. The component
+ allows to place the map on the page and define the initial parameters for it. You
+ can use the Virtual Earth SDK to manipulate with map after that. The folowing links
+ helps you to be familiar to this technology:
+ <ul>
+ <li> <a href="http://dev.live.com/virtualearth/sdk/" target="_blank">
+ Virtual Earth Interactive SDK
+ </a>
+ </li>
+ <li> <a href="http://msdn2.microsoft.com/en-us/library/bb429619.aspx" target="_blank">
+ MSDN, Virtual Earth Map Control 5.0
+ </a>
+ </li>
+ </ul>
+ </p>
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/virtualEarth/examples/placeToGo.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/virtualEarth/examples/placeToGo.xhtml"/>
+ </ui:include>
+
+ </div>
+
+ <p>
+ <b>var</b> attribute define the javascript variable you can use then as a reference to the
+ map from your custom javascript.
+ </p>
+ <p>
+ <b>lat</b> and <b>lng</b> attributes define the initial latitude and longitud of the
+ center of the map.
+ </p>
+ <p>
+ <b>zoom</b> attributes define the initial zoom. The available range from 1 to
+ 19 (close look). The maximum might depends of the location.
+ </p>
+ <p>
+ <b>mapStyle</b> attributes define the initial map style. The available value for this
+ attribute are "Road","Aerial","Hybrid","Birdseye". "Birdseye" is available for the limited
+ number of location only.
+ </p>
+ <p>
+ Use <b>style</b> attribute to define the size of the map. For example, style="width:600px;height:400px".
+ </p>
+ <p>
+ Virtual Earth does not support xhtml format of the page. So, if you use Facelets
+ and JSF 1.2, do not forget <f:view contentType="text/html"> somewhere on the
+ page. To avoid re-initialization, do not re-render the component during Ajax
+ updates.
+ </p>
+
+ </ui:define>
+
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/virtualEarth.xhtml 2007-08-31 00:41:00 UTC (rev 2635)
@@ -0,0 +1,20 @@
+<!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 - Virtual Earth</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/virtualEarth/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/virtualEarth"/>
+ </ui:include>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
17 years, 3 months
JBoss Rich Faces SVN: r2634 - trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-30 20:09:02 -0400 (Thu, 30 Aug 2007)
New Revision: 2634
Modified:
trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-dropzone.js
Log:
http://jira.jboss.com/jira/browse/RF-749
http://jira.jboss.com/jira/browse/RF-787
Modified: trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-dropzone.js
===================================================================
--- trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-dropzone.js 2007-08-31 00:08:59 UTC (rev 2633)
+++ trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-dropzone.js 2007-08-31 00:09:02 UTC (rev 2634)
@@ -50,9 +50,6 @@
mouseover: function(event) {
if (window.drag){
this.dragEnter(event);
- if (this.options.ondragenter) {
- this.options.ondragenter.call(this, event);
- }
}
},
@@ -63,9 +60,6 @@
mouseout: function(event) {
if (window.drag){
this.dragLeave(event);
- if (this.options.ondragexit) {
- this.options.ondragexit.call(this, event);
- }
}
},
getAcceptedTypes: function() {
17 years, 3 months
JBoss Rich Faces SVN: r2633 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-30 20:08:59 -0400 (Thu, 30 Aug 2007)
New Revision: 2633
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js
Log:
http://jira.jboss.com/jira/browse/RF-749
http://jira.jboss.com/jira/browse/RF-787
Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2007-08-30 23:48:36 UTC (rev 2632)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2007-08-31 00:08:59 UTC (rev 2633)
@@ -37,7 +37,7 @@
}
if (this.mouseMoveProvidesButton && !Event.isLeftClick(event)) {
- this.endDrag();
+ this.endDrag(event);
}
}
},
@@ -199,7 +199,7 @@
var options = this.getDraggableOptions();
if (options && options.ondragstart) {
- options.ondragstart();
+ options.ondragstart(event);
}
// cancel out any text selections
@@ -237,7 +237,7 @@
var options = this.getDraggableOptions();
if (options && options.ondragend) {
- options.ondragend();
+ options.ondragend(event);
}
},
Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js 2007-08-30 23:48:36 UTC (rev 2632)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js 2007-08-31 00:08:59 UTC (rev 2633)
@@ -93,6 +93,12 @@
indicator.reject();
}
}
+
+ var opts = this.getDropzoneOptions();
+ if (opts && opts.ondragenter) {
+ opts.ondragenter.call(event);
+ }
+
},
@@ -111,6 +117,10 @@
indicator.leave();
}
+ var opts = this.getDropzoneOptions();
+ if (opts && opts.ondragexit) {
+ opts.ondragexit(event);
+ }
},
dragUp: function(event) {
17 years, 3 months
JBoss Rich Faces SVN: r2632 - in trunk: framework/api and 24 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-30 19:48:36 -0400 (Thu, 30 Aug 2007)
New Revision: 2632
Added:
trunk/samples/richfaces-ear-demo/
trunk/samples/richfaces-ear-demo/ejb/
trunk/samples/richfaces-ear-demo/ejb/pom.xml
trunk/samples/richfaces-ear-demo/ejb/src/
trunk/samples/richfaces-ear-demo/ejb/src/main/
trunk/samples/richfaces-ear-demo/ejb/src/main/java/
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/
trunk/samples/richfaces-ear-demo/ejb/src/main/java/org/richfaces/samples/
trunk/samples/richfaces-ear-demo/ejb/src/test/
trunk/samples/richfaces-ear-demo/ejb/src/test/java/
trunk/samples/richfaces-ear-demo/ejb/src/test/java/org/
trunk/samples/richfaces-ear-demo/ejb/src/test/java/org/richfaces/
trunk/samples/richfaces-ear-demo/ejb/src/test/java/org/richfaces/samples/
trunk/samples/richfaces-ear-demo/ejb/src/test/java/org/richfaces/samples/AppTest.java
trunk/samples/richfaces-ear-demo/pom.xml
trunk/samples/richfaces-ear-demo/richfacesEAR/
trunk/samples/richfaces-ear-demo/richfacesEAR/pom.xml
trunk/samples/richfaces-ear-demo/richfacesEAR/src/
trunk/samples/richfaces-ear-demo/richfacesEAR/src/main/
trunk/samples/richfaces-ear-demo/richfacesEAR/src/main/application/
trunk/samples/richfaces-ear-demo/webapp/
trunk/samples/richfaces-ear-demo/webapp/pom.xml
trunk/samples/richfaces-ear-demo/webapp/src/
trunk/samples/richfaces-ear-demo/webapp/src/main/
trunk/samples/richfaces-ear-demo/webapp/src/main/resources/
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/web.xml
trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp
Modified:
trunk/framework/api/pom.xml
trunk/framework/impl/pom.xml
trunk/framework/pom.xml
trunk/samples/pom.xml
trunk/ui/assembly/pom.xml
trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/html/AjaxPageRenderer.java
Log:
set maven-javadoc-plugin version to 2.2 , due to http://jira.codehaus.org/browse/MJAVADOC-141 .
auto detect contrnt-type in the a4j:page component
create reference JEE5 example.
Modified: trunk/framework/api/pom.xml
===================================================================
--- trunk/framework/api/pom.xml 2007-08-30 20:05:36 UTC (rev 2631)
+++ trunk/framework/api/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -1,12 +1,7 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <!--
- <parent>
- <artifactId>api-parent</artifactId>
- <groupId>org.richfaces.framework</groupId>
- <version>3.1.0-SNAPSHOT</version>
- <relativePath>../api-parent/pom.xml</relativePath>
- </parent>
- -->
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>framework</artifactId>
<groupId>org.richfaces</groupId>
@@ -15,11 +10,25 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-api</artifactId>
+ <name>Java Server Faces AJAX framework API</name>
<version>3.1.0-SNAPSHOT</version>
- <name>Java Server Faces AJAX framework API</name>
- <properties>
- <jsfVersion>1.1</jsfVersion>
- </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>attach-javadoc</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
<dependencies>
<dependency>
<groupId>junit</groupId>
@@ -43,18 +52,9 @@
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
+ <scope>provided</scope>
</dependency>
<dependency>
- <groupId>commons-beanutils</groupId>
- <artifactId>commons-beanutils</artifactId>
- <version>1.7.0</version>
- </dependency>
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.2</version>
- </dependency>
- <dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
@@ -70,6 +70,21 @@
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>1.2_03</version>
+ <scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-beanutils</groupId>
+ <artifactId>commons-beanutils</artifactId>
+ <version>1.7.0</version>
+ </dependency>
</dependencies>
-</project>
\ No newline at end of file
+ <properties>
+ <jsfVersion>1.1</jsfVersion>
+ </properties>
+</project>
+
Modified: trunk/framework/impl/pom.xml
===================================================================
--- trunk/framework/impl/pom.xml 2007-08-30 20:05:36 UTC (rev 2631)
+++ trunk/framework/impl/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -70,6 +70,19 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>attach-javadoc</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<profiles>
Modified: trunk/framework/pom.xml
===================================================================
--- trunk/framework/pom.xml 2007-08-30 20:05:36 UTC (rev 2631)
+++ trunk/framework/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -16,17 +16,6 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-javadoc</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
Modified: trunk/samples/pom.xml
===================================================================
--- trunk/samples/pom.xml 2007-08-30 20:05:36 UTC (rev 2631)
+++ trunk/samples/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -1,6 +1,5 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>root</artifactId>
<groupId>org.richfaces</groupId>
@@ -28,8 +27,7 @@
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<connectors>
- <connector
- implementation="org.mortbay.jetty.nio.SelectChannelConnector">
+ <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8080</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
@@ -357,7 +355,7 @@
<tomahawk>1.1.5</tomahawk>
</properties>
<build>
- <plugins />
+ <plugins/>
</build>
<dependencies>
<dependency>
@@ -433,5 +431,6 @@
<module>panelmenu-sample</module>
<module>rich-message-demo</module>
<module>scrollableDataTableDemo</module>
- </modules>
+ <module>richfaces-ear-demo</module>
+ </modules>
</project>
\ No newline at end of file
Added: trunk/samples/richfaces-ear-demo/ejb/pom.xml
===================================================================
--- trunk/samples/richfaces-ear-demo/ejb/pom.xml (rev 0)
+++ trunk/samples/richfaces-ear-demo/ejb/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -0,0 +1,57 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>richfaces-ear-demo</artifactId>
+ <groupId>org.richfaces.samples</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>ejb</artifactId>
+ <packaging>ejb</packaging>
+ <name>ejb</name>
+ <version>3.1.0-SNAPSHOT</version>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>javax.ejb</groupId>
+ <artifactId>ejb-api</artifactId>
+ <version>3.0</version>
+ <scope>provided</scope>
+ <optional>true</optional>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-ejb-plugin</artifactId>
+ <configuration>
+ <!-- this is false by default -->
+ <generateClient>true</generateClient>
+ <ejbVersion>3.0</ejbVersion>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Property changes on: trunk/samples/richfaces-ear-demo/ejb/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/richfaces-ear-demo/ejb/src/test/java/org/richfaces/samples/AppTest.java
===================================================================
--- trunk/samples/richfaces-ear-demo/ejb/src/test/java/org/richfaces/samples/AppTest.java (rev 0)
+++ trunk/samples/richfaces-ear-demo/ejb/src/test/java/org/richfaces/samples/AppTest.java 2007-08-30 23:48:36 UTC (rev 2632)
@@ -0,0 +1,38 @@
+package org.richfaces.samples;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
Property changes on: trunk/samples/richfaces-ear-demo/ejb/src/test/java/org/richfaces/samples/AppTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/richfaces-ear-demo/pom.xml
===================================================================
--- trunk/samples/richfaces-ear-demo/pom.xml (rev 0)
+++ trunk/samples/richfaces-ear-demo/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <parent>
+ <artifactId>root</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples</groupId>
+ <artifactId>richfaces-ear-demo</artifactId>
+ <name>JSF 1.2/Jee5 enterprise application demo</name>
+ <packaging>pom</packaging>
+ <version>3.1.0-SNAPSHOT</version>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <inherited>true</inherited>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ <modules>
+ <module>ejb</module>
+ <module>webapp</module>
+ <module>richfacesEAR</module>
+ </modules>
+</project>
\ No newline at end of file
Property changes on: trunk/samples/richfaces-ear-demo/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/richfaces-ear-demo/richfacesEAR/pom.xml
===================================================================
--- trunk/samples/richfaces-ear-demo/richfacesEAR/pom.xml (rev 0)
+++ trunk/samples/richfaces-ear-demo/richfacesEAR/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -0,0 +1,54 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>richfaces-ear-demo</artifactId>
+ <groupId>org.richfaces.samples</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>richfacesEAR</artifactId>
+ <name>richfacesEAR</name>
+ <packaging>ear</packaging>
+ <version>3.1.0-SNAPSHOT</version>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>ejb</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <type>ejb</type>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>webapp</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <type>war</type>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-ear-plugin</artifactId>
+ <configuration>
+ <defaultLibBundleDir>lib</defaultLibBundleDir>
+ <modules>
+ <ejbModule>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>ejb</artifactId>
+ <bundleDir>/</bundleDir>
+ </ejbModule>
+ <jarModule>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <includeInApplicationXml>
+ true
+ </includeInApplicationXml>
+ <bundleDir>/</bundleDir>
+ </jarModule>
+ </modules>
+ <version>5</version>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Property changes on: trunk/samples/richfaces-ear-demo/richfacesEAR/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/richfaces-ear-demo/webapp/pom.xml
===================================================================
--- trunk/samples/richfaces-ear-demo/webapp/pom.xml (rev 0)
+++ trunk/samples/richfaces-ear-demo/webapp/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -0,0 +1,76 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>richfaces-ear-demo</artifactId>
+ <groupId>org.richfaces.samples</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>webapp</artifactId>
+ <packaging>war</packaging>
+ <name>webapp Maven Webapp</name>
+ <version>3.1.0-SNAPSHOT</version>
+ <url>http://maven.apache.org</url>
+ <build>
+ <finalName>webapp</finalName>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.samples.richfaces-ear-demo</groupId>
+ <artifactId>ejb</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <type>ejb-client</type>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.facelets</groupId>
+ <artifactId>jsf-facelets</artifactId>
+ <version>1.1.12</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <version>2.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <version>1.2_04</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <version>1.2_04</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Property changes on: trunk/samples/richfaces-ear-demo/webapp/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/faces-config.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>bean</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.Bean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>text</property-name>
+ <property-class>java.lang.String</property-class>
+ <null-value/>
+ </managed-property>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>repeatData</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.RepeatData</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>enclosedData</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.EnclosedData</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>a4jTestBean</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.A4jTestBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>messageBean</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.MessageBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>dataManager</managed-bean-name>
+ <managed-bean-class>control.test.ControlBackingBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+ <managed-bean>
+ <managed-bean-name>delme</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.TestBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
+
+ <navigation-rule>
+ <navigation-case>
+ <from-outcome>verify_cookie</from-outcome>
+ <to-view-id>/pages/testCookie.xhtml</to-view-id>
+ <redirect/>
+ </navigation-case>
+ </navigation-rule>
+</faces-config>
Property changes on: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/web.xml (rev 0)
+++ trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/web.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <display-name>Archetype Created Web Application</display-name>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
+ <param-value>com.sun.facelets.FaceletViewHandler</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.VIEW_MAPPINGS</param-name>
+ <param-value>*.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <!--
+ -->
+ <filter>
+ <display-name>Ajax4jsf Filter</display-name>
+ <filter-name>ajax4jsf</filter-name>
+ <filter-class>org.ajax4jsf.FastFilter</filter-class>
+ </filter>
+ <filter-mapping>
+ <filter-name>ajax4jsf</filter-name>
+ <servlet-name>Faces Servlet</servlet-name>
+ <dispatcher>REQUEST</dispatcher>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>INCLUDE</dispatcher>
+ </filter-mapping>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>/faces/*</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Property changes on: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp
===================================================================
--- trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp (rev 0)
+++ trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp 2007-08-30 23:48:36 UTC (rev 2632)
@@ -0,0 +1,5 @@
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>
Property changes on: trunk/samples/richfaces-ear-demo/webapp/src/main/webapp/index.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/ui/assembly/pom.xml
===================================================================
--- trunk/ui/assembly/pom.xml 2007-08-30 20:05:36 UTC (rev 2631)
+++ trunk/ui/assembly/pom.xml 2007-08-30 23:48:36 UTC (rev 2632)
@@ -1,193 +1,202 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <parent>
- <artifactId>ui</artifactId>
- <groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>richfaces-ui</artifactId>
- <name>RichFaces JSF components library</name>
- <packaging>jar</packaging>
- <build>
- <plugins>
- <plugin>
- <groupId>org.richfaces.cdk</groupId>
- <artifactId>maven-cdk-plugin</artifactId>
- <version>3.1.0-SNAPSHOT</version>
- <configuration>
- <library>
- <prefix>org.richfaces</prefix>
- <description>RichFaces components</description>
- <taglibs>
- <taglib>
- <shortName>richfaces</shortName>
- <taglib>richfaces</taglib>
- <uri>
- http://richfaces.ajax4jsf.org/rich
- </uri>
- <displayName>RichFaces ( Legacy URL )</displayName>
- <excludeModules>core</excludeModules>
- </taglib>
- <taglib>
- <shortName>rich</shortName>
- <taglib>rich</taglib>
- <uri>
- http://richfaces.org/rich
- </uri>
- <displayName>RichFaces</displayName>
- <excludeModules>core</excludeModules>
- </taglib>
- <taglib>
- <shortName>a4j</shortName>
- <taglib>ajax4jsf</taglib>
- <uri>
- http://richfaces.org/a4j
- </uri>
- <displayName>Ajax4Jsf</displayName>
- <includeModules>core</includeModules>
- </taglib>
- <taglib>
- <shortName>ajax</shortName>
- <taglib>a4j</taglib>
- <uri>
- https://ajax4jsf.dev.java.net/ajax
- </uri>
- <displayName>Ajax4jsf ( Legacy URL )</displayName>
- <includeModules>core</includeModules>
- </taglib>
- </taglibs>
- </library>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>assembly</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- append extracted sources , for pack with library -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>process-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>
- ${project.build.directory}/src
- </source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>net.sourceforge.maven-taglib</groupId>
- <artifactId>maven-taglib-plugin</artifactId>
- <configuration>
- <taglib.src.dir>
- ${project.build.outputDirectory}/META-INF
- </taglib.src.dir>
- <tldDocDir>
- ${project.build.directory}/tlddoc
- </tldDocDir>
- </configuration>
-
- <executions>
- <execution>
- <id>attach-javadoc</id>
- <phase>process-resources</phase>
- <goals>
- <goal>taglibdocjar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-javadoc</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>unpack</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.richfaces.docs.userguide</groupId>
- <artifactId>
- en
- </artifactId>
- <version>
- ${project.version}
- </version>
- <type>war</type>
- <classifier>pdf</classifier>
- <outputDirectory>
- ${project.build.directory}/docs/userguide/en
- </outputDirectory>
- </artifactItem>
- </artifactItems>
- <outputDirectory>
- ${project.build.directory}/docs
- </outputDirectory>
- <overWriteReleases>
- false
- </overWriteReleases>
- <overWriteSnapshots>
- true
- </overWriteSnapshots>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <outputDirectory>${project.build.directory}/dist</outputDirectory>
- <descriptors>
- <descriptor>${basedir}/src/main/assembly/richfaces.xml</descriptor>
- <descriptor>${basedir}/src/main/assembly/src.xml</descriptor>
- </descriptors>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <goals>
- <goal>attached</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <outputDirectory>${project.build.directory}/dist</outputDirectory>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- </dependencies>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <name>RichFaces JSF components library</name>
+ <packaging>jar</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <description>RichFaces components</description>
+ <taglibs>
+ <taglib>
+ <shortName>richfaces</shortName>
+ <taglib>richfaces</taglib>
+ <uri>
+ http://richfaces.ajax4jsf.org/rich
+ </uri>
+ <displayName>
+ RichFaces ( Legacy URL )
+ </displayName>
+ <excludeModules>core</excludeModules>
+ </taglib>
+ <taglib>
+ <shortName>rich</shortName>
+ <taglib>rich</taglib>
+ <uri>http://richfaces.org/rich</uri>
+ <displayName>RichFaces</displayName>
+ <excludeModules>core</excludeModules>
+ </taglib>
+ <taglib>
+ <shortName>a4j</shortName>
+ <taglib>ajax4jsf</taglib>
+ <uri>http://richfaces.org/a4j</uri>
+ <displayName>Ajax4Jsf</displayName>
+ <includeModules>core</includeModules>
+ </taglib>
+ <taglib>
+ <shortName>ajax</shortName>
+ <taglib>a4j</taglib>
+ <uri>
+ https://ajax4jsf.dev.java.net/ajax
+ </uri>
+ <displayName>
+ Ajax4jsf ( Legacy URL )
+ </displayName>
+ <includeModules>core</includeModules>
+ </taglib>
+ </taglibs>
+ </library>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>assembly</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- append extracted sources , for pack with library -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>add-source</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>
+ ${project.build.directory}/src
+ </source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>net.sourceforge.maven-taglib</groupId>
+ <artifactId>maven-taglib-plugin</artifactId>
+ <configuration>
+ <taglib.src.dir>
+ ${project.build.outputDirectory}/META-INF
+ </taglib.src.dir>
+ <tldDocDir>
+ ${project.build.directory}/tlddoc
+ </tldDocDir>
+ </configuration>
+
+ <executions>
+ <execution>
+ <id>attach-javadoc</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>taglibdocjar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.2</version>
+ <executions>
+ <execution>
+ <id>attach-javadoc</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>
+ org.richfaces.docs.userguide
+ </groupId>
+ <artifactId>en</artifactId>
+ <version>
+ ${project.version}
+ </version>
+ <type>war</type>
+ <classifier>pdf</classifier>
+ <outputDirectory>
+ ${project.build.directory}/docs/userguide/en
+ </outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>
+ ${project.build.directory}/docs
+ </outputDirectory>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>
+ true
+ </overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <outputDirectory>
+ ${project.build.directory}/dist
+ </outputDirectory>
+ <descriptors>
+ <descriptor>
+ ${basedir}/src/main/assembly/richfaces.xml
+ </descriptor>
+ <descriptor>
+ ${basedir}/src/main/assembly/src.xml
+ </descriptor>
+ </descriptors>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <outputDirectory>
+ ${project.build.directory}/dist
+ </outputDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies></dependencies>
</project>
\ No newline at end of file
Modified: trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/html/AjaxPageRenderer.java
===================================================================
--- trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/html/AjaxPageRenderer.java 2007-08-30 20:05:36 UTC (rev 2631)
+++ trunk/ui/core/src/main/java/org/ajax4jsf/renderkit/html/AjaxPageRenderer.java 2007-08-30 23:48:36 UTC (rev 2632)
@@ -23,6 +23,7 @@
import java.io.IOException;
import java.util.HashMap;
+import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
@@ -117,14 +118,24 @@
String contentType = null;
String namespace = null;
// String characterEncoding = out.getCharacterEncoding();
+ String[] docType = null;
if (null != format) {
- String[] docType = (String[]) doctypes.get(format);
- if (null != docType) {
- contentType = docType[1];
- namespace = docType[2];
- out.write(docType[0]);
+ docType = (String[]) doctypes.get(format);
+ } else {
+ contentType = out.getContentType();
+ for (Iterator iterator = doctypes.values().iterator(); iterator.hasNext();) {
+ String[] types = (String[]) iterator.next();
+ if(types[1].equals(contentType)){
+ docType = types;
+ break;
+ }
}
}
+ if (null != docType) {
+ contentType = docType[1];
+ namespace = docType[2];
+ out.write(docType[0]);
+ }
if (null == contentType) {
contentType = (String) attributes.get("contentType");
}
17 years, 3 months
JBoss Rich Faces SVN: r2631 - trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-30 16:05:36 -0400 (Thu, 30 Aug 2007)
New Revision: 2631
Modified:
trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-785
Modified: trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java
===================================================================
--- trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-08-30 18:34:22 UTC (rev 2630)
+++ trunk/ui/tabPanel/src/main/java/org/richfaces/renderkit/TabPanelRendererBase.java 2007-08-30 20:05:36 UTC (rev 2631)
@@ -297,6 +297,8 @@
context.getExternalContext().log(message);
tabPanel.setRenderedValue(activeTab.getName());
+ } else if (checkedValue == null) {
+ tabPanel.setRenderedValue(activeTab.getName());
} else {
tabPanel.setRenderedValue(null);
}
17 years, 3 months
JBoss Rich Faces SVN: r2630 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-30 14:34:22 -0400 (Thu, 30 Aug 2007)
New Revision: 2630
Added:
trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/messages.xml
trunk/docs/userguide/en/src/main/resources/images/messages.png
Log:
http://jira.jboss.com/jira/browse/RF-568
Added: trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/messages.desc.xml 2007-08-30 18:34:22 UTC (rev 2630)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>messages</keyword>
+ </keywordset>
+ </sectioninfo>
+ <section>
+ <title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> component is similar to <emphasis role="bold">
+ <property><rich:message></property>
+ </emphasis> component but used for rendering all messages for components.</para>
+ <figure>
+ <title>Message component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/messages.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>Highly customizable look and feel</listitem>
+ <listitem>Track both traditional and ajax based requests</listitem>
+ <listitem>Optional tooltip to display the detail portion of the messages</listitem>
+ <listitem>Additionally customizable via attributes and facets</listitem>
+ <listitem>Additionally provides of three parts to be optionally defined: marker, label and header</listitem>
+ </itemizedlist>
+ </section>
+</section>
Added: trunk/docs/userguide/en/src/main/docbook/included/messages.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/messages.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/messages.xml 2007-08-30 18:34:22 UTC (rev 2630)
@@ -0,0 +1,216 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>messages</keyword>
+ <keyword>rich:messages</keyword>
+ <keyword>HtmlMessages</keyword>
+ </keywordset>
+ </sectioninfo>
+
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.component.RichMessages</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlRichMessages</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.component.RichMessages</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.renderkit.html.HtmlRichMessagesRendere</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.RichMessagesTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>To create the simplest variant of <property>message</property> on a page, use the
+ following syntax:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:messages/>
+...
+]]></programlisting>
+ </section>
+
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlRichMessages;
+...
+HtmlRichMessages myMessages = new HtmlRichMessages();
+...
+]]></programlisting>
+ </section>
+
+ <section>
+ <title>Details of Usage</title>
+ <para> The component has the same behavior as standard <emphasis role="bold">
+ <property><h:message></property>
+ </emphasis>component except next features: <itemizedlist>
+ <listitem>It's ajaxRendered. It means that the component is reRendered after Ajax
+ request automatically without outputPanel usage.</listitem>
+ <listitem>The component optionally provides "passed" state which will be
+ shown if no message to be displayed.</listitem>
+ <listitem>Provides possibility to add some marker to message. By default marker element
+ isn't shown.</listitem>
+ </itemizedlist>
+ </para>
+ <para>Component provides three parts to be optionally defined: marker, informational label
+ before the marker for the every message and header element placed before the messages list.
+ Header and marker are optional. They don't present by default for compatibility with standard
+ messages. Labels are displayed for errors and one passed label is displayed optionally (if it's
+ defined) when no errors occured.</para>
+ <para> Set of facet which can be used for marker defining: <itemizedlist>
+ <listitem>header. This facet defines additional content to be displayed near the list. Header is positioned on top of the messages component.</listitem>
+ <listitem>passedHeader. This facet is provided to allow end developer set a header content to be displayed if there are no messages.</listitem>
+ <listitem>passedMarker. This facet is provided to allow set a marker to be displayed if there is no message.</listitem>
+ <listitem>errorMarker. This facet is provided to allow set a marker to be displayed if there is a message with a severity class of "ERROR".</listitem>
+ <listitem>fatalMarker. This facet is provided to allow set a marker to be displayed if there is a message with a severity class of "FATAL".</listitem>
+ <listitem>infoMarker. This facet is provided to allow set a marker to be displayed if there is a message with a severity class of "INFO".</listitem>
+ <listitem>warnMarker. This facet is provided to allow set a marker to be displayed if there is an message with a severity class of "WARN".</listitem>
+ </itemizedlist>
+ </para>
+
+ <para>The following example shows different variants of customization of the component.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:messages layout="table" tooltip="true" showDetail="false" showSummary="true" passedLabel="No Errors" var="messages">
+ <f:facet name="header">
+ <h:outputText value="Messages:"/>
+ </f:facet>
+ <f:facet name="passedHeader">
+ <h:outputText value="No errors"/>
+ </f:facet>
+ <f:facet name="errorMarker">
+ <h:graphicImage url="/image/error.gif"/>
+ </f:facet>
+ <f:facet name="infoMarker">
+ <h:graphicImage url="/image/info.gif"/>
+ </f:facet>
+ <f:facet name="passedMarker">
+ <h:graphicImage url="/image/passed.gif"/>
+ </f:facet>
+ </rich:messages>
+...
+]]></programlisting>
+
+ </section>
+
+ <section>
+ <title>Look-and-Feel Customization</title>
+
+ <para>For skinnability implementation, the components use a style class redefinition method.
+ Default style classes are mapped on skin parameters.</para>
+
+ <para>To redefine appearance of all <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> components, you may define the properties of the predefined style classes in the
+ common CSS style sheet used on the page (there are no skin parameters and predefined values by
+ default to make it compatible with the standard message component). </para>
+ </section>
+
+ <section>
+ <title>Definition of Custom Style Classes</title>
+
+ <figure>
+ <title>Classes names</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/messages1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>On the screenshot, there are classes names defining specified elements.</para>
+
+ <table>
+ <title>Component skin class</title>
+
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+
+ <entry>Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry>rich-messages</entry>
+
+ <entry>Defines styles for outer element</entry>
+ </row>
+
+ <row>
+ <entry>rich-messages-marker</entry>
+
+ <entry>Defines styles for icon element</entry>
+ </row>
+
+ <row>
+ <entry>rich-messages-label</entry>
+
+ <entry>Defines styles for informational label element</entry>
+ </row>
+
+ <row>
+ <entry>rich-messages-header</entry>
+
+ <entry>Defines styles for header element</entry>
+ </row>
+
+ <row>
+ <entry>rich-passed</entry>
+
+ <entry>Defines styles for all messages elements (marker, label, header)</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>In order to redefine the style for <emphasis role="bold">
+ <property><rich:message></property>
+ </emphasis> components on a page using CSS, it's enough to create classes with the
+ same names and define the necessary properties in them.</para>
+
+ <para>To change the style of particular <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> components define your own style classes in the corresponding <emphasis role="bold">
+ <property><rich:messages></property>
+ </emphasis> attributes.
+ </para>
+ </section>
+</section>
Added: trunk/docs/userguide/en/src/main/resources/images/messages.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/messages.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 3 months
JBoss Rich Faces SVN: r2628 - in trunk/docs/userguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-08-30 14:30:24 -0400 (Thu, 30 Aug 2007)
New Revision: 2628
Added:
trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/treeNodes.xml
trunk/docs/userguide/en/src/main/resources/images/treeNodes1.png
Log:
http://jira.jboss.com/jira/browse/RF-658
Added: trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNodes.desc.xml 2007-08-30 18:30:24 UTC (rev 2628)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>treeNodes</keyword>
+ </keywordset>
+ </sectioninfo>
+ <section>
+ <title>Description</title>
+ <para>
+ The <property>rich:treeNodes</property> provides possibility to combine <property>rich:treeNode</property>
+ to logical groups.
+ </para>
+
+ <figure>
+ <title>Expanded tree with treeNodes</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/treeNodes1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>Allows to define set of nodes</listitem>
+ <listitem>No developers JavaScript writing needed to use on the pages</listitem>
+ <listitem>Built-in Ajax processing</listitem>
+ </itemizedlist>
+ </section>
+</section>
Added: trunk/docs/userguide/en/src/main/docbook/included/treeNodes.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNodes.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNodes.xml 2007-08-30 18:30:24 UTC (rev 2628)
@@ -0,0 +1,183 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>treeNodes</keyword>
+ <keyword>rich:treeNodes</keyword>
+ <keyword>HtmlTreeNodes</keyword>
+ </keywordset>
+ </sectioninfo>
+
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.TreeNodes</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlTreeNodes</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.TreeNodes</entry>
+ </row>
+ <!--
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.EffectRenderer</entry>
+ </row>
+ -->
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.TreeNodesTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>To create the simplest variant of <property>rich:treeNodes</property> on a page, use the
+ following syntax:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<rich:treeNodes var="issue" nodes="#{model.issues}">
+ ...
+ <rich:treeNode>
+ <!-- node content -->
+ </rich:treeNode>
+ ...
+ <!-- Others nodes -->
+ ...
+</rich:treeNodes>
+...
+]]></programlisting>
+ </section>
+
+ <section>
+ <title>Creating the Component Dynamically Using Java</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlTreeNodes;
+...
+HtmlTreeNodes myTreeNodes = new HtmlTreeNodes();
+...
+]]></programlisting>
+ </section>
+<!--
+ <section>
+ <title>Details of Usage</title>
+<para>
+ It is possible to use <property><rich:effect></property> in two modes:
+<itemizedlist>
+ <listitem>attached to the JSF components or html tags and triggered by particular event.
+ Wiring effect with JSF components might be occurs on the server or client.
+ Wiring with html tag is possible only on the client side </listitem>
+ <listitem>invoking from the javascript code by effect name.
+ During the rendering, <property>rich:effect</property> generates the javascript function with defined name. When the function is called,
+ the effect is applied </listitem>
+</itemizedlist>
+</para>
+ <para>
+ <emphasis role="bold">Those a the typical variants of using:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+
+<rich:panel>
+ <rich:effect event="onmouseout" type="Opacity" params="duration:0.8,from:1.0,to:0.3" />
+ .... panel content ....
+</rich:panel>
+...
+
+
+<div id="contentDiv">
+ ..... div content ......
+</div>
+
+<input type="button" onclick="hideDiv({duration:0.7})" value="Hide" />
+<input type="button" onclick="showDiv()" value="Show" />
+
+<rich:effect name="hideDiv" for="contentDiv" type="Fade" />
+<rich:effect name="showDiv" for="contentDiv" type="Appear" />
+
+
+<rich:effect for="window" event="onload" type="Appear" params="id:'contentDiv',duration:0.8,from:0.3,to:1.0" />
+...
+]]></programlisting>
+
+ <figure>
+ <title>Initial:</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/effect1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <figure>
+ <title>When the mouse cursor is over:</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/effect0.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+<para>
+<emphasis><property>"name"</property></emphasis> attribute defines the name of the javascript function will
+be generated on the page when the component is rendered. You can invoke this function to activate the effect. The function access one parameter.
+It is a set of effect options in JSON format.
+</para>
+
+<para>
+<emphasis><property>"type"</property></emphasis> attribute defines the type of effect. For example, "Fade", "Blind", "Opacity". Take a look at scriptaculous documentation
+for set of available effect.
+</para>
+
+<para>
+<emphasis><property>"for"</property></emphasis> attribute defines the id of the component or html tag, the effect will be attached to.
+Richfaces converts the <emphasis><property>"for"</property></emphasis> attribute value to the client id of the component if such component is found. If not, the value is left as is for possible
+wiring with on the DOM element's id on the client side.
+By default, the target of the effect is the same element that effect pointed to. However, the target element
+is might be overridden with <emphasis><property>"effectId"</property></emphasis> option passed with <emphasis><property>"params"</property></emphasis>
+attribute of with function paramenter.
+</para>
+
+<para>
+<emphasis><property>"params"</property></emphasis> attribute allows to define the set of options possible for particurar effect.
+For example, 'duration', 'delay', 'from', 'to'. Additionally to the options used by the effect itself, there are two option that might override
+the <property>rich:effect</property> attribute. Those are:
+<itemizedlist>
+ <listitem><emphasis><property>"effectId"</property></emphasis> allows to re-define the target of effect.
+ The option is overrire the value of <emphasis><property>"for"</property></emphasis> attribute</listitem>
+ <listitem><emphasis><property>"effectType"</property></emphasis> defines the effect type.
+ The option is overrire the value of <emphasis><property>"type"</property></emphasis> attribute</listitem>
+</itemizedlist>
+</para>
+
+ </section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/effect.jsf?c=effect">Here</ulink>
+ you can see the example of <emphasis role="bold"><rich:effect></emphasis> usage. </para>
+ </section>
+
+ -->
+</section>
Added: trunk/docs/userguide/en/src/main/resources/images/treeNodes1.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/userguide/en/src/main/resources/images/treeNodes1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 3 months