JBoss Rich Faces SVN: r2197 - in trunk/test-applications/jsp/src/main: webapp/DragAndDrop and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-08-10 09:52:58 -0400 (Fri, 10 Aug 2007)
New Revision: 2197
Removed:
trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DnD.jsp
Modified:
trunk/test-applications/jsp/src/main/java/gmap/Gmap.java
trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp
trunk/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
Log:
added new attribute (gmap)
update face-config
Modified: trunk/test-applications/jsp/src/main/java/gmap/Gmap.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/gmap/Gmap.java 2007-08-10 13:18:31 UTC (rev 2196)
+++ trunk/test-applications/jsp/src/main/java/gmap/Gmap.java 2007-08-10 13:52:58 UTC (rev 2197)
@@ -1,22 +1,53 @@
package gmap;
-
public class Gmap {
- String zoom;
+ private String zoom;
+ private String continuousZoom;
+ private String doubleClickZoom;
+ private String dragging;
- public String getZoom() {
- return zoom;
- }
+ public Gmap() {
+ continuousZoom = "false";
+ doubleClickZoom = "false";
+ dragging = "false";
+ }
- public void setZoom(String zoom) {
- this.zoom = zoom;
- }
+ public String getZoom() {
+ return zoom;
+ }
- public String act() {
- zoom = "17";
- System.out.println("zoom="+zoom);
- return null;
- }
+ public void setZoom(String zoom) {
+ this.zoom = zoom;
+ }
+
+ public String act() {
+ zoom = "17";
+ System.out.println("zoom=" + zoom);
+ return null;
+ }
+
+ public String getContinuousZoom() {
+ return continuousZoom;
+ }
+
+ public void setContinuousZoom(String continuousZoom) {
+ this.continuousZoom = continuousZoom;
+ }
+
+ public String getDoubleClickZoom() {
+ return doubleClickZoom;
+ }
+
+ public void setDoubleClickZoom(String doubleClickZoom) {
+ this.doubleClickZoom = doubleClickZoom;
+ }
+
+ public String getDragging() {
+ return dragging;
+ }
+
+ public void setDragging(String dragging) {
+ this.dragging = dragging;
+ }
}
-
Deleted: trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DnD.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DnD.jsp 2007-08-10 13:18:31 UTC (rev 2196)
+++ trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DnD.jsp 2007-08-10 13:52:58 UTC (rev 2197)
@@ -1,258 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
-<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
-<html>
-<head>
-<title></title>
-<style type="text/css">
- .dropzoneDecoration {
- width: 100px; height: 100px; border: 2px dotted navy;
- }
-
- .accept {
- border: 3px dotted green;
- padding: 10px;
- }
-
- .reject {
- border: 3px dashed red;
- padding: 10px;
- }
- </style>
-</head>
-<body>
-<f:view>
- <h:form id="form">
-
- <h:panelGroup id="dragValueText">
- <h:outputText value="#{bean.dragValue}" />
- </h:panelGroup>
-
- <h:panelGrid columns="3">
- <h:dataTable var="type" value="#{bean.types}">
- <h:column>
- <h:panelGrid styleClass="dropzoneDecoration" id="drop1">
- <h:outputText value="#{type} - drop" />
-
- <rich:dropSupport reRender="dragValueText"
- action="#{bean.dropAction}" acceptedTypes="#{type}"
- dropListener="#{bean.processDrop}" dropValue="#{type} - value">
- <a4j:actionparam value="#{type} - test drop param"
- assignTo="#{bean.testParam}" />
- </rich:dropSupport>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
-
- <h:dataTable var="type" value="#{bean.types}">
- <h:column>
- <h:panelGrid styleClass="dropzoneDecoration" id="drag1">
- <h:outputText value="#{type} - drag" />
- <rich:dragSupport dragType="#{type}" dragValue="#{type} - value"
- action="#{bean.dragAction}" dragListener="#{bean.processDrag}">
- <a4j:actionparam value="#{type} - test drag param"
- assignTo="#{bean.testParam}" />
- </rich:dragSupport>
-
- </h:panelGrid>
- </h:column>
- </h:dataTable>
-
- <h:dataTable var="type" value="#{bean.types}">
- <h:column>
- <h:panelGrid styleClass="dropzoneDecoration" id="drop2">
- <h:outputText value="#{type} - drop" />
-
- <rich:dropSupport reRender="dragValueText"
- action="#{bean.dropAction}" acceptedTypes="#{type}"
- dropListener="#{bean.processDrop}" dropValue="#{type} - value">
- </rich:dropSupport>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
- </h:panelGrid>
-
- <rich:dragIndicator id="indicator" acceptClass="accept"
- rejectClass="reject">
- <f:facet name="single">
- <f:verbatim>
- {marker} <b>{testDrag}</b> {label}
- </f:verbatim>
- </f:facet>
-
- <rich:dndParam name="accept" value="ACCEPT:" />
-
- <rich:dndParam name="reject">
- <f:verbatim>
- <i style="text-decoration: line-through;">REJECT:</i>
- </f:verbatim>
- </rich:dndParam>
- </rich:dragIndicator>
-
- <h:panelGrid columns="1" style="position: relative; left: 140px;">
- <h:panelGrid columns="1"
- style="position: absolute; top: 30px; left: 300px;">
- <rich:dragIndicator id="defaultIndicator">
- </rich:dragIndicator>
- </h:panelGrid>
- </h:panelGrid>
-
- <h:panelGrid columns="4" cellspacing="20">
- <h:panelGrid styleClass="dropzoneDecoration" id="grid1">
- <f:verbatim>
- Accepts file & folder... Customizes
- </f:verbatim>
-
- <rich:dropSupport id="zone1"
- ondrop="var zone = $('form:grid1'); zone.style.borderColor= 'red'; setTimeout( function() { this.style.borderColor= 'navy'; }.bind(zone), 300);"
- acceptedTypes="file, folder" typeMapping="{file: testDrop}">
- <rich:dndParam name="testDrop">
- <h:graphicImage height="16" width="16"
- value="/pics/file-manager.png" />
- </rich:dndParam>
-
- </rich:dropSupport>
- </h:panelGrid>
-
-
- <h:panelGrid styleClass="dropzoneDecoration" id="grid2">
- <f:verbatim>
- Accepts none
- </f:verbatim>
-
- <rich:dropSupport>
- </rich:dropSupport>
- </h:panelGrid>
-
- <h:panelGrid styleClass="dropzoneDecoration" id="grid3">
- <f:verbatim>
- Accepts none... Customizes
- </f:verbatim>
-
- <rich:dropSupport typeMapping="{file: testDrop}">
- <rich:dndParam name="testDrop">
- <h:graphicImage height="16" width="16"
- value="/pics/file-manager-reject.png" />
- </rich:dndParam>
-
- </rich:dropSupport>
- </h:panelGrid>
-
- <h:panelGrid styleClass="dropzoneDecoration" id="grid4">
- <f:verbatim>
- Accepts file & folder
- </f:verbatim>
- <rich:dropSupport acceptedTypes="file, folder">
- <rich:dndParam name="testDrop" value="testDropValue" />
-
- </rich:dropSupport>
- </h:panelGrid>
-
- <h:panelGrid id="grid5">
- <rich:dragSupport dragType="file">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue" />
-
- </rich:dragSupport>
- <f:verbatim>File Draggable - no indicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid6">
- <rich:dragSupport dragType="file" dragIndicator="indicator">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue" />
-
- </rich:dragSupport>
- <f:verbatim>File Draggable with indicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid7">
- <rich:dragSupport dragType="folder" dragIndicator="indicator">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue for Folder" />
-
- </rich:dragSupport>
- <f:verbatim>Folder Draggable with indicator</f:verbatim>
- </h:panelGrid>
-
- <h:outputText />
-
- <h:panelGrid id="grid8">
- <rich:dragSupport dragType="folder">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue for Folder" />
-
- </rich:dragSupport>
- <f:verbatim>Folder Draggable - no indicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid9">
- <rich:dragSupport dragType="file" dragIndicator="defaultIndicator">
- <rich:dndParam name="testDrag" type="drop" value="testDragValue" />
-
- <rich:dndParam name="marker" value="testMarkerValue" />
- <rich:dndParam name="label" value="testDragValue" />
-
- </rich:dragSupport>
- <f:verbatim>File Draggable with defaultIndicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid10">
- <rich:dragSupport dragType="folder" dragIndicator="defaultIndicator">
- <rich:dndParam name="label" value="testDragValue for Folder" />
-
- </rich:dragSupport>
- <f:verbatim>Folder Draggable with defaultIndicator</f:verbatim>
- </h:panelGrid>
-
- <h:outputText />
-
- </h:panelGrid>
-
- <h:panelGrid id="renderedId">
- <rich:dragSupport dragType="file" dragIndicator="defaultIndicator">
- <rich:dndParam name="marker" value="testMarkerValue" />
- <rich:dndParam name="label" value="testDragValue" />
- </rich:dragSupport>
-
- <h:graphicImage id="dragImage" value="/pics/file-manager.png"
- width="48" />
- <f:verbatim>
- dragSupport
- </f:verbatim>
- </h:panelGrid>
-
- <h:panelGroup id="group">
- <f:verbatim>
- PanelGroup
- </f:verbatim>
- <rich:dropSupport acceptedTypes="file"
- dropListener="#{bean.processDrop}" />
- </h:panelGroup>
-
- <h:panelGrid id="renderedIdII" style="border: 1px solid red;">
- <rich:dropSupport acceptedTypes="file"
- dropListener="#{bean.processDrop}" />
- <f:verbatim>
- <div style="margin: 40px; border: 1px solid green;">
- dropSupport</div>
- </f:verbatim>
- </h:panelGrid>
-
- <a4j:status startText="...request..." stopText="stop" />
- <a4j:outputPanel ajaxRendered="true">
- <h:messages />
- </a4j:outputPanel>
-
- <h:outputText>
- <rich:dropSupport acceptedTypes="file" />
- </h:outputText>
-
- <h:outputText>
- <rich:dragSupport dragType="file" />
- </h:outputText>
- <h:commandLink value="Back" action="main"></h:commandLink> </h:form>
-</f:view>
-</body>
-</html>
Modified: trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp 2007-08-10 13:18:31 UTC (rev 2196)
+++ trunk/test-applications/jsp/src/main/webapp/DragAndDrop/DragAndDrop.jsp 2007-08-10 13:52:58 UTC (rev 2197)
@@ -183,7 +183,7 @@
<a4j:outputPanel ajaxRendered="true">
<h:messages />
</a4j:outputPanel>
-
+ <h:commandLink value="Back" action="main"></h:commandLink>
</h:form>
</f:view>
</body>
Modified: trunk/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp 2007-08-10 13:18:31 UTC (rev 2196)
+++ trunk/test-applications/jsp/src/main/webapp/Gmap/Gmap.jsp 2007-08-10 13:52:58 UTC (rev 2197)
@@ -2,95 +2,115 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
-<html>
<f:view>
+ <html>
<head>
<title></title>
</head>
<body>
- <h:panelGrid columns="2">
+ <h:form>
<rich:gmap id="gm" lat="37.97" zoom="#{gmap.zoom}" gmapVar="map"
gmapKey="ABQIAAAAxU6W9QEhFLMNdc3ATIu-VxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRkrpOGzxH8_ud3inE9pG1845-FCA"
- style="width:500px;height:400px" />
+ style="width:500px;height:400px"
+ enableContinuousZoom="#{gmap.continuousZoom}"
+ enableDoubleClickZoom="#{gmap.doubleClickZoom}"
+ enableDragging="#{gmap.dragging}" />
-
- <!-- client side solution -->
<h:panelGroup>
- Controls:<br />
- <a href="javascript:void(0);"
- onclick="map.hideControls();return false;">Remove</a>
- <a href="javascript:void(0);"
- onclick="map.showControls();return false;">Show</a>
- <br />
- <br />
- Type:<br />
- <a href="javascript:void(0);"
- onclick="map.setMapType(G_NORMAL_MAP);return false;">Normal</a>
- <a href="javascript:void(0);"
- onclick="map.setMapType(G_SATELLITE_MAP);return false;">Satellite</a>
- <a href="javascript:void(0);"
- onclick="map.setMapType(G_HYBRID_MAP);return false;">Hybrid</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 Office</a>
-
+ <f:verbatim>
+ Controls:
+ <br />
+ <a href="javascript:void(0);"
+ onclick="map.hideControls();return false;">Remove</a>
+ <a href="javascript:void(0);"
+ onclick="map.showControls();return false;">Show</a>
+ <br />
+ <br />
+ Type:
+ <br />
+ <a href="javascript:void(0);"
+ onclick="map.setMapType(G_NORMAL_MAP);return false;">Normal</a>
+ <a href="javascript:void(0);"
+ onclick="map.setMapType(G_SATELLITE_MAP);return false;">Satellite</a>
+ <a href="javascript:void(0);"
+ onclick="map.setMapType(G_HYBRID_MAP);return false;">Hybrid</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 Office</a>
+ <br />
+ <a href="javascript:void(0);"
+ onclick="showExadelInMinsk();return false;">Show Exadel in
+ Belarus</a>
+ </f:verbatim>
</h:panelGroup>
+ <rich:panel>
+ <h:panelGrid columns="2">
+ <h:outputText value="Dragging:" />
+ <h:selectBooleanCheckbox value="#{gmap.dragging}" />
- <!-- client side solution -->
- <h:form>
+ <h:outputText value="Continuous Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.continuousZoom}" />
- </h:form>
+ <h:outputText value="Double Click Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}" />
- </h:panelGrid>
+ <h:commandLink value="submit" action="submit();"></h:commandLink>
+ </h:panelGrid>
+ </rich:panel>
- <a4j:outputPanel id="zoomer">
- <script>
+ <a4j:outputPanel id="zoomer">
+ <script>
function zoomIt() {
map.setZoom(#{gmap.zoom});
}
</script>
- </a4j:outputPanel>
+ </a4j:outputPanel>
- <a4j:outputPanel>
- <script>
-
- function createMarker(point,html) {
- var marker = new GMarker(point);
- GEvent.addListener(marker, "click", function() {
- marker.openInfoWindowHtml(html);
- });
- return marker;
- }
-
-
-
- function showExadel() {
-
- var point = new GLatLng(37.9721046, -122.0424842834);
- map.setCenter(point);
- var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
- map.setZoom(16);
- map.addOverlay(marker);
-
- }
-
- function setCenter(lag, lat, zoom) {
-
- map.setCenter(new GLatLng(lag, lat), zoom);
- var ulp = new GPoint(lag,lat);
- var ul = G_NORMAL_MAP.getProjection().fromPixelToLatLng(ulp,zoom);
-
- }
- </script>
- </a4j:outputPanel>
-
+ <a4j:outputPanel>
+ <script>
+ function createMarker(point,html) {
+ var marker = new GMarker(point);
+ GEvent.addListener(marker, "click", function() {
+ marker.openInfoWindowHtml(html);
+ });
+ return marker;
+ }
+
+ function showExadelInMinsk() {
+ var point = new GLatLng(53.92316,27.510737, 53.92316,27.510737);
+ map.setCenter(point);
+ var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
+ map.setZoom(16);
+ map.addOverlay(marker);
+ }
+
+ function showExadel() {
+ var point = new GLatLng(37.9721046, -122.0424842834);
+ map.setCenter(point);
+ var marker = createMarker(point,'Go to the <a target="_blank" href="http://www.exadel.com">Exadle Web Site</a>');
+ map.setZoom(16);
+ map.addOverlay(marker);
+ }
+
+ function setCenter(lag, lat, zoom) {
+ map.setCenter(new GLatLng(lag, lat), zoom);
+ var ulp = new GPoint(lag,lat);
+ var ul = G_NORMAL_MAP.getProjection().fromPixelToLatLng(ulp,zoom);
+ }
+ </script>
+ </a4j:outputPanel>
+ </h:form>
+ <h:form>
+ <h:commandLink value="Back" action="main"></h:commandLink>
+ </h:form>
</body>
-</f:view>
-</html>
+ </html>
+</f:view>
\ No newline at end of file
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml 2007-08-10 13:18:31 UTC (rev 2196)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Gmap.xml 2007-08-10 13:52:58 UTC (rev 2197)
@@ -2,14 +2,14 @@
<!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>
- <managed-bean>
- <managed-bean-name>gmap</managed-bean-name>
- <managed-bean-class>gmap.Gmap</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- <managed-property>
- <property-name>zoom</property-name>
- <property-class>java.lang.String</property-class>
- <value>10</value>
- </managed-property>
- </managed-bean>
+ <managed-bean>
+ <managed-bean-name>gmap</managed-bean-name>
+ <managed-bean-class>gmap.Gmap</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>zoom</property-name>
+ <property-class>java.lang.String</property-class>
+ <value>10</value>
+ </managed-property>
+ </managed-bean>
</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-08-10 13:18:31 UTC (rev 2196)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-08-10 13:52:58 UTC (rev 2197)
@@ -25,10 +25,6 @@
<to-view-id>/PanelBar/PanelBar.jsp</to-view-id>
</navigation-case>
<navigation-case>
- <from-outcome>Gmap</from-outcome>
- <to-view-id>/Gmap/Gmap.jsp</to-view-id>
- </navigation-case>
- <navigation-case>
<from-outcome>Separator</from-outcome>
<to-view-id>/Separator/Separator.jsp</to-view-id>
</navigation-case>
@@ -96,6 +92,10 @@
<from-outcome>Calendar</from-outcome>
<to-view-id>/Calendar/Calendar.jsp</to-view-id>
</navigation-case>
+ <navigation-case>
+ <from-outcome>Gmap</from-outcome>
+ <to-view-id>/Gmap/Gmap.jsp</to-view-id>
+ </navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>*</from-view-id>
18 years, 8 months
JBoss Rich Faces SVN: r2196 - trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.
by richfaces-svn-commits@lists.jboss.org
Author: dbiatenia
Date: 2007-08-10 09:18:31 -0400 (Fri, 10 Aug 2007)
New Revision: 2196
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml
Log:
tooltip layout&content fix
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml 2007-08-10 13:01:20 UTC (rev 2195)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml 2007-08-10 13:18:31 UTC (rev 2196)
@@ -40,7 +40,7 @@
<h:panelGrid columns="2">
<rich:panel id="sample1" styleClass="tooltip-text">
<rich:toolTip>
- <span>
+ <span style="white-space:nowrap">
This tool-tip content was <strong>pre-rendered</strong> to the page.<br/>
The look of this tool-tip is 100% defined by skin.
</span>
@@ -62,7 +62,7 @@
</rich:panel>
<h:form>
<rich:panel id="sample3" styleClass="tooltip-text">
- <rich:toolTip direction="top-right" mode="ajax" styleClass="tooltip">
+ <rich:toolTip direction="top-right" mode="ajax" styleClass="tooltip" layout="block">
<f:facet name="defaultContent">
<strong>Wait...</strong>
</f:facet>
@@ -79,7 +79,7 @@
</h:form>
<h:form>
<rich:panel id="sample4" styleClass="tooltip-text">
- <rich:toolTip event="onclick" direction="bottom-left" mode="ajax" styleClass="tooltip">
+ <rich:toolTip event="onclick" direction="bottom-left" mode="ajax" styleClass="tooltip" layout="block">
<f:facet name="defaultContent">
<strong>Wait...</strong>
</f:facet>
18 years, 8 months
JBoss Rich Faces SVN: r2195 - trunk/samples/calendar-sample/src/main/webapp/WEB-INF.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-08-10 09:01:20 -0400 (Fri, 10 Aug 2007)
New Revision: 2195
Modified:
trunk/samples/calendar-sample/src/main/webapp/WEB-INF/web.xml
Log:
Modified: trunk/samples/calendar-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/calendar-sample/src/main/webapp/WEB-INF/web.xml 2007-08-10 12:17:41 UTC (rev 2194)
+++ trunk/samples/calendar-sample/src/main/webapp/WEB-INF/web.xml 2007-08-10 13:01:20 UTC (rev 2195)
@@ -19,10 +19,6 @@
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>#{skinBean.skin}</param-value>
</context-param>
- <context-param>
- <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
- <param-value>false</param-value>
- </context-param>
<!--
-->
<filter>
18 years, 8 months
JBoss Rich Faces SVN: r2194 - trunk/test-applications.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-10 08:17:41 -0400 (Fri, 10 Aug 2007)
New Revision: 2194
Modified:
trunk/test-applications/pom.xml
Log:
maven.exadel.com repository added
Modified: trunk/test-applications/pom.xml
===================================================================
--- trunk/test-applications/pom.xml 2007-08-10 11:24:24 UTC (rev 2193)
+++ trunk/test-applications/pom.xml 2007-08-10 12:17:41 UTC (rev 2194)
@@ -6,6 +6,36 @@
<relativePath>../samples</relativePath>
</parent>
+ <repositories>
+
+ <repository>
+
+ <releases>
+
+ <enabled>true</enabled>
+
+ </releases>
+
+ <snapshots>
+
+ <enabled>true</enabled>
+
+ <updatePolicy>always</updatePolicy>
+
+ </snapshots>
+
+ <id>maven2-snapshots.exadel.com</id>
+
+ <name>Exadel Repository for Maven Snapshots</name>
+
+ <url>http://maven.exadel.com/</url>
+
+ <layout>default</layout>
+
+ </repository>
+
+ </repositories>
+
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces</groupId>
<artifactId>test-applications</artifactId>
@@ -21,7 +51,7 @@
<dependency>
<artifactId>richfaces-ui</artifactId>
<groupId>org.richfaces.ui</groupId>
- <version>${project.version}</version>
+ <version>3.1.0-rc1</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
18 years, 8 months
JBoss Rich Faces SVN: r2193 - trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: sergeyhalipov
Date: 2007-08-10 07:24:24 -0400 (Fri, 10 Aug 2007)
New Revision: 2193
Modified:
trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
http://jira.jboss.com/jira/browse/RF-575
Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-08-10 09:34:50 UTC (rev 2192)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js 2007-08-10 11:24:24 UTC (rev 2193)
@@ -559,13 +559,13 @@
}
element.style.visibility = "";
+
+ this.lastOnfocus();
var event = {};
event.parameters = opts || {};
if (this.eventOnShow) this.eventOnShow(event);
- this.lastOnfocus();
-
this.shown = true;
},
18 years, 8 months
JBoss Rich Faces SVN: r2192 - trunk/ui/simpleTogglePanel/src/main/templates.
by richfaces-svn-commits@lists.jboss.org
Author: A.Skokov
Date: 2007-08-10 05:34:50 -0400 (Fri, 10 Aug 2007)
New Revision: 2192
Modified:
trunk/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx
Log:
http://jira.jboss.com/jira/browse/RF-580
Modified: trunk/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx 2007-08-10 09:30:23 UTC (rev 2191)
+++ trunk/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx 2007-08-10 09:34:50 UTC (rev 2192)
@@ -20,7 +20,7 @@
scripts/simpleTogglePanel.js
</h:scripts>
- <div id="#{clientId}" x:passThruWithExclusions="id,value"
+ <div id="#{clientId}" x:passThruWithExclusions="id,value,style,styleClass"
class="dr-stglpnl rich-stglpanel #{component.attributes['styleClass']}"
style="width: #{component.attributes['width']}; #{component.attributes['style']};">
18 years, 8 months
JBoss Rich Faces SVN: r2191 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: ajaxListener and 9 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-10 05:30:23 -0400 (Fri, 10 Aug 2007)
New Revision: 2191
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxListener/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/usage.html
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/region/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/script/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/style/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-525
highlighted htmls
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/usage.html 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -8,8 +8,8 @@
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
-<title>E:\projects\eclipse-worspaces\workspace\RFtrunk\samples\richfaces-demo\src\main\webapp\richfaces\actionparam\source\usage.xhtml</title>
-<link rel="stylesheet" href="css\xhtml-source.css" type="text/css">
+<title>usage.xhtml</title>
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
</head>
<body>
<pre><tt><span class="keyword"><div</span><span class="normal"> </span><span class="type">class</span><span class="symbol">=</span><span class="string">"</span><span class="string">sample-container</span><span class="string">"</span><span class="normal"> </span><span class="keyword">></span>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxListener/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxListener/usage.html (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxListener/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -0,0 +1,52 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
+ "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type"
+content="text/html; charset=iso-8859-1">
+<meta name="GENERATOR" content="GNU source-highlight 2.1.2
+by Lorenzo Bettini
+http://www.lorenzobettini.it
+http://www.gnu.org/software/src-highlite">
+<title>usage.xhtml</title>
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
+</head>
+<body>
+<pre><tt><span class="normal"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></span>
+<span class="keyword"><html</span><span class="normal"> </span><span class="type">xmlns</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://www.w3.org/1999/xhtml</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:ui</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://java.sun.com/jsf/facelets</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:h</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://java.sun.com/jsf/html</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:f</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://java.sun.com/jsf/core</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:a4j</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://richfaces.org/a4j</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:rich</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://richfaces.ajax4jsf.org/rich</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><ui:composition</span><span class="normal"> </span><span class="type">template</span><span class="symbol">=</span><span class="string">"</span><span class="string">/templates/component-sample.xhtml</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><ui:define</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">sample</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><p></span>
+<span class="normal"> Additionally to the listeners provided by JSF specification, RichFaces add one more:</span>
+<span class="normal"> Ajax Listener (a4j:ajaxListener). Ajax Listener is invoked before the Render Response</span>
+<span class="normal"> phase. Instead of Action Listener of Value Change Listener which are not invoked when</span>
+<span class="normal"> Validation of Update Model phases failed, Ajax Listener is guarantied to be invoked</span>
+<span class="normal"> for each Ajax response. Hence, it is a good place to update the list of re-rendered</span>
+<span class="normal"> components, for example.</span>
+<span class="normal"> </span><span class="keyword"></p></span>
+<span class="normal"> </span><span class="keyword"><p></span>
+<span class="normal"> Ajax Listener is not invoked for a non-Ajax request and when RichFaces works in</span>
+<span class="normal"> "Ajax Request generates Non-Ajax Response" mode. Therefore, Ajax Listener invocation</span>
+<span class="normal"> is a good indicator that Ajax response is going to be processed.</span>
+<span class="normal"> </span><span class="keyword"></p></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><p></span>
+<span class="normal"> </span><span class="keyword"><b></span><span class="normal">type</span><span class="keyword"></b></span><span class="normal"> attribute defines the fully qualified Java class name for listener. This</span>
+<span class="normal"> class should implement org.ajax4jsf.events.AjaxListener interface. You can access to</span>
+<span class="normal"> the source of the event (Ajax component) using event.getSource() call.</span>
+<span class="normal"> </span><span class="keyword"></p></span>
+<span class="normal"> </span>
+
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"></ui:define></span>
+
+<span class="normal"> </span><span class="keyword"></ui:composition></span>
+<span class="keyword"></html></span>
+</tt></pre>
+</body>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/usage.html (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -0,0 +1,47 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
+ "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type"
+content="text/html; charset=iso-8859-1">
+<meta name="GENERATOR" content="GNU source-highlight 2.1.2
+by Lorenzo Bettini
+http://www.lorenzobettini.it
+http://www.gnu.org/software/src-highlite">
+<title>usage.xhtml</title>
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
+</head>
+<body>
+<pre><tt><span class="normal"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></span>
+<span class="keyword"><html</span><span class="normal"> </span><span class="type">xmlns</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://www.w3.org/1999/xhtml</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:ui</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://java.sun.com/jsf/facelets</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:h</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://java.sun.com/jsf/html</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:f</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://java.sun.com/jsf/core</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:a4j</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://richfaces.org/a4j</span><span class="string">"</span>
+<span class="normal"> </span><span class="type">xmlns:rich</span><span class="symbol">=</span><span class="string">"</span><span class="string">http://richfaces.ajax4jsf.org/rich</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><ui:composition</span><span class="normal"> </span><span class="type">template</span><span class="symbol">=</span><span class="string">"</span><span class="string">/templates/component-sample.xhtml</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><ui:define</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">sample</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><p></span><span class="normal">a4j:loadBundle allows to use reference to bundle messages during the Ajax re-rendering.</span>
+<span class="normal"> a4j:loadBundle is a substitute for the f:loadBundle in JSF 1.1 which is not a JSF component originally.</span>
+<span class="normal"> f:loadBundle is a jsp tag that load the bundle messages into the request scope when page is</span>
+<span class="normal"> rendered. As soon as each Ajax request works in own request scope, the bundles loaded with</span>
+<span class="normal"> f:loadBundle are unavailable.</span>
+<span class="normal"> </span><span class="keyword"></p></span>
+<span class="normal"> </span><span class="keyword"><p></span><span class="normal">Instead of f:loadBundle that might be located anywhere on the page, the a4j:loadBundle </span>
+<span class="normal"> should be declared inside the f:view (this does not matter in case on using Facelets)</span>
+<span class="normal"> </span><span class="keyword"></p></span>
+
+<span class="normal"> </span><span class="keyword"><p></span><span class="normal">JSF 1.2 introduces the bundle registered in the faces-config.xml. This fixed the problem</span>
+<span class="normal"> with f:loadBundle. Therefore, you can use this JSF 1.2 way to declare your bundles.</span>
+<span class="normal"> </span><span class="keyword"></p></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"></ui:define></span>
+<span class="normal"> </span><span class="keyword"><ui:define</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">sources</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><h:panelGroup</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></ui:define></span>
+<span class="normal"> </span><span class="keyword"></ui:composition></span>
+<span class="keyword"></html></span>
+</tt></pre>
+</body>
+</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/source/usage.html 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable/source/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -9,7 +9,7 @@
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>usage.xhtml</title>
-<link rel="stylesheet" href="../../../css/xhtml-source.css" type="text/css">
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
</head>
<body>
<pre><tt><span class="keyword"><rich:dataTable</span><span class="normal"> </span>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/source/usage.html 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/source/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -9,7 +9,7 @@
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>usage.xhtml</title>
-<link rel="stylesheet" href="..\..\..\css\xhtml-source.css" type="text/css">
+<link rel="stylesheet" href="../../../css/xhtml-source.css" type="text/css">
</head>
<body>
<pre><tt><span class="keyword"><a4j:form</span><span class="normal"> </span><span class="type">ajaxSubmit</span><span class="symbol">=</span><span class="string">"</span><span class="string">true</span><span class="string">"</span><span class="normal"> </span><span class="type">reRender</span><span class="symbol">=</span><span class="string">"</span><span class="string">name</span><span class="string">"</span><span class="keyword">></span>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll/source/usage.html 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll/source/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -9,7 +9,7 @@
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>usage.xhtml</title>
-<link rel="stylesheet" href="..\..\..\css\xhtml-source.css" type="text/css">
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
</head>
<body>
<pre><tt><span class="keyword"><a4j:region></span>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/region/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/region/source/usage.html 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/region/source/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -9,7 +9,7 @@
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>usage.xhtml</title>
-<link rel="stylesheet" href="..\..\..\css\xhtml-source.css" type="text/css">
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
</head>
<body>
<pre><tt><span class="keyword"><div</span><span class="normal"> </span><span class="type">class</span><span class="symbol">=</span><span class="string">"</span><span class="string">sample-container</span><span class="string">"</span><span class="normal"> </span><span class="keyword">></span>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/script/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/script/source/usage.html 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/script/source/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -9,7 +9,7 @@
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>usage.xhtml</title>
-<link rel="stylesheet" href="..\..\..\css\xhtml-source.css" type="text/css">
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
</head>
<body>
<pre><tt><span class="keyword"><a4j:loadScript</span><span class="normal"> </span><span class="type">src</span><span class="symbol">=</span><span class="string">"</span><span class="string">resource://org/richfaces/renderkit/html/scripts/scriptaculous-js-1.6.5/src/scriptaculous.js</span><span class="string">"</span><span class="keyword">/></span>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/style/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/style/source/usage.html 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/style/source/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -1 +1,17 @@
-TODO: source should be added
\ No newline at end of file
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
+ "http://www.w3.org/TR/REC-html40/strict.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type"
+content="text/html; charset=iso-8859-1">
+<meta name="GENERATOR" content="GNU source-highlight 2.1.2
+by Lorenzo Bettini
+http://www.lorenzobettini.it
+http://www.gnu.org/software/src-highlite">
+<title>usage.xhtml</title>
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
+</head>
+<body>
+<pre><tt><span class="normal">x</span></tt></pre>
+</body>
+</html>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html 2007-08-10 09:30:23 UTC (rev 2191)
@@ -9,7 +9,7 @@
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>usage.xhtml</title>
-<link rel="stylesheet" href="..\..\..\css\xhtml-source.css" type="text/css">
+<link rel="stylesheet" href="../../../css\xhtml-source.css" type="text/css">
</head>
<body>
<pre><tt><span class="keyword"><h:form></span>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml 2007-08-10 09:29:40 UTC (rev 2190)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml 2007-08-10 09:30:23 UTC (rev 2191)
@@ -10,10 +10,10 @@
<p>
a4j:support is a most important core component in the RichFaces library. It allows
- to add an Ajax capability to the existing non-ajax components. All other Ajax component
+ to add an Ajax capability to the existing non-ajax components. All other Ajax components
are based on the same principles a4j:support has.
</p>
- <p> a4j:support should be attached a direct child of the JSF component that has to be ajaxified.
+ <p> a4j:support should be attached to a direct child of the JSF component that has to be ajaxified.
The key attributes are 'event' and 'reRender'.
</p>
<p>
@@ -21,10 +21,10 @@
</p>
<p>
'reRender' attribute points to the JSF component(s) that should be re-rendered on the server side
- and updated on the client when ajax response come back.
+ and updated on the client when ajax response comes back.
</p>
<p>
- The following example shows how the outputText component value is changed while user is
+ The following example shows how the outputText component value is changed while a user is
typing in the input field:
</p>
@@ -48,8 +48,8 @@
<p>
a4j:support is wired with the event of the parent component during the Render Response
- phase on the server side. So, the number of possible events is limited to the ones
- defined with particular component attributs. The wiring with events dynamically attached
+ phase on the server side. Hence, the number of possible events is limited to the ones
+ defined with particular component attributes. The wiring with events dynamically attached
on the client side is not supported.
</p>
18 years, 8 months
JBoss Rich Faces SVN: r2190 - trunk/docs/userguide/en/src/main/resources/css.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-10 05:29:40 -0400 (Fri, 10 Aug 2007)
New Revision: 2190
Modified:
trunk/docs/userguide/en/src/main/resources/css/html.css
Log:
The subtitle on the title page was allinged to the center
Modified: trunk/docs/userguide/en/src/main/resources/css/html.css
===================================================================
--- trunk/docs/userguide/en/src/main/resources/css/html.css 2007-08-10 07:59:32 UTC (rev 2189)
+++ trunk/docs/userguide/en/src/main/resources/css/html.css 2007-08-10 09:29:40 UTC (rev 2190)
@@ -71,6 +71,10 @@
text-align: center;
}
+div.book .subtitle {
+ text-align: center;
+}
+
.mediaobject{
padding : 5px 10px 5px 35px;
}
18 years, 8 months
JBoss Rich Faces SVN: r2189 - trunk/docs/userguide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-10 03:59:32 -0400 (Fri, 10 Aug 2007)
New Revision: 2189
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
Log:
http://jira.jboss.com/jira/browse/RF-574
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-10 04:19:58 UTC (rev 2188)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-10 07:59:32 UTC (rev 2189)
@@ -81,14 +81,19 @@
&richfaces_table;
-->
&coreComponents_table;
+&calendar_table;
&dataFilterSlider_table;
- &dataScroller_table;
+&dataScroller_table;
&dataTable_table;
&dnd_table;
+&dropDownMenu_table;
&gmap_table;
&virtualEarth_table;
&inputNumberSlider_table;
&inputNumberSpinner_table;
+&menuComponents_table;
+&message_table;
+&panelMenu_table;
&modalPanel_table;
&paint2D_table;
&panel_table;
@@ -101,12 +106,9 @@
&togglePanel_table;
&toolBar_table;
&tree_table;
-&dropDownMenu_table;
-&menuComponents_table;
-&panelMenu_table;
-&message_table;
-&calendar_table;
+
+
</chapter>
&rfcidesupport;
&rfclinks;
18 years, 8 months
JBoss Rich Faces SVN: r2188 - in trunk: samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-08-10 00:19:58 -0400 (Fri, 10 Aug 2007)
New Revision: 2188
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/assignTo.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/changeSkin.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml
trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java
Log:
source view update
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/assignTo.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/assignTo.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/assignTo.xhtml 2007-08-10 04:19:58 UTC (rev 2188)
@@ -0,0 +1,14 @@
+<h:form>
+ <rich:panel>
+ <a4j:commandButton value="Set Name to Alex" reRender="rep" >
+ <a4j:actionparam name="username" value="Alex" assignTo="#{userBean.name}"/>
+ </a4j:commandButton>
+ <rich:spacer width="20" />
+ <a4j:commandButton value="Set Name to John" reRender="rep" >
+ <a4j:actionparam name="username" value="John" assignTo="#{userBean.name}"/>
+ </a4j:commandButton>
+ </rich:panel>
+ <rich:panel>
+ <h:outputText id="rep" value="Selected Name:#{userBean.name}"/>
+ </rich:panel>
+</h:form>
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/changeSkin.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/changeSkin.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/source/changeSkin.xhtml 2007-08-10 04:19:58 UTC (rev 2188)
@@ -0,0 +1,14 @@
+<h:form>
+ <rich:panel>
+ <f:facet name="header">
+ <h:outputText value="Change Demo Appplication Skin To: "/>
+ </f:facet>
+ <h:commandLink value="DeepMarine">
+ <a4j:actionparam name="skin" value="deepMarine" assignTo="#{skinBean.skin}"/>
+ </h:commandLink>
+ <rich:spacer width="20" />
+ <h:commandLink value="BlueSky" >
+ <a4j:actionparam name="skin" value="blueSky" assignTo="#{skinBean.skin}"/>
+ </h:commandLink>
+ </rich:panel>
+</h:form>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/usage.xhtml 2007-08-10 01:17:16 UTC (rev 2187)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam/usage.xhtml 2007-08-10 04:19:58 UTC (rev 2188)
@@ -33,6 +33,11 @@
<h:outputText id="rep" value="Selected Name:#{userBean.name}"/>
</rich:panel>
</h:form>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/actionparam/source/assignTo.xhtml"/>
+ </ui:include>
+
+
</div>
<p>
You can use a4j:param not only with ajax components, but with non-ajax command component also.
@@ -55,6 +60,10 @@
</h:commandLink>
</rich:panel>
</h:form>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/actionparam/source/changeSkin.xhtml"/>
+ </ui:include>
+
</div>
<p>Attributes 'name' and 'value' are mandatory. You can specify the converter with 'converter'
attribute if you need to convert the value before the model is updates. Note that
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/source/usage.html 2007-08-10 01:17:16 UTC (rev 2187)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/source/usage.html 2007-08-10 04:19:58 UTC (rev 2188)
@@ -1 +1,19 @@
-TODO: source should be added
\ No newline at end of file
+<!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.ajax4jsf.org/rich">
+ <ui:composition>
+<!-- invoking from javascript -->
+<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" />
+</ui:composition>
+</html>
\ No newline at end of file
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/usage.xhtml 2007-08-10 01:17:16 UTC (rev 2187)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect/usage.xhtml 2007-08-10 04:19:58 UTC (rev 2188)
@@ -52,25 +52,62 @@
<rich:separator height="1" style="padding-bottom:10px" />
- <rich:panel id="mypanel" style="background-color:lightblue;width:300px" >
- <rich:effect event="onmouseout" type="Opacity" params="from:1.0,to:0.3" />
- <rich:effect event="onmouseover" type="Opacity" params="from:0.3,to:1.0" />
+
+ <div id="mypaneldiv" style="padding:6px;background-color:lightblue;width:300px" >
+ <rich:effect for="mypaneldiv" event="onmouseout" type="Opacity" params="from:1.0,to:0.3" />
+ <rich:effect for="mypaneldiv" event="onmouseover" type="Opacity" params="from:0.3,to:1.0" />
- <f:verbatim>
The opacity of this panel will be set to 0.3 when the mouse cursor is out set
to 1.0 if the mouse is over. The default opacity is set to 0.3 when the page
is loaded.
-
- </f:verbatim>
-
- </rich:panel>
- <rich:effect for="window" event="load" type="Opacity" params="id:'mypanel',from:1.0,to:0.3" />
+
+ </div>
+ <rich:effect for="window" event="load" type="Opacity" params="id:'mypaneldiv',from:1.0,to:0.3" />
+
<rich:separator height="1" style="padding-top:10px" />
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/effect/source/usage.html"/>
+ </ui:include>
+
+
</div>
+ <h2>Key Attributes</h2>
+ <p>
+ <b>name</b> 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.
+ </p>
+ <p>
+ <b>type</b> attribute defines the type of effect. For example, "Fade", "Blind",
+ "Opacity". Take a look at scriptaculous documentation for set of available effect.
+ </p>
+ <p>
+ <b>for</b> attribute defines the id of the component or html tag, the effect will
+ be attached to. Richfaces converts the 'for' 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.<br/>
+ By default, the target of the effect is the same element that effect pointed to.
+ However, the target element is might be overridden with 'effectId' option passed
+ with 'params' attribute of with function paramenter.
+ </p>
+ <p>
+ <b>params</b> 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
+ rich:effect attribute. Those are:
+ <ul>
+ <li><b>effectId</b> allows to re-define the target of effect. The option
+ is overrire the value of 'for' attribute</li>
+ <li><b>effectType</b> defines the effect type. The option
+ is overrire the value of 'type' attribute</li>
+ </ul>
+ </p>
+
</ui:define>
<ui:define name="sources">
Here is a fragment of page sources for the given example:
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml 2007-08-10 01:17:16 UTC (rev 2187)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml 2007-08-10 04:19:58 UTC (rev 2188)
@@ -30,7 +30,7 @@
<div class="sample-container" >
- <rich:separator width="1"/>
+ <rich:separator height="1"/>
<h:form>
<h:panelGrid columns="2">
<h:inputText value="#{userBean.name}">
@@ -39,9 +39,13 @@
<h:outputText id="outtext" value="#{userBean.name}" />
</h:panelGrid>
</h:form>
- <rich:separator width="1" style="padding-top:10px"/>
+ <rich:separator height="1" style="padding-top:10px"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath" value="/richfaces/support/source/usage.xhtml"/>
+ </ui:include>
</div>
-
+
+
<p>
a4j:support is wired with the event of the parent component during the Render Response
phase on the server side. So, the number of possible events is limited to the ones
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/sourceview.xhtml 2007-08-10 04:19:58 UTC (rev 2188)
@@ -0,0 +1,82 @@
+<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.ajax4jsf.org/rich">
+<ui:composition>
+
+
+
+ <rich:spacer height="8" />
+
+ <script>
+ //<![CDATA[
+ Effect.Transitions.exponential = function(pos) {
+ return 1-Math.pow(1-pos,2);
+ }
+ //]]>
+ </script>
+
+ <style>
+ .viewsourcebody {
+ padding:0;
+ }
+ .viewsourceheader {
+ background-color:#E6F3F7;
+ background-image:none;
+ border-width:0px;
+ padding:0px;
+ height:6px;
+ }
+ .viewsourcediv {
+ padding:0 10px 10px 10px;
+ }
+ .viewsourcediv pre {
+ margin:0;
+ }
+
+ .viewsourcelooklink {
+ cursor:pointer;
+ text-decoration:underline;
+ padding-left:5px;
+ color:blue;
+ font-size:11px;
+ font-family:Verdana;
+ }
+
+ .viewsourcehidelink {
+ text-align:right;
+ display:block;
+ background-color:#E6F3F7;
+ }
+
+ </style>
+ <f:subview>
+ <a4j:outputPanel styleClass="viewsourcelooklink" id="look">
+ <rich:effect for="look" event="onclick" type="BlindDown" params="id:'source1', delay:0.1,duration:1.0,from:0.1,to:1.0" />
+ <rich:effect for="look" event="onclick" type="Fade" params="duration:0.1" />
+ View Source >>
+ </a4j:outputPanel>
+ <rich:panel bodyClass="viewsourcebody" headerClass="viewsourceheader" id="source1" style="padding-bottom:0px;width:100%;overflow:auto;display:none;border-width:0;background-color:#FFFFE7 !important">
+ <f:facet name="header">
+ <rich:spacer height="3px" />
+ </f:facet>
+ <div class="viewsourcediv">
+ <rich:insert src="#{sourcepath}" highlight="xhtml"/>
+ </div>
+
+ <a4j:outputPanel id="hide" styleClass="viewsourcehidelink">
+ <rich:effect for="hide" event="onclick" type="BlindUp" params="id:'source1', duration:1.0" />
+ <rich:effect for="hide" event="onclick" type="Appear" params="id:'look', delay:1.0, duration:1.0" />
+ <h:outputText style="padding-right:5px" value="<<Hide Source"/>
+ </a4j:outputPanel>
+
+ </rich:panel>
+ </f:subview>
+
+
+
+</ui:composition>
+</html>
+
Modified: trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java
===================================================================
--- trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java 2007-08-10 01:17:16 UTC (rev 2187)
+++ trunk/ui/effect/src/main/java/org/richfaces/renderkit/EffectRendererBase.java 2007-08-10 04:19:58 UTC (rev 2188)
@@ -35,6 +35,8 @@
private static final Pattern VARIABLE_PATTERN = Pattern.compile("^\\s*[_,A-Z,a-z]\\w*(?:\\.[_,A-Z,a-z]\\w*)*\\s*$");
public String convertElementParameter(Object parameter) {
+ if (parameter==null)
+ return "''";
String s = parameter.toString();
if (VARIABLE_PATTERN.matcher(s).matches()) {
return "typeof "+s+" == \"object\" ? "+s+" : $('"+s+"')";
18 years, 8 months