JBoss Rich Faces SVN: r2557 - in trunk: samples/modalpanel-sample/src/main/webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-08-29 06:56:26 -0400 (Wed, 29 Aug 2007)
New Revision: 2557
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
trunk/samples/modalpanel-sample/src/main/webapp/pages/index.jsp
Log:
RF-691
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2007-08-29 00:17:07 UTC (rev 2556)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2007-08-29 10:56:26 UTC (rev 2557)
@@ -299,7 +299,7 @@
var oldnode = window.document.getElementById(id);
if ( oldnode ) {
var anchor = oldnode.parentNode;
- if(oldnode.outerHTML && !oldnode.tagName.match( /(tbody|thead|tfoot|tr|th|td)/i ) ){
+ if(!window.opera && oldnode.outerHTML && !oldnode.tagName.match( /(tbody|thead|tfoot|tr|th|td)/i ) ){
LOG.debug("Replace content of node by outerHTML()");
try {
oldnode.innerHTML = "";
@@ -307,7 +307,7 @@
LOG.error("Error to clear node content by innerHTML");
Sarissa.clearChildNodes(oldnode);
}
- oldnode.outerHTML = new XMLSerializer().serializeToString(newnode);
+ oldnode.outerHTML = new XMLSerializer().serializeToString(newnode);
} else {
var importednode ;
// need to check for firstChild due to opera 8 bug with hasChildNodes
Modified: trunk/samples/modalpanel-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/modalpanel-sample/src/main/webapp/pages/index.jsp 2007-08-29 00:17:07 UTC (rev 2556)
+++ trunk/samples/modalpanel-sample/src/main/webapp/pages/index.jsp 2007-08-29 10:56:26 UTC (rev 2557)
@@ -46,21 +46,21 @@
<f:verbatim>
containerRendered
</f:verbatim>
- <a4j:support event="onchange" />
+ <a4j:support event="onclick" />
</h:selectBooleanCheckbox>
<h:selectBooleanCheckbox value="#{bean.resizeable}">
<f:verbatim>
resizeable
</f:verbatim>
- <a4j:support event="onchange" />
+ <a4j:support event="onclick" />
</h:selectBooleanCheckbox>
<h:selectBooleanCheckbox value="#{bean.moveable}">
<f:verbatim>
moveable
</f:verbatim>
- <a4j:support event="onchange" />
+ <a4j:support event="onclick" />
</h:selectBooleanCheckbox>
</h:panelGrid>
17 years, 4 months
JBoss Rich Faces SVN: r2556 - in trunk: framework/impl/src/main/java/org/ajax4jsf/resource and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-28 20:17:07 -0400 (Tue, 28 Aug 2007)
New Revision: 2556
Added:
trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/Media.java
trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaBean.java
trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaData.java
trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/pages/mediaOutput.xhtml
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/event/AjaxPhaseListener.java
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceLifecycle.java
trunk/samples/seamEAR/wars/seamWebapp/pom.xml
trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/WEB-INF/web.xml
Log:
Fix http://jira.jboss.com/jira/browse/AJSF-54
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/event/AjaxPhaseListener.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/event/AjaxPhaseListener.java 2007-08-28 23:44:27 UTC (rev 2555)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/event/AjaxPhaseListener.java 2007-08-29 00:17:07 UTC (rev 2556)
@@ -132,7 +132,8 @@
AjaxContext.getCurrentInstance(context).setViewIdHolder(null);
UIViewRoot root = context.getViewRoot();
- log.debug(Messages.getMessage(
+if (null != root) {
+ log.debug(Messages.getMessage(
Messages.ENTER_BEFORE_RENDER_VIEW_PHASE, root.getViewId(),
root.getRenderKitId()));
@@ -149,8 +150,9 @@
renderKitId));
root.setRenderKitId(renderKitId);
}
- } else if (phaseId == PhaseId.RESTORE_VIEW) {
+ } } else if (phaseId == PhaseId.RESTORE_VIEW) {
+
}
}
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceLifecycle.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceLifecycle.java 2007-08-28 23:44:27 UTC (rev 2555)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceLifecycle.java 2007-08-29 00:17:07 UTC (rev 2556)
@@ -22,24 +22,41 @@
package org.ajax4jsf.resource;
import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
import javax.faces.FacesException;
+import javax.faces.FactoryFinder;
import javax.faces.context.FacesContext;
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;
import javax.faces.lifecycle.Lifecycle;
+import javax.faces.lifecycle.LifecycleFactory;
+import javax.servlet.ServletException;
import org.ajax4jsf.resource.InternetResource;
import org.ajax4jsf.resource.ResourceContext;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
/**
* Lifecycle for simulate faces request processing for resource.
+ *
* @author shura (latest modification by $Author: alexsmirnov $)
* @version $Revision: 1.1.2.1 $ $Date: 2007/01/09 18:56:56 $
- *
+ *
*/
public class ResourceLifecycle extends Lifecycle {
- /* (non-Javadoc)
+ private Lifecycle lifecycle;
+
+ private static final Log _log = LogFactory.getLog(ResourceLifecycle.class);
+
+ /*
+ * (non-Javadoc)
+ *
* @see javax.faces.lifecycle.Lifecycle#addPhaseListener(javax.faces.event.PhaseListener)
*/
public void addPhaseListener(PhaseListener arg0) {
@@ -47,7 +64,9 @@
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see javax.faces.lifecycle.Lifecycle#execute(javax.faces.context.FacesContext)
*/
public void execute(FacesContext arg0) throws FacesException {
@@ -55,7 +74,9 @@
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see javax.faces.lifecycle.Lifecycle#getPhaseListeners()
*/
public PhaseListener[] getPhaseListeners() {
@@ -63,7 +84,9 @@
return null;
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see javax.faces.lifecycle.Lifecycle#removePhaseListener(javax.faces.event.PhaseListener)
*/
public void removePhaseListener(PhaseListener arg0) {
@@ -71,22 +94,101 @@
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see javax.faces.lifecycle.Lifecycle#render(javax.faces.context.FacesContext)
*/
public void render(FacesContext arg0) throws FacesException {
// TODO Auto-generated method stub
}
-
+
/**
* @param context
* @param resource
- * @throws IOException
+ * @throws IOException
*/
- public void send(ResourceContext resourceContext, InternetResource resource) throws IOException{
+ public void send(ResourceContext resourceContext, InternetResource resource)
+ throws IOException {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ PhaseListener[] phaseListeners = null;
+ PhaseEvent renderViewEvent = null;
+ if (null != facesContext) {
+ Lifecycle facesLifecycle = getFacesLifecycle();
+ phaseListeners = facesLifecycle.getPhaseListeners();
+ PhaseEvent restoreViewEvent = new PhaseEvent(facesContext,
+ PhaseId.RESTORE_VIEW, this);
+ // Invoke before restore view phase listeners
+ for (int i = 0; i < phaseListeners.length; i++) {
+ PhaseListener phaseListener = phaseListeners[i];
+ if (PhaseId.RESTORE_VIEW.equals(phaseListener.getPhaseId())
+ || PhaseId.ANY_PHASE.equals(phaseListener.getPhaseId())) {
+ try {
+ phaseListener.beforePhase(restoreViewEvent);
+
+ } catch (Exception e) {
+ _log.error("Exception in PhaseListener, restore view : beforePhase", e);
+ }
+ }
+ }
+ // Invoke after restore view phase listeners
+ for (int i = phaseListeners.length - 1; i > 0; i--) {
+ PhaseListener phaseListener = phaseListeners[i];
+ if (PhaseId.RESTORE_VIEW.equals(phaseListener.getPhaseId())
+ || PhaseId.ANY_PHASE.equals(phaseListener.getPhaseId())) {
+ try {
+ phaseListener.afterPhase(restoreViewEvent);
+
+ } catch (Exception e) {
+ _log.error("Exception in PhaseListener, restore view : afterPhase", e);
+ }
+ }
+ }
+ // Invoke before render view phase listeners
+ renderViewEvent = new PhaseEvent(facesContext,
+ PhaseId.RENDER_RESPONSE, this);
+ for (int i = 0; i < phaseListeners.length; i++) {
+ PhaseListener phaseListener = phaseListeners[i];
+ if (PhaseId.RENDER_RESPONSE.equals(phaseListener.getPhaseId())
+ || PhaseId.ANY_PHASE.equals(phaseListener.getPhaseId())) {
+ try {
+ phaseListener.beforePhase(renderViewEvent);
+
+ } catch (Exception e) {
+ _log.error("Exception in PhaseListener, render view : beforePhase", e);
+ }
+ }
+ }
+ }
resource.sendHeaders(resourceContext);
resource.send(resourceContext);
+ if (null != facesContext) {
+ // Invoke after restore view phase listeners
+ for (int i = phaseListeners.length - 1; i > 0; i--) {
+ PhaseListener phaseListener = phaseListeners[i];
+ if (PhaseId.RENDER_RESPONSE.equals(phaseListener.getPhaseId())
+ || PhaseId.ANY_PHASE.equals(phaseListener.getPhaseId())) {
+ try {
+ phaseListener.afterPhase(renderViewEvent);
+
+ } catch (Exception e) {
+ _log.error("Exception in PhaseListener, render view : afterPhase", e);
+ }
+ }
+ }
+ }
}
+ protected synchronized Lifecycle getFacesLifecycle() {
+ if (lifecycle == null) {
+ // Acquire our Lifecycle instance
+ LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder
+ .getFactory(FactoryFinder.LIFECYCLE_FACTORY);
+ lifecycle = lifecycleFactory
+ .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
+ }
+
+ return lifecycle;
+ }
}
Added: trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/Media.java
===================================================================
--- trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/Media.java (rev 0)
+++ trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/Media.java 2007-08-29 00:17:07 UTC (rev 2556)
@@ -0,0 +1,19 @@
+package org.richfaces.seam;
+
+import java.io.IOException;
+import java.io.OutputStream;
+
+import javax.ejb.Local;
+
+@Local
+public interface Media {
+
+ public void paint(OutputStream out, Object data) throws IOException;
+
+ public void initData();
+
+ public void setData(MediaData data);
+
+ public MediaData getData();
+
+}
Property changes on: trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/Media.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaBean.java
===================================================================
--- trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaBean.java (rev 0)
+++ trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaBean.java 2007-08-29 00:17:07 UTC (rev 2556)
@@ -0,0 +1,64 @@
+package org.richfaces.seam;
+
+import java.awt.Color;
+import java.awt.Graphics2D;
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+import java.io.OutputStream;
+
+import javax.ejb.Stateless;
+import javax.imageio.ImageIO;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Factory;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Out;
+
+@Stateless
+@Name("media")
+public class MediaBean implements Media {
+
+ private MediaData data;
+
+ /**
+ * @return the data
+ */
+ @Out
+ public MediaData getData() {
+ return data;
+ }
+
+ /**
+ * @param data the data to set
+ */
+ public void setData(MediaData data) {
+ this.data = data;
+ }
+
+ @Factory(value="data")
+ public void initData(){
+ data= new MediaData();
+ data.setWidth(100);
+ data.setHeight(100);
+ data.setBackground(Color.BLUE);
+ data.setDrawColor(Color.RED);
+ }
+
+ public void paint(OutputStream out, Object data) throws IOException{
+ if (data instanceof MediaData) {
+
+ MediaData paintData = (MediaData) data;
+ BufferedImage img = new BufferedImage(paintData.getWidth(),paintData.getHeight(),BufferedImage.TYPE_INT_RGB);
+ Graphics2D graphics2D = img.createGraphics();
+ graphics2D.setBackground(paintData.getBackground());
+ graphics2D.setColor(paintData.getDrawColor());
+ graphics2D.clearRect(0,0,paintData.getWidth(),paintData.getHeight());
+ graphics2D.drawLine(5,5,paintData.getWidth()-5,paintData.getHeight()-5);
+ graphics2D.drawChars(new String("RichFaces").toCharArray(),0,9,40,15);
+ graphics2D.drawChars(new String("mediaOutput").toCharArray(),0,11,5,45);
+
+ ImageIO.write(img,"jpeg",out);
+
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaData.java
===================================================================
--- trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaData.java (rev 0)
+++ trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaData.java 2007-08-29 00:17:07 UTC (rev 2556)
@@ -0,0 +1,39 @@
+package org.richfaces.seam;
+
+import java.awt.Color;
+import java.io.Serializable;
+
+public class MediaData implements Serializable{
+
+ private static final long serialVersionUID = 1L;
+ Integer Width=110;
+ Integer Height=50;
+ Color Background=new Color(0,0,0);
+ Color DrawColor=new Color(255,255,255);
+ public MediaData() {
+ }
+ public Color getBackground() {
+ return Background;
+ }
+ public void setBackground(Color background) {
+ Background = background;
+ }
+ public Color getDrawColor() {
+ return DrawColor;
+ }
+ public void setDrawColor(Color drawColor) {
+ DrawColor = drawColor;
+ }
+ public Integer getHeight() {
+ return Height;
+ }
+ public void setHeight(Integer height) {
+ Height = height;
+ }
+ public Integer getWidth() {
+ return Width;
+ }
+ public void setWidth(Integer width) {
+ Width = width;
+ }
+}
\ No newline at end of file
Property changes on: trunk/samples/seamEAR/ejbs/src/main/java/org/richfaces/seam/MediaData.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Modified: trunk/samples/seamEAR/wars/seamWebapp/pom.xml
===================================================================
--- trunk/samples/seamEAR/wars/seamWebapp/pom.xml 2007-08-28 23:44:27 UTC (rev 2555)
+++ trunk/samples/seamEAR/wars/seamWebapp/pom.xml 2007-08-29 00:17:07 UTC (rev 2556)
@@ -45,6 +45,11 @@
<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>
Modified: trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/WEB-INF/web.xml 2007-08-28 23:44:27 UTC (rev 2555)
+++ trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/WEB-INF/web.xml 2007-08-29 00:17:07 UTC (rev 2556)
@@ -13,7 +13,7 @@
<!-- Facelets development mode (disable in production) -->
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
- <param-value>true</param-value>
+ <param-value>false</param-value>
</context-param>
<!-- JSF -->
<context-param>
Added: trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/pages/mediaOutput.xhtml
===================================================================
--- trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/pages/mediaOutput.xhtml (rev 0)
+++ trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/pages/mediaOutput.xhtml 2007-08-29 00:17:07 UTC (rev 2556)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <head>
+ <title>Paint image in a4j:mediaOutput</title>
+ </head>
+ <body>
+ <f:view>
+ <h:form>
+ <h:panelGrid columns="2">
+ Width: <h:inputText value="#{data.width}" required="true"/>
+ Height: <h:inputText value="#{data.height}" required="true"/>
+ </h:panelGrid>
+ <a4j:mediaOutput mimeType="image/jpeg" createContent="#{media.paint}" session="true" value="#{data}"
+ cacheable="false" uriAttribute="src" element="img" style="width:#{data.width};height:#{data.height}"/>
+ <h:messages/>
+ <h:commandButton value="Paint" />
+ </h:form>
+ </f:view>
+ </body>
+
+</html>
\ No newline at end of file
Property changes on: trunk/samples/seamEAR/wars/seamWebapp/src/main/webapp/pages/mediaOutput.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
17 years, 4 months
JBoss Rich Faces SVN: r2555 - in trunk/samples/richfaces-demo/src/main: webapp/images and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-08-28 19:44:27 -0400 (Tue, 28 Aug 2007)
New Revision: 2555
Added:
trunk/samples/richfaces-demo/src/main/webapp/images/cn_ScrollableDataTable.gif
trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml
trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfoNotes.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/webapp/css/common.css
trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxListener.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandLink.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataFilterSlider.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dragIndicator.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dragSupport.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropSupport.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/form.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/include.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inputNumberSlider.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/inputNumberSpinner.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/panel.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelBar.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/region.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/script.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/separator.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/simpleTogglePanel.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/spacer.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/status.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/style.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/togglePanel.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.xhtml
trunk/samples/richfaces-demo/src/main/xslt/tlddoc/tag.html.xsl
Log:
demo update. second tab with tag info has been added
Modified: trunk/samples/richfaces-demo/src/main/webapp/css/common.css
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2007-08-28 23:44:27 UTC (rev 2555)
@@ -261,4 +261,20 @@
.vertical-align-top {
vertical-align: top;
-}
\ No newline at end of file
+}
+
+.TableHeadingColor {
+ background-color:#E9EEF2;
+}
+table.doctable {
+ border:1px solid #CCC;
+ border-left-width:0px;
+ border-bottom-width:0px;
+ margin: 10px 0;
+}
+table.doctable td {
+ border:0px solid #CCC;
+ border-left-width:1px;
+ border-bottom-width:1px;
+}
+
\ No newline at end of file
Added: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ScrollableDataTable.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/images/cn_ScrollableDataTable.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/actionparam.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/actionparam/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/actionparam"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxListener.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxListener.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/ajaxListener.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/ajaxListener/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/ajaxListener"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/bundle.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/bundle/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/loadBundle"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/calendar.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -14,6 +14,9 @@
<rich:tab label="Calendar Model">
<ui:include src="/richfaces/calendar/model.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/calendar"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/commandButton/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/commandButton"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandLink.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandLink.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandLink.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/commandLink/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/commandLink"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataFilterSlider.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataFilterSlider.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataFilterSlider.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/dataFilterSlider/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/dataFilterSlider"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTable.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -5,7 +5,7 @@
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 - Data table</ui:define>
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Data Table</ui:define>
<ui:define name="body">
<rich:tabPanel switchType="server" value="#{componentNavigator.activeTab}" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
<rich:tab label="Usage">
@@ -14,6 +14,9 @@
<rich:tab label="Extended Data Model">
<ui:include src="/richfaces/dataTable/extended-data-model.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/dataTable"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dataTableScroller.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/dataTableScroller/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/datascroller"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dragIndicator.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dragIndicator.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dragIndicator.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/dragSupport/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/dragIndicator"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dragSupport.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dragSupport.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dragSupport.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/dragSupport/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/dragSupport"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropDownMenu.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/dropDownMenu/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/dropDownMenu"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropSupport.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropSupport.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/dropSupport.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/dragSupport/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/dropSupport"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/effect.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -14,6 +14,9 @@
<rich:tab label="Key Attributes">
<ui:include src="/richfaces/effect/attributes.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/effect"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/form.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/form.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/form.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/form/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/form"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/gmap.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -12,6 +12,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/gmap/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/gmap"/>
+ </ui:include>
</rich:tabPanel>
</f:view>
</ui:define>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/include.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/include.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/include.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/include/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/include"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/inputNumberSlider.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/inputNumberSlider.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inputNumberSlider.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -12,6 +12,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/inputNumberSlider/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/inputNumberSlider"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/inputNumberSpinner.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/inputNumberSpinner.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/inputNumberSpinner.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -12,6 +12,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/inputNumberSpinner/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/inputNumberSpinner"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/insert.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/insert/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/insert"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/jsFunction.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -7,7 +7,16 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="title">RichFaces - Open Source Rich JSF Components - Ajax JS Function</ui:define>
<ui:define name="body">
+
+ <rich:tabPanel switchType="server" value="#{componentNavigator.activeTab}" styleClass="top_tab" contentClass="content_tab" headerClass="header_tabs_class" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+
+ <rich:tab label="Usage">
<ui:include src="/richfaces/jsFunction/usage.xhtml"/>
+ </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/jsFunction"/>
+ </ui:include>
+ </rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/keepAlive.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/keepAlive/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/keepAlive"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/mediaOutput.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/mediaOutput/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/mediaOutput"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/modalPanel.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/modalPanel/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/modalPanel"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/outputPanel.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/outputPanel/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/outputPanel"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/paint2D.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/paint2D/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/paint2D"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/panel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/panel.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/panel.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -16,6 +16,9 @@
<rich:tab label="Look Customization">
<ui:include src="/richfaces/panel/look-customization.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/panel"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelBar.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelBar.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/panelBar.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -13,6 +13,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/panelBar/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/panelBar"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/poll.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/poll/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/poll"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/region.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/region.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/region.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/region/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/region"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/script.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/script.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/script.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/script/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/loadScript"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -5,11 +5,6 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <style type="text/css">
- .col {
- color:red;
- }
- </style>
<h:form>
<rich:spacer height="30" />
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/scrollableDataTable/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/scrollableDataTable"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/separator.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/separator.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/separator.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -12,6 +12,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/separator/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/separator"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/simpleTogglePanel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/simpleTogglePanel.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/simpleTogglePanel.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/simpleTogglePanel/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/simpleTogglePanel"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/spacer.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/spacer.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/spacer.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -12,6 +12,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/spacer/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/spacer"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/status.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/status.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/status.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/status/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/status"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/style.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/style.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/style.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/style/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/loadStyle"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/suggestionBox.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -11,6 +11,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/suggestionBox/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/suggestionBox"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -12,10 +12,11 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/support/usage.xhtml"/>
</rich:tab>
- <rich:tab label="Documentation">
- <rich:insert src="/doc/support/tagInfo.html"/>
- </rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="a4j/support"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
</html>
+
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tabPanel.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -14,6 +14,9 @@
<rich:tab label="Look Customization">
<ui:include src="/richfaces/tabPanel/look-customization.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/tabPanel"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/togglePanel.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/togglePanel.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/togglePanel.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -13,6 +13,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/togglePanel/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/togglePanel"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolBar.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -13,6 +13,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/toolBar/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/toolBar"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -16,6 +16,9 @@
<rich:tab label="Use ToolTip with DataTable">
<ui:include src="/richfaces/toolTip/use-with-data-table.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/toolTip"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.xhtml 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/tree.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -13,6 +13,9 @@
<rich:tab label="Usage">
<ui:include src="/richfaces/tree/usage.xhtml"/>
</rich:tab>
+ <ui:include src="/templates/include/tagInfo.xhtml">
+ <ui:param name="path" value="rich/tree"/>
+ </ui:include>
</rich:tabPanel>
</ui:define>
</ui:composition>
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfo.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -0,0 +1,13 @@
+<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>
+ <rich:tab label="Tag Information">
+ <rich:insert src="/WEB-INF/tlddoc/#{path}.html"
+ errorContent="/templates/include/tagInfoNotes.xhtml"/>
+ </rich:tab>
+</ui:composition>>
+</html>
+
Added: trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfoNotes.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfoNotes.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/include/tagInfoNotes.xhtml 2007-08-28 23:44:27 UTC (rev 2555)
@@ -0,0 +1,16 @@
+<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>
+ <f:verbatim>
+ The information from this tab is generated and incorporated in the richfaces-demo.war
+ file with Maven process. The target page is located under /WEB-INF/tlddoc folder.<br/>
+ As soon as you read this text, you have no such folder in your run-time enviroment
+ right now.<br />
+ If you use Jetty to run, use 'mvn jetty:run-war' command.
+ </f:verbatim>
+</ui:composition>
+</html>
+
Modified: trunk/samples/richfaces-demo/src/main/xslt/tlddoc/tag.html.xsl
===================================================================
--- trunk/samples/richfaces-demo/src/main/xslt/tlddoc/tag.html.xsl 2007-08-28 22:54:34 UTC (rev 2554)
+++ trunk/samples/richfaces-demo/src/main/xslt/tlddoc/tag.html.xsl 2007-08-28 23:44:27 UTC (rev 2555)
@@ -170,31 +170,6 @@
</xsl:choose>
</table>
- <!-- Variable Information -->
- <table border="1" cellpadding="3" cellspacing="0" width="100%">
- <tr bgcolor="#CCCCFF" class="TableHeadingColor">
- <td colspan="5">
- <font size="+2">
- <b>Variables</b>
- </font>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when test="count(javaee:variable)>0">
- <tr>
- <td><b>Name</b></td>
- <td><b>Type</b></td>
- <td><b>Declare</b></td>
- <td><b>Scope</b></td>
- <td><b>Description</b></td>
- </tr>
- <xsl:apply-templates select="javaee:variable"/>
- </xsl:when>
- <xsl:otherwise>
- <td colspan="2"><i>No Variables Defined.</i></td>
- </xsl:otherwise>
- </xsl:choose>
- </table>
</xsl:if>
</xsl:template>
17 years, 4 months
JBoss Rich Faces SVN: r2554 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-28 18:54:34 -0400 (Tue, 28 Aug 2007)
New Revision: 2554
Modified:
trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
Log:
http://jira.jboss.com/jira/browse/RF-749
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-28 21:48:48 UTC (rev 2553)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js 2007-08-28 22:54:34 UTC (rev 2554)
@@ -43,12 +43,12 @@
},
onup: function(event) {
- this.endDrag();
+ this.endDrag(event);
},
- endDrag: function() {
+ endDrag: function(event) {
this.deactivate();
- this.callback();
+ this.callback(event);
},
deactivate: function() {
@@ -148,10 +148,10 @@
if (!this.endDragListener) {
this.dragTrigger = this.moveDrag.bindAsEventListener(this);
- this.endDragListener = new DnD.DragEndListener(function() {
+ this.endDragListener = new DnD.DragEndListener(function(localEvent) {
Event.stopObserving(document, "mousemove", this.dragTrigger);
- this.endDrag(event, window.drag);
+ this.endDrag(localEvent, window.drag);
}.bind(this));
}
17 years, 4 months
JBoss Rich Faces SVN: r2553 - in trunk/ui/tree/src/main/java/org/richfaces: renderkit and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-28 17:48:48 -0400 (Tue, 28 Aug 2007)
New Revision: 2553
Modified:
trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
Log:
http://jira.jboss.com/jira/browse/RF-700 minor updates
Modified: trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java 2007-08-28 19:18:34 UTC (rev 2552)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java 2007-08-28 21:48:48 UTC (rev 2553)
@@ -38,7 +38,6 @@
import org.ajax4jsf.component.AjaxComponent;
import org.ajax4jsf.component.UIDataAdaptor;
-import org.ajax4jsf.context.AjaxContext;
import org.ajax4jsf.event.AjaxEvent;
import org.ajax4jsf.model.DataComponentState;
import org.ajax4jsf.model.DataVisitor;
@@ -53,8 +52,6 @@
import org.richfaces.component.state.events.ExpandAllCommandEvent;
import org.richfaces.component.state.events.ExpandNodeCommandEvent;
import org.richfaces.component.state.events.TreeStateCommandEvent;
-import org.richfaces.event.AjaxExpandedEvent;
-import org.richfaces.event.AjaxSelectedEvent;
import org.richfaces.event.DragEvent;
import org.richfaces.event.DragListener;
import org.richfaces.event.DropEvent;
@@ -495,17 +492,6 @@
setSelected();
}
- if (event instanceof AjaxSelectedEvent || event instanceof AjaxExpandedEvent) {
- Object key = getRowKey();
- if (key != null) {
- this.addRequestKey(key);
- }
-
- FacesContext facesContext = getFacesContext();
- AjaxContext ajaxContext = AjaxContext.getCurrentInstance(facesContext);
- ajaxContext.getAjaxAreasToRender().add(this.getClientId(facesContext));
- }
-
// fire node events
TreeEvents.invokeListenerBindings(this, event, getFacesContext());
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-08-28 19:18:34 UTC (rev 2552)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-08-28 21:48:48 UTC (rev 2553)
@@ -425,16 +425,16 @@
} else {
treeClientId = tree.getNodeFacet().getClientId(context);
}
- if (ids.contains(tree.getClientId(context)) || ids.contains(id)) {
- String treeChildrenId = treeClientId + NamingContainer.SEPARATOR_CHAR + "childs";
- writeContent(context, tree, key);
- encodeScripts = true;
- renderedAreas.add(treeClientId);
- encodedAreaIds.add(treeClientId);
- renderedAreas.add(treeChildrenId);
- //encodedAreaIds.add(id+":childs");
- }
+ String treeChildrenId = treeClientId + NamingContainer.SEPARATOR_CHAR + "childs";
+
+ writeContent(context, tree, key);
+ encodeScripts = true;
+ renderedAreas.add(treeClientId);
+ encodedAreaIds.add(treeClientId);
+
+ renderedAreas.add(treeChildrenId);
+ //encodedAreaIds.add(id+":childs");
}
//ajaxKeys.clear();
}
@@ -564,12 +564,10 @@
public void writeContent(final FacesContext context, final UITree input,
TreeRowKey key) throws IOException {
- final ResponseWriter writer = context.getResponseWriter();
-
// simple flag can be used here because
// we cannot jump more than one level down until next node
// when rendering
- final Flag droppedDownToLevelFlag = new Flag();
+ Flag droppedDownToLevelFlag = new Flag();
TreeRowKey rowKey = (TreeRowKey) key;
17 years, 4 months
JBoss Rich Faces SVN: r2552 - trunk/framework/impl/src/main/javascript/ajaxjsf.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-28 15:18:34 -0400 (Tue, 28 Aug 2007)
New Revision: 2552
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
Log:
Fix http://jira.jboss.com/jira/browse/AJSF-115 - error handling for a poll component.
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2007-08-28 17:47:30 UTC (rev 2551)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2007-08-28 19:18:34 UTC (rev 2552)
@@ -55,11 +55,14 @@
window.clearTimeout(_this._timeoutID);
}
var requestStatus;
+ var requestStatusText;
try{
requestStatus = _this._request.status;
+ requestStatusText = _this._request.statusText;
} catch(e){
LOG.error("request don't have status code - network problem");
requestStatus = 501;
+ requestStatusText = "Network error";
}
if(requestStatus == 200){
try {
@@ -79,7 +82,7 @@
_this.onready(_this);
}
} else {
- _this._errorMessage = "Reqest error, status : "+requestStatus +" " + _this._request.statusText + "\n Message: " + _this.getResponseHeader("Ajax-Error-Message");
+ _this._errorMessage = "Reqest error, status : "+requestStatus +" " + requestStatusText ;
LOG.error(_this._errorMessage);
if(typeof(_this._onerror) == "function"){
_this._onerror(_this,requestStatus,_this._errorMessage);
@@ -409,10 +412,15 @@
*/
A4J.AJAX.Poll = function( containerId, form, options ) {
A4J.AJAX.StopPoll(options.pollId);
- options.onerror = function(){
+ if(!options.onerror){
+ options.onerror = function(req,status,message){
+ if(typeof(A4J.AJAX.onError)== "function"){
+ A4J.AJAX.onError(req,status,message);
+ }
// For error, re-submit request.
- A4J.AJAX.Poll(containerId,form,options);
- };
+ A4J.AJAX.Poll(containerId,form,options);
+ };
+ }
A4J.AJAX._pollers[options.pollId] = window.setTimeout(function(){
A4J.AJAX._pollers[options.pollId]=undefined;
if((typeof(options.onsubmit) == 'function') && (!options.onsubmit())){
17 years, 4 months
JBoss Rich Faces SVN: r2551 - trunk/docs.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-28 13:47:30 -0400 (Tue, 28 Aug 2007)
New Revision: 2551
Removed:
trunk/docs/taglibxsl/
Modified:
trunk/docs/pom.xml
Log:
remove unused project with Tlddoc styles
Modified: trunk/docs/pom.xml
===================================================================
--- trunk/docs/pom.xml 2007-08-28 17:32:56 UTC (rev 2550)
+++ trunk/docs/pom.xml 2007-08-28 17:47:30 UTC (rev 2551)
@@ -83,6 +83,5 @@
<module>maven-docbook-plugin</module>
-->
<module>userguide</module>
- <module>taglibxsl</module>
</modules>
</project>
\ No newline at end of file
17 years, 4 months
JBoss Rich Faces SVN: r2550 - trunk/docs/xslt/en/src/main/xslt.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-28 13:32:56 -0400 (Tue, 28 Aug 2007)
New Revision: 2550
Modified:
trunk/docs/xslt/en/src/main/xslt/f.xsl
Log:
http://jira.jboss.com/jira/browse/RHDS-147 - attributes sorting alphabetically
Modified: trunk/docs/xslt/en/src/main/xslt/f.xsl
===================================================================
--- trunk/docs/xslt/en/src/main/xslt/f.xsl 2007-08-28 17:28:51 UTC (rev 2549)
+++ trunk/docs/xslt/en/src/main/xslt/f.xsl 2007-08-28 17:32:56 UTC (rev 2550)
@@ -80,18 +80,16 @@
</row>
</thead>
<tbody>
- <xsl:for-each
- select="javaee:attribute | attribute">
+ <xsl:for-each select="javaee:attribute | attribute">
+ <xsl:sort select="javaee:name|name" />
<row>
<entry>
- <xsl:value-of select="javaee:name" />
- <xsl:value-of select="name" />
+ <xsl:value-of select="javaee:name"/>
+ <xsl:value-of select="name"/>
</entry>
<entry>
- <xsl:value-of
- select="javaee:description" disable-output-escaping="yes" />
- <xsl:value-of select="description"
- disable-output-escaping="yes" />
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ <xsl:value-of select="description" disable-output-escaping="yes"/>
</entry>
</row>
</xsl:for-each>
17 years, 4 months
JBoss Rich Faces SVN: r2549 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-28 13:28:51 -0400 (Tue, 28 Aug 2007)
New Revision: 2549
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-656 - the content was changed according to the merging of two projects
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2007-08-28 16:54:08 UTC (rev 2548)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCGettingStarted.xml 2007-08-28 17:28:51 UTC (rev 2549)
@@ -45,7 +45,11 @@
</note-->
<listitem> Add the following content into the <emphasis>
<property>"WEB-INF/web.xml"</property>
- </emphasis> file of your application: <programlisting role="XML"><![CDATA[
+ </emphasis> file of your application: <programlisting role="XML"><![CDATA[...
+ <context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>blueSky</param-value>
+ </context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
@@ -73,12 +77,12 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> ]]></programlisting>
<para>For XHTML pages:</para>
<programlisting role="XML"><![CDATA[<xmlns:a4j="http://richfaces.org/a4j">
-<xmlns:a4j="http://richfaces.org/rich">]]></programlisting>
+<xmlns:rich="http://richfaces.org/rich">]]></programlisting>
</listitem>
</itemizedlist>
<note>
<title>Note:</title>
- <para>The previous URIs (https://ajax4jsf.dev.java.net/ajax and
+ <para>The previous namespaces URIs (https://ajax4jsf.dev.java.net/ajax and
http://richfaces.ajax4jsf.org/rich) are also available for backward compatibility.</para>
</note>
</section>
@@ -111,17 +115,31 @@
<body>
<f:view>
<h:form>
- <h:inputText size="50" value="#{bean.text}" >
- <a4j:support event="onkeyup" reRender="rep"/>
- </h:inputText>
- <h:outputText value="#{bean.text}" id="rep"/>
+ <rich:panel header="Simple Echo">
+ <h:inputText size="50" value="#{bean.text}" >
+ <a4j:support event="onkeyup" reRender="rep"/>
+ </h:inputText>
+ <h:outputText value="#{bean.text}" id="rep"/>
+ </rich:panel>
</h:form>
</f:view>
</body>
</html>]]></programlisting>
- <para>The only line that distinguishes this page from a "regular" JSF one is</para>
- <programlisting role="XML"><![CDATA[<a4j:support event="onkeyup" reRender="rep"/>]]></programlisting>
- <para>The line adds an Ajax support to the parent <emphasis role="bold">
+ <para>Only two tags distinguish this page from a "regular" JSF
+ one. There are <emphasis role="bold">
+ <property><rich:panel></property>
+ </emphasis> and <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis>.</para>
+
+ <para>The <emphasis role="bold">
+ <property><rich:panel></property>
+ </emphasis>allows to place the page elements in rectangle panel that can be skinned.</para>
+
+ <para>The <emphasis role="bold">
+ <property><a4j:support></property>
+ </emphasis> with corresponding attributes (as it was shown in the previous example) adds an
+ Ajax support to the parent <emphasis role="bold">
<property><h:inputText></property>
</emphasis> tag. This support is bound to "onkeyup" JavaScript event, so
that each time when this event is fired on the parent tag, our application sends an Ajax
@@ -188,15 +206,18 @@
<section id="Web.xml">
<?dbhtml filename="Web.xml.html"?>
<title>Web.xml</title>
- <para>It is also necessary to add jar files (see <link linkend="Installation"
- >installation chapter</link>) and modify the "web.xml" file: </para>
+ <para>It is also necessary to add jar files (see <link linkend="Installation">installation
+ chapter</link>) and modify the "web.xml" file: </para>
<programlisting role="XML"> <![CDATA[<?xml version="1.0"?>
<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>a4jEchoText</display-name>
<context-param>
+ <param-name>org.richfaces.SKIN</param-name>
+ <param-value>blueSky</param-value>
+ </context-param>
+ <context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml 2007-08-28 16:54:08 UTC (rev 2548)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCSettings.xml 2007-08-28 17:28:51 UTC (rev 2549)
@@ -35,7 +35,7 @@
<section id="ApacheMyFaces">
<?dbhtml filename="ApacheMyFaces.html"?>
<title>Apache MyFaces</title>
- <para>RichFaces works with all <property>Apache MyFaces</property> versions (1.1.1 - 1.1.5)
+ <para>RichFaces works with all <property>Apache MyFaces</property> versions (1.1.1 - 1.1.6)
including specific libraries like Tomahawk Sandbox and Trinidad (the previous ADF Faces).
However, there are some considerations to take into account for configuring applications to
work with <property>MyFaces</property> and RichFaces.</para>
@@ -190,7 +190,7 @@
</section>
<section id="Portlet Support">
<title>Portlet Support</title>
- <para><property>Portlets</property> have support since version Ajax4jsf 1.1.1. This support is
+ <para><property>JBoss Portlets</property> have support since version Ajax4jsf 1.1.1. This support is
improved in Richfaces 3.1.0. Provide your feedback on compatible with RichFaces if you face
some problems.</para>
</section>
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-08-28 16:54:08 UTC (rev 2548)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2007-08-28 17:28:51 UTC (rev 2549)
@@ -50,13 +50,12 @@
</mediaobject>
<formalpara>
<title>Ajax Filter.</title>
- <para>To get all benefits of <property>RichFaces</property>, you should register an Ajax Filter in web.xml
- file of your application.The Ajax Filter recognizes multiple request types. The sequence diagram on Figure 3
+ <para>To get all benefits of <property>RichFaces</property>, you should register a Filter in web.xml
+ file of your application. The Filter recognizes multiple request types. The sequence diagram on Figure 3
shows the difference in processing of a "regular" JSF request and an Ajax request.</para>
</formalpara>
<para>In the first case the whole JSF tree will be encoded,
- in the second one option it depends on the "size" of the Ajax region (you can define Ajax region
- by using the <emphasis role="bold"><property><a4j:region></property></emphasis>). As you can see, in the second case the filter parses
+ in the second one option it depends on the "size" of the Ajax region. As you can see, in the second case the filter parses
the content of an Ajax response before sending it to the client side.</para>
<para>Have a look at the next picture to understand these two ways:</para>
<figure>
@@ -69,10 +68,10 @@
</mediaobject>
<para>In both cases, the information about required static or dynamic resources that your application
requests is registered in the ResourseBuilder class.</para>
- <para>When a request for a resource comes (Figure 4), the Ajax filter checks the Resource Cache
+ <para>When a request for a resource comes (Figure 4), the RichFaces filter checks the Resource Cache
for this resource and if it is there, the resource is sent to the client. Otherwise,
the filter searches for the resource among those that are registered by the
- ResourceBuilder. If the resource is registered, the Ajax filter will send a request to the
+ ResourceBuilder. If the resource is registered, the RichFaces filter will send a request to the
ResourceBuilder to create (deliver) the resource.</para>
<para>Next Figure shows the ways of resource request processing.</para>
<figure>
@@ -86,7 +85,7 @@
<formalpara>
<title>AJAX Action Components</title>
<para>
- There are four Ajax Action Components: AjaxCommandButton, AjaxCommandLink, AjaxPoll and AjaxSupport.
+ There are Ajax Action Components: AjaxCommandButton, AjaxCommandLink, AjaxPoll and AjaxSupport and etc.
You can use them to send Ajax requests from the client side.
</para>
</formalpara>
@@ -111,7 +110,7 @@
<para>In order to create RichFaces applications properly, keep the following points in mind:</para>
<itemizedlist>
<listitem>
- The Ajax framework should not append or delete, but only replace elements on the page. For successful updates, an element with the same ID as in the response must exist on the page. If you'd like to append any code to a page, put in a placeholder for it (any empty element). For the same reason, it's recommended to place messages in the<emphasis >
+ Any Ajax framework should not append or delete, but only replace elements on the page. For successful updates, an element with the same ID as in the response must exist on the page. If you'd like to append any code to a page, put in a placeholder for it (any empty element). For the same reason, it's recommended to place messages in the<emphasis >
<property>"AjaxOutput"</property>
</emphasis> component (as no messages is also a message).
</listitem>
@@ -131,12 +130,12 @@
<section id="SendAnAJAXRequest">
<?dbhtml filename="SendAnAJAXRequest.html"?>
<title>Send an Ajax request</title>
- <para>There are different ways to send Ajax requests from your JSF page. You may use
+ <para>There are different ways to send Ajax requests from your JSF page. For example you can use
<emphasis role="bold"><property><a4j:commandButton></property></emphasis>, <emphasis role="bold">
<property><a4j:commandLink></property>, <emphasis role="bold"><property><a4j:poll></property></emphasis>
</emphasis> or <emphasis role="bold">
<property><a4j:support></property>
- </emphasis> tags.
+ </emphasis> tags or any other.
</para>
<para>All these tags hide the usual JavaScript activities that are required for an XMHttpRequest
object building and an Ajax request sending. Also, they allow you to decide which components of
@@ -202,8 +201,18 @@
</emphasis> attributes specify regions to be sent with a request,
if "false" it is a full region, in other case it's is only a control caused
event.
-</listitem>
- </itemizedlist>
+ </listitem>
+
+ <listitem> <emphasis >
+ <property>"timeout"</property>
+ </emphasis>attribute is used for response waiting time on a particular request. If a response is not received during this time, the request is aborted.
+ </listitem>
+
+ <listitem> <emphasis >
+ <property>"ignoreDupResponses"</property>
+ </emphasis> is used to abort unfinished request on new event.
+ </listitem>
+ </itemizedlist>
</section>
<section id="DecideWhatToSend">
<?dbhtml filename="DecideWhatToSend.html"?>
@@ -226,7 +235,7 @@
</emphasis> tag.
</para>
<para>If you wish to render the content of an Ajax response outside of the active region then
- the value of the "renderRegionOnly" attribute should be set to "false". Otherwise, your
+ the value of the "renderRegionOnly" attribute should be set to "false" ("false" is default value). Otherwise, your
Ajax updates are limited to elements of the active region.
</para>
</section>
17 years, 4 months
JBoss Rich Faces SVN: r2548 - trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2007-08-28 12:54:08 -0400 (Tue, 28 Aug 2007)
New Revision: 2548
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
RF-667, RF-651
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-28 16:51:07 UTC (rev 2547)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-28 16:54:08 UTC (rev 2548)
@@ -494,9 +494,9 @@
if (weekDayCounter==6) weekDayCounter=0; else weekDayCounter++;
styleClass = "rich-calendar-days";
- if (i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber) styleClass += "rich-calendar-weekends";
+ if (i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber) styleClass += " rich-calendar-weekends";
- if (i==6) styleClass += "rich-right-cell";
+ if (i==6) styleClass += " rich-right-cell";
htmlTextWeekDayBar+='<td class="'+styleClass+'">'+weekDayHtml+'</td>';
}
htmlTextWeekDayBar+='</tr>\n';
17 years, 4 months