JBoss Rich Faces SVN: r18753 - trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-08-18 08:51:56 -0400 (Wed, 18 Aug 2010)
New Revision: 18753
Modified:
trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
Log:
tag name correction in navigation.
Modified: trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-08-18 12:40:00 UTC (rev 18752)
+++ trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-08-18 12:51:56 UTC (rev 18753)
@@ -329,7 +329,7 @@
</demo>
<demo>
<id>popup</id>
- <name>rich:popup</name>
+ <name>rich:popupPanel</name>
<samples>
<sample>
<id>simplePopup</id>
15 years, 9 months
JBoss Rich Faces SVN: r18752 - in modules/tests/metamer/trunk/application/src/main: webapp/components and 5 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-08-18 08:40:00 -0400 (Wed, 18 Aug 2010)
New Revision: 18752
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/facets.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/hDataTable/components2.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/components2.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/components2.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richSubTable/components2.xhtml
Log:
* added 2 new pages for rich:inplaceInput
* added rich:inplaceInput to rich:dataTable, rich:extendedDataTable, h:dataTable and rich:subTable
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-08-18 12:22:19 UTC (rev 18751)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-08-18 12:40:00 UTC (rev 18752)
@@ -114,6 +114,7 @@
components.put("richDataTable", "Rich Data Table");
components.put("richExtendedDataTable", "Rich Extended Data Table");
components.put("richFunctions", "Rich Functions");
+ components.put("richInplaceInput", "Rich Inplace Input");
components.put("richJQuery", "Rich jQuery");
components.put("richList", "Rich List");
components.put("richPanel", "Rich Panel");
Added: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java 2010-08-18 12:40:00 UTC (rev 18752)
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.bean;
+
+import java.io.Serializable;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import org.richfaces.component.UIInplaceInput;
+
+import org.richfaces.tests.metamer.Attributes;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean for rich:inplaceInput.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "richInplaceInputBean")
+@SessionScoped
+public class RichInplaceInputBean implements Serializable {
+
+ private static final long serialVersionUID = -1L;
+ private static Logger logger;
+ private Attributes attributes;
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(getClass());
+ logger.debug("initializing bean " + getClass().getName());
+
+ attributes = Attributes.getUIComponentAttributes(UIInplaceInput.class, getClass());
+
+ attributes.setAttribute("defaultLabel", "Click here to edit");
+ attributes.setAttribute("editEvent", "click");
+ attributes.setAttribute("rendered", true);
+ attributes.setAttribute("value", "RichFaces 4");
+
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+}
Property changes on: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java
___________________________________________________________________
Name: svn:keywords
+ Revision
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/hDataTable/components2.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/hDataTable/components2.xhtml 2010-08-18 12:22:19 UTC (rev 18751)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/hDataTable/components2.xhtml 2010-08-18 12:40:00 UTC (rev 18752)
@@ -113,10 +113,11 @@
<f:facet name="header">
<h:outputText id="columnHeaderName" value="Name" />
<br/>
- <h:outputText id="columnHeaderNameComponent" value="h:inplaceInput" />
+ <h:outputText id="columnHeaderNameComponent" value="rich:inplaceInput" />
</f:facet>
- <h:outputText value="#{record.name}" />
+ <rich:inplaceInput id="nameInput" value="#{record.name}" defaultLabel="Click here to edit"/>
+
<f:facet name="footer">
<h:outputText id="columnFooterState" value="Name" />
</f:facet>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/components2.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/components2.xhtml 2010-08-18 12:22:19 UTC (rev 18751)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/components2.xhtml 2010-08-18 12:40:00 UTC (rev 18752)
@@ -101,10 +101,11 @@
<f:facet name="header">
<h:outputText id="columnHeaderName" value="Name" />
<br/>
- <h:outputText id="columnHeaderNameComponent" value="h:inplaceInput" />
+ <h:outputText id="columnHeaderNameComponent" value="rich:inplaceInput" />
</f:facet>
- <h:outputText value="#{record.name}" />
+ <rich:inplaceInput id="nameInput" value="#{record.name}" defaultLabel="Click here to edit"/>
+
<f:facet name="footer">
<h:outputText id="columnFooterState" value="Name" />
</f:facet>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/components2.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/components2.xhtml 2010-08-18 12:22:19 UTC (rev 18751)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richExtendedDataTable/components2.xhtml 2010-08-18 12:40:00 UTC (rev 18752)
@@ -101,10 +101,11 @@
<f:facet name="header">
<h:outputText id="columnHeaderName" value="Name" />
<br/>
- <h:outputText id="columnHeaderNameComponent" value="h:inplaceInput" />
+ <h:outputText id="columnHeaderNameComponent" value="rich:inplaceInput" />
</f:facet>
- <h:outputText value="#{record.name}" />
+ <rich:inplaceInput id="nameInput" value="#{record.name}" defaultLabel="Click here to edit"/>
+
<f:facet name="footer">
<h:outputText id="columnFooterState" value="Name" />
</f:facet>
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/facets.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/facets.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/facets.xhtml 2010-08-18 12:40:00 UTC (rev 18752)
@@ -0,0 +1,85 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+
+<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+ xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates" value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <rich:inplaceInput id="inplaceInput"
+ converter="#{richInplaceInputBean.attributes['converter'].value}"
+ converterMessage="#{richInplaceInputBean.attributes['converterMessage'].value}"
+ defaultLabel="#{richInplaceInputBean.attributes['defaultLabel'].value}"
+ editEvent="#{richInplaceInputBean.attributes['editEvent'].value}"
+ immediate="#{richInplaceInputBean.attributes['immediate'].value}"
+ localValue="#{richInplaceInputBean.attributes['localValue'].value}"
+ localValueSet="#{richInplaceInputBean.attributes['localValueSet'].value}"
+ rendered="#{richInplaceInputBean.attributes['rendered'].value}"
+ required="#{richInplaceInputBean.attributes['required'].value}"
+ requiredMessage="#{richInplaceInputBean.attributes['requiredMessage'].value}"
+ showControls="#{richInplaceInputBean.attributes['showControls'].value}"
+ state="#{richInplaceInputBean.attributes['state'].value}"
+ submittedValue="#{richInplaceInputBean.attributes['submittedValue'].value}"
+ tabIndex="#{richInplaceInputBean.attributes['tabIndex'].value}"
+ valid="#{richInplaceInputBean.attributes['valid'].value}"
+ validator="#{richInplaceInputBean.attributes['validator'].value}"
+ validatorMessage="#{richInplaceInputBean.attributes['validatorMessage'].value}"
+ validators="#{richInplaceInputBean.attributes['validators'].value}"
+ value="#{richInplaceInputBean.attributes['value'].value}"
+ valueChangeListener="#{richInplaceInputBean.attributes['valueChangeListener'].value}"
+ valueChangeListeners="#{richInplaceInputBean.attributes['valueChangeListeners'].value}"
+ >
+ <f:facet name="controls">
+ <button onmousedown="#{rich:component('inplaceInput')}.save();" type="button">Save</button>
+ <button onmousedown="#{rich:component('inplaceInput')}.cancel();" type="button">Cancel</button>
+ </f:facet>
+
+ <ui:remove>
+ <a4j:ajax id="inplaceInputAjax" event="change" render="output"/>
+ </ui:remove>
+ </rich:inplaceInput>
+
+ <br/><br/>
+
+ output: <h:outputText id="output" value="#{richInplaceInputBean.attributes['value'].value}"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richInplaceInputBean.attributes}" id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/list.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/list.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/list.xhtml 2010-08-18 12:40:00 UTC (rev 18752)
@@ -0,0 +1,45 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+
+<!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:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <ui:composition template="/templates/list.xhtml">
+
+ <ui:define name="pageTitle">Rich Inplace Input</ui:define>
+
+ <ui:define name="links">
+
+ <metamer:testPageLink id="simple" outcome="simple" value="Simple">
+ Simple page that contains <b>rich:inplaceInput</b> and input boxes for all its attributes.
+ </metamer:testPageLink>
+
+ <metamer:testPageLink id="facets" outcome="facets" value="Facets">
+ Simple page that contains <b>rich:inplaceInput</b> with defined facets and input boxes for all its attributes.
+ </metamer:testPageLink>
+
+ </ui:define>
+
+ </ui:composition>
+
+</html>
Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml 2010-08-18 12:40:00 UTC (rev 18752)
@@ -0,0 +1,80 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site: http://www.fsf.org.
+-->
+
+<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+ xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates" value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <rich:inplaceInput id="inplaceInput"
+ converter="#{richInplaceInputBean.attributes['converter'].value}"
+ converterMessage="#{richInplaceInputBean.attributes['converterMessage'].value}"
+ defaultLabel="#{richInplaceInputBean.attributes['defaultLabel'].value}"
+ editEvent="#{richInplaceInputBean.attributes['editEvent'].value}"
+ immediate="#{richInplaceInputBean.attributes['immediate'].value}"
+ localValue="#{richInplaceInputBean.attributes['localValue'].value}"
+ localValueSet="#{richInplaceInputBean.attributes['localValueSet'].value}"
+ rendered="#{richInplaceInputBean.attributes['rendered'].value}"
+ required="#{richInplaceInputBean.attributes['required'].value}"
+ requiredMessage="#{richInplaceInputBean.attributes['requiredMessage'].value}"
+ showControls="#{richInplaceInputBean.attributes['showControls'].value}"
+ state="#{richInplaceInputBean.attributes['state'].value}"
+ submittedValue="#{richInplaceInputBean.attributes['submittedValue'].value}"
+ tabIndex="#{richInplaceInputBean.attributes['tabIndex'].value}"
+ valid="#{richInplaceInputBean.attributes['valid'].value}"
+ validator="#{richInplaceInputBean.attributes['validator'].value}"
+ validatorMessage="#{richInplaceInputBean.attributes['validatorMessage'].value}"
+ validators="#{richInplaceInputBean.attributes['validators'].value}"
+ value="#{richInplaceInputBean.attributes['value'].value}"
+ valueChangeListener="#{richInplaceInputBean.attributes['valueChangeListener'].value}"
+ valueChangeListeners="#{richInplaceInputBean.attributes['valueChangeListeners'].value}"
+ >
+ <ui:remove>
+ <a4j:ajax id="inplaceInputAjax" event="change" render="output"/>
+ </ui:remove>
+ </rich:inplaceInput>
+
+ <br/><br/>
+
+ output: <h:outputText id="output" value="#{richInplaceInputBean.attributes['value'].value}"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richInplaceInputBean.attributes}" id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richSubTable/components2.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richSubTable/components2.xhtml 2010-08-18 12:22:19 UTC (rev 18751)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richSubTable/components2.xhtml 2010-08-18 12:40:00 UTC (rev 18752)
@@ -23,7 +23,7 @@
<!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:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
- xmlns:rich="http://richfaces.org/rich">
+ xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j">
<ui:composition template="/templates/template.xhtml">
@@ -55,7 +55,7 @@
<rich:column>
<h:outputText id="columnHeaderName" value="Name" />
<br/>
- <h:outputText id="columnHeaderNameComponent" value="h:inplaceInput" />
+ <h:outputText id="columnHeaderNameComponent" value="rich:inplaceInput" />
</rich:column>
<rich:column>
<h:outputText id="columnHeaderTitle" value="Title" />
@@ -118,7 +118,7 @@
<h:outputText value="#{item.sex}" />
</rich:column>
<rich:column>
- <h:outputText value="#{item.name}" />
+ <rich:inplaceInput id="nameInput" value="#{item.name}" defaultLabel="Click here to edit"/>
</rich:column>
<rich:column>
<h:outputText value="#{item.title}" />
15 years, 9 months
JBoss Rich Faces SVN: r18751 - trunk/cdk.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-08-18 08:22:19 -0400 (Wed, 18 Aug 2010)
New Revision: 18751
Added:
trunk/cdk/maven-resources-plugin/
Log:
Moving maven-resources-plugin into main build - 2nd attempt
Copied: trunk/cdk/maven-resources-plugin (from rev 18740, trunk/cdk/plugins/maven-resources-plugin)
15 years, 9 months
JBoss Rich Faces SVN: r18750 - in modules/tests/metamer/trunk/application/src/main: resources/org/richfaces/tests/metamer/bean and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ppitonak(a)redhat.com
Date: 2010-08-18 08:11:41 -0400 (Wed, 18 Aug 2010)
New Revision: 18750
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichToggleControlBean.java
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichToggleControlBean.properties
modules/tests/metamer/trunk/application/src/main/webapp/components/richToggleControl/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/rf9013.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
Log:
* toggle controls fixed because attribute forPanel changed to targetPanel
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichToggleControlBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichToggleControlBean.java 2010-08-18 11:46:39 UTC (rev 18749)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichToggleControlBean.java 2010-08-18 12:11:41 UTC (rev 18750)
@@ -56,7 +56,7 @@
attributes = Attributes.getBehaviorAttributes(ToggleControl.class, getClass());
- attributes.setAttribute("forPanel", "panel1");
+ attributes.setAttribute("targetPanel", "panel1");
attributes.setAttribute("targetItem", "item1");
// TODO following attributes have to be tested in another way
Modified: modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichToggleControlBean.properties
===================================================================
--- modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichToggleControlBean.properties 2010-08-18 11:46:39 UTC (rev 18749)
+++ modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichToggleControlBean.properties 2010-08-18 12:11:41 UTC (rev 18750)
@@ -1,6 +1,6 @@
-attr.forPanel.panel1=panel1
-attr.forPanel.panel2=panel2
-attr.forPanel.null=
+attr.targetPanel.panel1=panel1
+attr.targetPanel.panel2=panel2
+attr.targetPanel.null=
attr.targetItem.item1=item1
attr.targetItem.item2=item2
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richToggleControl/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richToggleControl/simple.xhtml 2010-08-18 11:46:39 UTC (rev 18749)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richToggleControl/simple.xhtml 2010-08-18 12:11:41 UTC (rev 18750)
@@ -42,38 +42,38 @@
<h:panelGrid id="panel1Controls" columns="6">
panel1:
- <h:commandLink value="Toggle Panel Item 1">
- <rich:toggleControl id="tc11" forPanel="panel1" targetItem="item1" />
+ <h:commandLink id="tcLink11" value="Toggle Panel Item 1">
+ <rich:toggleControl id="tc11" targetPanel="panel1" targetItem="item1" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink value="Toggle Panel Item 2">
- <rich:toggleControl id="tc12" forPanel="panel1" targetItem="item2" />
+ <h:commandLink id="tcLink12" value="Toggle Panel Item 2">
+ <rich:toggleControl id="tc12" targetPanel="panel1" targetItem="item2" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink value="Toggle Panel Item 3">
- <rich:toggleControl id="tc13" forPanel="panel1" targetItem="item3" />
+ <h:commandLink id="tcLink13" value="Toggle Panel Item 3">
+ <rich:toggleControl id="tc13" targetPanel="panel1" targetItem="item3" />
</h:commandLink>
</h:panelGrid>
<h:panelGrid id="panel2Controls" columns="6">
panel2:
- <h:commandLink value="Toggle Panel Item 1">
- <rich:toggleControl id="tc21" forPanel="panel2" targetItem="item1" />
+ <h:commandLink id="tcLink21" value="Toggle Panel Item 1">
+ <rich:toggleControl id="tc21" targetPanel="panel2" targetItem="item1" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink value="Toggle Panel Item 2">
- <rich:toggleControl id="tc22" forPanel="panel2" targetItem="item2" />
+ <h:commandLink id="tcLink22" value="Toggle Panel Item 2">
+ <rich:toggleControl id="tc22" targetPanel="panel2" targetItem="item2" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink value="Toggle Panel Item 3">
- <rich:toggleControl id="tc23" forPanel="panel2" targetItem="item3" />
+ <h:commandLink id="tcLink23" value="Toggle Panel Item 3">
+ <rich:toggleControl id="tc23" targetPanel="panel2" targetItem="item3" />
</h:commandLink>
</h:panelGrid>
universal toggle control (settings below)
- <h:commandLink value="Toggle Panel Item">
+ <h:commandLink id="toggleControlLink" value="Toggle Panel Item">
<rich:toggleControl id="richToggleControl"
- forPanel="#{richToggleControlBean.attributes['forPanel'].value}"
+ targetPanel="#{richToggleControlBean.attributes['targetPanel'].value}"
targetItem="#{richToggleControlBean.attributes['targetItem'].value}"
/>
</h:commandLink>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/rf9013.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/rf9013.xhtml 2010-08-18 11:46:39 UTC (rev 18749)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/rf9013.xhtml 2010-08-18 12:11:41 UTC (rev 18750)
@@ -40,16 +40,16 @@
<ui:define name="component">
- <h:commandLink value="Toggle Panel Item 1">
- <rich:toggleControl forPanel="panel1" targetItem="item1" />
+ <h:commandLink id="tcLink1" value="Toggle Panel Item 1">
+ <rich:toggleControl targetPanel="panel1" targetItem="item1" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink value="Toggle Panel Item 2">
- <rich:toggleControl forPanel="panel1" targetItem="item2" />
+ <h:commandLink id="tcLink2" value="Toggle Panel Item 2">
+ <rich:toggleControl targetPanel="panel1" targetItem="item2" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink value="Toggle Panel Item 3">
- <rich:toggleControl forPanel="panel1" targetItem="item3" />
+ <h:commandLink id="tcLink3" value="Toggle Panel Item 3">
+ <rich:toggleControl targetPanel="panel1" targetItem="item3" />
</h:commandLink>
<br/><br/>
Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-08-18 11:46:39 UTC (rev 18749)
+++ modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-08-18 12:11:41 UTC (rev 18750)
@@ -40,16 +40,16 @@
<ui:define name="component">
- <h:commandLink value="Toggle Panel Item 1">
- <rich:toggleControl forPanel="richTogglePanel" targetItem="item1" />
+ <h:commandLink id="tcLink1" value="Toggle Panel Item 1">
+ <rich:toggleControl targetPanel="richTogglePanel" targetItem="item1" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink value="Toggle Panel Item 2">
- <rich:toggleControl forPanel="richTogglePanel" targetItem="item2" />
+ <h:commandLink id="tcLink2" value="Toggle Panel Item 2">
+ <rich:toggleControl targetPanel="richTogglePanel" targetItem="item2" />
</h:commandLink>
<h:outputText value=" | " />
- <h:commandLink value="Toggle Panel Item 3">
- <rich:toggleControl forPanel="richTogglePanel" targetItem="item3" />
+ <h:commandLink id="tcLink3" value="Toggle Panel Item 3">
+ <rich:toggleControl targetPanel="richTogglePanel" targetItem="item3" />
</h:commandLink>
<br/><br/>
15 years, 9 months
JBoss Rich Faces SVN: r18749 - in trunk/examples/richfaces-showcase/src/main: java/org/richfaces/demo/autocomplete and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-08-18 07:46:39 -0400 (Wed, 18 Aug 2010)
New Revision: 18749
Added:
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/autocomplete/
trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/autocomplete/AutocompleteBean.java
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/cachedAjax.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/cachedAjax-sample.xhtml
Removed:
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/simpleClient-sample.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/simpleClient.xhtml
Modified:
trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
Log:
https://jira.jboss.org/browse/RF-8871
Added: trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/autocomplete/AutocompleteBean.java
===================================================================
--- trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/autocomplete/AutocompleteBean.java (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/java/org/richfaces/demo/autocomplete/AutocompleteBean.java 2010-08-18 11:46:39 UTC (rev 18749)
@@ -0,0 +1,72 @@
+package org.richfaces.demo.autocomplete;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ManagedProperty;
+import javax.faces.bean.RequestScoped;
+
+import org.richfaces.demo.tables.model.capitals.Capital;
+
+@ManagedBean
+@RequestScoped
+public class AutocompleteBean {
+ private String value;
+ private List<String> autocompleteList;
+ @ManagedProperty(value = "#{capitalsParser.capitalsList}")
+ private List<Capital> capitals;
+
+ public AutocompleteBean() {
+ // TODO Auto-generated constructor stub
+ }
+
+ @PostConstruct
+ public void init() {
+ autocompleteList = new ArrayList<String>();
+ for (Capital cap : capitals) {
+ autocompleteList.add(cap.getState());
+ }
+ }
+
+ public List<String> autocomplete(String prefix) {
+ ArrayList<String> result = new ArrayList<String>();
+ if (prefix.length() > 0) {
+ Iterator<Capital> iterator = capitals.iterator();
+ while (iterator.hasNext()) {
+ Capital elem = ((Capital) iterator.next());
+ if ((elem.getState() != null && elem.getState().toLowerCase().indexOf(prefix.toLowerCase()) == 0)
+ || "".equals(prefix)) {
+ result.add(elem.getState());
+ }
+ }
+ }else{
+ for (int i = 0; i < 10; i++) {
+ result.add(capitals.get(i).getState());
+ }
+ }
+ return result;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public List<String> getAutocompleteList() {
+ return autocompleteList;
+ }
+
+ public void setAutocompleteList(List<String> autocompleteList) {
+ this.autocompleteList = autocompleteList;
+ }
+
+ public void setCapitals(List<Capital> capitals) {
+ this.capitals = capitals;
+ }
+}
Modified: trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-08-18 11:18:22 UTC (rev 18748)
+++ trunk/examples/richfaces-showcase/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-08-18 11:46:39 UTC (rev 18749)
@@ -346,20 +346,16 @@
<group new="true">
<name>Inputs and Selects</name>
<demos>
- <!-- demo>
+ <demo>
<id>autocomplete</id>
<name>rich:autocomplete</name>
<samples>
<sample>
- <id>simpleClient</id>
- <name>Client side autocomplete</name>
- </sample>
- <sample>
- <id>simpleAjax</id>
- <name>Ajax autocomplete</name>
- </sample>
+ <id>cachedAjax</id>
+ <name>Autocomplete in Cached Ajax mode</name>
+ </sample>
</samples>
- </demo-->
+ </demo>
<demo>
<id>inputNumberSlider</id>
<name>rich:inputNumberSlider</name>
Copied: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/cachedAjax.xhtml (from rev 18746, trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/simpleClient.xhtml)
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/cachedAjax.xhtml (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/cachedAjax.xhtml 2010-08-18 11:46:39 UTC (rev 18749)
@@ -0,0 +1,26 @@
+<!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:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<ui:composition>
+ <p>Autocomplete component - simple Input component which provides suggestions during input.</p>
+ <p>Could works using three modes:
+ <ul>
+ <li>Client - preloads data to the client side and makes suggestions according to entered prefix on the client</li>
+ <li>Ajax - fetches the data on every input change using ajax requests</li>
+ <li>Cached Ajax - loads data via ajax to make suggestions when the prefix length satisfies minchars attribute. Then all the suggestions done at client side except the case when initial prefix changed or token entered. Then loads data again.</li>
+ </ul>
+ </p>
+ <p>Here is the sample for new cachedAjax mode. </p>
+ <ui:include src="#{demoNavigator.sampleIncludeURI}" />
+ <ui:include src="/templates/includes/source-view.xhtml">
+ <ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />
+ <ui:param name="sourceType" value="xhtml" />
+ <ui:param name="openLabel" value="View Source" />
+ <ui:param name="hideLabel" value="Hide Source" />
+ </ui:include>
+</ui:composition>
+
+</html>
\ No newline at end of file
Copied: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/cachedAjax-sample.xhtml (from rev 18746, trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/simpleClient-sample.xhtml)
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/cachedAjax-sample.xhtml (rev 0)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/cachedAjax-sample.xhtml 2010-08-18 11:46:39 UTC (rev 18749)
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich">
+ <p>Default autocomplete in cachedAjax mode</p>
+ <h:form>
+ <rich:autocomplete mode="cachedAjax"
+ autocompleteMethod="#{autocompleteBean.autocomplete}" />
+ </h:form>
+ <p>Autocomplete without direct suggestions to input(<b>autoFill="false"</b>). Also in the sample comma and space are input <b>tokens</b>, so separate
+ autocompletion requests will be fired for different parts in input</p>
+ <h:form>
+ <rich:autocomplete mode="cachedAjax" tokens=", " autoFill="false"
+ autocompleteMethod="#{autocompleteBean.autocomplete}" />
+ </h:form>
+ <p>In that sample <b>selectFirst</b> set to false so pressing enter will not choose the value from list
+ but just submit currently entered value.</p>
+ <h:form>
+ <rich:autocomplete mode="cachedAjax" tokens=", " autoFill="false" selectFirst="false"
+ autocompleteMethod="#{autocompleteBean.autocomplete}" />
+ </h:form>
+ <fieldset>
+ <legend><b>NOTE:</b> </legend>
+ The developer has full control under filtering on server side according to prefix.
+ But in client and cachedAjax modes - just built-in startWith method used. In near future
+ the component will be updated with one more attribute which will allow the developer
+ to define client side comparator function to customize that behavior.
+ </fieldset>
+</ui:composition>
Deleted: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/simpleClient-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/simpleClient-sample.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/samples/simpleClient-sample.xhtml 2010-08-18 11:46:39 UTC (rev 18749)
@@ -1,11 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:a4j="http://richfaces.org/a4j"
- xmlns:rich="http://richfaces.org/rich">
-
-<rich:autocomplete autocompleteList="#{autocompleteBean.clientList}"/>
-
-</ui:composition>
\ No newline at end of file
Deleted: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/simpleClient.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/simpleClient.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/autocomplete/simpleClient.xhtml 2010-08-18 11:46:39 UTC (rev 18749)
@@ -1,26 +0,0 @@
-<!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:h="http://java.sun.com/jsf/html"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:ui="http://java.sun.com/jsf/facelets">
-
-<ui:composition>
- <p>Autocomplete component - simple Input component which provides suggestions during input.</p>
- <p>Could works using three modes:
- <ul>
- <li>Client - preloads data to the client side and makes suggestions according to entered prefix on the client</li>
- <li>Ajax - fetches the data on every input change using ajax requests</li>
- <li>Cached Ajax - loads data via ajax to make suggestions when the prefix length satisfies minchars attribute. Then all the suggestions done at client side except the case when initial prefix changed or token entered. Then loads data again.</li>
- </ul>
- </p>
- <p>There you could see simple client side autocomplete:</p>
- <ui:include src="#{demoNavigator.sampleIncludeURI}" />
- <ui:include src="/templates/includes/source-view.xhtml">
- <ui:param name="src" value="#{demoNavigator.sampleIncludeURI}" />
- <ui:param name="sourceType" value="xhtml" />
- <ui:param name="openLabel" value="View Source" />
- <ui:param name="hideLabel" value="Hide Source" />
- </ui:include>
-</ui:composition>
-
-</html>
\ No newline at end of file
15 years, 9 months
JBoss Rich Faces SVN: r18748 - in trunk: examples/output-demo/src/main/webapp/qunit and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: Alex.Kolonitsky
Date: 2010-08-18 07:18:22 -0400 (Wed, 18 Aug 2010)
New Revision: 18748
Modified:
trunk/examples/output-demo/src/main/webapp/examples/togglePanel-ajax.xhtml
trunk/examples/output-demo/src/main/webapp/examples/togglePanel-client.xhtml
trunk/examples/output-demo/src/main/webapp/examples/togglePanel-mixed.xhtml
trunk/examples/output-demo/src/main/webapp/examples/togglePanel-server.xhtml
trunk/examples/output-demo/src/main/webapp/examples/togglePanel.xhtml
trunk/examples/output-demo/src/main/webapp/qunit/togglePanel.xhtml
trunk/examples/output-demo/src/main/webapp/qunit/togglePanelItem.xhtml
trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/samples/simple-sample.xhtml
trunk/ui/output/ui/src/main/java/org/richfaces/component/behavior/ToggleControl.java
Log:
RF-9007 componentControl: change forPanel to just for
Modified: trunk/examples/output-demo/src/main/webapp/examples/togglePanel-ajax.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/examples/togglePanel-ajax.xhtml 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/examples/output-demo/src/main/webapp/examples/togglePanel-ajax.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
@@ -22,38 +22,38 @@
</pn:togglePanel>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name1" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name1" event="click" />
name1
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name2" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name2" event="click" />
name2
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name3" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name3" event="click" />
name3
</h:outputLink>
<br/>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@first" event="click"/>
+ <pn:toggleControl targetPanel="panel" targetItem="@first" event="click"/>
|< first
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@prev" event="click"/>
+ <pn:toggleControl targetPanel="panel" targetItem="@prev" event="click"/>
<- prev
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@next" event="click"/>
+ <pn:toggleControl targetPanel="panel" targetItem="@next" event="click"/>
next ->
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@last" event="click"/>
+ <pn:toggleControl targetPanel="panel" targetItem="@last" event="click"/>
last >|
</h:outputLink>
</h:form>
Modified: trunk/examples/output-demo/src/main/webapp/examples/togglePanel-client.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/examples/togglePanel-client.xhtml 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/examples/output-demo/src/main/webapp/examples/togglePanel-client.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
@@ -20,38 +20,38 @@
</pn:togglePanel>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name1" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name1" event="click" />
name1
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name2" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name2" event="click" />
name2
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name3" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name3" event="click" />
name3
</h:outputLink>
<br />
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@first" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="@first" event="click" />
|< first
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@prev" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="@prev" event="click" />
<- prev
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@next" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="@next" event="click" />
next ->
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@last" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="@last" event="click" />
last >|
</h:outputLink>
</h:form>
Modified: trunk/examples/output-demo/src/main/webapp/examples/togglePanel-mixed.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/examples/togglePanel-mixed.xhtml 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/examples/output-demo/src/main/webapp/examples/togglePanel-mixed.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
@@ -20,38 +20,38 @@
</pn:togglePanel>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name1" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name1" event="click" />
name1 client
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name2" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name2" event="click" />
name2 ajax
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name3" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name3" event="click" />
name3 server
</h:outputLink>
<br />
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@first" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="@first" event="click" />
|< first
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@prev" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="@prev" event="click" />
<- prev
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@next" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="@next" event="click" />
next ->
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@last" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="@last" event="click" />
last >|
</h:outputLink>
</h:form>
Modified: trunk/examples/output-demo/src/main/webapp/examples/togglePanel-server.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/examples/togglePanel-server.xhtml 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/examples/output-demo/src/main/webapp/examples/togglePanel-server.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
@@ -21,38 +21,38 @@
</pn:togglePanel>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name1" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name1" event="click" />
name1
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name2" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name2" event="click" />
name2
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name3" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name3" event="click" />
name3
</h:outputLink>
<br/>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@first" event="click"/>
+ <pn:toggleControl targetPanel="panel" targetItem="@first" event="click"/>
|< first
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@prev" event="click"/>
+ <pn:toggleControl targetPanel="panel" targetItem="@prev" event="click"/>
<- prev
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@next" event="click"/>
+ <pn:toggleControl targetPanel="panel" targetItem="@next" event="click"/>
next ->
</h:outputLink>
|
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="@last" event="click"/>
+ <pn:toggleControl targetPanel="panel" targetItem="@last" event="click"/>
last >|
</h:outputLink>
</h:form>
Modified: trunk/examples/output-demo/src/main/webapp/examples/togglePanel.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/examples/togglePanel.xhtml 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/examples/output-demo/src/main/webapp/examples/togglePanel.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
@@ -23,7 +23,7 @@
</pn:togglePanel>
<h:outputLink>
- <pn:toggleControl forPanel="my_id" targetItem="name2" event="click" />
+ <pn:toggleControl targetPanel="my_id" targetItem="name2" event="click" />
Click me :) it is toggle control
</h:outputLink>
Modified: trunk/examples/output-demo/src/main/webapp/qunit/togglePanel.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/qunit/togglePanel.xhtml 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/examples/output-demo/src/main/webapp/qunit/togglePanel.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
@@ -29,15 +29,15 @@
</pn:togglePanel>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name1" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name1" event="click" />
name1
</h:outputLink>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name2" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name2" event="click" />
name2
</h:outputLink>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name3" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name3" event="click" />
name3
</h:outputLink>
</h:form>
Modified: trunk/examples/output-demo/src/main/webapp/qunit/togglePanelItem.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/qunit/togglePanelItem.xhtml 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/examples/output-demo/src/main/webapp/qunit/togglePanelItem.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
@@ -29,15 +29,15 @@
</pn:togglePanel>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name1" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name1" event="click" />
name1
</h:outputLink>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name2" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name2" event="click" />
name2
</h:outputLink>
<h:outputLink>
- <pn:toggleControl forPanel="panel" targetItem="name3" event="click" />
+ <pn:toggleControl targetPanel="panel" targetItem="name3" event="click" />
name3
</h:outputLink>
</h:form>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/samples/simple-sample.xhtml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/samples/simple-sample.xhtml 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/examples/richfaces-showcase/src/main/webapp/richfaces/togglePanel/samples/simple-sample.xhtml 2010-08-18 11:18:22 UTC (rev 18748)
@@ -34,13 +34,13 @@
</rich:togglePanel>
<a4j:outputPanel id="tabs">
<a4j:outputPanel layout="block" styleClass="tabDiv">
- <rich:toggleControl event="click" forPanel="panel1"
+ <rich:toggleControl event="click" targetPanel="panel1"
targetItem="item1" />
<h:outputText value="Toggle Panel Item 1"
style="#{rich:findComponent('panel1').activeItem == 'item1' ? 'font-weight:bold' : 'font-weight:normal'}" />
</a4j:outputPanel>
<a4j:outputPanel layout="block" styleClass="tabDiv">
- <rich:toggleControl event="click" forPanel="panel1"
+ <rich:toggleControl event="click" targetPanel="panel1"
targetItem="item2" />
<h:outputText value="Toggle Panel Item 2"
style="#{rich:findComponent('panel1').activeItem == 'item2' ? 'font-weight:bold' : 'font-weight:normal'}" />
Modified: trunk/ui/output/ui/src/main/java/org/richfaces/component/behavior/ToggleControl.java
===================================================================
--- trunk/ui/output/ui/src/main/java/org/richfaces/component/behavior/ToggleControl.java 2010-08-18 10:21:49 UTC (rev 18747)
+++ trunk/ui/output/ui/src/main/java/org/richfaces/component/behavior/ToggleControl.java 2010-08-18 11:18:22 UTC (rev 18748)
@@ -41,7 +41,7 @@
private enum PropertyKeys {
event,
targetItem,
- forPanel,
+ targetPanel,
disableDefault
}
@@ -61,12 +61,12 @@
getStateHelper().put(PropertyKeys.targetItem, target);
}
- public String getForPanel() {
- return (String) getStateHelper().eval(PropertyKeys.forPanel);
+ public String getTargetPanel() {
+ return (String) getStateHelper().eval(PropertyKeys.targetPanel);
}
- public void setForPanel(String selector) {
- getStateHelper().put(PropertyKeys.forPanel, selector);
+ public void setTargetPanel(String selector) {
+ getStateHelper().put(PropertyKeys.targetPanel, selector);
}
public void setDisableDefault(Boolean disableDefault) {
@@ -82,7 +82,7 @@
}
public AbstractTogglePanel getPanel(UIComponent comp) throws FacesException {
- String target = this.getForPanel();
+ String target = this.getTargetPanel();
if (target != null) {
@@ -121,7 +121,7 @@
// } else if (compare(PropertyKeys.target, name)) {
// setTargetItem((String) value);
// } else if (compare(PropertyKeys.selector, name)) {
-// setForPanel((String) value);
+// setTargetPanel((String) value);
// }
}
}
\ No newline at end of file
15 years, 9 months
JBoss Rich Faces SVN: r18747 - trunk/ui/misc/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-08-18 06:21:49 -0400 (Wed, 18 Aug 2010)
New Revision: 18747
Modified:
trunk/ui/misc/ui/src/main/java/org/richfaces/component/AbstractJQuery.java
Log:
https://jira.jboss.org/browse/RF-9098
Modified: trunk/ui/misc/ui/src/main/java/org/richfaces/component/AbstractJQuery.java
===================================================================
--- trunk/ui/misc/ui/src/main/java/org/richfaces/component/AbstractJQuery.java 2010-08-18 09:24:37 UTC (rev 18746)
+++ trunk/ui/misc/ui/src/main/java/org/richfaces/component/AbstractJQuery.java 2010-08-18 10:21:49 UTC (rev 18747)
@@ -27,13 +27,15 @@
import org.richfaces.cdk.annotations.Attribute;
import org.richfaces.cdk.annotations.JsfComponent;
import org.richfaces.cdk.annotations.JsfRenderer;
+import org.richfaces.cdk.annotations.Tag;
+import org.richfaces.cdk.annotations.TagType;
/**
* @author nick
*
*/
@JsfComponent(type = AbstractJQuery.COMPONENT_TYPE, family = AbstractJQuery.COMPONENT_FAMILY,
- renderer = @JsfRenderer(type = "org.richfaces.JQueryRenderer"))
+ renderer = @JsfRenderer(type = "org.richfaces.JQueryRenderer"), tag = @Tag(type = TagType.Facelets))
public abstract class AbstractJQuery extends UIComponentBase {
public static final String COMPONENT_TYPE = "org.richfaces.JQuery";
15 years, 9 months
JBoss Rich Faces SVN: r18746 - trunk/ui/core/ui/src/main/java/org/richfaces/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2010-08-18 05:24:37 -0400 (Wed, 18 Aug 2010)
New Revision: 18746
Modified:
trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractAjaxStatus.java
trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractCommandButton.java
trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractOutputPanel.java
Log:
https://jira.jboss.org/browse/RF-9098
Modified: trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractAjaxStatus.java
===================================================================
--- trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractAjaxStatus.java 2010-08-18 07:00:26 UTC (rev 18745)
+++ trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractAjaxStatus.java 2010-08-18 09:24:37 UTC (rev 18746)
@@ -29,12 +29,14 @@
import org.richfaces.cdk.annotations.EventName;
import org.richfaces.cdk.annotations.JsfComponent;
import org.richfaces.cdk.annotations.JsfRenderer;
+import org.richfaces.cdk.annotations.Tag;
+import org.richfaces.cdk.annotations.TagType;
/**
* @author Nick Belaevski
*
*/
-@JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.StatusRenderer"))
+@JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.StatusRenderer"), tag = @Tag(type = TagType.Facelets))
public abstract class AbstractAjaxStatus extends UIOutput {
public static final String COMPONENT_TYPE = "org.richfaces.Status";
Modified: trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractCommandButton.java
===================================================================
--- trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractCommandButton.java 2010-08-18 07:00:26 UTC (rev 18745)
+++ trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractCommandButton.java 2010-08-18 09:24:37 UTC (rev 18746)
@@ -29,12 +29,14 @@
import org.richfaces.cdk.annotations.EventName;
import org.richfaces.cdk.annotations.JsfComponent;
import org.richfaces.cdk.annotations.JsfRenderer;
+import org.richfaces.cdk.annotations.Tag;
+import org.richfaces.cdk.annotations.TagType;
/**
* @author Nick Belaevski
*
*/
-@JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.CommandButtonRenderer"))
+@JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.CommandButtonRenderer"), tag = @Tag(type = TagType.Facelets))
public abstract class AbstractCommandButton extends AbstractActionComponent {
public static final String COMPONENT_TYPE = "org.richfaces.CommandButton";
Modified: trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractOutputPanel.java
===================================================================
--- trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractOutputPanel.java 2010-08-18 07:00:26 UTC (rev 18745)
+++ trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractOutputPanel.java 2010-08-18 09:24:37 UTC (rev 18746)
@@ -30,13 +30,15 @@
import org.richfaces.cdk.annotations.EventName;
import org.richfaces.cdk.annotations.JsfComponent;
import org.richfaces.cdk.annotations.JsfRenderer;
+import org.richfaces.cdk.annotations.Tag;
+import org.richfaces.cdk.annotations.TagType;
/**
* @author asmirnov(a)exadel.com (latest modification by $Author: alexsmirnov $)
* @version $Revision: 1.1.2.1 $ $Date: 2007/01/09 18:58:26 $
*
*/
-@JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.OutputPanelRenderer"))
+@JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.OutputPanelRenderer"), tag = @Tag(type = TagType.Facelets))
public abstract class AbstractOutputPanel extends UIPanel implements AjaxOutput {
public static final String COMPONENT_TYPE = "org.richfaces.OutputPanel";
15 years, 9 months
JBoss Rich Faces SVN: r18745 - in modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US: extras and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-08-18 03:00:26 -0400 (Wed, 18 Aug 2010)
New Revision: 18745
Added:
modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopup-Header_and_controls.xml_sample
modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopup-richpopup_example.xml_sample
modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richpopup-Header_and_controls.png
Modified:
modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
Log:
Updated popup (RF-8805)
Modified: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml
===================================================================
--- modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2010-08-18 05:35:44 UTC (rev 18744)
+++ modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Panels_and_containers.xml 2010-08-18 07:00:26 UTC (rev 18745)
@@ -14,39 +14,113 @@
This chapter details those components which act as panels and containers to hold groups of other components.
</para>
- <!-- TODO not in M2 -->
- <!--
- <section id="sect-Component_Reference-Panels_and_containers-richmodalPanel">
- <title><sgmltag><rich:modalPanel></sgmltag></title>
+ <!--<rich:popup>-->
+ <section id="sect-Component_Reference-Panels_and_containers-richpopup">
+ <title><sgmltag><rich:popup></sgmltag></title>
<para>
- The <sgmltag><rich:modalPanel></sgmltag> component provides a modal panel or window that blocks interaction with the rest of the application while active. It can be easily positioned on the screen, dragged to a new position by the user, and re-sized.
+ The <sgmltag><rich:popup></sgmltag> component provides a modal pop-up panel or window that blocks interaction with the rest of the application while active. It can be easily positioned on the screen, dragged to a new position by the user, and re-sized.
</para>
- <important>
- <title>Placement</title>
+
+ <section id="sect-Component_Reference-richpopup-Basic_usage">
+ <title>Basic usage</title>
<para>
- The <sgmltag><rich:modalPanel></sgmltag> component should always be placed outside the original <sgmltag><h:form></sgmltag>, and must include its own <sgmltag><h:form></sgmltag> if performing submissions.
+ The <sgmltag><rich:popup></sgmltag> must be given an <varname>id</varname> identifier. It can then be shown and hidden using JavaScript API functions. <xref linkend="exam-Component_Reference-richpopup-richpopup_example" /> demonstrates basic usage of the <sgmltag><rich:popup></sgmltag> component.
</para>
- </important>
- <para>
- By default, the modal panel can be both re-sized and re-positioned by the user. The minimum possible size for the panel can be set with the These abilities can be deactivated by setting <code>resizable</code> or <code>movable</code> to <literal>false</literal> as necessary. The state of the modal panel, including size and position on screen, can be maintained and restored after submitting and reloading by setting <code>keepVisualState="true"</code>.
- </para>
- <para>
- If <code>showWhenRendered="true"</code> then the modal panel will display when the page is first loaded.
- </para>
- <example id="exam-Component_Reference-richmodalPanel-richmodalPanel_example">
- <title><sgmltag><rich:modalPanel></sgmltag> example</title>
-
-<programlisting language="XML" role="XML">
-<a onclick="Richfaces.showModalPanel('pnl');" href="#">Show ModalPanel</a>
-<a4j:form>
- <rich:modalPanel id="pnl" >
- <a onclick="Richfaces.hideModalPanel('pnl');" href="#">Hide ModalPanel</a>
- </rich:modalPanel>
-</a4j:form>
-</programlisting>
- </example>
+ <example id="exam-Component_Reference-richpopup-richpopup_example">
+ <title><sgmltag><rich:popup></sgmltag> example</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richpopup-richpopup_example.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ <important>
+ <title>Placement</title>
+ <para>
+ The <sgmltag><rich:popup></sgmltag> component should always be placed outside the original <sgmltag><h:form></sgmltag>, and must include its own <sgmltag><h:form></sgmltag> if performing submissions.
+ </para>
+ </important>
+ </section>
+
+ <section id="sect-Component_Reference-richpopup-Size_and_positioning">
+ <title>Size and positioning</title>
+ <para>
+ By default, the pop-up panel can be both re-sized and re-positioned by the user. The minimum possible size for the panel can be set with the <varname>minWith</varname> and <varname>minHeight</varname> attributes. These abilities can be deactivated by setting <code>resizable</code> or <code>movable</code> to <literal>false</literal> as necessary. The state of the modal panel, including size and position on screen, can be maintained and restored after submitting and reloading by setting <code>keepVisualState="true"</code>.
+ </para>
+ <para>
+ If <code>showWhenRendered="true"</code> then the modal panel will display when the page is first loaded.
+ </para>
+ <para>
+ The <sgmltag><rich:popup></sgmltag> component is always rendered in front of any other objects on the page, even if they would ordinarily have a higher <emphasis>"z-index"</emphasis> (the stack order of the objects). This is achieved by attaching the component to the <sgmltag><body></sgmltag> element of the page, and setting a very high z-index. However, this may produce unwanted behavior in sufficiently complex layouts. The <sgmltag><rich:popup></sgmltag> component can be reattached to its original <acronym>DOM</acronym> element by setting <varname>domElementAttachment</varname> to either <literal>parent</literal> or <literal>form</literal>.
+ </para>
+ <para>
+ Embedded objects inserted into the <acronym>HTML</acronym> with the <sgmltag><embed></sgmltag> tag will typically be rendered in front of a <sgmltag><rich:popup></sgmltag> component. The <sgmltag><rich:popup></sgmltag> component can be forcibly rendered in front of these objects by setting <code><varname>overlapEmbedObjects</varname>="true"</code>.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richpopup-Contents_of_the_pop-up">
+ <title>Contents of the pop-up</title>
+ <para>
+ The <sgmltag><rich:popup></sgmltag> component can contain any other rich component just like a normal panel.
+ </para>
+ <para>
+ If the contents of the <sgmltag><rich:popup></sgmltag> component extend beyond the dimensions of the pop-up, they will be trimmed. However, the <sgmltag><rich:popup></sgmltag> component will expand to accommodate the contents if the <varname>trimOverlayedElements</varname> attribute is set to <literal>false</literal>.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richpopup-Header_and_controls">
+ <title>Header and controls</title>
+ <para>
+ A panel header and associated controls can be added to the <sgmltag><rich:popup></sgmltag> component through the use of facets. The <literal>header</literal> facet displays a title for the panel, and the <literal>controls</literal> facet can be customized to allow window controls such as a button for closing the pop-up. <xref linkend="exam-Component_Reference-richpopup-Header_and_controls" /> demonstrates the use of the facets.
+ </para>
+ <example id="exam-Component_Reference-richpopup-Header_and_controls">
+ <title>Header and controls</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richpopup-Header_and_controls.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <blockquote>
+ <figure id="figu-Component_Reference-richpopup-Header_and_controls">
+ <title>Header and controls</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richpopup-Header_and_controls.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ The <sgmltag><rich:popup></sgmltag> component, rendered with a title header and a button control for closing the pop-up.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </blockquote>
+ </example>
+ </section>
+
+ <section id="sect-Component_Reference-richpopup-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.popup</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlPopup</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.popup</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.popupRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.popupTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
- -->
<section id="sect-Component_Reference-Panels_and_containers-richpanel">
<title><sgmltag><rich:panel></sgmltag></title>
Added: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopup-Header_and_controls.xml_sample
===================================================================
--- modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopup-Header_and_controls.xml_sample (rev 0)
+++ modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopup-Header_and_controls.xml_sample 2010-08-18 07:00:26 UTC (rev 18745)
@@ -0,0 +1,15 @@
+<a onclick="Richfaces.showModalPanel('pop');" href="#">Show pop-up</a>
+...
+<a4j:form>
+ <rich:popup id="pop" >
+ <f:facet name="header">
+ <h:outputText value="The title of the panel" />
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pages/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('pop')" />
+ </f:facet>
+ <p>
+ This is the content of the panel.
+ </p>
+ </rich:popup>
+</a4j:form>
Added: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopup-richpopup_example.xml_sample
===================================================================
--- modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopup-richpopup_example.xml_sample (rev 0)
+++ modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richpopup-richpopup_example.xml_sample 2010-08-18 07:00:26 UTC (rev 18745)
@@ -0,0 +1,6 @@
+<a onclick="Richfaces.showModalPanel('pop');" href="#">Show pop-up</a>
+<a4j:form>
+ <rich:popup id="pop" >
+ <a onclick="Richfaces.hideModalPanel('pop');" href="#">Hide pop-up</a>
+ </rich:popup>
+</a4j:form>
Added: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richpopup-Header_and_controls.png
===================================================================
(Binary files differ)
Property changes on: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richpopup-Header_and_controls.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 9 months
JBoss Rich Faces SVN: r18744 - in modules/docs/branches/draft/Component_Reference: src/main/docbook/en-US and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-08-18 01:35:44 -0400 (Wed, 18 Aug 2010)
New Revision: 18744
Added:
modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample
modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_suggestion_values.xml_sample
modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richcomboBox-richcomboBox.png
Modified:
modules/docs/branches/draft/Component_Reference/Component_Reference_chapters.txt
modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
Log:
Updated comboBox (RF-8872)
Modified: modules/docs/branches/draft/Component_Reference/Component_Reference_chapters.txt
===================================================================
--- modules/docs/branches/draft/Component_Reference/Component_Reference_chapters.txt 2010-08-18 03:44:09 UTC (rev 18743)
+++ modules/docs/branches/draft/Component_Reference/Component_Reference_chapters.txt 2010-08-18 05:35:44 UTC (rev 18744)
@@ -54,8 +54,8 @@
- chap-Component_Reference-Panels_and_containers
x- rich:modalPanel
-xx rich:panel
-xx rich:panelBar
+-- rich:panel
+-- rich:panelBar
xx rich:panelBarItem
x- rich:simpleTogglePanel
-- rich:tabPanel
@@ -68,11 +68,11 @@
-- rich:column
-- rich:columnGroup
-- rich:columns
-x- rich:dataDefinitionList
+-- rich:dataDefinitionList
x- rich:dataFilterSlider
-- rich:dataGrid
-x- rich:dataList
-x- rich:dataOrderedList
+-- rich:dataList
+-- rich:dataOrderedList
xx rich:dataScroller
-- rich:dataTable
-- rich:extendedDataTable
@@ -117,7 +117,7 @@
x chap-Component_Reference-Layout_and_appearance
xx rich:effect
-xx rich:jQuery
+-- rich:jQuery
xx rich:separator
xx rich:spacer
xx rich:page
Modified: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
===================================================================
--- modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2010-08-18 03:44:09 UTC (rev 18743)
+++ modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2010-08-18 05:35:44 UTC (rev 18744)
@@ -114,67 +114,118 @@
The <sgmltag><rich:colorPicker></sgmltag> component has the unique event handler <varname>onbeforeshow</varname>, which is triggered immediately before the color picker is opened. The <varname>showEvent</varname> attribute can be used to bind the opening of the color picker to a specific event; it is bound to the <varname>onclick</varname> event by default.
</para>
</section>
+ -->
+ <!--<rich:comboBox>-->
<section id="sect-Component_Reference-Rich_inputs-richcomboBox">
<title><sgmltag><rich:comboBox></sgmltag></title>
<para>
- The <sgmltag><rich:comboBox></sgmltag> component is a typical combo-box with built-in Ajax capabilities. It supports client-side suggestions, browser-like selection, Seam entity converter support, and customization of the look and feel.
+ The <sgmltag><rich:comboBox></sgmltag> component is an auto-completing combo-box with built-in Ajax capabilities. It supports client-side suggestions, browser-like selection, Seam entity converter support, and customization of the look and feel.
</para>
- <para>
- The <varname>value</varname> attribute stores the selected value for the combo-box. Suggestions shown in the drop-down list for the combo-box can be specified in one of two ways:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Using the <varname>suggestionValues</varname> attribute, and defining a collection of suggestions:
- </para>
- <example id="exam-Component_Reference-richcomboBox-Defining_suggestion_values">
- <title>Defining suggestion values</title>
-
-<programlisting language="XML" role="XML">
-<rich:comboBox value="#{bean.state}" suggestionValues="#{bean.suggestions}"
-</programlisting>
- </example>
- </listitem>
- <listitem>
- <para>
- Using the JSF components <sgmltag><f:selectItem></sgmltag> and <sgmltag><f:selectItems></sgmltag> to define a list of items:
- </para>
- <example id="exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect">
- <title>Defining list items for <sgmltag><rich:inplaceSelect></sgmltag></title>
-
-<programlisting language="XML" role="XML">
-<rich:comboBox value="#{bean.item}" valueChangeListener="#{bean.selectionChanged}" >
- <f:selectItems value="#{bean.selectItems}" />
- <f.selectItem itemValue="Item 1" />
- <f.selectItem itemValue="Item 2" />
- <f.selectItem itemValue="Item 3" />
- <f.selectItem itemValue="Item 4" />
-</rich:comboBox>
-</programlisting>
- </example>
- </listitem>
- </itemizedlist>
- <para>
- Users can type into the combo-box's text field to enter a value, which also searches through the suggestion items in the drop-down box. By default, the first suggestion item is selected as the user types. This behavior can be deactivated by setting <code>selectFirstOnUpdate="false"</code>. Setting <code>directInputSuggestions="true"</code> causes the combo-box to fill the text field box with a matching suggestion as the user types. Alternatively, the text field can be disabled by setting <code>enableManualInput="false"</code>, which forces the users to pick from items in the drop-down box.
- </para>
- <para>
- The <sgmltag><rich:comboBox></sgmltag> component has two unique event handlers:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <varname>onlistcall</varname> triggers before the drop-down list is shown, allowing the operation to be canceled.
- </para>
- </listitem>
- <listitem>
- <para>
- <varname>onselect</varname> triggers when a suggestion is selected from the drop-down list, before the update request is sent.
- </para>
- </listitem>
- </itemizedlist>
+ <figure id="figu-Component_Reference-richcomboBox-richcomboBox">
+ <title><sgmltag><rich:comboBox></sgmltag></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richcomboBox-richcomboBox.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ A <sgmltag><rich:comboBox></sgmltag> component. The letter <wordasword>A</wordasword> has been entered, such that the suggestion list only shows those options beginning with <wordasword>A</wordasword>.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
+
+ <section id="sect-Component_Reference-richcomboBox-Basic_usage">
+ <title>Basic usage</title>
+ <para>
+ The <varname>value</varname> attribute stores the selected value for the combo-box. Suggestions shown in the drop-down list for the combo-box can be specified in one of two ways:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Using the <varname>suggestionValues</varname> attribute, and defining a collection of suggestions:
+ </para>
+ <example id="exam-Component_Reference-richcomboBox-Defining_suggestion_values">
+ <title>Defining suggestion values</title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richcomboBox-Defining_suggestion_values.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ </listitem>
+ <listitem>
+ <para>
+ Using the JSF components <sgmltag><f:selectItem></sgmltag> and <sgmltag><f:selectItems></sgmltag> to define a list of items:
+ </para>
+ <example id="exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect">
+ <title>Defining list items for <sgmltag><rich:inplaceSelect></sgmltag></title>
+ <programlisting language="XML" role="XML"><xi:include parse="text" href="extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ </example>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richcomboBox-Interactivity_options">
+ <title>Interactivity options</title>
+ <para>
+ The input box can display an instructional label before text is entered. This can be set through the <varname>defaultLabel</varname> attribute.
+ </para>
+ <para>
+ Users can type into the combo-box's text field to enter a value, which also searches through the suggestion items in the drop-down box. By default, the first suggestion item is selected as the user types. This behavior can be deactivated by setting <code><varname>selectFirstOnUpdate</varname>="false"</code>.
+ </para>
+ <para>
+ Setting <code><varname>directInputSuggestions</varname>="true"</code> causes the combo-box to fill the text field box with a matching suggestion as the user types. Alternatively, the text field can be disabled by setting <code><varname>enableManualInput</varname>="false"</code>, which forces the users to pick from items in the drop-down box.
+ </para>
+ </section>
+
+ <section id="sect-Component_Reference-richcomboBox-richcomboBox_events">
+ <title><sgmltag><rich:comboBox></sgmltag> events</title>
+ <para>
+ The <sgmltag><rich:comboBox></sgmltag> component has two unique event handlers:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <varname>onlistcall</varname> triggers before the drop-down list is shown, allowing the operation to be canceled.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <varname>onselect</varname> triggers when a suggestion is selected from the drop-down list, before the update request is sent.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="sect-Component_Reference-richcomboBox-Reference_data">
+ <title>Reference data</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <parameter>component-type</parameter>: <classname>org.richfaces.ComboBox</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-class</parameter>: <classname>org.richfaces.component.html.HtmlComboBox</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>component-family</parameter>: <classname>org.richfaces.ComboBox</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>renderer-type</parameter>: <classname>org.richfaces.renderkit.ComboBoxRenderer</classname>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <parameter>tag-class</parameter>: <classname>org.richfaces.taglib.ComboBoxTag</classname>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </section>
</section>
- -->
<!-- TODO not in M2 -->
<!--
@@ -268,6 +319,7 @@
</section>
-->
+ <!--<rich:inplaceInput>-->
<section id="sect-Component_Reference-Rich_inputs-richinplaceInput">
<title><sgmltag><rich:inplaceInput></sgmltag></title>
<para>
@@ -356,6 +408,7 @@
</section>
</section>
+ <!--<rich:inplaceSelect>-->
<section id="sect-Component_Reference-Rich_inputs-richinplaceSelect">
<title><sgmltag><rich:inplaceSelect></sgmltag></title>
<para>
@@ -447,6 +500,7 @@
</section>
</section>
+ <!--<rich:inputNumberSlider>-->
<section id="sect-Component_Reference-Rich_inputs-richinputNumberSlider">
<title><sgmltag><rich:inputNumberSlider></sgmltag></title>
<para>
@@ -524,7 +578,10 @@
The ability to change the value by typing into the text field can be disabled by setting <code>enableManualInput="false"</code>.
</para>
</section>
+ -->
+ <!--<rich:suggestionBox>-->
+ <!--
<section id="sect-Component_Reference-Rich_inputs-richsuggestionBox">
<title><sgmltag><rich:suggestionBox></sgmltag></title>
<para>
Added: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample
===================================================================
--- modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample (rev 0)
+++ modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_list_items_for_richinplaceSelect.xml_sample 2010-08-18 05:35:44 UTC (rev 18744)
@@ -0,0 +1,7 @@
+<rich:comboBox value="#{bean.state}" valueChangeListener="#{bean.selectionChanged}" >
+ <f:selectItems value="#{bean.selectItems}" />
+ <f.selectItem itemValue="Oregon" />
+ <f.selectItem itemValue="Pennsylvania" />
+ <f.selectItem itemValue="Rhode Island" />
+ <f.selectItem itemValue="South Carolina" />
+</rich:comboBox>
Added: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_suggestion_values.xml_sample
===================================================================
--- modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_suggestion_values.xml_sample (rev 0)
+++ modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richcomboBox-Defining_suggestion_values.xml_sample 2010-08-18 05:35:44 UTC (rev 18744)
@@ -0,0 +1 @@
+<rich:comboBox value="#{bean.state}" suggestionValues="#{bean.suggestions}" />
Added: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richcomboBox-richcomboBox.png
===================================================================
(Binary files differ)
Property changes on: modules/docs/branches/draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richcomboBox-richcomboBox.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 9 months