JBoss Rich Faces SVN: r1775 - in trunk/ui: suggestionbox/src/main/java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-23 04:45:13 -0400 (Mon, 23 Jul 2007)
New Revision: 1775
Modified:
trunk/ui/paint2D/src/main/java/org/richfaces/renderkit/html/Paint2DResource.java
trunk/ui/suggestionbox/src/main/java/org/richfaces/component/UISuggestionBox.java
trunk/ui/virtualEarth/
Log:
Extra log instantiations removed
Modified: trunk/ui/paint2D/src/main/java/org/richfaces/renderkit/html/Paint2DResource.java
===================================================================
--- trunk/ui/paint2D/src/main/java/org/richfaces/renderkit/html/Paint2DResource.java 2007-07-23 08:44:28 UTC (rev 1774)
+++ trunk/ui/paint2D/src/main/java/org/richfaces/renderkit/html/Paint2DResource.java 2007-07-23 08:45:13 UTC (rev 1775)
@@ -42,8 +42,6 @@
import org.ajax4jsf.resource.ResourceContext;
import org.ajax4jsf.resource.ResourceRenderer;
import org.ajax4jsf.util.HtmlColor;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.richfaces.component.UIPaint2D;
/**
@@ -54,8 +52,6 @@
*/
public class Paint2DResource extends InternetResourceBase {
- private static final Log log = LogFactory.getLog(Paint2DResource.class);
-
private static final ImageRenderer[] _renderers= {new GifRenderer(), new JpegRenderer(), new PngRenderer()};
private static final ThreadLocal threadLocalContentType = new ThreadLocal();
Modified: trunk/ui/suggestionbox/src/main/java/org/richfaces/component/UISuggestionBox.java
===================================================================
--- trunk/ui/suggestionbox/src/main/java/org/richfaces/component/UISuggestionBox.java 2007-07-23 08:44:28 UTC (rev 1774)
+++ trunk/ui/suggestionbox/src/main/java/org/richfaces/component/UISuggestionBox.java 2007-07-23 08:45:13 UTC (rev 1775)
@@ -21,24 +21,21 @@
package org.richfaces.component;
-import org.ajax4jsf.component.AjaxComponent;
-import org.ajax4jsf.context.AjaxContext;
-import org.ajax4jsf.event.AjaxEvent;
-import org.ajax4jsf.event.AjaxListener;
-import org.ajax4jsf.event.AjaxSource;
-import org.ajax4jsf.renderkit.AjaxRendererUtils;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
import javax.faces.component.UIData;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.el.MethodBinding;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.FacesEvent;
-import javax.faces.event.PhaseId;
+import org.ajax4jsf.component.AjaxComponent;
+import org.ajax4jsf.context.AjaxContext;
+import org.ajax4jsf.event.AjaxEvent;
+import org.ajax4jsf.event.AjaxListener;
+import org.ajax4jsf.event.AjaxSource;
+import org.ajax4jsf.renderkit.AjaxRendererUtils;
+
/**
* UI implementation for SuggestionBox component.
*
@@ -48,10 +45,6 @@
public abstract class UISuggestionBox extends UIData
implements AjaxComponent, AjaxSource {
- /**
- * Log for component.
- */
- private static Log log = LogFactory.getLog(UISuggestionBox.class);
/**
* Component type.
Property changes on: trunk/ui/virtualEarth
___________________________________________________________________
Name: svn:ignore
- target
+ target
.classpath
.project
.settings
17 years, 5 months
JBoss Rich Faces SVN: r1774 - trunk/ui.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-23 04:44:28 -0400 (Mon, 23 Jul 2007)
New Revision: 1774
Modified:
trunk/ui/pom.xml
Log:
ANTLR killed from deps
Modified: trunk/ui/pom.xml
===================================================================
--- trunk/ui/pom.xml 2007-07-23 08:14:26 UTC (rev 1773)
+++ trunk/ui/pom.xml 2007-07-23 08:44:28 UTC (rev 1774)
@@ -120,11 +120,6 @@
</exclusions>
</dependency>
<dependency>
- <groupId>org.antlr</groupId>
- <artifactId>antlr</artifactId>
- <version>3.0</version>
- </dependency>
- <dependency>
<groupId>org.richfaces.framework</groupId>
<artifactId>richfaces-impl</artifactId>
<version>3.1.0-SNAPSHOT</version>
17 years, 5 months
JBoss Rich Faces SVN: r1773 - branches/3.0.2/sandbox/scrollable-grid/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: dmorozov
Date: 2007-07-23 04:14:26 -0400 (Mon, 23 Jul 2007)
New Revision: 1773
Modified:
branches/3.0.2/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx
Log:
Modified: branches/3.0.2/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx
===================================================================
--- branches/3.0.2/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx 2007-07-22 22:27:10 UTC (rev 1772)
+++ branches/3.0.2/sandbox/scrollable-grid/src/main/templates/org/richfaces/scrollable-grid-header-cell.jspx 2007-07-23 08:14:26 UTC (rev 1773)
@@ -12,9 +12,9 @@
component="javax.faces.component.UIComponent"
>
- <td class="ClientUI_Grid_HC Idg-header-cell #{component.attributes['headerClass']}" id="#{client_id}:hc_#{cell_index}" columnIndex="#{cell_index}" sortable="#{component.attributes['sortable']}">
+ <td class="ClientUI_Grid_HC Idg-header-cell" id="#{client_id}:hc_#{cell_index}" columnIndex="#{cell_index}" sortable="#{component.attributes['sortable']}">
<div id="#{clientId}:hcb_#{cell_index}"
- class="ClientUI_Grid_HCBody">
+ class="ClientUI_Grid_HCBody #{component.attributes['headerClass']}">
<vcp:body/>
<div align="right" id="#{client_id}:hsortd_#{cell_index}" class="sort-desc" />
<div align="right" id="#{client_id}:hsorta_#{cell_index}" class="sort-asc" />
17 years, 5 months
JBoss Rich Faces SVN: r1772 - in trunk/sandbox: ui/message and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-22 18:27:10 -0400 (Sun, 22 Jul 2007)
New Revision: 1772
Added:
trunk/sandbox/ui/message/design/
trunk/sandbox/ui/message/design/funcspec/
trunk/sandbox/ui/message/design/funcspec/FuncSpec - RF Message Component.doc
trunk/sandbox/ui/message/design/funcspec/FuncSpec - RF Messages Component.doc
Removed:
trunk/sandbox/samples/tooltip-sample/
Modified:
trunk/sandbox/samples/pom.xml
trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
Log:
- Code review made for rich-message
- Functional specification for rich-message commited
- tooltip-sample removed
Modified: trunk/sandbox/samples/pom.xml
===================================================================
--- trunk/sandbox/samples/pom.xml 2007-07-22 12:17:52 UTC (rev 1771)
+++ trunk/sandbox/samples/pom.xml 2007-07-22 22:27:10 UTC (rev 1772)
@@ -18,7 +18,7 @@
<module>panel2-sample</module>
<module>simpleTogglePanel2-sample</module>
<module>panelmenu-sample</module>
- <module>tooltip-sample</module>
+
<module>rich-message-demo </module>
</modules>
</project>
\ No newline at end of file
Added: trunk/sandbox/ui/message/design/funcspec/FuncSpec - RF Message Component.doc
===================================================================
(Binary files differ)
Property changes on: trunk/sandbox/ui/message/design/funcspec/FuncSpec - RF Message Component.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/sandbox/ui/message/design/funcspec/FuncSpec - RF Messages Component.doc
===================================================================
(Binary files differ)
Property changes on: trunk/sandbox/ui/message/design/funcspec/FuncSpec - RF Messages Component.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java
===================================================================
--- trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-22 12:17:52 UTC (rev 1771)
+++ trunk/sandbox/ui/message/src/main/java/org/richfaces/renderkit/html/RichMessageBaseRenderer.java 2007-07-22 22:27:10 UTC (rev 1772)
@@ -18,6 +18,7 @@
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
import org.ajax4jsf.renderkit.RendererBase;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
+import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.richfaces.component.UIRichMessage;
@@ -35,6 +36,7 @@
public static final String COMPONENT_NOT_FOUND_IN_VIEW_WARN_MESSAGE = "component not found in the view WARNING";
+ //TODO nick - anton - local fields are not allowed in renderers
public boolean isError = false;
private RendererBase messageTemplate = null;
@@ -44,6 +46,7 @@
Iterator msgIter = null;
+ //TODO nick - anton - use || instead of &&
if(component == null && context == null){
throw new NullPointerException(NULL_PARAMETER_ERROR_MESSAGE);
}
@@ -64,8 +67,11 @@
String clientId = msgComponent.getClientId(context);
String forClientId = msgComponent.getFor();
+ //TODO nick - anton - stop encoding messages. we should ALWAYS encode root tag of the component
+ // to handle AJAX re-rendering even if messages are absent
if(forClientId == null){
if(log.isInfoEnabled()){
+ //TODO nick - anton - error or info?
log.info(NULL_PARAMETER_ERROR_MESSAGE);
}
}
@@ -74,7 +80,10 @@
ResponseWriter writer = context.getResponseWriter();
if(!msgIter.hasNext() && isError){
+ //TODO nick - anton - that part of code fully ignores marker location
+ //TODO nick - anton - check getFacet(...) for null, that wouldn't cause creation of facets map.
+ // refer to JavaDoc for more
if(msgComponent.getFacets().containsKey("passedMarker")){
UIComponent facet = msgComponent.getFacet("passedMarker");
@@ -82,15 +91,18 @@
String markerClass = (String) msgComponent.getAttributes().get("markerClass");
String markerStyle = (String) msgComponent.getAttributes().get("markerStyle");
+ //TODO nick - anton - huge attributes list
renderMarkerFacet(msgComponent, facet, context, writer, markerClass, markerStyle);
}
+ //TODO nick - anton - store variable here and use it then
if(msgComponent.getPassedLabel() != null){
String passLabel = (String) msgComponent.getPassedLabel();
String labelClass = (String) msgComponent.getAttributes().get("labelClass");
String labelStyle = (String) msgComponent.getAttributes().get("labelStyle");
+ //TODO nick - anton - huge attributes list
renderLabel(msgComponent, null, context, writer, labelClass,
labelStyle, false, false, false,passLabel,true);
}
@@ -104,6 +116,7 @@
doEncodeEnd(writer, context, msgComponent);
+ //TODO nick - anton - too late to add component to re-rendering
if(isError){
AjaxContext ajaxContext = AjaxContext.getCurrentInstance(context);
@@ -122,9 +135,10 @@
boolean showDetail = uiMsg.isShowDetail();
+ //TODO nick - anton - use getUtils().isBooleanAttribute(component, name)
+ // why not make it boolean?
Object tooltip = uiMsg.getAttributes().get("tooltip");
boolean isTooltip = false;
-
if(tooltip instanceof Boolean){
isTooltip = ((Boolean)tooltip).booleanValue();
}
@@ -218,10 +232,12 @@
protected void renderMarkerFacet(UIRichMessage uiMsg, UIComponent marker, FacesContext context, ResponseWriter writer, String markerClass, String markerStyle) throws IOException{
+ //TODO nick - anton - check if marker is rendered
if(marker == null){
return;
}
-
+
+ //TODO nick - anton - default message element is rendered as span. Consider revising FuncSpec-RF-M-NFR-010-1.0 layout
writer.startElement(HTML.td_ELEM, uiMsg);
String classes = markerClass == null ? "rich-message-marker" : "rich-message-marker " + markerClass;
@@ -292,18 +308,21 @@
}else{
UIComponent result = findForComponent(context, forClientId,component);
if (result == null) {
+ //TODO nick - anton consider using CollectionUtils.EMPTY_COLLECTION.iterator()
msgIter = Collections.EMPTY_LIST.iterator();
} else {
msgIter = context.getMessages(result.getClientId(context));
}
}
}else{
+ //TODO nick - anton - no need for global messages
msgIter = context.getMessages();
}
return msgIter;
}
+ //TODO nick - anton - candidate for utility method
protected UIComponent findForComponent(FacesContext context, String forClientId, UIComponent component){
if(null == forClientId || forClientId.length() == 0){
@@ -328,6 +347,7 @@
}
} catch(Throwable t){
+ //TODO nick - anton - do not catch Throwables!!! you can catch OutOfMemoryError and swallow it here
throw new RuntimeException(COMPONENT_NOT_FOUND_IN_VIEW_WARN_MESSAGE + ":"+ forClientId);
}
@@ -343,6 +363,7 @@
protected UIComponent findComponentBelow(UIComponent startComponent, String forClientId){
UIComponent retComp = null;
+ //TODO nick - anton - better check if getChildCount() == 0 first
List children = startComponent.getChildren();
for(int i = 0, size = children.size(); i < size; i++){
@@ -366,7 +387,8 @@
};
private RendererBase getMessageTemplate(){
-
+ //TODO nick - anton - really so no need for external template renderer
+ //TODO nick - anton - such code blocks should be somehow synchronized
if (messageTemplate == null) {
try {
@@ -385,6 +407,7 @@
}
protected Class getComponentClass(){
+ //TODO nick - anton - return UIMessage.class here
return getClass();
}
}
17 years, 5 months
JBoss Rich Faces SVN: r1771 - in trunk/framework/impl: src/main/java/org/richfaces/component/util and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-07-22 08:17:52 -0400 (Sun, 22 Jul 2007)
New Revision: 1771
Added:
trunk/framework/impl/src/main/java/org/richfaces/component/util/ComponentUtil.java
trunk/framework/impl/src/test/java/org/richfaces/
trunk/framework/impl/src/test/java/org/richfaces/component/
trunk/framework/impl/src/test/java/org/richfaces/component/util/
trunk/framework/impl/src/test/java/org/richfaces/component/util/ComponentUtilTest.java
Modified:
trunk/framework/impl/
Log:
Property changes on: trunk/framework/impl
___________________________________________________________________
Name: svn:ignore
- .classpath
.project
.settings
target
+ .classpath
.project
.settings
target
.clover
Added: trunk/framework/impl/src/main/java/org/richfaces/component/util/ComponentUtil.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/component/util/ComponentUtil.java (rev 0)
+++ trunk/framework/impl/src/main/java/org/richfaces/component/util/ComponentUtil.java 2007-07-22 12:17:52 UTC (rev 1771)
@@ -0,0 +1,59 @@
+/**
+ *
+ */
+package org.richfaces.component.util;
+
+import java.util.Collection;
+import java.util.Iterator;
+
+/**
+ * @author Nick Belaevski
+ * mailto:nbelaevski@exadel.com
+ * created 20.07.2007
+ *
+ */
+public class ComponentUtil {
+ public static String[] asArray(Object object) {
+ if (object == null) {
+ return null;
+ }
+
+ Class componentType = object.getClass().getComponentType();
+
+ if (String.class.equals(componentType)) {
+ return (String[]) object;
+ } else if (componentType != null) {
+ Object[] objects = (Object[]) object;
+ String[] result = new String[objects.length];
+ for (int i = 0; i < objects.length; i++) {
+ Object o = objects[i];
+ if (o == null) {
+ continue;
+ }
+
+ result[i] = o.toString();
+ }
+
+ return result;
+ } else if (object instanceof Collection) {
+ Collection collection = (Collection) object;
+ String[] result = new String[collection.size()];
+ Iterator iterator = collection.iterator();
+
+ for (int i = 0; i < result.length; i++) {
+ Object next = iterator.next();
+ if (next == null) {
+ continue;
+ }
+
+ result[i] = next.toString();
+ }
+
+ return result;
+ } else {
+ String string = object.toString().trim();
+ String[] split = string.split("\\s*,\\s*");
+ return split;
+ }
+ }
+}
Added: trunk/framework/impl/src/test/java/org/richfaces/component/util/ComponentUtilTest.java
===================================================================
--- trunk/framework/impl/src/test/java/org/richfaces/component/util/ComponentUtilTest.java (rev 0)
+++ trunk/framework/impl/src/test/java/org/richfaces/component/util/ComponentUtilTest.java 2007-07-22 12:17:52 UTC (rev 1771)
@@ -0,0 +1,66 @@
+package org.richfaces.component.util;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Set;
+import java.util.TreeSet;
+
+import junit.framework.TestCase;
+
+/**
+ * @author Nick Belaevski
+ * mailto:nbelaevski@exadel.com
+ * created 20.07.2007
+ *
+ */
+public class ComponentUtilTest extends TestCase {
+
+ public void testAsArray() {
+ assertNull(ComponentUtil.asArray(null));
+ }
+
+ public void testAsArray1() {
+ String[] strings = new String[] {"a", "b"};
+ String[] array = ComponentUtil.asArray(strings);
+ assertSame(strings, array);
+ }
+
+ public void testAsArray2() {
+ Object[] objects = new Object[] {
+ Integer.valueOf(12), null, Integer.valueOf(22), Integer.valueOf(42)
+ };
+ String[] array = ComponentUtil.asArray(objects);
+ String[] etalon = new String[] {"12", null, "22", "42"};
+ assertTrue(Arrays.equals(etalon, array));
+ }
+
+ public void testAsArray3() {
+ ArrayList list = new ArrayList();
+ list.add(new Integer(12));
+ list.add(null);
+ list.add(new Integer(22));
+ list.add(new Integer(42));
+
+ String[] array = ComponentUtil.asArray(list);
+ String[] etalon = new String[] {"12", null, "22", "42"};
+ assertTrue(Arrays.equals(etalon, array));
+ }
+
+ public void testAsArray31() {
+ Set set = new TreeSet();
+ set.add(new Integer(12));
+ set.add(new Integer(22));
+ set.add(new Integer(42));
+
+ String[] array = ComponentUtil.asArray(set);
+ String[] etalon = new String[] {"12", "22", "42"};
+ assertTrue(Arrays.equals(etalon, array));
+ }
+
+ public void testAsArray4() {
+ String string = " a , \t\n b \n , c ";
+ String[] strings = ComponentUtil.asArray(string);
+ String[] etalon = new String[] {"a", "b", "c"};
+ assertTrue(Arrays.equals(etalon, strings));
+ }
+}
\ No newline at end of file
17 years, 5 months
JBoss Rich Faces SVN: r1770 - branches/3.0.2/sandbox/scrollable-grid/src/main/resources/org/richfaces/renderkit/html/css.
by richfaces-svn-commits@lists.jboss.org
Author: dmorozov
Date: 2007-07-21 11:10:08 -0400 (Sat, 21 Jul 2007)
New Revision: 1770
Modified:
branches/3.0.2/sandbox/scrollable-grid/src/main/resources/org/richfaces/renderkit/html/css/grid.xcss
Log:
Fix styles for header cells
Modified: branches/3.0.2/sandbox/scrollable-grid/src/main/resources/org/richfaces/renderkit/html/css/grid.xcss
===================================================================
--- branches/3.0.2/sandbox/scrollable-grid/src/main/resources/org/richfaces/renderkit/html/css/grid.xcss 2007-07-21 10:15:06 UTC (rev 1769)
+++ branches/3.0.2/sandbox/scrollable-grid/src/main/resources/org/richfaces/renderkit/html/css/grid.xcss 2007-07-21 15:10:08 UTC (rev 1770)
@@ -82,7 +82,7 @@
-moz-user-focus: normal;
padding: 0px 0px;
white-space: nowrap;
- border-bottom: 1px solid #cbc7b8;
+ border-bottom: 1px solid #e2decd;
border-right: 1px solid #ebeadb;
}
@@ -93,6 +93,8 @@
display: none;
width: 16px !important;;
position: absolute;
+ top:0;
+ left:0;
}
.ClientUI_Grid_HC .sort-desc {
@@ -102,6 +104,8 @@
display: none;
width: 16px !important;;
position: absolute;
+ top:0;
+ left:0;
}
/**
@@ -140,6 +144,7 @@
display: block;
overflow: hidden;
width: 100%;
+ height: 100%;
font: normal 8pt arial;
}
17 years, 5 months
JBoss Rich Faces SVN: r1769 - trunk/sandbox/samples/calendar-sample/src/main/webapp/pages.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-07-21 06:15:06 -0400 (Sat, 21 Jul 2007)
New Revision: 1769
Modified:
trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/index.jsp
Log:
Modified: trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/index.jsp 2007-07-21 01:37:31 UTC (rev 1768)
+++ trunk/sandbox/samples/calendar-sample/src/main/webapp/pages/index.jsp 2007-07-21 10:15:06 UTC (rev 1769)
@@ -33,7 +33,30 @@
</calendar:calendar>
- <calendar:calendar id="calendar1" />
+ <calendar:calendar
+ id="calendar1"
+ locale="#{calendarBean.locale}"
+ popup="#{calendarBean.popup}"
+ datePattern="#{calendarBean.pattern}">
+ </calendar:calendar>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="Select Locale:" />
+ <h:selectOneRadio onchange="submit()" valueChangeListener="#{calendarBean.selectLocale}">
+ <f:selectItem itemLabel="US" itemValue="en/US"/>
+ <f:selectItem itemLabel="EN" itemValue="en/GB"/>
+ <f:selectItem itemLabel="FR" itemValue="fr/FR"/>
+ </h:selectOneRadio>
+ <h:outputText value="Popup Mode:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.locale}" onclick="submit()"/>
+ <h:outputText value="Select Date Pattern:"/>
+ <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+ <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy"/>
+ <f:selectItem itemLabel="dd/MM/yy" itemValue="dd/MM/yy"/>
+ <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y"/>
+ <f:selectItem itemLabel="MMM d, yyyy" itemValue="d/MMM/y"/>
+ </h:selectOneMenu>
+ </h:panelGrid>
</h:form>
</f:view>
</body>
17 years, 5 months
JBoss Rich Faces SVN: r1768 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ishabalov
Date: 2007-07-20 21:37:31 -0400 (Fri, 20 Jul 2007)
New Revision: 1768
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
Log:
Added tooltip component demo
Modified: trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties
===================================================================
--- trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-07-21 01:15:48 UTC (rev 1767)
+++ trunk/samples/richfaces-demo/src/main/resources/org/richfaces/demo/common/components.properties 2007-07-21 01:37:31 UTC (rev 1768)
@@ -17,6 +17,7 @@
gmap= richOutputs, Google Map, /images/ico_GoogleMap.gif, /images/cn_GoogleMap.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/gmap.jsf
paint2d= richOutputs, Paint2D, /images/ico_Paint2D.gif, /images/cn_Paint2D.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/paint2D.jsf
toolBar= richOutputs, Tool Bar, /images/ico_ToolBar.gif, /images/cn_ToolBar.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/toolBar.jsf
+toolTip= richOutputs, ToolTip, /images/ico_panel.gif, /images/cn_panel.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/toolTip.jsf
simpleTogglePanel= richOutputs, Simple Toggle Panel, /images/ico_SimpleTogglePanel.gif, /images/cn_SimpleTogglePanel.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/simpleTogglePanel.jsf
dragIndicator= richDragDrop, Drag Indicator, /images/ico_DragIndicator.gif, /images/cn_DragIndicator.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/dragSupport.jsf
dragSupport= richDragDrop, Drag Support, /images/ico_DragSupport.gif, /images/cn_DragSupport.gif, http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone..., /richfaces/dragSupport.jsf
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.html (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.html 2007-07-21 01:37:31 UTC (rev 1768)
@@ -0,0 +1,139 @@
+<!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="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>
+
+<span class="normal"> </span><span class="keyword"><rich:toolBar</span><span class="normal"> </span><span class="type">height</span><span class="symbol">=</span><span class="string">"</span><span class="string">26</span><span class="string">"</span><span class="normal"> </span><span class="type">itemSeparator</span><span class="symbol">=</span><span class="string">"</span><span class="string">grid</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/new.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/webapp_welcome.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/palette_edit.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/print_edit.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/print.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/print_preview.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup</span><span class="normal"> </span><span class="type">location</span><span class="symbol">=</span><span class="string">"</span><span class="string">right</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/yellow_lamp.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/timer_task.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBar></span>
+
+<span class="keyword"></div></span>
+
+<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>
+<span class="normal"> </span><span class="keyword"><h:form></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBar</span><span class="normal"> </span><span class="type">height</span><span class="symbol">=</span><span class="string">"</span><span class="string">34</span><span class="string">"</span><span class="normal"> </span><span class="type">itemSeparator</span><span class="symbol">=</span><span class="string">"</span><span class="string">line</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">id</span><span class="symbol">=</span><span class="string">"</span><span class="string">edit</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/print_edit.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"><h:outputLabel</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Edit</span><span class="string">"</span><span class="normal"> </span><span class="type">for</span><span class="symbol">=</span><span class="string">"</span><span class="string">edit</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputLabel></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup></span><span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">id</span><span class="symbol">=</span><span class="string">"</span><span class="string">print</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/print.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"><h:outputLabel</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Print</span><span class="string">"</span><span class="normal"> </span><span class="type">for</span><span class="symbol">=</span><span class="string">"</span><span class="string">edit</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputLabel></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup></span><span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><h:graphicImage</span><span class="normal"> </span><span class="type">id</span><span class="symbol">=</span><span class="string">"</span><span class="string">preview</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">/richfaces/toolBar/images/print_preview.gif</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:graphicImage></span>
+<span class="normal"> </span><span class="keyword"><h:outputLabel</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Preview</span><span class="string">"</span><span class="normal"> </span><span class="type">for</span><span class="symbol">=</span><span class="string">"</span><span class="string">preview</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputLabel></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup</span><span class="normal"> </span><span class="type">location</span><span class="symbol">=</span><span class="string">"</span><span class="string">right</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><h:inputText</span><span class="normal"> </span><span class="type">styleClass</span><span class="symbol">=</span><span class="string">"</span><span class="string">barsearch</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"><h:commandButton</span><span class="normal"> </span><span class="type">styleClass</span><span class="symbol">=</span><span class="string">"</span><span class="string">barsearchbutton</span><span class="string">"</span><span class="normal"> </span><span class="type">onclick</span><span class="symbol">=</span><span class="string">"</span><span class="string">return false;</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Search</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBar></span>
+<span class="normal"> </span><span class="keyword"></h:form></span>
+<span class="normal"> </span><span class="keyword"></div></span>
+
+
+<span class="keyword"><p></span>
+<span class="normal"> The items on the toolBar can be grouped with ability to define the separator</span>
+<span class="normal"> between the different group and between the member of the same group. The </span>
+<span class="normal"> "location" attribute set to "right" put the group to the right side of the panel.</span>
+<span class="normal"> </span>
+<span class="keyword"></p></span>
+<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>
+<span class="normal"> </span><span class="keyword"><h:form></span>
+<span class="normal"> </span><span class="keyword"><h:panelGrid</span><span class="normal"> </span><span class="type">columns</span><span class="symbol">=</span><span class="string">"</span><span class="string">2</span><span class="string">"</span><span class="normal"> </span><span class="type">width</span><span class="symbol">=</span><span class="string">"</span><span class="string">100%</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><rich:panel></span>
+<span class="normal"> </span><span class="keyword"><h:panelGrid</span><span class="normal"> </span><span class="type">columns</span><span class="symbol">=</span><span class="string">"</span><span class="string">8</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group Separator:</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Line</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">line</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Grid</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">grid</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Disc</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">disc</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Square</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">square</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">None</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">none</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span><span class="keyword"></h:panelGrid></span>
+<span class="normal"> </span><span class="keyword"></rich:panel></span>
+<span class="normal"> </span><span class="keyword"><rich:panel></span>
+<span class="normal"> </span><span class="keyword"><h:panelGrid</span><span class="normal"> </span><span class="type">columns</span><span class="symbol">=</span><span class="string">"</span><span class="string">8</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group Item Separator:</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Line</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">line</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupItemSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Grid</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">grid</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupItemSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Disc</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">disc</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupItemSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Square</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">square</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupItemSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"><a4j:commandLink</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">None</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">bar</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><a4j:actionparam</span><span class="normal"> </span><span class="type">name</span><span class="symbol">=</span><span class="string">"</span><span class="string">gs</span><span class="string">"</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">none</span><span class="string">"</span><span class="normal"> </span><span class="type">assignTo</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupItemSeparator}</span><span class="string">"</span><span class="normal"> </span><span class="keyword">/></span>
+<span class="normal"> </span><span class="keyword"></a4j:commandLink></span>
+<span class="normal"> </span><span class="keyword"></h:panelGrid></span>
+<span class="normal"> </span><span class="keyword"></rich:panel></span>
+<span class="normal"> </span><span class="keyword"></h:panelGrid></span><span class="normal"> </span>
+<span class="normal"> </span><span class="keyword"></h:form></span><span class="normal"> </span>
+
+<span class="normal"> </span><span class="keyword"><rich:toolBar</span><span class="normal"> </span><span class="type">id</span><span class="symbol">=</span><span class="string">"</span><span class="string">bar</span><span class="string">"</span><span class="normal"> </span><span class="type">height</span><span class="symbol">=</span><span class="string">"</span><span class="string">30</span><span class="string">"</span><span class="normal"> </span><span class="type">itemSeparator</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupSeparator}</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup</span><span class="normal"> </span><span class="type">itemSeparator</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupItemSeparator}</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group1.1</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputText></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group1.2</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputText></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group1.3</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputText></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup</span><span class="normal"> </span><span class="type">itemSeparator</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupItemSeparator}</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group2.1</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputText></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group2.2</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputText></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"><rich:toolBarGroup</span><span class="normal"> </span><span class="type">location</span><span class="symbol">=</span><span class="string">"</span><span class="string">right</span><span class="string">"</span><span class="normal"> </span><span class="type">itemSeparator</span><span class="symbol">=</span><span class="string">"</span><span class="string">#{tbBean.groupItemSeparator}</span><span class="string">"</span><span class="keyword">></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group3.1</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputText></span>
+<span class="normal"> </span><span class="keyword"><h:outputText</span><span class="normal"> </span><span class="type">value</span><span class="symbol">=</span><span class="string">"</span><span class="string">Group3.2</span><span class="string">"</span><span class="keyword">></span><span class="keyword"></h:outputText></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBarGroup></span>
+<span class="normal"> </span><span class="keyword"></rich:toolBar></span>
+<span class="normal"> </span>
+<span class="keyword"></div></span>
+</tt></pre>
+</body>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/source/usage.xhtml 2007-07-21 01:37:31 UTC (rev 1768)
@@ -0,0 +1,122 @@
+<div class="sample-container" >
+
+ <rich:toolBar height="26" itemSeparator="grid">
+ <rich:toolBarGroup>
+ <h:graphicImage value="/richfaces/toolBar/images/new.gif"></h:graphicImage>
+ <h:graphicImage value="/richfaces/toolBar/images/webapp_welcome.gif"></h:graphicImage>
+ <h:graphicImage value="/richfaces/toolBar/images/palette_edit.gif"></h:graphicImage>
+ </rich:toolBarGroup>
+ <rich:toolBarGroup>
+ <h:graphicImage value="/richfaces/toolBar/images/print_edit.gif"></h:graphicImage>
+ <h:graphicImage value="/richfaces/toolBar/images/print.gif"></h:graphicImage>
+ <h:graphicImage value="/richfaces/toolBar/images/print_preview.gif"></h:graphicImage>
+ </rich:toolBarGroup>
+ <rich:toolBarGroup location="right">
+ <h:graphicImage value="/richfaces/toolBar/images/yellow_lamp.gif"></h:graphicImage>
+ <h:graphicImage value="/richfaces/toolBar/images/timer_task.gif"></h:graphicImage>
+ </rich:toolBarGroup>
+ </rich:toolBar>
+
+</div>
+
+<div class="sample-container" >
+ <h:form>
+ <rich:toolBar height="34" itemSeparator="line">
+ <rich:toolBarGroup>
+ <h:graphicImage id="edit" value="/richfaces/toolBar/images/print_edit.gif"></h:graphicImage>
+ <h:outputLabel value="Edit" for="edit"></h:outputLabel>
+ </rich:toolBarGroup>
+ <rich:toolBarGroup>
+ <h:graphicImage id="print" value="/richfaces/toolBar/images/print.gif"></h:graphicImage>
+ <h:outputLabel value="Print" for="edit"></h:outputLabel>
+ </rich:toolBarGroup>
+ <rich:toolBarGroup>
+ <h:graphicImage id="preview" value="/richfaces/toolBar/images/print_preview.gif"></h:graphicImage>
+ <h:outputLabel value="Preview" for="preview"></h:outputLabel>
+ </rich:toolBarGroup>
+ <rich:toolBarGroup location="right">
+ <h:inputText styleClass="barsearch" />
+ <h:commandButton styleClass="barsearchbutton" onclick="return false;" value="Search" />
+ </rich:toolBarGroup>
+ </rich:toolBar>
+ </h:form>
+ </div>
+
+
+<p>
+ The items on the toolBar can be grouped with ability to define the separator
+ between the different group and between the member of the same group. The
+ "location" attribute set to "right" put the group to the right side of the panel.
+
+</p>
+<div class="sample-container" >
+ <h:form>
+ <h:panelGrid columns="2" width="100%">
+ <rich:panel>
+ <h:panelGrid columns="8">
+ <h:outputText value="Group Separator:" />
+ <a4j:commandLink value="Line" reRender="bar">
+ <a4j:actionparam name="gs" value="line" assignTo="#{tbBean.groupSeparator}" />
+ </a4j:commandLink>
+
+ <a4j:commandLink value="Grid" reRender="bar">
+ <a4j:actionparam name="gs" value="grid" assignTo="#{tbBean.groupSeparator}" />
+ </a4j:commandLink>
+
+ <a4j:commandLink value="Disc" reRender="bar">
+ <a4j:actionparam name="gs" value="disc" assignTo="#{tbBean.groupSeparator}" />
+ </a4j:commandLink>
+
+ <a4j:commandLink value="Square" reRender="bar">
+ <a4j:actionparam name="gs" value="square" assignTo="#{tbBean.groupSeparator}" />
+ </a4j:commandLink>
+
+ <a4j:commandLink value="None" reRender="bar">
+ <a4j:actionparam name="gs" value="none" assignTo="#{tbBean.groupSeparator}" />
+ </a4j:commandLink>
+ </h:panelGrid>
+ </rich:panel>
+ <rich:panel>
+ <h:panelGrid columns="8">
+ <h:outputText value="Group Item Separator:" />
+ <a4j:commandLink value="Line" reRender="bar">
+ <a4j:actionparam name="gs" value="line" assignTo="#{tbBean.groupItemSeparator}" />
+ </a4j:commandLink>
+
+ <a4j:commandLink value="Grid" reRender="bar">
+ <a4j:actionparam name="gs" value="grid" assignTo="#{tbBean.groupItemSeparator}" />
+ </a4j:commandLink>
+
+ <a4j:commandLink value="Disc" reRender="bar">
+ <a4j:actionparam name="gs" value="disc" assignTo="#{tbBean.groupItemSeparator}" />
+ </a4j:commandLink>
+
+ <a4j:commandLink value="Square" reRender="bar">
+ <a4j:actionparam name="gs" value="square" assignTo="#{tbBean.groupItemSeparator}" />
+ </a4j:commandLink>
+
+ <a4j:commandLink value="None" reRender="bar">
+ <a4j:actionparam name="gs" value="none" assignTo="#{tbBean.groupItemSeparator}" />
+ </a4j:commandLink>
+ </h:panelGrid>
+ </rich:panel>
+ </h:panelGrid>
+ </h:form>
+
+ <rich:toolBar id="bar" height="30" itemSeparator="#{tbBean.groupSeparator}">
+ <rich:toolBarGroup itemSeparator="#{tbBean.groupItemSeparator}">
+ <h:outputText value="Group1.1"></h:outputText>
+ <h:outputText value="Group1.2"></h:outputText>
+ <h:outputText value="Group1.3"></h:outputText>
+ </rich:toolBarGroup>
+ <rich:toolBarGroup itemSeparator="#{tbBean.groupItemSeparator}">
+ <h:outputText value="Group2.1"></h:outputText>
+ <h:outputText value="Group2.2"></h:outputText>
+ </rich:toolBarGroup>
+ <rich:toolBarGroup location="right" itemSeparator="#{tbBean.groupItemSeparator}">
+ <h:outputText value="Group3.1"></h:outputText>
+ <h:outputText value="Group3.2"></h:outputText>
+ </rich:toolBarGroup>
+ </rich:toolBar>
+
+</div>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip/usage.xhtml 2007-07-21 01:37:31 UTC (rev 1768)
@@ -0,0 +1,67 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/ajax"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+ <style>
+ .barsearch {
+ height:14px;
+ width:100px;
+ }
+ .barsearchbutton {
+ border-width:1px;
+ background-color:#{a4jSkin.generalBackgroundColor};
+ }
+ .tooltip {
+ background-color:#{a4jSkin.generalBackgroundColor};
+ border-width:3px;
+ padding:10px;
+ }
+ </style>
+ <p>
+ ToolTip is a little non-modal popup that may be used to display additional infrmation, that normally hidden.
+ Rich ToolTip can request it's content from server in separate Ajax request, or it can use pre-rendered content from page.
+ </p>
+ <h:form>
+ <div class="sample-container" >
+ <h:outputText id="tt1" value="Here you can see default client-side tooltip" >
+ <rich:toolTip>
+ <p>
+ This tooltip content was <strong>pre-rendered</strong> to the page.
+ </p>
+ </rich:toolTip>
+ </h:outputText>
+ </div>
+ <div class="sample-container" >
+ <h:outputText id="tt2" value="This tooltip will follow mouse" >
+ <rich:toolTip id="tt11" followMouse="true" direction="bottom-left" delay="10000" onshow="alert('onshow');" onactivate="alert('onactivate');" ondeactivate="alert('deactivate');" styleClass="tooltip" style="width:200px" disabled="false" horizontalOffset="50" verticalOffset="50">
+ <span>
+ This tooltip content was <strong>pre-rendered</strong> to the page.
+ </span>
+ </rich:toolTip>
+ </h:outputText>
+ </div>
+ <div class="sample-container">
+ <h:outputText value="Tooltip with followMouse mode" id="tt3">
+ <rich:toolTip id="tt4" followMouse="true" direction="top-left" mode="ajax" horizontalOffset="20" verticalOffset="20">
+ <f:facet name="defaultContent">
+ <h:outputText value="Some text will be here soon" />
+ </f:facet>
+ <h:outputText value="Final content" />
+ </rich:toolTip>
+ </h:outputText>
+ </div>
+ </h:form>
+ </ui:define>
+ <ui:define name="sources">
+ <p>
+ Here is fragment of page sources for given example:
+ </p>
+ <iframe src="${facesContext.externalContext.requestContextPath}/richfaces/toolBar/source/usage.html" class="source_frame"/>
+ </ui:define>
+ </ui:composition>
+</html>
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/toolTip.xhtml 2007-07-21 01:37:31 UTC (rev 1768)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - PanelBar</ui:define>
+ <ui:define name="current">panel</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/toolTip/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
17 years, 5 months
JBoss Rich Faces SVN: r1767 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: support and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-20 21:15:48 -0400 (Fri, 20 Jul 2007)
New Revision: 1767
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml
Log:
support and commandButton
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml 2007-07-21 01:15:48 UTC (rev 1767)
@@ -0,0 +1,49 @@
+<!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/ajax"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>
+ a4j:commandButton is similar to the standard h:commandButton, but produces an
+ Ajax request with further partial page update. 'reRender' attribute point to the
+ component(s) that should be re-rendered in the component tree and updated
+ in the browser DOM after the ajax response is complete.
+ </p>
+
+ <p>
+ The following example shows how the greeting message is shown on the screen
+ without refreshing the entire page:
+ </p>
+
+ <div class="sample-container" >
+ <rich:separator width="1" />
+
+ <a4j:form>
+ <h:panelGrid columns="3">
+ <h:outputText value="Name:" />
+ <h:inputText value="#{userBean.name}" />
+ <h:commandButton value="Say Hello" reRender="out" />
+ </h:panelGrid>
+ </a4j:form>
+ <h:panelGroup id="out">
+ <h:outputText value="Hello " rendered="#{not empty userBean.name}" />
+ <h:outputText value="#{userBean.name}" />
+ <h:outputText value="!" rendered="#{not empty userBean.name}" />
+ </h:panelGroup>
+
+ <rich:separator width="1" style="padding-top:10px" />
+ </div>
+
+
+ </ui:define>
+ <ui:define name="sources">
+ Here is a fragment of page sources for the given example:
+ <iframe src="${facesContext.externalContext.requestContextPath}/richfaces/commandButton/source/usage.html" class="source_frame"/>
+ </ui:define>
+ </ui:composition>
+</html>
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/usage.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml 2007-07-21 01:15:48 UTC (rev 1767)
@@ -0,0 +1,68 @@
+<!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/ajax"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <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
+ 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.
+ The key attributes are 'event' and 'reRender'. 'event' attribute defines the javascript
+ event the ajax support will be attached at. '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.
+ </p>
+ <p>
+ The following example shows how the outputText component value is changed while user is
+ typing in the input field:
+ </p>
+
+
+ <div class="sample-container" >
+ <rich:separator width="1"/>
+ <h:form>
+ <h:panelGrid columns="2">
+ <h:inputText value="#{userBean.name}">
+ <a4j:support event="onkeyup" reRender="outtext" />
+ </h:inputText>
+ <h:outputText id="outtext" value="#{userBean.name}" />
+ </h:panelGrid>
+ </h:form>
+ <rich:separator width="1" style="padding-top:10px"/>
+ </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
+ defined with particular component attributs. The wiring with events dynamically attached
+ on the client side is not supported.
+ </p>
+
+ <p>
+ reRender attribute allows to use JSF EL expression as value. So, you can create
+ a list dynamically deciding what should be re-rendered as a result of ajax request.
+ </p>
+
+ <p>
+ In case of attaching a4j:support to non-Ajax JSF command component, such as h:commandButton
+ or h:commandLink, it is important to set disableDefault equals true. Otherwise, non-ajax
+ request will be send just after ajax request and the page will be unexpectedly refreshed.
+ </p>
+
+
+
+
+ </ui:define>
+ <ui:define name="sources">
+ Here is a fragment of page sources for the given example:
+ <iframe src="${facesContext.externalContext.requestContextPath}/richfaces/support/source/usage.html" class="source_frame"/>
+ </ui:define>
+ </ui:composition>
+</html>
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/usage.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
17 years, 5 months
JBoss Rich Faces SVN: r1766 - in trunk/samples/richfaces-demo/src/main/webapp/richfaces: commandButton and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-07-20 21:15:28 -0400 (Fri, 20 Jul 2007)
New Revision: 1766
Added:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html
trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml
Log:
support and commandButton
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.html (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.html 2007-07-21 01:15:28 UTC (rev 1766)
@@ -0,0 +1 @@
+TODO: source should be added
\ No newline at end of file
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml 2007-07-21 01:15:28 UTC (rev 1766)
@@ -0,0 +1 @@
+x
\ No newline at end of file
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton/source/usage.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml 2007-07-21 01:15:28 UTC (rev 1766)
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Ajax Form</ui:define>
+ <ui:define name="body">
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/commandButton/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:define>
+</ui:composition>
+</html>
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/commandButton.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml 2007-07-21 01:14:57 UTC (rev 1765)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/form/usage.xhtml 2007-07-21 01:15:28 UTC (rev 1766)
@@ -86,23 +86,11 @@
</div>
<p>
- Note:You should not use a4j:form ajaxSubmit"true" if it contains other ajax command components.
+ Note:You should not use a4j:form ajaxSubmit="true" if it contains other ajax command components.
Also, due to the security reason, uploadFile form element cannot be convertable to
the be ajaxable.
</p>
-
-
-
-
- <f:verbatim>
-
- <code>
- This is a pure text <span>#</span>{mybean.hello}
- </code>
- </f:verbatim>
- <div class="sample-container">
- </div>
</ui:define>
<ui:define name="sources">
Here is a fragment of page sources for the given example:
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html 2007-07-21 01:15:28 UTC (rev 1766)
@@ -0,0 +1 @@
+TODO: source should be added
\ No newline at end of file
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml 2007-07-21 01:15:28 UTC (rev 1766)
@@ -0,0 +1 @@
+x
\ No newline at end of file
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support/source/usage.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml (rev 0)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml 2007-07-21 01:15:28 UTC (rev 1766)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition template="/templates/main.xhtml">
+ <ui:define name="title">RichFaces - Open Source Rich JSF Components - Ajax Support</ui:define>
+ <ui:define name="body">
+ <ui:remove>
+ <rich:tabPanel switchType="server" styleClass="top_tab" contentClass="content_tab" inactiveTabClass="inactive_tab" activeTabClass="active_tab">
+ <rich:tab label="Usage">
+ <ui:include src="/richfaces/support/usage.xhtml"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </ui:remove>
+ <ui:include src="/richfaces/support/usage.xhtml"/>
+ </ui:define>
+</ui:composition>
+</html>
Property changes on: trunk/samples/richfaces-demo/src/main/webapp/richfaces/support.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
17 years, 5 months