JBoss Rich Faces SVN: r4076 - in branches/3.1.x/sandbox/ui/listShuttle/src/main: java/org/richfaces/component and 2 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-19 01:13:03 -0500 (Mon, 19 Nov 2007)
New Revision: 4076
Added:
branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/renderkit/
branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/renderkit/ListShuttleRendererBase.java
Modified:
branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
branches/3.1.x/sandbox/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx
Log:
listShuttle made compileable
Modified: branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
===================================================================
--- branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java 2007-11-19 02:42:20 UTC (rev 4075)
+++ branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java 2007-11-19 06:13:03 UTC (rev 4076)
@@ -5,26 +5,26 @@
package org.richfaces.component;
import javax.faces.context.FacesContext;
+import javax.faces.el.MethodBinding;
import javax.faces.el.ValueBinding;
+import javax.faces.event.ValueChangeListener;
-import org.ajax4jsf.component.UIDataAdaptor;
-
/**
* JSF component class
- *
+ *
*/
public abstract class UIListShuttle extends UIOrderingBaseComponent {
-
+
public static final String COMPONENT_TYPE = "org.richfaces.ListShuttle";
-
+
public static final String COMPONENT_FAMILY = "org.richfaces.ListShuttle";
-
+
private Object sourceValue;
private boolean sourceValueSet;
-
+
private Object targetValue;
private boolean targetValueSet;
-
+
public Object saveState(FacesContext context) {
// TODO Auto-generated method stub
return super.saveState(context);
@@ -34,7 +34,7 @@
// TODO Auto-generated method stub
super.restoreState(context, state);
}
-
+
public Object getLocalSourceValue() {
return sourceValue;
}
@@ -76,13 +76,44 @@
public void setTargetValue(Object targetValue) {
this.targetValue = targetValue;
}
-
-
+
public String getSubmittedString() {
return null;
}
-
+
public void setSubmittedString(String submittedString) {
}
+
+ public Object saveIterationSubmittedState() {
+ return null;
+ }
+
+ public void restoreIterationSubmittedState(Object object) {
+ }
+
+ public Object saveIterationState() {
+ return null;
+ }
+
+ public void restoreIterationState(Object object) {
+ }
+
+ public org.ajax4jsf.model.ExtendedDataModel createDataModel() {
+ return null;
+ }
+
+ public void addValueChangeListener(ValueChangeListener listener) {
+ addFacesListener(listener);
+ }
+
+ public abstract MethodBinding getValueChangeListener();
+
+ public ValueChangeListener[] getValueChangeListeners() {
+ return null;
+ }
+
+ public void removeValueChangeListener(ValueChangeListener listener) {
+ }
+
}
Added: branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/renderkit/ListShuttleRendererBase.java
===================================================================
--- branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/renderkit/ListShuttleRendererBase.java (rev 0)
+++ branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/renderkit/ListShuttleRendererBase.java 2007-11-19 06:13:03 UTC (rev 4076)
@@ -0,0 +1,38 @@
+/**
+ *
+ */
+package org.richfaces.renderkit;
+
+import javax.faces.context.FacesContext;
+
+import org.richfaces.component.UIListShuttle;
+
+/**
+ * @author Nick Belaevski
+ *
+ */
+public abstract class ListShuttleRendererBase extends OrderingListRendererBase {
+
+ public void encodeTLCaption(FacesContext context, UIListShuttle shuttle) {
+
+ }
+
+ public void encodeTLHeader(FacesContext context, UIListShuttle shuttle) {
+
+ }
+ public void encodeTLRows(FacesContext context, UIListShuttle shuttle) {
+
+ }
+ public void encodeSLCaption(FacesContext context, UIListShuttle shuttle) {
+
+ }
+ public void encodeSLControlsFacets(FacesContext context, UIListShuttle shuttle) {
+
+ }
+ public void encodeSLHeader(FacesContext context, UIListShuttle shuttle) {
+
+ }
+ public void encodeSLRows(FacesContext context, UIListShuttle shuttle) {
+
+ }
+}
Modified: branches/3.1.x/sandbox/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx
===================================================================
--- branches/3.1.x/sandbox/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx 2007-11-19 02:42:20 UTC (rev 4075)
+++ branches/3.1.x/sandbox/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx 2007-11-19 06:13:03 UTC (rev 4076)
@@ -5,7 +5,7 @@
xmlns:ui=" http://ajax4jsf.org/cdk/ui"
xmlns:u=" http://ajax4jsf.org/cdk/u"
xmlns:x=" http://ajax4jsf.org/cdk/x"
- baseclass="org.richfaces.renderkit.OrderingListRendererBase"
+ baseclass="org.richfaces.renderkit.ListShuttleRendererBase"
class="org.richfaces.renderkit.html.ListShuttleRenderer"
component="org.richfaces.component.UIListShuttle"
>
@@ -110,8 +110,8 @@
var cotrolsIdPrefix = [['up', 'disup'], ['down', 'disdown'], ['last', 'dislast'], ['first','disfirst']];
var sourceList = new Shuttle('#{cId}', '#{cId}internal_tab', '#{cId}internal_header_tab', '#{cId}focusKeeper', '#{cId}valueKeeper', cotrolsIdPrefix, '#{cId}sortLabel', function() {#{component.attributes['onorderchanged']}});
var targetList = new Shuttle('#{cId}', '#{cId}tlInternal_tab', '#{cId}tlInternal_header_tab', '#{cId}tlFocusKeeper', '#{cId}tlValueKeeper', cotrolsIdPrefix, '#{cId}tlSortLabel', function() {#{component.attributes['onorderchanged']}});
- var sourceLayoutManager = new LayoutManager('#{clientId}internal_header_tab', '#{clientId}internal_tab');
- var sourceLayoutManager = new LayoutManager('#{clientId}tlInternal_header_tab', '#{clientId}tlInternal_tab');
+ var sourceLayoutManager = new LayoutManager('#{cId}internal_header_tab', '#{cId}internal_tab');
+ var sourceLayoutManager = new LayoutManager('#{cId}tlInternal_header_tab', '#{cId}tlInternal_tab');
layoutManager.widthSynchronization();
}
//setTimeout(init, 0);
18 years, 5 months
JBoss Rich Faces SVN: r4075 - in branches/3.1.x/sandbox/ui/listShuttle/src/main: templates/org/richfaces and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-18 21:42:20 -0500 (Sun, 18 Nov 2007)
New Revision: 4075
Modified:
branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
branches/3.1.x/sandbox/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx
Log:
changes for listShuttle
Modified: branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
===================================================================
--- branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java 2007-11-19 02:02:35 UTC (rev 4074)
+++ branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java 2007-11-19 02:42:20 UTC (rev 4075)
@@ -13,7 +13,7 @@
* JSF component class
*
*/
-public abstract class UIListShuttle extends UIDataAdaptor {
+public abstract class UIListShuttle extends UIOrderingBaseComponent {
public static final String COMPONENT_TYPE = "org.richfaces.ListShuttle";
@@ -78,4 +78,11 @@
}
+ public String getSubmittedString() {
+ return null;
+ }
+
+ public void setSubmittedString(String submittedString) {
+
+ }
}
Modified: branches/3.1.x/sandbox/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx
===================================================================
--- branches/3.1.x/sandbox/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx 2007-11-19 02:02:35 UTC (rev 4074)
+++ branches/3.1.x/sandbox/ui/listShuttle/src/main/templates/org/richfaces/htmlListShuttle.jspx 2007-11-19 02:42:20 UTC (rev 4075)
@@ -6,8 +6,8 @@
xmlns:u=" http://ajax4jsf.org/cdk/u"
xmlns:x=" http://ajax4jsf.org/cdk/x"
baseclass="org.richfaces.renderkit.OrderingListRendererBase"
- class="org.richfaces.renderkit.html.OrderingListRenderer"
- component="org.richfaces.component.UIOrderingList"
+ class="org.richfaces.renderkit.html.ListShuttleRenderer"
+ component="org.richfaces.component.UIListShuttle"
>
<h:styles>css/orderingList.xcss</h:styles>
18 years, 5 months
JBoss Rich Faces SVN: r4074 - in branches/3.1.x/sandbox: samples/listShuttleDemo and 7 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-18 21:02:35 -0500 (Sun, 18 Nov 2007)
New Revision: 4074
Added:
branches/3.1.x/sandbox/samples/listShuttleDemo/
branches/3.1.x/sandbox/samples/listShuttleDemo/pom.xml
branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java
branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java
branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml
branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
branches/3.1.x/sandbox/ui/listShuttle/
branches/3.1.x/sandbox/ui/listShuttle/pom.xml
branches/3.1.x/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml
branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
Removed:
branches/3.1.x/sandbox/samples/listShuttleDemo/pom.xml
branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/Bean.java
branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml
branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
branches/3.1.x/sandbox/ui/listShuttle/pom.xml
Modified:
branches/3.1.x/sandbox/samples/pom.xml
branches/3.1.x/sandbox/ui/pom.xml
Log:
listShuttle moved to 3.1.x sandbox
Copied: branches/3.1.x/sandbox/samples/listShuttleDemo (from rev 4064, trunk/sandbox/samples/listShuttleDemo)
Deleted: branches/3.1.x/sandbox/samples/listShuttleDemo/pom.xml
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/pom.xml 2007-11-17 00:19:41 UTC (rev 4064)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/pom.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -1,23 +0,0 @@
-<?xml version="1.0"?>
-<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">
- <parent>
- <artifactId>samples</artifactId>
- <groupId>org.richfaces.sandbox</groupId>
- <version>3.2.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.sandbox.samples</groupId>
- <artifactId>listShuttleDemo</artifactId>
- <packaging>war</packaging>
- <name>listShuttleDemo Maven Webapp</name>
- <build>
- <finalName>listShuttleDemo</finalName>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.richfaces.sandbox.ui</groupId>
- <artifactId>listShuttle</artifactId>
- <version>3.2.0-SNAPSHOT</version>
- </dependency>
- </dependencies>
-</project>
\ No newline at end of file
Copied: branches/3.1.x/sandbox/samples/listShuttleDemo/pom.xml (from rev 4072, trunk/sandbox/samples/listShuttleDemo/pom.xml)
===================================================================
--- branches/3.1.x/sandbox/samples/listShuttleDemo/pom.xml (rev 0)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/pom.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<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">
+ <parent>
+ <artifactId>samples</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.1.3-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.sandbox.samples</groupId>
+ <artifactId>listShuttleDemo</artifactId>
+ <packaging>war</packaging>
+ <name>listShuttleDemo Maven Webapp</name>
+ <build>
+ <finalName>listShuttleDemo</finalName>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <artifactId>listShuttle</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Deleted: branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/Bean.java 2007-11-17 00:19:41 UTC (rev 4064)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/Bean.java 2007-11-19 02:02:35 UTC (rev 4074)
@@ -1,29 +0,0 @@
-/**
- * License Agreement.
- *
- * Rich Faces - Natural Ajax for Java Server Faces (JSF)
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package org.richfaces;
-/**
- * @author $Autor$
- *
- */
-public class Bean {
-
-}
\ No newline at end of file
Copied: branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java (from rev 4067, trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java)
===================================================================
--- branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java (rev 0)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java 2007-11-19 02:02:35 UTC (rev 4074)
@@ -0,0 +1,45 @@
+/**
+ *
+ */
+package org.richfaces;
+
+import java.util.List;
+import java.util.Random;
+
+/**
+ * @author Nick Belaevski
+ * mailto:nbelaevski@exadel.com
+ * created 16.11.2007
+ *
+ */
+public class ListShuttleDemoBean {
+ private ListShuttleOptionItem[] source;
+
+ private List<ListShuttleOptionItem> target;
+
+ public ListShuttleDemoBean() {
+ super();
+
+ source = new ListShuttleOptionItem[10];
+ for (int i = 0; i < source.length; i++) {
+ source[i] = new ListShuttleOptionItem("Item " + i, new Random().nextInt(40));
+ }
+ }
+
+ public ListShuttleOptionItem[] getSource() {
+ return source;
+ }
+
+ public void setSource(ListShuttleOptionItem[] source) {
+ this.source = source;
+ }
+
+ public List<ListShuttleOptionItem> getTarget() {
+ return target;
+ }
+
+ public void setTarget(List<ListShuttleOptionItem> target) {
+ this.target = target;
+ }
+
+}
Copied: branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java (from rev 4067, trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java)
===================================================================
--- branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java (rev 0)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java 2007-11-19 02:02:35 UTC (rev 4074)
@@ -0,0 +1,40 @@
+/**
+ *
+ */
+package org.richfaces;
+
+
+/**
+ * @author Nick Belaevski
+ * mailto:nbelaevski@exadel.com
+ * created 16.11.2007
+ *
+ */
+public class ListShuttleOptionItem {
+ private String name;
+ private int price;
+
+ public ListShuttleOptionItem(String name, int price) {
+ super();
+ this.name = name;
+ this.price = price;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getPrice() {
+ return price;
+ }
+
+ @Override
+ public String toString() {
+ return this.getClass().getSimpleName() + " [" + name + "] by " + price;
+ }
+
+}
Deleted: branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml 2007-11-17 00:19:41 UTC (rev 4064)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -1,10 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
- "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
-<faces-config>
- <managed-bean>
- <managed-bean-name>bean</managed-bean-name>
- <managed-bean-class>org.richfaces.Bean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
- </managed-bean>
-</faces-config>
Copied: branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml (from rev 4067, trunk/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml)
===================================================================
--- branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml (rev 0)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>listShuttleDemoBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.ListShuttleDemoBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Deleted: branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp 2007-11-17 00:19:41 UTC (rev 4064)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp 2007-11-19 02:02:35 UTC (rev 4074)
@@ -1,12 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<html>
- <head>
- <title></title>
- </head>
- <body>
- <f:view>
-
- </f:view>
- </body>
-</html>
Copied: branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp (from rev 4067, trunk/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp)
===================================================================
--- branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp (rev 0)
+++ branches/3.1.x/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp 2007-11-19 02:02:35 UTC (rev 4074)
@@ -0,0 +1,23 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/listShuttle" prefix="ls" %>
+
+<html>
+ <head>
+ <title></title>
+ </head>
+ <body>
+ <f:view>
+ <h:form>
+ <ls:listShuttle sourceValue="#{listShuttleDemoBean.source}" targetValue="#{listShuttleDemoBean.target}">
+
+ </ls:listShuttle>
+
+
+ <h:commandButton value="Submit" />
+ <h:commandButton value="Submit Immediate" immediate="true" />
+ </h:form>
+ </f:view>
+ </body>
+</html>
Modified: branches/3.1.x/sandbox/samples/pom.xml
===================================================================
--- branches/3.1.x/sandbox/samples/pom.xml 2007-11-19 02:01:28 UTC (rev 4073)
+++ branches/3.1.x/sandbox/samples/pom.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -14,5 +14,6 @@
<module>panel2-sample</module>
<module>simpleTogglePanel2-sample</module>
- </modules>
+ <module>listShuttleDemo</module>
+ </modules>
</project>
\ No newline at end of file
Copied: branches/3.1.x/sandbox/ui/listShuttle (from rev 4064, trunk/sandbox/ui/listShuttle)
Deleted: branches/3.1.x/sandbox/ui/listShuttle/pom.xml
===================================================================
--- trunk/sandbox/ui/listShuttle/pom.xml 2007-11-17 00:19:41 UTC (rev 4064)
+++ branches/3.1.x/sandbox/ui/listShuttle/pom.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -1,36 +0,0 @@
-<?xml version="1.0"?><project>
- <parent>
- <artifactId>ui</artifactId>
- <groupId>org.richfaces.sandbox</groupId>
- <version>3.2.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.sandbox.ui</groupId>
- <artifactId>listShuttle</artifactId>
- <name>listShuttle</name>
- <build>
- <plugins>
- <plugin>
- <groupId>org.richfaces.cdk</groupId>
- <artifactId>maven-cdk-plugin</artifactId>
- <version>3.2.0-SNAPSHOT</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <library>
- <prefix>org.richfaces</prefix>
- <taglib>
- <shortName>listShuttle</shortName>
- </taglib>
- </library>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
\ No newline at end of file
Copied: branches/3.1.x/sandbox/ui/listShuttle/pom.xml (from rev 4072, trunk/sandbox/ui/listShuttle/pom.xml)
===================================================================
--- branches/3.1.x/sandbox/ui/listShuttle/pom.xml (rev 0)
+++ branches/3.1.x/sandbox/ui/listShuttle/pom.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -0,0 +1,44 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.1.3-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <artifactId>listShuttle</artifactId>
+ <name>listShuttle</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>${project.version}</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces</prefix>
+ <taglib>
+ <shortName>listShuttle</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <artifactId>orderingList</artifactId>
+ <groupId>org.richfaces.ui</groupId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Copied: branches/3.1.x/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml (from rev 4068, trunk/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml)
===================================================================
--- branches/3.1.x/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml (rev 0)
+++ branches/3.1.x/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.ListShuttle</name>
+ <family>org.richfaces.ListShuttle</family>
+ <classname>org.richfaces.component.html.HtmlListShuttle</classname>
+ <superclass>org.richfaces.component.UIListShuttle</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.ListShuttleRenderer</name>
+ <template>org/richfaces/htmlListShuttle.jspx</template>
+ </renderer>
+ <tag>
+ <name>listShuttle</name>
+ <classname>org.richfaces.taglib.ListShuttleTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ <property hidden="true" el="false">
+ <name>submittedValue</name>
+ </property>
+ <property hidden="true" el="false" exist="true">
+ <name>submittedString</name>
+ </property>
+ <property hidden="true" el="false">
+ <name>localValueSet</name>
+ </property>
+ <property hidden="true" el="false">
+ <name>valid</name>
+ </property>
+ <property elonly="true">
+ <name>validator</name>
+ <classname>javax.faces.el.MethodBinding</classname>
+ <methodargs>javax.faces.event.ValueChangeEvent</methodargs>
+ </property>
+ <property hidden="true">
+ <name>value</name>
+ </property>
+
+ </component>
+</components>
Copied: branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java (from rev 4068, trunk/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java)
===================================================================
--- branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java (rev 0)
+++ branches/3.1.x/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java 2007-11-19 02:02:35 UTC (rev 4074)
@@ -0,0 +1,81 @@
+/**
+ *
+ */
+
+package org.richfaces.component;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+import org.ajax4jsf.component.UIDataAdaptor;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIListShuttle extends UIDataAdaptor {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.ListShuttle";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.ListShuttle";
+
+ private Object sourceValue;
+ private boolean sourceValueSet;
+
+ private Object targetValue;
+ private boolean targetValueSet;
+
+ public Object saveState(FacesContext context) {
+ // TODO Auto-generated method stub
+ return super.saveState(context);
+ }
+
+ public void restoreState(FacesContext context, Object state) {
+ // TODO Auto-generated method stub
+ super.restoreState(context, state);
+ }
+
+ public Object getLocalSourceValue() {
+ return sourceValue;
+ }
+
+ public Object getSourceValue() {
+ if (sourceValue != null) {
+ return sourceValue;
+ }
+
+ ValueBinding vb = getValueBinding("sourceValue");
+ if (vb != null) {
+ return vb.getValue(FacesContext.getCurrentInstance());
+ }
+
+ return null;
+ }
+
+ public void setSourceValue(Object sourceValue) {
+ this.sourceValue = sourceValue;
+ }
+
+ public Object getLocalTargetValue() {
+ return sourceValue;
+ }
+
+ public Object getTargetValue() {
+ if (sourceValue != null) {
+ return sourceValue;
+ }
+
+ ValueBinding vb = getValueBinding("sourceValue");
+ if (vb != null) {
+ return vb.getValue(FacesContext.getCurrentInstance());
+ }
+
+ return null;
+ }
+
+ public void setTargetValue(Object targetValue) {
+ this.targetValue = targetValue;
+ }
+
+
+}
Modified: branches/3.1.x/sandbox/ui/pom.xml
===================================================================
--- branches/3.1.x/sandbox/ui/pom.xml 2007-11-19 02:01:28 UTC (rev 4073)
+++ branches/3.1.x/sandbox/ui/pom.xml 2007-11-19 02:02:35 UTC (rev 4074)
@@ -13,6 +13,7 @@
<modules>
<module>panel2</module>
<module>simpleTogglePanel2</module>
+ <module>listShuttle</module>
<module>state</module>
</modules>
</project>
\ No newline at end of file
18 years, 5 months
JBoss Rich Faces SVN: r4073 - in trunk/sandbox: ui and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-18 21:01:28 -0500 (Sun, 18 Nov 2007)
New Revision: 4073
Removed:
trunk/sandbox/samples/listShuttleDemo/
trunk/sandbox/ui/listShuttle/
Modified:
trunk/sandbox/samples/pom.xml
trunk/sandbox/ui/pom.xml
Log:
listShuttle moved to 3.1.x sandbox
Modified: trunk/sandbox/samples/pom.xml
===================================================================
--- trunk/sandbox/samples/pom.xml 2007-11-19 01:56:45 UTC (rev 4072)
+++ trunk/sandbox/samples/pom.xml 2007-11-19 02:01:28 UTC (rev 4073)
@@ -15,7 +15,6 @@
<module>panel2-sample</module>
<module>simpleTogglePanel2-sample</module>
- <!--module>listShuttleDemo</module-->
<module>columnsDemo</module>
<module>contextMenuDemo</module>
</modules>
Modified: trunk/sandbox/ui/pom.xml
===================================================================
--- trunk/sandbox/ui/pom.xml 2007-11-19 01:56:45 UTC (rev 4072)
+++ trunk/sandbox/ui/pom.xml 2007-11-19 02:01:28 UTC (rev 4073)
@@ -15,7 +15,6 @@
<module>simpleTogglePanel2</module>
<module>state</module>
<module>treeTable</module>
- <!--module>listShuttle</module-->
<module>columns</module>
<module>rex-resizable</module>
<module>rex-messageBox</module>
18 years, 5 months
JBoss Rich Faces SVN: r4072 - in trunk/sandbox: ui/listShuttle and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-18 20:56:45 -0500 (Sun, 18 Nov 2007)
New Revision: 4072
Modified:
trunk/sandbox/samples/listShuttleDemo/pom.xml
trunk/sandbox/ui/listShuttle/pom.xml
Log:
listShuttle prepared to move to 3.1.x sandbox
Modified: trunk/sandbox/samples/listShuttleDemo/pom.xml
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/pom.xml 2007-11-17 02:35:20 UTC (rev 4071)
+++ trunk/sandbox/samples/listShuttleDemo/pom.xml 2007-11-19 01:56:45 UTC (rev 4072)
@@ -3,7 +3,7 @@
<parent>
<artifactId>samples</artifactId>
<groupId>org.richfaces.sandbox</groupId>
- <version>3.2.0-SNAPSHOT</version>
+ <version>3.1.3-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.sandbox.samples</groupId>
@@ -17,7 +17,7 @@
<dependency>
<groupId>org.richfaces.sandbox.ui</groupId>
<artifactId>listShuttle</artifactId>
- <version>3.2.0-SNAPSHOT</version>
+ <version>${project.version}</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
Modified: trunk/sandbox/ui/listShuttle/pom.xml
===================================================================
--- trunk/sandbox/ui/listShuttle/pom.xml 2007-11-17 02:35:20 UTC (rev 4071)
+++ trunk/sandbox/ui/listShuttle/pom.xml 2007-11-19 01:56:45 UTC (rev 4072)
@@ -2,7 +2,7 @@
<parent>
<artifactId>ui</artifactId>
<groupId>org.richfaces.sandbox</groupId>
- <version>3.2.0-SNAPSHOT</version>
+ <version>3.1.3-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.richfaces.sandbox.ui</groupId>
@@ -37,7 +37,7 @@
<dependencies>
<dependency>
<artifactId>orderingList</artifactId>
- <groupId>org.richfaces.sandbox.ui</groupId>
+ <groupId>org.richfaces.ui</groupId>
<version>${project.version}</version>
</dependency>
</dependencies>
18 years, 5 months
JBoss Rich Faces SVN: r4071 - in trunk/samples/seamPortletEar: ear and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-11-16 21:35:20 -0500 (Fri, 16 Nov 2007)
New Revision: 4071
Modified:
trunk/samples/seamPortletEar/ear/pom.xml
trunk/samples/seamPortletEar/pom.xml
trunk/samples/seamPortletEar/seamBookingPortlet/pom.xml
Log:
convert seam portlet sample to EAR
Modified: trunk/samples/seamPortletEar/ear/pom.xml
===================================================================
--- trunk/samples/seamPortletEar/ear/pom.xml 2007-11-17 00:45:20 UTC (rev 4070)
+++ trunk/samples/seamPortletEar/ear/pom.xml 2007-11-17 02:35:20 UTC (rev 4071)
@@ -1,80 +1,83 @@
-<?xml version="1.0"?><project>
- <parent>
- <artifactId>seamPortletEar</artifactId>
- <groupId>org.richfaces.samples</groupId>
- <version>3.2.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.samples.seamPortletEar</groupId>
- <artifactId>portletEar</artifactId>
- <packaging>ear</packaging>
- <name>Seam Portlet Ear</name>
- <version>3.2.0-SNAPSHOT</version>
- <dependencies>
- <dependency>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- </dependency>
- <dependency>
+<?xml version="1.0"?>
+<project>
+ <parent>
+ <artifactId>seamPortletEar</artifactId>
+ <groupId>org.richfaces.samples</groupId>
+ <version>3.2.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples.seamPortletEar</groupId>
+ <artifactId>portletEar</artifactId>
+ <packaging>ear</packaging>
+ <name>Seam Portlet Ear</name>
+ <version>3.2.0-SNAPSHOT</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.richfaces.samples.seamPortletEar</groupId>
- <artifactId>seamBooking</artifactId>
+ <artifactId>seamBooking</artifactId>
<type>ejb</type>
- </dependency>
- <dependency>
+ </dependency>
+ <dependency>
<groupId>org.richfaces.samples.seamPortletEar</groupId>
- <artifactId>seamBookingPortlet</artifactId>
+ <artifactId>seamBookingPortlet</artifactId>
<type>war</type>
- </dependency>
- </dependencies>
- <build>
- <finalName>seamEAR</finalName>
- <plugins>
- <plugin>
- <artifactId>maven-ear-plugin</artifactId>
- <configuration>
- <defaultLibBundleDir>lib</defaultLibBundleDir>
- <modules>
- <jarModule>
- <groupId>org.jboss.seam</groupId>
- <artifactId>jboss-seam</artifactId>
- <includeInApplicationXml>
- true
- </includeInApplicationXml>
- <bundleDir>/</bundleDir>
- </jarModule>
- <ejbModule>
- <groupId>
- org.richfaces.samples.seamPortletEar
- </groupId>
- <artifactId>seamBooking</artifactId>
- <bundleDir>/</bundleDir>
- </ejbModule>
- <jarModule>
- <groupId>org.richfaces.framework</groupId>
- <artifactId>richfaces-api</artifactId>
- <includeInApplicationXml>
- true
- </includeInApplicationXml>
- <bundleDir>/</bundleDir>
- </jarModule>
- </modules>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- </manifest>
- </archive>
- -->
- <!--
- <jboss>
- <version>4.2</version>
- <loader-repository>
- seam.jboss.org:loader=seamEAR
- </loader-repository>
- </jboss>
- -->
- <version>5</version>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>seamEAR</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-ear-plugin</artifactId>
+ <configuration>
+ <defaultLibBundleDir>lib</defaultLibBundleDir>
+ <modules>
+ <ejbModule>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <!--
+ <includeInApplicationXml>
+ true
+ </includeInApplicationXml>
+ -->
+ <bundleDir>/</bundleDir>
+ </ejbModule>
+ <ejbModule>
+ <groupId>
+ org.richfaces.samples.seamPortletEar
+ </groupId>
+ <artifactId>seamBooking</artifactId>
+ <bundleDir>/</bundleDir>
+ </ejbModule>
+ <jarModule>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-api</artifactId>
+ <includeInApplicationXml>
+ true
+ </includeInApplicationXml>
+ <bundleDir>/</bundleDir>
+ </jarModule>
+ </modules>
+ <artifactTypeMappings>
+ <artifactTypeMapping type="jar" mapping="ejb" />
+ </artifactTypeMappings>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ </manifest>
+ </archive>
+ <jboss>
+ <version>4.2</version>
+ <loader-repository>
+ seam.jboss.org:loader=seamEAR
+ </loader-repository>
+ </jboss>
+ <version>5</version>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
\ No newline at end of file
Modified: trunk/samples/seamPortletEar/pom.xml
===================================================================
--- trunk/samples/seamPortletEar/pom.xml 2007-11-17 00:45:20 UTC (rev 4070)
+++ trunk/samples/seamPortletEar/pom.xml 2007-11-17 02:35:20 UTC (rev 4071)
@@ -88,21 +88,34 @@
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam</artifactId>
<version>${seam}</version>
+ <exclusions>
+ <exclusion><groupId>javax.el</groupId><artifactId>el-api</artifactId></exclusion>
+ <exclusion><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId></exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-ui</artifactId>
<version>${seam}</version>
+ <exclusions>
+ <exclusion><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId></exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-ioc</artifactId>
<version>${seam}</version>
+ <exclusions>
+ <exclusion><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId></exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.jboss.seam</groupId>
<artifactId>jboss-seam-debug</artifactId>
<version>${seam}</version>
+ <exclusions>
+ <exclusion><groupId>javax.servlet</groupId><artifactId>servlet-api</artifactId></exclusion>
+ </exclusions>
</dependency>
</dependencies>
</dependencyManagement>
Modified: trunk/samples/seamPortletEar/seamBookingPortlet/pom.xml
===================================================================
--- trunk/samples/seamPortletEar/seamBookingPortlet/pom.xml 2007-11-17 00:45:20 UTC (rev 4070)
+++ trunk/samples/seamPortletEar/seamBookingPortlet/pom.xml 2007-11-17 02:35:20 UTC (rev 4071)
@@ -100,6 +100,12 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.richfaces.extensions</groupId>
<artifactId>portlet</artifactId>
<version>3.2.0-SNAPSHOT</version>
18 years, 5 months
JBoss Rich Faces SVN: r4070 - trunk/framework/impl/src/main/java/org/ajax4jsf/component.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-16 19:45:20 -0500 (Fri, 16 Nov 2007)
New Revision: 4070
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java
Log:
http://jira.jboss.com/jira/browse/RF-1373
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java 2007-11-17 00:30:53 UTC (rev 4069)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java 2007-11-17 00:45:20 UTC (rev 4070)
@@ -1451,4 +1451,13 @@
public void clearRequestKeysSet() {
_ajaxRequestKeys = null;
}
+
+ public Object getValue() {
+ return super.getValue();
+ }
+
+ public void setValue(Object value) {
+ setExtendedDataModel(null);
+ super.setValue(value);
+ }
}
18 years, 5 months
JBoss Rich Faces SVN: r4069 - in trunk/sandbox: ui and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-16 19:30:53 -0500 (Fri, 16 Nov 2007)
New Revision: 4069
Modified:
trunk/sandbox/samples/pom.xml
trunk/sandbox/ui/pom.xml
Log:
listShuttle excluded from build
Modified: trunk/sandbox/samples/pom.xml
===================================================================
--- trunk/sandbox/samples/pom.xml 2007-11-17 00:29:20 UTC (rev 4068)
+++ trunk/sandbox/samples/pom.xml 2007-11-17 00:30:53 UTC (rev 4069)
@@ -15,7 +15,7 @@
<module>panel2-sample</module>
<module>simpleTogglePanel2-sample</module>
- <module>listShuttleDemo</module>
+ <!--module>listShuttleDemo</module-->
<module>columnsDemo</module>
<module>contextMenuDemo</module>
</modules>
Modified: trunk/sandbox/ui/pom.xml
===================================================================
--- trunk/sandbox/ui/pom.xml 2007-11-17 00:29:20 UTC (rev 4068)
+++ trunk/sandbox/ui/pom.xml 2007-11-17 00:30:53 UTC (rev 4069)
@@ -15,7 +15,7 @@
<module>simpleTogglePanel2</module>
<module>state</module>
<module>treeTable</module>
- <module>listShuttle</module>
+ <!--module>listShuttle</module-->
<module>columns</module>
<module>rex-resizable</module>
<module>rex-messageBox</module>
18 years, 5 months
JBoss Rich Faces SVN: r4068 - in trunk/sandbox/ui/listShuttle: src/main/config/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-16 19:29:20 -0500 (Fri, 16 Nov 2007)
New Revision: 4068
Added:
trunk/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml
trunk/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
Modified:
trunk/sandbox/ui/listShuttle/pom.xml
Log:
listShuttle work in progress
Modified: trunk/sandbox/ui/listShuttle/pom.xml
===================================================================
--- trunk/sandbox/ui/listShuttle/pom.xml 2007-11-17 00:29:14 UTC (rev 4067)
+++ trunk/sandbox/ui/listShuttle/pom.xml 2007-11-17 00:29:20 UTC (rev 4068)
@@ -13,7 +13,7 @@
<plugin>
<groupId>org.richfaces.cdk</groupId>
<artifactId>maven-cdk-plugin</artifactId>
- <version>3.2.0-SNAPSHOT</version>
+ <version>${project.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
@@ -32,5 +32,13 @@
</configuration>
</plugin>
</plugins>
- </build>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <artifactId>orderingList</artifactId>
+ <groupId>org.richfaces.sandbox.ui</groupId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
</project>
\ No newline at end of file
Added: trunk/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml
===================================================================
--- trunk/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml (rev 0)
+++ trunk/sandbox/ui/listShuttle/src/main/config/component/listShuttle.xml 2007-11-17 00:29:20 UTC (rev 4068)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.ListShuttle</name>
+ <family>org.richfaces.ListShuttle</family>
+ <classname>org.richfaces.component.html.HtmlListShuttle</classname>
+ <superclass>org.richfaces.component.UIListShuttle</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.ListShuttleRenderer</name>
+ <template>org/richfaces/htmlListShuttle.jspx</template>
+ </renderer>
+ <tag>
+ <name>listShuttle</name>
+ <classname>org.richfaces.taglib.ListShuttleTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ <property hidden="true" el="false">
+ <name>submittedValue</name>
+ </property>
+ <property hidden="true" el="false" exist="true">
+ <name>submittedString</name>
+ </property>
+ <property hidden="true" el="false">
+ <name>localValueSet</name>
+ </property>
+ <property hidden="true" el="false">
+ <name>valid</name>
+ </property>
+ <property elonly="true">
+ <name>validator</name>
+ <classname>javax.faces.el.MethodBinding</classname>
+ <methodargs>javax.faces.event.ValueChangeEvent</methodargs>
+ </property>
+ <property hidden="true">
+ <name>value</name>
+ </property>
+
+ </component>
+</components>
Added: trunk/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java
===================================================================
--- trunk/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java (rev 0)
+++ trunk/sandbox/ui/listShuttle/src/main/java/org/richfaces/component/UIListShuttle.java 2007-11-17 00:29:20 UTC (rev 4068)
@@ -0,0 +1,81 @@
+/**
+ *
+ */
+
+package org.richfaces.component;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+
+import org.ajax4jsf.component.UIDataAdaptor;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIListShuttle extends UIDataAdaptor {
+
+ public static final String COMPONENT_TYPE = "org.richfaces.ListShuttle";
+
+ public static final String COMPONENT_FAMILY = "org.richfaces.ListShuttle";
+
+ private Object sourceValue;
+ private boolean sourceValueSet;
+
+ private Object targetValue;
+ private boolean targetValueSet;
+
+ public Object saveState(FacesContext context) {
+ // TODO Auto-generated method stub
+ return super.saveState(context);
+ }
+
+ public void restoreState(FacesContext context, Object state) {
+ // TODO Auto-generated method stub
+ super.restoreState(context, state);
+ }
+
+ public Object getLocalSourceValue() {
+ return sourceValue;
+ }
+
+ public Object getSourceValue() {
+ if (sourceValue != null) {
+ return sourceValue;
+ }
+
+ ValueBinding vb = getValueBinding("sourceValue");
+ if (vb != null) {
+ return vb.getValue(FacesContext.getCurrentInstance());
+ }
+
+ return null;
+ }
+
+ public void setSourceValue(Object sourceValue) {
+ this.sourceValue = sourceValue;
+ }
+
+ public Object getLocalTargetValue() {
+ return sourceValue;
+ }
+
+ public Object getTargetValue() {
+ if (sourceValue != null) {
+ return sourceValue;
+ }
+
+ ValueBinding vb = getValueBinding("sourceValue");
+ if (vb != null) {
+ return vb.getValue(FacesContext.getCurrentInstance());
+ }
+
+ return null;
+ }
+
+ public void setTargetValue(Object targetValue) {
+ this.targetValue = targetValue;
+ }
+
+
+}
18 years, 5 months
JBoss Rich Faces SVN: r4067 - in trunk/sandbox/samples/listShuttleDemo/src/main: webapp/WEB-INF and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-11-16 19:29:14 -0500 (Fri, 16 Nov 2007)
New Revision: 4067
Added:
trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java
trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java
Removed:
trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/Bean.java
Modified:
trunk/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
Log:
listShuttle work in progress
Deleted: trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/Bean.java 2007-11-17 00:28:14 UTC (rev 4066)
+++ trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/Bean.java 2007-11-17 00:29:14 UTC (rev 4067)
@@ -1,29 +0,0 @@
-/**
- * License Agreement.
- *
- * Rich Faces - Natural Ajax for Java Server Faces (JSF)
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package org.richfaces;
-/**
- * @author $Autor$
- *
- */
-public class Bean {
-
-}
\ No newline at end of file
Added: trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java (rev 0)
+++ trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleDemoBean.java 2007-11-17 00:29:14 UTC (rev 4067)
@@ -0,0 +1,45 @@
+/**
+ *
+ */
+package org.richfaces;
+
+import java.util.List;
+import java.util.Random;
+
+/**
+ * @author Nick Belaevski
+ * mailto:nbelaevski@exadel.com
+ * created 16.11.2007
+ *
+ */
+public class ListShuttleDemoBean {
+ private ListShuttleOptionItem[] source;
+
+ private List<ListShuttleOptionItem> target;
+
+ public ListShuttleDemoBean() {
+ super();
+
+ source = new ListShuttleOptionItem[10];
+ for (int i = 0; i < source.length; i++) {
+ source[i] = new ListShuttleOptionItem("Item " + i, new Random().nextInt(40));
+ }
+ }
+
+ public ListShuttleOptionItem[] getSource() {
+ return source;
+ }
+
+ public void setSource(ListShuttleOptionItem[] source) {
+ this.source = source;
+ }
+
+ public List<ListShuttleOptionItem> getTarget() {
+ return target;
+ }
+
+ public void setTarget(List<ListShuttleOptionItem> target) {
+ this.target = target;
+ }
+
+}
Added: trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java (rev 0)
+++ trunk/sandbox/samples/listShuttleDemo/src/main/java/org/richfaces/ListShuttleOptionItem.java 2007-11-17 00:29:14 UTC (rev 4067)
@@ -0,0 +1,40 @@
+/**
+ *
+ */
+package org.richfaces;
+
+
+/**
+ * @author Nick Belaevski
+ * mailto:nbelaevski@exadel.com
+ * created 16.11.2007
+ *
+ */
+public class ListShuttleOptionItem {
+ private String name;
+ private int price;
+
+ public ListShuttleOptionItem(String name, int price) {
+ super();
+ this.name = name;
+ this.price = price;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getPrice() {
+ return price;
+ }
+
+ @Override
+ public String toString() {
+ return this.getClass().getSimpleName() + " [" + name + "] by " + price;
+ }
+
+}
Modified: trunk/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml 2007-11-17 00:28:14 UTC (rev 4066)
+++ trunk/sandbox/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml 2007-11-17 00:29:14 UTC (rev 4067)
@@ -3,8 +3,8 @@
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
- <managed-bean-name>bean</managed-bean-name>
- <managed-bean-class>org.richfaces.Bean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
+ <managed-bean-name>listShuttleDemoBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.ListShuttleDemoBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>
Modified: trunk/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp 2007-11-17 00:28:14 UTC (rev 4066)
+++ trunk/sandbox/samples/listShuttleDemo/src/main/webapp/pages/index.jsp 2007-11-17 00:29:14 UTC (rev 4067)
@@ -1,12 +1,23 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/listShuttle" prefix="ls" %>
+
<html>
<head>
<title></title>
</head>
<body>
<f:view>
+ <h:form>
+ <ls:listShuttle sourceValue="#{listShuttleDemoBean.source}" targetValue="#{listShuttleDemoBean.target}">
+
+ </ls:listShuttle>
+
+ <h:commandButton value="Submit" />
+ <h:commandButton value="Submit Immediate" immediate="true" />
+ </h:form>
</f:view>
</body>
</html>
18 years, 5 months