JBoss Rich Faces SVN: r17096 - root/build/bom/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: jbalunas(a)redhat.com
Date: 2010-05-18 10:09:24 -0400 (Tue, 18 May 2010)
New Revision: 17096
Modified:
root/build/bom/trunk/pom.xml
Log:
Update for release plugin in the bom
Modified: root/build/bom/trunk/pom.xml
===================================================================
--- root/build/bom/trunk/pom.xml 2010-05-18 14:07:39 UTC (rev 17095)
+++ root/build/bom/trunk/pom.xml 2010-05-18 14:09:24 UTC (rev 17096)
@@ -142,6 +142,16 @@
</dependency>
</dependencies>
</dependencyManagement>
+
+ <build>
+ <plugins>
+ <!-- For the release this bom pom -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
<scm>
<connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/root/build/bom/trunk</connection>
14 years, 4 months
JBoss Rich Faces SVN: r17095 - root/build/parent/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: jbalunas(a)redhat.com
Date: 2010-05-18 10:07:39 -0400 (Tue, 18 May 2010)
New Revision: 17095
Modified:
root/build/parent/trunk/pom.xml
Log:
Updates for release process and plugin updates.
Modified: root/build/parent/trunk/pom.xml
===================================================================
--- root/build/parent/trunk/pom.xml 2010-05-18 13:44:47 UTC (rev 17094)
+++ root/build/parent/trunk/pom.xml 2010-05-18 14:07:39 UTC (rev 17095)
@@ -113,10 +113,15 @@
<artifactId>maven-release-plugin</artifactId>
<version>${version.release.plugin}</version>
<configuration>
- <arguments>-Drelease </arguments>
+ <!-- All sub-modules will have same version -->
<autoVersionSubmodules>true</autoVersionSubmodules>
- <!-- As we need access to our own artifacts -->
- <preparationGoals>install</preparationGoals>
+ <!-- During release:perform, enable the "release" profile -->
+ <releaseProfiles>release</releaseProfiles>
+ <!--
+ RichFaces modules should override and set goals to
+ run for release:perform
+ -->
+ <!-- <goals></goals> -->
</configuration>
</plugin>
@@ -253,6 +258,13 @@
</plugin>
</plugins>
</pluginManagement>
+ <plugins>
+ <!-- For the release this parent pom -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ </plugin>
+ </plugins>
</build>
<!-- Profiles -->
@@ -262,6 +274,7 @@
<build>
<plugins>
<plugin>
+ <!-- TODO move to doc profile? -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
@@ -282,6 +295,15 @@
</build>
</profile>
<profile>
+ <!--
+ Triggers generated documentation as part of builds ( javadoc,
+ jsdoc, etc...
+ -->
+ <id>doc</id>
+ <!-- TODO -->
+ </profile>
+ <profile>
+ <!-- Triggers clover reports to be generated -->
<id>clover</id>
<build>
<plugins>
@@ -313,6 +335,7 @@
</build>
</profile>
<profile>
+ <!-- Required when in JBoss hudson env to have clover reports generate -->
<id>hudson</id>
<properties>
<clover.license.path>/home/hudson/config_repository/resources/richfaces/richfaces-clover-license.txt
@@ -323,7 +346,7 @@
<distributionManagement>
<downloadUrl>
- http://labs.jboss.com/portal/jbossrichfaces/downloads
+ http://www.jboss.org/richfaces/download
</downloadUrl>
</distributionManagement>
14 years, 4 months
JBoss Rich Faces SVN: r17094 - in root/examples/richfaces-showcase/trunk/src/main: webapp/richfaces and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-05-18 09:44:47 -0400 (Tue, 18 May 2010)
New Revision: 17094
Modified:
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoNavigator.java
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/templates/includes/navigation.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
Log:
https://jira.jboss.org/browse/RF-8663
Modified: root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoNavigator.java
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoNavigator.java 2010-05-17 20:23:29 UTC (rev 17093)
+++ root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoNavigator.java 2010-05-18 13:44:47 UTC (rev 17094)
@@ -3,10 +3,16 @@
import java.util.Iterator;
import java.util.List;
+import javax.faces.application.ConfigurableNavigationHandler;
+import javax.faces.application.NavigationCase;
+import javax.faces.application.NavigationHandler;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
+import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.event.ComponentSystemEvent;
import javax.servlet.http.HttpServletRequest;
@ManagedBean
@@ -17,6 +23,8 @@
private DemoDescriptor currentDemo = null;
private String currentSample;
+ private String demoName;
+
public DemoDescriptor getCurrentDemo() {
String id = getDemoParam("demo");
if (id != null) {
@@ -106,4 +114,40 @@
this.currentSample = currentSample;
}
+ public String getDemoName() {
+ return demoName;
+ }
+
+ public void setDemoName(String demoName) {
+ this.demoName = demoName;
+ }
+
+ public void preRenderEvent(ComponentSystemEvent event) {
+ System.out.println("DemoNavigator.preRenderEvent()");
+ }
+
+ private static Converter demoViewConverter = new Converter() {
+
+ public String getAsString(FacesContext context, UIComponent component, Object value) {
+ return (String) value;
+ }
+
+ public Object getAsObject(FacesContext context, UIComponent component, String value) {
+ NavigationHandler handler = context.getApplication().getNavigationHandler();
+
+ if (handler instanceof ConfigurableNavigationHandler) {
+ ConfigurableNavigationHandler navigationHandler = (ConfigurableNavigationHandler) handler;
+
+ NavigationCase navCase = navigationHandler.getNavigationCase(context, null, "/richfaces/" + value);
+
+ return navCase.getToViewId(context);
+ }
+
+ return null;
+ }
+ };
+
+ public Converter getDemoViewConverter() {
+ return demoViewConverter;
+ }
}
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml 2010-05-17 20:23:29 UTC (rev 17093)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml 2010-05-18 13:44:47 UTC (rev 17094)
@@ -6,16 +6,29 @@
<ui:composition template="/templates/main.xhtml">
<ui:define name="demoSampleParameters">
- <f:viewParam name="simple" value="#{demoNavigator.currentSample}" />
+ <f:metadata>
+ <f:viewParam name="demoName" value="#{demoNavigator.demoName}" converter="#{demoNavigator.demoViewConverter}" />
+ <f:event listener="#{demoNavigator.preRenderEvent}" type="javax.faces.event.PreRenderViewEvent" />
+ </f:metadata>
</ui:define>
<ui:define name="body">
+ <h:link value="Ajax" includeViewParams="false">
+ <f:param name="demoName" value="ajax/ajax" />
+ </h:link>
+ <h:outputText value=" | "/>
+
+ <h:link value="Selects updates" includeViewParams="false">
+ <f:param name="demoName" value="ajax/selectsUpdates" />
+ </h:link>
+
+
<p>
The behavior that adds javascript call for sending Ajax request
to specified event on parent component
</p>
<fieldset>
<legend>Simple sample</legend>
- <ui:include src="#{demoNavigator.currentDemo.sampleURI}" />
+ <ui:include src="#{demoNavigator.demoName}" />
</fieldset>
<p>Typical use-case of dependent select components. When you choosing
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/templates/includes/navigation.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/templates/includes/navigation.xhtml 2010-05-17 20:23:29 UTC (rev 17093)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/templates/includes/navigation.xhtml 2010-05-18 13:44:47 UTC (rev 17094)
@@ -17,7 +17,7 @@
<ul>
<a4j:repeat value="#{gr.demos}" var="d">
<li>
- <h:link outcome="#{d.demoURI}" value="#{d.name}" includeViewParams="true">
+ <h:link outcome="#{d.demoURI}" value="#{d.name}" includeViewParams="false">
<f:param name="demo" value="#{d.id}"/>
</h:link>
<h:outputText value="NEW!" rendered="#{d.newItem or gr.newItem}" style="color:red"/>
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-17 20:23:29 UTC (rev 17093)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-18 13:44:47 UTC (rev 17094)
@@ -4,6 +4,9 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://java.sun.com/jsf/composite/rich">
+<f:view>
+ <ui:insert name="demoSampleParameters"/>
+
<h:head>
</h:head>
<h:body>
@@ -13,9 +16,6 @@
<title>Components Gallery</title>
</h:head>
<h:body>
- <f:metadata>
- <ui:insert name="demoSampleParameters"/>
- </f:metadata>
<h:outputStylesheet name="rich/css/page.css" />
<table border="0" cellpadding="0" cellspacing="0"
class="rich-page #{cc.attrs.pageClass}">
@@ -67,4 +67,5 @@
</html>
</ui:composition>
</h:body>
+</f:view>
</html>
\ No newline at end of file
14 years, 4 months
JBoss Rich Faces SVN: r17093 - root/build/parent/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: jbalunas(a)redhat.com
Date: 2010-05-17 16:23:29 -0400 (Mon, 17 May 2010)
New Revision: 17093
Modified:
root/build/parent/trunk/pom.xml
Log:
Organized plugins, with comments, and also updated release plugin
Modified: root/build/parent/trunk/pom.xml
===================================================================
--- root/build/parent/trunk/pom.xml 2010-05-17 18:13:42 UTC (rev 17092)
+++ root/build/parent/trunk/pom.xml 2010-05-17 20:23:29 UTC (rev 17093)
@@ -1,21 +1,19 @@
<!--
- 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.
+ 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
@@ -34,7 +32,8 @@
</parent>
<description>
- The Parent for all RichFaces sub-projects. This specifies build, plugin and project meta-data.
+ The Parent for all RichFaces sub-projects. This specifies build, plugin
+ and project meta-data.
</description>
<url>http://www.jboss.org/richfaces</url>
@@ -68,7 +67,8 @@
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
- <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ <url>https://repository.jboss.org/nexus/content/groups/public/
+ </url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
@@ -85,7 +85,8 @@
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
- <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ <url>https://repository.jboss.org/nexus/content/groups/public/
+ </url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
@@ -101,42 +102,54 @@
<!-- Build -->
<build>
<!--
- Plugin config, including versions to use in the build. Note:
- some are inherited from jboss-parent
+ Plugin config, including versions to use in the build. Note: some
+ are inherited from jboss-parent
-->
<pluginManagement>
<plugins>
+ <!-- Release -->
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javacc-maven-plugin</artifactId>
- <version>2.4</version>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>${version.release.plugin}</version>
+ <configuration>
+ <arguments>-Drelease </arguments>
+ <autoVersionSubmodules>true</autoVersionSubmodules>
+ <!-- As we need access to our own artifacts -->
+ <preparationGoals>install</preparationGoals>
+ </configuration>
</plugin>
+
+
+ <!-- Build -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.3</version>
- <dependencies>
- <dependency>
- <groupId>org.richfaces</groupId>
- <artifactId>richfaces-build-checkstyle</artifactId>
- <version>${richfaces.checkstyle.version}</version>
- </dependency>
- </dependencies>
- <configuration>
- <configLocation>richfaces-checkstyle/richfaces-checkstyle.xml</configLocation>
- <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
- </configuration>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0-beta-1</version>
<executions>
<execution>
- <id>richfaces-checkstyle-report</id>
- <phase>process-sources</phase>
+ <id>enforce-versions</id>
<goals>
- <goal>check</goal>
+ <goal>enforce</goal>
</goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>2.1.0</version>
+ </requireMavenVersion>
+ </rules>
+ </configuration>
</execution>
</executions>
</plugin>
<plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
@@ -163,45 +176,53 @@
</manifest>
<manifestEntries>
<mode>development</mode>
- <Build-Number>${buildNumber}</Build-Number>
+ <Build-Number>${buildNumber}
+ </Build-Number>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>javacc-maven-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+
+ <!-- reporting -->
+ <plugin>
+ <groupId>com.atlassian.maven.plugins</groupId>
+ <artifactId>maven-clover2-plugin</artifactId>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.0-beta-1</version>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.3</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces-build-checkstyle
+ </artifactId>
+ <version>${richfaces.checkstyle.version}
+ </version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <configLocation>richfaces-checkstyle/richfaces-checkstyle.xml
+ </configLocation>
+ <suppressionsLocation>checkstyle-suppressions.xml
+ </suppressionsLocation>
+ </configuration>
<executions>
<execution>
- <id>enforce-versions</id>
+ <id>richfaces-checkstyle-report</id>
+ <phase>process-sources</phase>
<goals>
- <goal>enforce</goal>
+ <goal>check</goal>
</goals>
- <configuration>
- <rules>
- <requireMavenVersion>
- <version>2.1.0</version>
- </requireMavenVersion>
- </rules>
- </configuration>
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- <!-- reporting -->
- <plugin>
- <groupId>com.atlassian.maven.plugins</groupId>
- <artifactId>maven-clover2-plugin</artifactId>
- </plugin>
-
<!-- dev -->
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
@@ -211,14 +232,16 @@
</configuration>
</plugin>
- <!-- docs
- TODO should move to profiles probably a "doc" profile-->
+ <!--
+ docs TODO should move to profiles probably a "doc" profile
+ -->
<plugin>
<groupId>gr.abiss.mvn.plugins</groupId>
<artifactId>maven-jstools-plugin</artifactId>
<version>0.7</version>
<configuration>
- <jsDir>${basedir}/src/main/resources/Meta-inf/resources</jsDir>
+ <jsDir>${basedir}/src/main/resources/Meta-inf/resources
+ </jsDir>
<includes>**/*.js</includes>
<caseSensitive>true</caseSensitive>
</configuration>
14 years, 4 months
JBoss Rich Faces SVN: r17092 - in root/examples/richfaces-showcase/trunk: src/main/java/org/richfaces/demo/common/navigation and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2010-05-17 14:13:42 -0400 (Mon, 17 May 2010)
New Revision: 17092
Added:
root/examples/richfaces-showcase/trunk/mvnEclipse.bat
Modified:
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/BaseDescriptor.java
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoDescriptor.java
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoNavigator.java
root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/SampleDescriptor.java
root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax/ajax.xhtml
root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
Log:
https://jira.jboss.org/browse/RF-8663
Added: root/examples/richfaces-showcase/trunk/mvnEclipse.bat
===================================================================
--- root/examples/richfaces-showcase/trunk/mvnEclipse.bat (rev 0)
+++ root/examples/richfaces-showcase/trunk/mvnEclipse.bat 2010-05-17 18:13:42 UTC (rev 17092)
@@ -0,0 +1 @@
+call mvn eclipse:clean eclipse:eclipse %*
\ No newline at end of file
Modified: root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/BaseDescriptor.java
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/BaseDescriptor.java 2010-05-17 18:07:48 UTC (rev 17091)
+++ root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/BaseDescriptor.java 2010-05-17 18:13:42 UTC (rev 17092)
@@ -4,6 +4,7 @@
import javax.xml.bind.annotation.XmlElement;
public class BaseDescriptor {
+ private String id;
private String name;
private boolean newItem;
private boolean currentItem;
@@ -34,4 +35,12 @@
public void setCurrentItem(boolean currentItem) {
this.currentItem = currentItem;
}
+ @XmlElement
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
}
Modified: root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoDescriptor.java
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoDescriptor.java 2010-05-17 18:07:48 UTC (rev 17091)
+++ root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoDescriptor.java 2010-05-17 18:13:42 UTC (rev 17092)
@@ -3,21 +3,36 @@
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementRef;
+import javax.xml.bind.annotation.XmlElementWrapper;
public class DemoDescriptor extends BaseDescriptor {
private static final String BASE_SAMPLES_DIR = "/richfaces/";
- // TODO: could get from JSF instead of constant using
- private static final String PAGE_EXT = ".xhtml";
-
+
private String page;
- private String id;
private boolean current;
- private String activeSample;
+ private SampleDescriptor activeSample;
private List<SampleDescriptor> samples;
+ private SampleDescriptor getSampleById(String id) {
+ for (SampleDescriptor sample : getSamples()) {
+ if (sample.getId().equals(id)) {
+ return sample;
+ }
+ }
+ return null;
+ }
+ public void setActiveSampleById(String id) {
+ setActiveSample(getSampleById(id));
+ }
+
+ public String getSampleURI() {
+ return BASE_SAMPLES_DIR + activeSample.getSrc();
+ }
+
public String getDemoURI() {
- return BASE_SAMPLES_DIR + getPage() + PAGE_EXT;
+ return BASE_SAMPLES_DIR + getPage();
}
@XmlElement
@@ -29,7 +44,8 @@
this.page = page;
}
- @XmlElement
+ @XmlElementWrapper(name = "samples")
+ @XmlElement(name = "sample")
public List<SampleDescriptor> getSamples() {
return samples;
}
@@ -46,21 +62,12 @@
this.current = current;
}
- public String getActiveSample() {
+ public SampleDescriptor getActiveSample() {
return activeSample;
}
- public void setActiveSample(String activeSample) {
+ public void setActiveSample(SampleDescriptor activeSample) {
this.activeSample = activeSample;
}
- @XmlElement
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
}
Modified: root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoNavigator.java
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoNavigator.java 2010-05-17 18:07:48 UTC (rev 17091)
+++ root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/DemoNavigator.java 2010-05-17 18:13:42 UTC (rev 17092)
@@ -15,7 +15,8 @@
@ManagedProperty(value = "#{navigationParser.groupsList}")
private List<GroupDescriptor> groups;
private DemoDescriptor currentDemo = null;
-
+ private String currentSample;
+
public DemoDescriptor getCurrentDemo() {
String id = getDemoParam("demo");
if (id != null) {
@@ -24,12 +25,13 @@
String uri = getDemoUri();
setCurrentDemo(findDemoByUri(uri));
}
-
// set active sample for current component if any
if (null != currentDemo) {
- String sample = getDemoParam("sample");
- if (null != sample) {
- currentDemo.setActiveSample(sample);
+ if (null != currentSample) {
+ currentDemo.setActiveSampleById(currentSample);
+ }else{
+ currentDemo.setActiveSample(currentDemo.getSamples().get(0));
+ currentSample = currentDemo.getActiveSample().getId();
}
}
@@ -96,4 +98,12 @@
this.groups = groups;
}
+ public String getCurrentSample() {
+ return currentSample;
+ }
+
+ public void setCurrentSample(String currentSample) {
+ this.currentSample = currentSample;
+ }
+
}
Modified: root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/SampleDescriptor.java
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/SampleDescriptor.java 2010-05-17 18:07:48 UTC (rev 17091)
+++ root/examples/richfaces-showcase/trunk/src/main/java/org/richfaces/demo/common/navigation/SampleDescriptor.java 2010-05-17 18:13:42 UTC (rev 17092)
@@ -1,6 +1,16 @@
package org.richfaces.demo.common.navigation;
+import javax.xml.bind.annotation.XmlElement;
+
public class SampleDescriptor extends BaseDescriptor{
+ private String src;
+ @XmlElement
+ public String getSrc() {
+ return src;
+ }
+ public void setSrc(String src) {
+ this.src = src;
+ }
}
Modified: root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-05-17 18:07:48 UTC (rev 17091)
+++ root/examples/richfaces-showcase/trunk/src/main/resources/org/richfaces/demo/data/common/navigation.xml 2010-05-17 18:13:42 UTC (rev 17092)
@@ -8,9 +8,16 @@
<name>a4j:ajax</name>
<page>ajax</page>
<samples>
- <sample new="true">
- <name>Ajax Simple</name>
+ <sample>
+ <id>simple</id>
+ <name>Simple sample</name>
+ <src>ajax/ajax.xhtml</src>
</sample>
+ <sample>
+ <id>selects</id>
+ <name>Dynamic Selects</name>
+ <src>ajax/ajax.xhtml</src>
+ </sample>
</samples>
</demo>
<demo new="true">
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax/ajax.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax/ajax.xhtml 2010-05-17 18:07:48 UTC (rev 17091)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax/ajax.xhtml 2010-05-17 18:13:42 UTC (rev 17092)
@@ -6,6 +6,7 @@
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition>
+
<h:form>
<h:inputText value="#{userBean.name}">
<a4j:ajax event="keyup" render="out"/>
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml 2010-05-17 18:07:48 UTC (rev 17091)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/richfaces/ajax.xhtml 2010-05-17 18:13:42 UTC (rev 17092)
@@ -5,26 +5,24 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/templates/main.xhtml">
+ <ui:define name="demoSampleParameters">
+ <f:viewParam name="simple" value="#{demoNavigator.currentSample}" />
+ </ui:define>
<ui:define name="body">
- <f:metadata>
- <f:viewParam name="sampleId" value="#{demoNavigator.currentDemo.activeSample}"/>
- </f:metadata>
<p>
The behavior that adds javascript call for sending Ajax request
to specified event on parent component
</p>
<fieldset>
<legend>Simple sample</legend>
- <ui:include src="/richfaces/ajax/ajax.xhtml" />
+ <ui:include src="#{demoNavigator.currentDemo.sampleURI}" />
</fieldset>
<p>Typical use-case of dependent select components. When you choosing
the type in the first select - corresponding items appears in second one.
</p>
- <fieldset>
- <legend>Simple sample</legend>
- <ui:include src="/richfaces/ajax/selectsUpdates.xhtml" />
- </fieldset>
+
+
</ui:define>
</ui:composition>
Modified: root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml
===================================================================
--- root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-17 18:07:48 UTC (rev 17091)
+++ root/examples/richfaces-showcase/trunk/src/main/webapp/templates/main.xhtml 2010-05-17 18:13:42 UTC (rev 17092)
@@ -13,6 +13,9 @@
<title>Components Gallery</title>
</h:head>
<h:body>
+ <f:metadata>
+ <ui:insert name="demoSampleParameters"/>
+ </f:metadata>
<h:outputStylesheet name="rich/css/page.css" />
<table border="0" cellpadding="0" cellspacing="0"
class="rich-page #{cc.attrs.pageClass}">
14 years, 4 months
JBoss Rich Faces SVN: r17091 - root/build/bom/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: jbalunas(a)redhat.com
Date: 2010-05-17 14:07:48 -0400 (Mon, 17 May 2010)
New Revision: 17091
Modified:
root/build/bom/trunk/pom.xml
Log:
Made richfaces-bom have richfaces-parent as its parent
Modified: root/build/bom/trunk/pom.xml
===================================================================
--- root/build/bom/trunk/pom.xml 2010-05-17 17:42:36 UTC (rev 17090)
+++ root/build/bom/trunk/pom.xml 2010-05-17 18:07:48 UTC (rev 17091)
@@ -28,9 +28,9 @@
<name>RichFaces BOM</name>
<parent>
- <groupId>org.jboss</groupId>
- <artifactId>jboss-parent</artifactId>
- <version>5</version>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces-parent</artifactId>
+ <version>1-SNAPSHOT</version>
</parent>
<description>
14 years, 4 months
JBoss Rich Faces SVN: r17090 - root/examples-sandbox/trunk/components/tables.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-17 13:42:36 -0400 (Mon, 17 May 2010)
New Revision: 17090
Modified:
root/examples-sandbox/trunk/components/tables/pom.xml
Log:
fix pom
Modified: root/examples-sandbox/trunk/components/tables/pom.xml
===================================================================
--- root/examples-sandbox/trunk/components/tables/pom.xml 2010-05-17 17:41:50 UTC (rev 17089)
+++ root/examples-sandbox/trunk/components/tables/pom.xml 2010-05-17 17:42:36 UTC (rev 17090)
@@ -42,25 +42,24 @@
<dependencies>
<dependency>
- <groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>${example.componentName}-ui</artifactId>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>tables-ui</artifactId>
</dependency>
<dependency>
- <groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>${example.componentName}-api</artifactId>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>tables-api</artifactId>
</dependency>
<dependency>
<groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>${example.componentName}-impl</artifactId>
+ <artifactId>tables-impl</artifactId>
</dependency>
-
<dependency>
- <groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>datascroller-api</artifactId>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>datascroller-api</artifactId>
</dependency>
<dependency>
- <groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>datascroller-ui</artifactId>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>datascroller-ui</artifactId>
</dependency>
<!-- API implementation for runtime -->
14 years, 4 months
JBoss Rich Faces SVN: r17089 - root/examples-sandbox/trunk/components/tables/src/main/webapp.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-17 13:41:50 -0400 (Mon, 17 May 2010)
New Revision: 17089
Modified:
root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml
Log:
Modified: root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml
===================================================================
--- root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml 2010-05-17 17:21:28 UTC (rev 17088)
+++ root/examples-sandbox/trunk/components/tables/src/main/webapp/home.xhtml 2010-05-17 17:41:50 UTC (rev 17089)
@@ -18,7 +18,7 @@
<h:form id="form1">
<ds:dataScroller id="scroller1" for="richTable" page="#{dataBean.page}" maxPages="7"></ds:dataScroller >
- <rich:dataTable id="richTable" var="record" rowKeyVar="rowKey" value="#{dataBean.employeeList}" rows="20" sortMode="single">
+ <rich:dataTable keepSaved="true" id="richTable" var="record" rowKeyVar="rowKey" value="#{dataBean.employeeList}" rows="20" sortMode="single">
<f:facet name="caption">
<h:outputText id="captioFacet1" value="Caption Facet" />
</f:facet>
14 years, 4 months
JBoss Rich Faces SVN: r17088 - in root/ui-sandbox/componentcontrol/trunk: api and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-17 13:21:28 -0400 (Mon, 17 May 2010)
New Revision: 17088
Modified:
root/ui-sandbox/componentcontrol/trunk/api/pom.xml
root/ui-sandbox/componentcontrol/trunk/bom/pom.xml
root/ui-sandbox/componentcontrol/trunk/parent/pom.xml
root/ui-sandbox/componentcontrol/trunk/pom.xml
root/ui-sandbox/componentcontrol/trunk/ui/pom.xml
Log:
fix poms
Modified: root/ui-sandbox/componentcontrol/trunk/api/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/api/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
+++ root/ui-sandbox/componentcontrol/trunk/api/pom.xml 2010-05-17 17:21:28 UTC (rev 17088)
@@ -25,14 +25,14 @@
<parent>
<groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>componentControl-parent</artifactId>
+ <artifactId>component-control-parent</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.ui-sandbox</groupId>
<artifactId>component-control-api</artifactId>
- <name>Richfaces UI Components: component control API</name>
+ <name>Richfaces UI Components: Component Control API</name>
<packaging>jar</packaging>
<dependencies>
Modified: root/ui-sandbox/componentcontrol/trunk/bom/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/bom/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
+++ root/ui-sandbox/componentcontrol/trunk/bom/pom.xml 2010-05-17 17:21:28 UTC (rev 17088)
@@ -31,9 +31,9 @@
</parent>
<groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>componentControl-bom</artifactId>
+ <artifactId>component-control-bom</artifactId>
<version>4.0.0-SNAPSHOT</version>
- <name>Richfaces UI Components: Tables BOM</name>
+ <name>Richfaces UI Components: Component Control BOM</name>
<packaging>pom</packaging>
<properties>
@@ -49,16 +49,13 @@
<scope>import</scope>
<type>pom</type>
</dependency>
- <dependency>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>core-api</artifactId>
- <version>${richfaces.core.api.version}</version>
- </dependency>
-
-
-
<dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>core-api</artifactId>
+ <version>${richfaces.core.api.version}</version>
+ </dependency>
+ <dependency>
<groupId>org.richfaces.ui-sandbox</groupId>
<artifactId>component-control-api</artifactId>
<version>${project.version}</version>
Modified: root/ui-sandbox/componentcontrol/trunk/parent/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/parent/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
+++ root/ui-sandbox/componentcontrol/trunk/parent/pom.xml 2010-05-17 17:21:28 UTC (rev 17088)
@@ -26,38 +26,68 @@
<parent>
<groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>componentControl-bom</artifactId>
+ <artifactId>component-control-aggregator</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
-
+
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>component-control-parent</artifactId>
+ <name>Richfaces UI Components: Component Control Parent Module</name>
+ <packaging>pom</packaging>
+
<modules>
<!--module>../api</module-->
<module>../ui</module>
</modules>
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>component-control-bom</artifactId>
+ <version>${project.version}</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
- <groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>componentControl-parent</artifactId>
- <name>Richfaces UI Components: Tables Parent Module</name>
- <packaging>pom</packaging>
+ <dependency>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>annotations</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
- <distributionManagement>
- <downloadUrl>
- http://labs.jboss.com/portal/jbossrichfaces/downloads
- </downloadUrl>
- <repository>
- <id>jboss-releases-repository</id>
- <uniqueVersion>false</uniqueVersion>
- <url>${releaseRepository}</url>
- </repository>
- <snapshotRepository>
- <id>jboss-snapshots-repository</id>
- <uniqueVersion>true</uniqueVersion>
- <url>${snapshotRepository}</url>
- </snapshotRepository>
- </distributionManagement>
+ <!-- Archetypes dependency -->
+ <dependency>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-4</version>
+ </dependency>
- <build>
+ <!-- tests -->
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>htmlunit-client</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-mock</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-test-stage</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.4</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
<pluginManagement>
<plugins>
<plugin>
@@ -100,9 +130,9 @@
<library>
<prefix>org.richfaces</prefix>
<taglib>
- <uri>http://richfaces.org/tables</uri>
- <shortName>tables</shortName>
- <displayName>Table components tags</displayName>
+ <uri>http://richfaces.org/componentControl</uri>
+ <shortName>ds</shortName>
+ <displayName>Component Control tag</displayName>
</taglib>
</library>
</configuration>
@@ -118,44 +148,4 @@
</plugin>
</plugins>
</build>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.richfaces.cdk</groupId>
- <artifactId>annotations</artifactId>
- <version>4.0.0-SNAPSHOT</version>
- </dependency>
-
- <!-- Archetypes dependency -->
- <dependency>
- <groupId>org.apache.maven.archetype</groupId>
- <artifactId>archetype-packaging</artifactId>
- <version>2.0-alpha-4</version>
- </dependency>
-
- <!-- tests -->
- <dependency>
- <groupId>org.jboss.test-jsf</groupId>
- <artifactId>htmlunit-client</artifactId>
- <version>1.0.3</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.test-jsf</groupId>
- <artifactId>jsf-mock</artifactId>
- <version>1.0.3</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.test-jsf</groupId>
- <artifactId>jsf-test-stage</artifactId>
- <version>1.0.3</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.4</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
</project>
Modified: root/ui-sandbox/componentcontrol/trunk/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
+++ root/ui-sandbox/componentcontrol/trunk/pom.xml 2010-05-17 17:21:28 UTC (rev 17088)
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
+
<!--
JBoss, Home of Professional Open Source Copyright 2010, Red Hat,
Inc. and individual contributors by the @authors tag. See the
@@ -18,16 +19,28 @@
http://www.fsf.org.
-->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <artifactId>components</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </parent>
+
<groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>componentControl-aggregator</artifactId>
- <version>4.0.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <name>Richfaces UI Components: componentControl Aggregator</name>
+ <artifactId>component-control-aggregator</artifactId>
+ <packaging>pom</packaging>
+ <name>Richfaces UI Components: Component Control Aggregator</name>
+ <modules>
+ <module>bom</module>
+ <module>parent</module>
+ </modules>
+
<build>
<plugins>
<plugin>
@@ -41,9 +54,4 @@
</plugins>
</build>
- <modules>
- <module>bom</module>
- <module>parent</module>
- </modules>
-
</project>
\ No newline at end of file
Modified: root/ui-sandbox/componentcontrol/trunk/ui/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
+++ root/ui-sandbox/componentcontrol/trunk/ui/pom.xml 2010-05-17 17:21:28 UTC (rev 17088)
@@ -25,42 +25,32 @@
<parent>
<groupId>org.richfaces.ui-sandbox</groupId>
- <artifactId>componentControl-parent</artifactId>
+ <artifactId>component-control-parent</artifactId>
<version>4.0.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.ui-sandbox</groupId>
<artifactId>component-control-ui</artifactId>
- <name>Richfaces UI Components: Tables UI</name>
+ <name>Richfaces UI Components: Component Control UI</name>
<packaging>jar</packaging>
<dependencies>
- <dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>core-api</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.richfaces.cdk</groupId>
<artifactId>annotations</artifactId>
<scope>provided</scope>
</dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
+ <!--dependency>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>component-control-api</artifactId>
+ </dependency-->
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-api</artifactId>
- </dependency>
- <dependency>
- <!-- todo remove this dependency or move to test scope -->
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-impl</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>core-api</artifactId>
- </dependency>
-
<!-- JSF with dependencies -->
<dependency>
<groupId>com.sun.faces</groupId>
14 years, 4 months
JBoss Rich Faces SVN: r17087 - in root/ui-sandbox/componentcontrol/trunk: api and 19 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2010-05-17 12:43:27 -0400 (Mon, 17 May 2010)
New Revision: 17087
Added:
root/ui-sandbox/componentcontrol/trunk/api/
root/ui-sandbox/componentcontrol/trunk/api/pom.xml
root/ui-sandbox/componentcontrol/trunk/api/src/
root/ui-sandbox/componentcontrol/trunk/api/src/main/
root/ui-sandbox/componentcontrol/trunk/api/src/main/java/
root/ui-sandbox/componentcontrol/trunk/api/src/test/
root/ui-sandbox/componentcontrol/trunk/api/src/test/java/
root/ui-sandbox/componentcontrol/trunk/bom/
root/ui-sandbox/componentcontrol/trunk/bom/pom.xml
root/ui-sandbox/componentcontrol/trunk/parent/
root/ui-sandbox/componentcontrol/trunk/parent/pom.xml
root/ui-sandbox/componentcontrol/trunk/ui/
root/ui-sandbox/componentcontrol/trunk/ui/pom.xml
root/ui-sandbox/componentcontrol/trunk/ui/src/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/UIHashParameter.java
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/behavior/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/behavior/ComponentControlBehavior.java
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/renderkit/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/renderkit/ComponentControlBehaviorRenderer.java
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/taglib/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/taglib/ComponentControlHandler.java
root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/cc.taglib.xml
root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/faces-config.xml
root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/resources/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/resources/script/
root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/resources/script/component-control.js
Removed:
root/ui-sandbox/componentcontrol/trunk/src/
Modified:
root/ui-sandbox/componentcontrol/trunk/pom.xml
Log:
move base behavior related classes to the ui/core/api, switch to the new build structure
Added: root/ui-sandbox/componentcontrol/trunk/api/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/api/pom.xml (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/api/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ 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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <parent>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>componentControl-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>component-control-api</artifactId>
+ <name>Richfaces UI Components: component control API</name>
+ <packaging>jar</packaging>
+
+ <dependencies>
+ <!-- runtime -->
+ <dependency>
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-api</artifactId>
+ </dependency>
+ <dependency>
+ <!-- todo remove this dependency or move to test scope -->
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-impl</artifactId>
+ </dependency>
+
+ <!-- JSF with dependencies -->
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- tests -->
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <!-- todo api? -->
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-test-stage</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>htmlunit-client</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-mock</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project>
\ No newline at end of file
Added: root/ui-sandbox/componentcontrol/trunk/bom/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/bom/pom.xml (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/bom/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.richfaces</groupId>
+ <artifactId>richfaces-parent</artifactId>
+ <version>1-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>componentControl-bom</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <name>Richfaces UI Components: Tables BOM</name>
+ <packaging>pom</packaging>
+
+ <properties>
+ <richfaces.core.api.version>4.0.0-SNAPSHOT</richfaces.core.api.version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-bom</artifactId>
+ <version>${richfaces.core.api.version}</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>core-api</artifactId>
+ <version>${richfaces.core.api.version}</version>
+
+ </dependency>
+
+
+
+ <dependency>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>component-control-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>component-control-ui</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+</project>
Added: root/ui-sandbox/componentcontrol/trunk/parent/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/parent/pom.xml (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/parent/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>componentControl-bom</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </parent>
+
+ <modules>
+ <!--module>../api</module-->
+ <module>../ui</module>
+ </modules>
+
+
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>componentControl-parent</artifactId>
+ <name>Richfaces UI Components: Tables Parent Module</name>
+ <packaging>pom</packaging>
+
+ <distributionManagement>
+ <downloadUrl>
+ http://labs.jboss.com/portal/jbossrichfaces/downloads
+ </downloadUrl>
+ <repository>
+ <id>jboss-releases-repository</id>
+ <uniqueVersion>false</uniqueVersion>
+ <url>${releaseRepository}</url>
+ </repository>
+ <snapshotRepository>
+ <id>jboss-snapshots-repository</id>
+ <uniqueVersion>true</uniqueVersion>
+ <url>${snapshotRepository}</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>xml-maven-plugin</artifactId>
+ <version>1.0-beta-2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>2.0-alpha-4</version>
+ <extensions>true</extensions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>1.0-beta-1</version>
+ <configuration>
+ <fail>false</fail>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <uri>http://richfaces.org/tables</uri>
+ <shortName>tables</shortName>
+ <displayName>Table components tags</displayName>
+ </taglib>
+ </library>
+ </configuration>
+ <executions>
+ <execution>
+ <id>cdk-generate-sources</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>annotations</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </dependency>
+
+ <!-- Archetypes dependency -->
+ <dependency>
+ <groupId>org.apache.maven.archetype</groupId>
+ <artifactId>archetype-packaging</artifactId>
+ <version>2.0-alpha-4</version>
+ </dependency>
+
+ <!-- tests -->
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>htmlunit-client</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-mock</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-test-stage</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.4</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+</project>
Modified: root/ui-sandbox/componentcontrol/trunk/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/pom.xml 2010-05-17 16:13:33 UTC (rev 17086)
+++ root/ui-sandbox/componentcontrol/trunk/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
@@ -1,107 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>componentControl-aggregator</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>Richfaces UI Components: componentControl Aggregator</name>
- <parent>
- <groupId>org.richfaces.sandbox.ui</groupId>
- <artifactId>components</artifactId>
- <version>4.0.0-SNAPSHOT</version>
- </parent>
-
- <groupId>org.richfaces.ui</groupId>
- <artifactId>componentControl</artifactId>
- <name>Richfaces UI Components: Component Control</name>
- <packaging>jar</packaging>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-bom</artifactId>
- <version>4.0.0-SNAPSHOT</version>
- <scope>import</scope>
- <type>pom</type>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
- <dependency>
- <groupId>org.richfaces.cdk</groupId>
- <artifactId>annotations</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.richfaces.core</groupId>
- <artifactId>richfaces-core-impl</artifactId>
- </dependency>
-
- <!-- JSF -->
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet.jsp</groupId>
- <artifactId>jsp-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.el</groupId>
- <artifactId>el-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-api</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- Tests -->
- <dependency>
- <groupId>com.sun.faces</groupId>
- <artifactId>jsf-impl</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.test-jsf</groupId>
- <artifactId>htmlunit-client</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.test-jsf</groupId>
- <artifactId>jsf-mock</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
<build>
<plugins>
<plugin>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-cdk-plugin</artifactId>
</plugin>
+
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
</plugins>
</build>
+
+ <modules>
+ <module>bom</module>
+ <module>parent</module>
+ </modules>
+
</project>
\ No newline at end of file
Added: root/ui-sandbox/componentcontrol/trunk/ui/pom.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/pom.xml (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/ui/pom.xml 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ 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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <parent>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>componentControl-parent</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui-sandbox</groupId>
+ <artifactId>component-control-ui</artifactId>
+ <name>Richfaces UI Components: Tables UI</name>
+ <packaging>jar</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>annotations</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-api</artifactId>
+ </dependency>
+ <dependency>
+ <!-- todo remove this dependency or move to test scope -->
+ <groupId>org.richfaces.core</groupId>
+ <artifactId>richfaces-core-impl</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>core-api</artifactId>
+ </dependency>
+
+ <!-- JSF with dependencies -->
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet.jsp</groupId>
+ <artifactId>jsp-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- tests -->
+ <dependency>
+ <groupId>com.sun.faces</groupId>
+ <artifactId>jsf-impl</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <!-- todo api? -->
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-test-stage</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>htmlunit-client</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.test-jsf</groupId>
+ <artifactId>jsf-mock</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+</project>
\ No newline at end of file
Added: root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/UIHashParameter.java
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/UIHashParameter.java (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/UIHashParameter.java 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, 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.component;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.FacesException;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIComponentBase;
+import javax.faces.component.UIParameter;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public class UIHashParameter extends UIComponentBase {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.HashParameter";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.HashParameter";
+
+ enum PropertyKeys {
+ name
+ }
+
+ public UIHashParameter() {
+ super();
+ setRendererType(null);
+ }
+
+ public String getName() {
+ return (String) getStateHelper().eval(PropertyKeys.name);
+ }
+
+ public void setName(String name) {
+ getStateHelper().put(PropertyKeys.name, name);
+ }
+
+ public Map<String, Object> getValue() {
+ List<UIComponent> children = getChildren();
+ Map<String, Object> parameters = new HashMap<String, Object>();
+
+ for (UIComponent child : children) {
+ if (child instanceof UIParameter) {
+ UIParameter parameter = (UIParameter) child;
+ parameters.put(parameter.getName(), (String) parameter.getValue());
+ }
+
+ if (child instanceof UIHashParameter) {
+ UIHashParameter hashParameter = (UIHashParameter) child;
+ String name = hashParameter.getName();
+ Map<String, Object> value = hashParameter.getValue();
+ if (name == null) {
+ throw new FacesException("attribute 'name' for the nested " + UIHashParameter.class.getName()
+ + " component (id = '" + hashParameter.getClientId() + "') should not be 'null'");
+ } else {
+ parameters.put(name, value);
+ }
+ }
+ }
+
+ return parameters;
+ }
+
+ @Override
+ public String getFamily() {
+ return (COMPONENT_FAMILY);
+ }
+}
Added: root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/behavior/ComponentControlBehavior.java
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/behavior/ComponentControlBehavior.java (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/component/behavior/ComponentControlBehavior.java 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, 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.component.behavior;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.behavior.FacesBehavior;
+
+import org.ajax4jsf.component.behavior.ClientBehavior;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+@FacesBehavior(value = "org.richfaces.behavior.ComponentControlBehavior")
+public class ComponentControlBehavior extends ClientBehavior {
+
+ public static final String BEHAVIOR_ID = "org.richfaces.behavior.ComponentControlBehavior";
+
+ private List<UIComponent> children;
+
+ enum PropertyKeys {
+ event, target, selector, parameters, operation
+ }
+
+ public List<UIComponent> getChildren() {
+ if (children == null) {
+ children = new ArrayList<UIComponent>();
+ }
+ return children;
+ }
+
+ public String getEvent() {
+ return (String) getStateHelper().eval(PropertyKeys.event);
+ }
+
+ public void setEvent(String eventName) {
+ getStateHelper().eval(PropertyKeys.event, eventName);
+ }
+
+ public String getTarget() {
+ return (String) getStateHelper().eval(PropertyKeys.target);
+ }
+
+ public void setTarget(String target) {
+ getStateHelper().put(PropertyKeys.target, target);
+ }
+
+ public String getSelector() {
+ return (String) getStateHelper().eval(PropertyKeys.selector);
+ }
+
+ public void setSelector(String selector) {
+ getStateHelper().put(PropertyKeys.selector, selector);
+ }
+
+ public String getOperation() {
+ return (String) getStateHelper().eval(PropertyKeys.operation);
+ }
+
+ public void setOperation(String operation) {
+ getStateHelper().put(PropertyKeys.operation, operation);
+ }
+
+ @Override
+ public String getRendererType() {
+ return BEHAVIOR_ID;
+ }
+
+ @Override
+ public void setLiteralAttribute(String name, Object value) {
+ if (compare(PropertyKeys.operation, name)) {
+ setOperation((String) value);
+ } else if (compare(PropertyKeys.target, name)) {
+ setTarget((String) value);
+ } else if (compare(PropertyKeys.selector, name)) {
+ setSelector((String) name);
+ }
+ }
+}
Added: root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/renderkit/ComponentControlBehaviorRenderer.java
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/renderkit/ComponentControlBehaviorRenderer.java (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/renderkit/ComponentControlBehaviorRenderer.java 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,141 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, 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.renderkit;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.application.ResourceDependencies;
+import javax.faces.application.ResourceDependency;
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIParameter;
+import javax.faces.component.behavior.ClientBehavior;
+import javax.faces.component.behavior.ClientBehaviorContext;
+import javax.faces.render.ClientBehaviorRenderer;
+import javax.faces.render.FacesBehaviorRenderer;
+import javax.faces.render.RenderKitFactory;
+
+import org.ajax4jsf.javascript.JSFunction;
+import org.ajax4jsf.javascript.JSFunctionDefinition;
+import org.ajax4jsf.javascript.JSReference;
+import org.ajax4jsf.javascript.ScriptUtils;
+import org.richfaces.component.UIHashParameter;
+import org.richfaces.component.behavior.ComponentControlBehavior;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+@FacesBehaviorRenderer(rendererType = "org.richfaces.behavior.ComponentControlBehavior", renderKitId = RenderKitFactory.HTML_BASIC_RENDER_KIT)
+@ResourceDependencies( { @ResourceDependency(library = "javax.faces", name = "jsf.js"),
+ @ResourceDependency(name = "jquery.js"), @ResourceDependency(name = "richfaces.js"),
+ @ResourceDependency(name = "richfaces-event.js"), @ResourceDependency(name = "richfaces-queue.js"),
+ @ResourceDependency(name = "richfaces-base-component.js"),
+ @ResourceDependency(name = "script/component-control.js") })
+public class ComponentControlBehaviorRenderer extends ClientBehaviorRenderer {
+
+ private static final String FUNC_NAME = "RichFaces.ui.ComponentControl.execute";
+
+ private static final String REF_EVENT = "event";
+
+ private static final String REF_COMPONENT = "component";
+
+ private static final String PARAM_CALLBACK = "callback";
+
+ private static final String PARAM_TARGET = "target";
+
+ private static final String PARAM_SELECTOR = "selector";
+
+ @Override
+ public String getScript(ClientBehaviorContext behaviorContext, ClientBehavior behavior) {
+ ComponentControlBehavior controlBehavior = (ComponentControlBehavior) behavior;
+
+ JSFunctionDefinition callback = new JSFunctionDefinition();
+ callback.addParameter(new JSReference(REF_EVENT));
+ callback.addParameter(new JSReference(REF_COMPONENT));
+
+ String apiFunctionName = controlBehavior.getOperation();
+
+ // create callback function
+ StringBuffer script = new StringBuffer();
+ script.append(REF_COMPONENT).append("['").append(apiFunctionName).append("'].").append("apply").append("(");
+
+ // get client api function parameters
+ List<Object> apiFunctionParams = createSignature(controlBehavior);
+ script.append(REF_COMPONENT).append(",").append(ScriptUtils.toScript(apiFunctionParams.toArray())).append(");");
+ callback.addToBody(script);
+
+ String target = controlBehavior.getTarget();
+ String selector = controlBehavior.getSelector();
+
+ Map<String, Object> parameters = new HashMap<String, Object>();
+ parameters.put(PARAM_CALLBACK, callback);
+ parameters.put(PARAM_TARGET, target);
+ parameters.put(PARAM_SELECTOR, selector);
+
+ // execution function
+ JSFunction eventFunction = new JSFunction(FUNC_NAME);
+ eventFunction.addParameter(new JSReference(REF_EVENT));
+ eventFunction.addParameter(parameters);
+
+ StringBuffer execution = new StringBuffer();
+ execution.append(eventFunction.toScript());
+ execution.append("; return false;");
+ return execution.toString();
+ }
+
+ protected List<Object> createSignature(ComponentControlBehavior behavior) {
+ List<Object> elements = new ArrayList<Object>();
+ List<UIComponent> children = behavior.getChildren();
+
+ for (UIComponent child : children) {
+ if (child instanceof UIParameter) {
+ UIParameter parameter = (UIParameter) child;
+ Object value = parameter.getValue();
+
+ if (value != null) {
+ elements.add(value);
+ }
+ }
+
+ if (child instanceof UIHashParameter) {
+ UIHashParameter parameter = (UIHashParameter) child;
+ String name = parameter.getName();
+ Map<String, Object> value = parameter.getValue();
+
+ if (value != null) {
+ if (name != null) {
+ Map<String, Object> map = new HashMap<String, Object>();
+ map.put(name, value);
+ elements.add(map);
+ } else {
+ elements.add(value);
+ }
+ }
+ }
+ }
+ return elements;
+ }
+}
Added: root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/taglib/ComponentControlHandler.java
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/taglib/ComponentControlHandler.java (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/ui/src/main/java/org/richfaces/taglib/ComponentControlHandler.java 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,119 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright ${year}, 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.taglib;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UIParameter;
+import javax.faces.component.behavior.ClientBehavior;
+import javax.faces.component.behavior.ClientBehaviorHolder;
+import javax.faces.context.FacesContext;
+import javax.faces.view.facelets.BehaviorConfig;
+import javax.faces.view.facelets.ComponentConfig;
+import javax.faces.view.facelets.ComponentHandler;
+import javax.faces.view.facelets.CompositeFaceletHandler;
+import javax.faces.view.facelets.FaceletContext;
+import javax.faces.view.facelets.FaceletHandler;
+
+import org.richfaces.component.UIHashParameter;
+import org.richfaces.component.behavior.ComponentControlBehavior;
+import org.richfaces.view.facelets.html.CustomBehaviorHandler;
+
+/**
+ * @author Anton Belevich
+ *
+ */
+public class ComponentControlHandler extends CustomBehaviorHandler {
+
+ public ComponentControlHandler(BehaviorConfig config) {
+ super(config);
+ }
+
+ @Override
+ public void apply(FaceletContext ctx, UIComponent parent) throws IOException {
+ super.apply(ctx, parent);
+ processNestedTags(ctx, parent);
+ }
+
+ private void processNestedTags(FaceletContext ctx, UIComponent parent) throws IOException {
+ if (nextHandler instanceof CompositeFaceletHandler) {
+ FaceletHandler[] children = ((CompositeFaceletHandler) nextHandler).getHandlers();
+ for (FaceletHandler handler : children) {
+ processNextHandler(ctx, handler, parent);
+ }
+ } else {
+ processNextHandler(ctx, nextHandler, parent);
+ }
+ }
+
+ private void processNextHandler(FaceletContext ctx, FaceletHandler handler, UIComponent parent) throws IOException {
+ if (handler instanceof ComponentHandler) {
+ ComponentHandler componentHandler = (ComponentHandler) handler;
+
+ ComponentConfig componentConfig = componentHandler.getComponentConfig();
+ String componentType = componentConfig.getComponentType();
+
+ if (isUIParameter(componentType)) {
+ FacesContext facesContext = ctx.getFacesContext();
+
+ UIComponent component = (UIComponent) facesContext.getApplication().createComponent(facesContext,
+ componentType, null);
+ componentHandler.setAttributes(ctx, component);
+
+ if (parent instanceof ClientBehaviorHolder) {
+ ClientBehaviorHolder clientBehaviorHolder = ((ClientBehaviorHolder) parent);
+ Map<String, List<ClientBehavior>> clientBehaviors = clientBehaviorHolder.getClientBehaviors();
+
+ String eventName = getEventName();
+
+ if (eventName == null) {
+ eventName = clientBehaviorHolder.getDefaultEventName();
+ }
+
+ if (eventName != null) {
+ List<ClientBehavior> eventClientBehaviors = clientBehaviors.get(eventName);
+ for (ClientBehavior clientBehavior : eventClientBehaviors) {
+ if (clientBehavior instanceof ComponentControlBehavior) {
+ ((ComponentControlBehavior) clientBehavior).getChildren().add(component);
+ }
+ }
+ }
+ }
+
+ componentHandler.applyNextHandler(ctx, component);
+ }
+ }
+ }
+
+ private boolean isUIParameter(String type) {
+ return (UIParameter.COMPONENT_TYPE.equals(type) || UIHashParameter.COMPONENT_TYPE.equals(type));
+ }
+
+ @Override
+ public boolean isWrapping() {
+ return false;
+ }
+}
Added: root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/cc.taglib.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/cc.taglib.xml (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/cc.taglib.xml 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<facelet-taglib xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"
+ version="2.0"
+ id="cc">
+ <namespace>http://richfaces.org/componentControl</namespace>
+ <tag>
+ <tag-name>componentControl</tag-name>
+ <behavior>
+ <behavior-id>org.richfaces.behavior.ComponentControlBehavior</behavior-id>
+ <handler-class>org.richfaces.taglib.ComponentControlHandler</handler-class>
+ </behavior>
+ </tag>
+ <tag>
+ <tag-name>hashParam</tag-name>
+ <component>
+ <component-type>org.richfaces.HashParameter</component-type>
+ <handler-class>javax.faces.view.facelets.ComponentHandler</handler-class>
+ </component>
+
+ </tag>
+</facelet-taglib>
\ No newline at end of file
Added: root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/faces-config.xml
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/faces-config.xml (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/faces-config.xml 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<faces-config version="2.0" metadata-complete="false" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:cdk="http://richfaces.org/cdk/extensions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+<component>
+ <component-type>org.richfaces.HashParameter</component-type>
+ <component-class>org.richfaces.component.UIHashParameter</component-class>
+ <component-extension>
+ <cdk:generate xmlns:cdk="http://richfaces.org/cdk/extensions">false</cdk:generate>
+ </component-extension>
+ </component>
+</faces-config>
\ No newline at end of file
Added: root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/resources/script/component-control.js
===================================================================
--- root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/resources/script/component-control.js (rev 0)
+++ root/ui-sandbox/componentcontrol/trunk/ui/src/main/resources/META-INF/resources/script/component-control.js 2010-05-17 16:43:27 UTC (rev 17087)
@@ -0,0 +1,39 @@
+(function ($, richfaces) {
+
+ richfaces = richfaces || {};
+ richfaces.ui.ComponentControl = richfaces.ui.ComponentControl || {};
+
+ $.extend(richfaces.ui.ComponentControl, {
+
+ execute: function(event, parameters) {
+ var target = parameters.target;
+ var selector = parameters.selector;
+ var callback = parameters.callback;
+
+ if(target) {
+ var ids = target.split(',');
+ for (var i = 0; i < ids.length; i++) {
+ var component = document.getElementById(ids[i]);
+ if(component) {
+ richfaces.ui.ComponentControl.invokeOnComponent(event, component, callback);
+ }
+ }
+ }
+
+ if(selector) {
+ richfaces.ui.ComponentControl.invokeOnComponent(event, selector, callback);
+ }
+ },
+
+ invokeOnComponent : function(event, target, callback) {
+ if(callback && typeof callback == 'function') {
+ $(target).each(function() {
+ if (this.richfaces && this.richfaces.component) {
+ callback(event, this.richfaces.component);
+ }
+ });
+ }
+ }
+ });
+
+})(jQuery, window.RichFaces);
\ No newline at end of file
14 years, 4 months