JBoss Rich Faces SVN: r9533 - in trunk/docs/userguide/en/src/main/docbook: modules and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-07-11 10:57:42 -0400 (Fri, 11 Jul 2008)
New Revision: 9533
Modified:
trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-398
language correction
Modified: trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2008-07-11 14:52:13 UTC (rev 9532)
+++ trunk/docs/userguide/en/src/main/docbook/included/treeNode.xml 2008-07-11 14:57:42 UTC (rev 9533)
@@ -89,16 +89,16 @@
...
<rich:treeNode ...>
<f:facet name="icon">
- <hutputText value="A"/>
+ <outputText value="A"/>
</f:facet>
<f:facet name="iconCollapsed">
- <hutputText value="B"/>
+ <outputText value="B"/>
</f:facet>
<f:facet name="iconExpanded">
- <hutputText value="C"/>
+ <outputText value="C"/>
</f:facet>
<f:facet name="iconLeaf">
- <hutputText value="D"/>
+ <outputText value="D"/>
</f:facet>
</rich:treeNode>
...
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-07-11 14:52:13 UTC (rev 9532)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-07-11 14:57:42 UTC (rev 9533)
@@ -1799,7 +1799,7 @@
<para>
These problems can be solved with the
<property>skinnability</property>
- system built into theRichFaces project and realized
+ system built into the RichFaces project and realized
fully in RichFaces. Every named skin has some
skin-parameters for the definition of a palette and the
other parameters of the user interface. By changing just
16 years, 2 months
JBoss Rich Faces SVN: r9532 - in trunk/test-applications/jsp/src/main: webapp/Skinning and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-07-11 10:52:13 -0400 (Fri, 11 Jul 2008)
New Revision: 9532
Modified:
trunk/test-applications/jsp/src/main/java/skinning/Skinning.java
trunk/test-applications/jsp/src/main/webapp/Skinning/Skinning.jsp
Log:
Change skinning files.
Modified: trunk/test-applications/jsp/src/main/java/skinning/Skinning.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/skinning/Skinning.java 2008-07-11 14:39:21 UTC (rev 9531)
+++ trunk/test-applications/jsp/src/main/java/skinning/Skinning.java 2008-07-11 14:52:13 UTC (rev 9532)
@@ -9,20 +9,26 @@
private ArrayList<SelectItem> list = new ArrayList<SelectItem>();
private ArrayList<SelectItem> enableStyle = new ArrayList<SelectItem>();
private ArrayList<SelectItem> disabledStyle = new ArrayList<SelectItem>();
- private final int MAX_SIZE = 3;
+ private final int MAX_SIZE = 5;
private String selectSkinning = "none";
private String skinning = "disable";
private String skinningClass = "disable";
private String commandButton = "rich-button";
private String commandLink = "rich-link";
private String dataTable = "rich-isindex";
- private String inputSecret = "rich-button";
- private String inputText = "rich-input";
- private String inputTextarea = "rich-textarea";
+ private String inputSecret = "inputSecret";
+ private String inputSecretStyleClass = "rich-input";
+ private String inputTextStyleClass = "rich-input";
+ private String inputText = "inputText";
+ private String inputTextarea = "inputTextarea\nRichFaces";
+ private String inputTextareaStyleClass = "rich-textarea";
private String outputLink = "rich-link";
private String outputText = "rich-link";
- private String selectBooleanCheckbox = "rich-select";
+ private String selectBooleanCheckboxStyleClass = "rich-select";
+ private boolean selectBooleanCheckbox1 = true;
+ private boolean selectBooleanCheckbox2 = false;
private String selectManyCheckbox = "rich-select";
+ private String selectManyListbox = "rich-select";
private String selectManyListBox = "rich-select";
private String selectManyMenu = "rich-select";
private String selectOneListbox = "rich-select";
@@ -67,12 +73,12 @@
this.inputSecret = inputSecret;
}
- public String getInputText() {
- return inputText;
+ public String getInputTextStyleClass() {
+ return inputTextStyleClass;
}
- public void setInputText(String inputText) {
- this.inputText = inputText;
+ public void setInputTextStyleClass(String inputTextStyleClass) {
+ this.inputTextStyleClass = inputTextStyleClass;
}
public String getInputTextarea() {
@@ -99,12 +105,12 @@
this.outputText = outputText;
}
- public String getSelectBooleanCheckbox() {
- return selectBooleanCheckbox;
+ public String getSelectBooleanCheckboxStyleClass() {
+ return selectBooleanCheckboxStyleClass;
}
- public void setSelectBooleanCheckbox(String selectBooleanCheckbox) {
- this.selectBooleanCheckbox = selectBooleanCheckbox;
+ public void setSelectBooleanCheckboxStyleClass(String selectBooleanCheckboxStyleClass) {
+ this.selectBooleanCheckboxStyleClass = selectBooleanCheckboxStyleClass;
}
public String getSelectManyListBox() {
@@ -205,4 +211,68 @@
public void setList(ArrayList<SelectItem> list) {
this.list = list;
}
+
+ public String getInputText() {
+ return inputText;
+ }
+
+ public void setInputText(String inputText) {
+ this.inputText = inputText;
+ }
+
+ public ArrayList<SelectItem> getEnableStyle() {
+ return enableStyle;
+ }
+
+ public void setEnableStyle(ArrayList<SelectItem> enableStyle) {
+ this.enableStyle = enableStyle;
+ }
+
+ public ArrayList<SelectItem> getDisabledStyle() {
+ return disabledStyle;
+ }
+
+ public void setDisabledStyle(ArrayList<SelectItem> disabledStyle) {
+ this.disabledStyle = disabledStyle;
+ }
+
+ public String getInputSecretStyleClass() {
+ return inputSecretStyleClass;
+ }
+
+ public void setInputSecretStyleClass(String inputSecretStyleClass) {
+ this.inputSecretStyleClass = inputSecretStyleClass;
+ }
+
+ public String getInputTextareaStyleClass() {
+ return inputTextareaStyleClass;
+ }
+
+ public void setInputTextareaStyleClass(String inputTextareaStyleClass) {
+ this.inputTextareaStyleClass = inputTextareaStyleClass;
+ }
+
+ public boolean getSelectBooleanCheckbox1() {
+ return selectBooleanCheckbox1;
+ }
+
+ public void setSelectBooleanCheckbox1(boolean selectBooleanCheckbox1) {
+ this.selectBooleanCheckbox1 = selectBooleanCheckbox1;
+ }
+
+ public boolean getSelectBooleanCheckbox2() {
+ return selectBooleanCheckbox2;
+ }
+
+ public void setSelectBooleanCheckbox2(boolean selectBooleanCheckbox2) {
+ this.selectBooleanCheckbox2 = selectBooleanCheckbox2;
+ }
+
+ public String getSelectManyListbox() {
+ return selectManyListbox;
+ }
+
+ public void setSelectManyListbox(String selectManyListbox) {
+ this.selectManyListbox = selectManyListbox;
+ }
}
Modified: trunk/test-applications/jsp/src/main/webapp/Skinning/Skinning.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Skinning/Skinning.jsp 2008-07-11 14:39:21 UTC (rev 9531)
+++ trunk/test-applications/jsp/src/main/webapp/Skinning/Skinning.jsp 2008-07-11 14:52:13 UTC (rev 9532)
@@ -1,111 +1,232 @@
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="ajax"%>
-<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="richfaces"%>
+<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
<f:subview id="skinningSubviewID">
- <h:panelGrid columns="4">
- <h:outputText value="componrnts"></h:outputText>
- <h:outputText value="styleClass components"></h:outputText>
- <h:outputText value="enable components"></h:outputText>
- <h:outputText value="disabled components"></h:outputText>
-
- <h:outputText value="commandButton "></h:outputText>
- <h:inputText value="#{skinning.commandButton}" onchange="submit();"></h:inputText>
- <h:commandButton value="commandButton"
- styleClass="#{skinning.commandButton}"></h:commandButton>
- <h:commandButton value="commandButton" disabled="true"
- styleClass="#{skinning.commandButton}"></h:commandButton>
-
- <h:outputText value="commandLink "></h:outputText>
- <h:inputText value="#{skinning.commandLink}" onchange="submit();"></h:inputText>
- <h:commandLink value="commandLink"
- styleClass="#{skinning.commandLink}"></h:commandLink>
- <h:commandLink value="commandLink" disabled="true"
- styleClass="#{skinning.commandLink}"></h:commandLink>
-
- <h:outputText value="inputSecret "></h:outputText>
- <h:inputText value="#{skinning.inputSecret}" onchange="submit();"></h:inputText>
- <h:inputSecret value="secret" styleClass="#{skinning.inputSecret}"></h:inputSecret>
- <h:inputSecret value="secret" styleClass="#{skinning.inputSecret}" disabled="true"></h:inputSecret>
-
- <h:outputText value="inputText "></h:outputText>
- <h:inputText value="#{skinning.inputText}" onchange="submit();"></h:inputText>
- <h:inputText value="inputText" styleClass="#{skinning.inputText}"></h:inputText>
- <h:inputText value="inputText" styleClass="#{skinning.inputText}" disabled="true"></h:inputText>
-
- <h:outputText value="inputTextarea "></h:outputText>
- <h:inputText value="#{skinning.inputTextarea}" onchange="submit();"></h:inputText>
- <h:inputTextarea rows="5" cols="4" value="inputTextarea" readonly="true"
- styleClass="#{skinning.inputTextarea}"></h:inputTextarea>
- <h:inputTextarea rows="4" cols="5" value="inputTextarea" disabled="true"
- styleClass="#{skinning.inputTextarea}"></h:inputTextarea>
-
- <h:outputText value="outputLink "></h:outputText>
- <h:inputText value="#{skinning.outputLink}" onchange="submit();"></h:inputText>
- <h:outputLink styleClass="#{skinning.outputLink}"></h:outputLink>
- <h:outputLink styleClass="#{skinning.outputLink}" disabled="true"></h:outputLink>
-
- <h:outputText value="selectBooleanCheckbox "></h:outputText>
- <h:inputText value="#{skinning.selectBooleanCheckbox}"
- onchange="submit();"></h:inputText>
- <h:panelGroup>
- <h:selectBooleanCheckbox value="true"
- styleClass="#{skinning.selectBooleanCheckbox}"></h:selectBooleanCheckbox>
- <h:selectBooleanCheckbox value="false"
- styleClass="#{skinning.selectBooleanCheckbox}"></h:selectBooleanCheckbox>
- </h:panelGroup>
- <h:panelGroup>
- <h:selectBooleanCheckbox value="true"
- styleClass="#{skinning.selectBooleanCheckbox}" disabled="true"></h:selectBooleanCheckbox>
- <h:selectBooleanCheckbox value="false"
- styleClass="#{skinning.selectBooleanCheckbox}" disabled="true"></h:selectBooleanCheckbox>
- </h:panelGroup>
-
- <h:outputText value="selectManyCheckbox "></h:outputText>
- <h:inputText value="#{skinning.selectManyCheckbox}"
- onchange="submit();"></h:inputText>
- <h:selectManyCheckbox styleClass="#{skinning.selectManyCheckbox}">
- <f:selectItems value="#{skinning.list}" />
- </h:selectManyCheckbox>
- <h:selectManyCheckbox styleClass="#{skinning.selectManyCheckbox}" disabled="true">
- <f:selectItems value="#{skinning.list}" />
- </h:selectManyCheckbox>
-
- <h:outputText value="selectManyMenu "></h:outputText>
- <h:inputText value="#{skinning.selectManyMenu}" onchange="submit();"></h:inputText>
- <h:selectManyMenu styleClass="#{skinning.selectManyMenu}" disabled="true">
- <f:selectItems value="#{skinning.list}" />
- </h:selectManyMenu>
- <h:selectManyMenu styleClass="#{skinning.selectManyMenu}">
- <f:selectItems value="#{skinning.list}" />
- </h:selectManyMenu>
-
- <h:outputText value="selectOneListbox "></h:outputText>
- <h:inputText value="#{skinning.selectOneListbox}" onchange="submit();"></h:inputText>
- <h:selectOneListbox styleClass="#{skinning.selectOneListbox}">
- <f:selectItems value="#{skinning.list}" />
- </h:selectOneListbox>
- <h:selectOneListbox styleClass="#{skinning.selectOneListbox}" disabled="true">
- <f:selectItems value="#{skinning.list}" />
- </h:selectOneListbox>
-
- <h:outputText value="selectOneMenu "></h:outputText>
- <h:inputText value="#{skinning.selectOneMenu}" onchange="submit();"></h:inputText>
- <h:selectOneMenu styleClass="#{skinning.selectOneMenu}">
- <f:selectItems value="#{skinning.list}" />
- </h:selectOneMenu>
- <h:selectOneMenu styleClass="#{skinning.selectOneMenu}" disabled="true">
- <f:selectItems value="#{skinning.list}" />
- </h:selectOneMenu>
-
- <h:outputText value="selectOneRadio"></h:outputText>
- <h:inputText value="#{skinning.selectOneRadio}" onchange="submit();"></h:inputText>
- <h:selectOneRadio styleClass="#{skinning.selectOneRadio}">
- <f:selectItems value="#{skinning.list}" />
- </h:selectOneRadio>
- <h:selectOneRadio styleClass="#{skinning.selectOneRadio}" disabled="true">
- <f:selectItems value="#{skinning.list}" />
- </h:selectOneRadio>
- </h:panelGrid>
+ <rich:dataTable columns="4" value="">
+ <f:facet name="caption">
+ <h:outputText value="Standard controls skinning feature provides styling for standard HTML elements so that they become highly compliant with RichFaces look and feel. Skinning can be applied to all page controls based on element name and type attribute (where applicable). Also this feature provides a set of CSS styles so that skinning can be applied by assigning rich-.. classes to particular elements or to container element that nests controls." />
+ </f:facet>
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column><h:outputText value="Name of Component" /></rich:column>
+ <rich:column><h:outputText value="styleClass of Component" /></rich:column>
+ <rich:column><h:outputText value="Component is enabled" /></rich:column>
+ <rich:column><h:outputText value="Component is disabled" /></rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="" />
+ </f:facet>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="inputText" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.inputTextStyleClass}" />
+ </rich:column>
+ <rich:column>
+ <h:inputText styleClass="#{skinning.inputTextStyleClass}" value="#{skinning.inputText}" />
+ </rich:column>
+ <rich:column>
+ <h:inputText styleClass="#{skinning.inputTextStyleClass}" value="#{skinning.inputText}" disabled="true"/>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="inputSecret" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.inputSecretStyleClass}" />
+ </rich:column>
+ <rich:column>
+ <h:inputSecret styleClass="#{skinning.inputSecretStyleClass}" value="#{skinning.inputSecret}" redisplay="true"/>
+ </rich:column>
+ <rich:column>
+ <h:inputSecret styleClass="#{skinning.inputSecretStyleClass}" value="#{skinning.inputSecret}" disabled="true" redisplay="true"/>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="inputTextarea" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.inputTextareaStyleClass}" />
+ </rich:column>
+ <rich:column>
+ <h:inputTextarea styleClass="#{skinning.inputTextareaStyleClass}" value="#{skinning.inputTextarea}" />
+ </rich:column>
+ <rich:column>
+ <h:inputTextarea styleClass="#{skinning.inputTextareaStyleClass}" value="#{skinning.inputTextarea}" disabled="true" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectBooleanCheckbox" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectBooleanCheckboxStyleClass}" />
+ </rich:column>
+ <rich:column>
+ <h:selectBooleanCheckbox styleClass="#{skinning.selectBooleanCheckboxStyleClass}" value="#{skinning.selectBooleanCheckbox1}" />
+ <h:selectBooleanCheckbox styleClass="#{skinning.selectBooleanCheckboxStyleClass}" value="#{skinning.selectBooleanCheckbox2}" />
+ </rich:column>
+ <rich:column>
+ <h:selectBooleanCheckbox styleClass="#{skinning.selectBooleanCheckboxStyleClass}" value="#{skinning.selectBooleanCheckbox1}" disabled="true"/>
+ <h:selectBooleanCheckbox styleClass="#{skinning.selectBooleanCheckboxStyleClass}" value="#{skinning.selectBooleanCheckbox2}" disabled="true" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectManyCheckbox" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectManyCheckbox}" />
+ </rich:column>
+ <rich:column>
+ <h:selectManyCheckbox styleClass="#{skinning.selectManyCheckbox}" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyCheckbox>
+ </rich:column>
+ <rich:column>
+ <h:selectManyCheckbox styleClass="#{skinning.selectManyCheckbox}" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyCheckbox>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectManyListbox" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectManyListbox}" />
+ </rich:column>
+ <rich:column>
+ <h:selectManyListbox styleClass="#{skinning.selectManyListbox}" style="height: 55px;" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyListbox>
+ </rich:column>
+ <rich:column>
+ <h:selectManyListbox styleClass="#{skinning.selectManyListbox}" style="height: 55px;" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyListbox>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectManyMenu" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectManyMenu}" />
+ </rich:column>
+ <rich:column>
+ <h:selectManyMenu styleClass="#{skinning.selectManyMenu}" style="height: 55px;" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyMenu>
+ </rich:column>
+ <rich:column>
+ <h:selectManyMenu styleClass="#{skinning.selectManyMenu}" style="height: 55px;" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectManyMenu>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectOneListbox" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectOneListbox}" />
+ </rich:column>
+ <rich:column>
+ <h:selectOneListbox styleClass="#{skinning.selectOneListbox}" style="height: 55px;" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneListbox>
+ </rich:column>
+ <rich:column>
+ <h:selectOneListbox styleClass="#{skinning.selectOneListbox}" style="height: 55px;" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneListbox>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectOneMenu" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectOneMenu}" />
+ </rich:column>
+ <rich:column>
+ <h:selectOneMenu styleClass="#{skinning.selectOneMenu}" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneMenu>
+ </rich:column>
+ <rich:column>
+ <h:selectOneMenu styleClass="#{skinning.selectOneMenu}" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneMenu>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="selectOneRadio" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.selectOneRadio}" />
+ </rich:column>
+ <rich:column>
+ <h:selectOneRadio styleClass="#{skinning.selectOneRadio}" >
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneRadio>
+ </rich:column>
+ <rich:column>
+ <h:selectOneRadio styleClass="#{skinning.selectOneRadio}" disabled="true">
+ <f:selectItems value="#{skinning.list}"/>
+ </h:selectOneRadio>
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="commandButton" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.commandButton}" />
+ </rich:column>
+ <rich:column>
+ <h:commandButton styleClass="#{skinning.commandButton}" value="commandButton" />
+ </rich:column>
+ <rich:column>
+ <h:commandButton styleClass="#{skinning.commandButton}" value="commandButton" disabled="true" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="commandLink" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.commandLink}" />
+ </rich:column>
+ <rich:column>
+ <h:commandLink styleClass="#{skinning.commandLink}" value="commandLink" />
+ </rich:column>
+ <rich:column>
+ <h:commandLink styleClass="#{skinning.commandLink}" value="commandLink" disabled="true" />
+ </rich:column>
+ </rich:columnGroup>
+ <rich:columnGroup>
+ <rich:column>
+ <h:outputText value="outputLink" />
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{skinning.outputLink}" />
+ </rich:column>
+ <rich:column>
+ <h:outputLink styleClass="#{skinning.outputLink}"><h:outputText value="outputLink" /></h:outputLink>
+ </rich:column>
+ <rich:column>
+ <h:outputLink styleClass="#{skinning.outputLink}" disabled="true"><h:outputText value="outputLink" /></h:outputLink>
+ </rich:column>
+ </rich:columnGroup>
+ </rich:dataTable>
+
</f:subview>
\ No newline at end of file
16 years, 2 months
JBoss Rich Faces SVN: r9531 - in trunk/test-applications/seleniumTest/src: main/java/org/ajax4jsf/model and 4 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-07-11 10:39:21 -0400 (Fri, 11 Jul 2008)
New Revision: 9531
Added:
trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/bean/ListShuttleBean.java
trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/model/ListShuttleConverter.java
trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/model/ListShuttleItem.java
trunk/test-applications/seleniumTest/src/main/webapp/pages/listShuttle/
trunk/test-applications/seleniumTest/src/main/webapp/pages/listShuttle/listShuttleTest.xhtml
trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/ListShuttleTest.java
Modified:
trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/bean/IndexBean.java
trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml
Log:
List shuttle Test
Modified: trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/bean/IndexBean.java
===================================================================
--- trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/bean/IndexBean.java 2008-07-11 13:54:52 UTC (rev 9530)
+++ trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/bean/IndexBean.java 2008-07-11 14:39:21 UTC (rev 9531)
@@ -82,6 +82,8 @@
list.add(new ComponentItem("<a4j:jsFunction>", "jsFunction/jsFunctionTest.xhtml"));
list.add(new ComponentItem("<rich:spacer>", "spacer/spacerTest.xhtml"));
list.add(new ComponentItem("<a4j:loadBundle>", "loadBundle/loadBundle.xhtml"));
+ list.add(new ComponentItem("<rich:toolTip>", "toolTip/toolTip.xhtml"));
+ list.add(new ComponentItem("<rich:listShuttle>", "listShuttle/listShuttleTest.xhtml"));
sortList();
Added: trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/bean/ListShuttleBean.java
===================================================================
--- trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/bean/ListShuttleBean.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/bean/ListShuttleBean.java 2008-07-11 14:39:21 UTC (rev 9531)
@@ -0,0 +1,44 @@
+package org.ajax4jsf.bean;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.faces.event.ActionEvent;
+
+import org.ajax4jsf.model.ListShuttleItem;
+
+public class ListShuttleBean {
+ private List<ListShuttleItem> items = null;
+ private List<ListShuttleItem> freeItems = null;
+ public ListShuttleBean() {
+ init();
+ }
+
+ private void init() {
+ items = new ArrayList<ListShuttleItem>();
+ freeItems = new ArrayList<ListShuttleItem>();
+ for (int i = 0; i < 5; i++) {
+ ListShuttleItem item = new ListShuttleItem(i + 1, "Item" + (i + 1));
+ freeItems.add(item);
+ }
+ }
+
+ public void reset(ActionEvent event) {
+ init();
+ }
+
+ public List<ListShuttleItem> getItems() {
+ return items;
+ }
+ public void setItems(List<ListShuttleItem> items) {
+ this.items = items;
+ }
+
+ public List<ListShuttleItem> getFreeItems() {
+ return freeItems;
+ }
+
+ public void setFreeItems(List<ListShuttleItem> freeItems) {
+ this.freeItems = freeItems;
+ }
+}
Added: trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/model/ListShuttleConverter.java
===================================================================
--- trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/model/ListShuttleConverter.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/model/ListShuttleConverter.java 2008-07-11 14:39:21 UTC (rev 9531)
@@ -0,0 +1,23 @@
+package org.ajax4jsf.model;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+public class ListShuttleConverter implements javax.faces.convert.Converter{
+
+ public Object getAsObject(FacesContext context, UIComponent component,
+ String value) {
+
+ int index = value.indexOf(':');
+ return new ListShuttleItem(Integer.valueOf(value.substring(0, index)), value.substring(index + 1));
+ }
+
+ public String getAsString(FacesContext context, UIComponent component,
+ Object value) {
+ ListShuttleItem optionItem = (ListShuttleItem) value;
+ return optionItem.getNumder() + ":" + optionItem.getName();
+
+ }
+
+
+}
\ No newline at end of file
Added: trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/model/ListShuttleItem.java
===================================================================
--- trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/model/ListShuttleItem.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/main/java/org/ajax4jsf/model/ListShuttleItem.java 2008-07-11 14:39:21 UTC (rev 9531)
@@ -0,0 +1,79 @@
+package org.ajax4jsf.model;
+
+import java.io.Serializable;
+
+public class ListShuttleItem implements Serializable {
+
+ private static final long serialVersionUID = -7540977992693127759L;
+
+ private Integer numder;
+
+ private String name;
+
+ public ListShuttleItem() {
+
+ }
+
+ public ListShuttleItem(Integer i, String name) {
+ this.numder = i;
+ this.name = name;
+ }
+
+ /**
+ * @return the numder
+ */
+ public Integer getNumder() {
+ return numder;
+ }
+
+ /**
+ * @param numder the numder to set
+ */
+ public void setNumder(Integer numder) {
+ this.numder = numder;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#equals(java.lang.Object)
+ */
+ @Override
+ public boolean equals(Object obj) {
+ if (obj == null) {
+ return false;
+ }
+ if (!(obj instanceof ListShuttleItem)) {
+ return false;
+ }
+ ListShuttleItem o = (ListShuttleItem)obj;
+ if (!o.name.equals(name) || !o.numder.equals(numder)) {
+ return false;
+ }
+ return true;
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#hashCode()
+ */
+ @Override
+ public int hashCode() {
+ return name.hashCode() + numder;
+ }
+
+
+
+
+}
Modified: trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml 2008-07-11 13:54:52 UTC (rev 9530)
+++ trunk/test-applications/seleniumTest/src/main/webapp/WEB-INF/faces-config.xml 2008-07-11 14:39:21 UTC (rev 9531)
@@ -5,13 +5,21 @@
<faces-config>
- <application>
+ <application>
+ <locale-config>
+ <default-locale>en_US</default-locale>
+ </locale-config>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
<message-bundle>
org.ajax4jsf.message.resources
- </message-bundle>
+ </message-bundle>
</application>
+ <converter>
+ <converter-id>listShuttleconverter</converter-id>
+ <converter-class>org.ajax4jsf.model.ListShuttleConverter</converter-class>
+ </converter>
+
<managed-bean>
<managed-bean-name>configurator</managed-bean-name>
<managed-bean-class>org.ajax4jsf.bean.Configurator</managed-bean-class>
@@ -183,6 +191,11 @@
<managed-bean-class>org.ajax4jsf.bean.LoadBundleTestBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>listShuttle</managed-bean-name>
+ <managed-bean-class>org.ajax4jsf.bean.ListShuttleBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
<navigation-rule>
<from-view-id>/pages/ajaxInclude/step1.xhtml</from-view-id>
<navigation-case>
Added: trunk/test-applications/seleniumTest/src/main/webapp/pages/listShuttle/listShuttleTest.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/src/main/webapp/pages/listShuttle/listShuttleTest.xhtml (rev 0)
+++ trunk/test-applications/seleniumTest/src/main/webapp/pages/listShuttle/listShuttleTest.xhtml 2008-07-11 14:39:21 UTC (rev 9531)
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<ui:composition template="#{templateBean.template}">
+ <ui:define name="style">
+
+ </ui:define>
+ <ui:define name="component">
+ <a4j:outputPanel>
+ <h:messages></h:messages>
+ </a4j:outputPanel>
+ <h:form id="_form">
+ <rich:listShuttle id="ls" sourceValue="#{listShuttle.freeItems}"
+ targetValue="#{listShuttle.items}" var="items" listHeight="300"
+ listWidth="300" sourceCaptionLabel="Available Items"
+ targetCaptionLabel="Currently Active Items"
+ converter="listShuttleconverter">
+ <rich:column width="18">
+ <h:outputLink value="#">
+ <h:outputText value="#{items.numder}"></h:outputText>
+ </h:outputLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText value="#{items.name}"></h:outputText>
+ </rich:column>
+ </rich:listShuttle>
+ <a4j:commandLink id="reset" value="Reset" actionListener="#{listShuttle.reset}" reRender="ls"></a4j:commandLink><br/>
+ <a4j:commandLink id="submit" value="Submit" reRender="ls"></a4j:commandLink>
+ </h:form>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file
Added: trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/ListShuttleTest.java
===================================================================
--- trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/ListShuttleTest.java (rev 0)
+++ trunk/test-applications/seleniumTest/src/test/java/org/richfaces/testng/ListShuttleTest.java 2008-07-11 14:39:21 UTC (rev 9531)
@@ -0,0 +1,207 @@
+/**
+ *
+ */
+package org.richfaces.testng;
+
+import org.ajax4jsf.template.Template;
+import org.richfaces.SeleniumTestBase;
+import org.testng.Assert;
+import org.testng.annotations.Test;
+
+/**
+ * @author Andrey Markavstov
+ *
+ */
+public class ListShuttleTest extends SeleniumTestBase {
+
+ String parentId;
+ String availebleListId;
+ String targetListId;
+ String copyAllId;
+ String copyId;
+ String removeId;
+ String removeAllId;
+ String firstId;
+ String upId;
+ String downId;
+ String lastId ;
+ String submitId;
+ String resetId;
+
+
+ @Test(dataProvider = "templates")
+ public void testListShuttleComponent(Template template) {
+ _testListShuttleComponent(template);
+ }
+
+ private void init() {
+ parentId = getParentId() + "_form:";
+ availebleListId = parentId + "lstbody";
+ targetListId = parentId + "lstlTbody";
+ copyAllId = parentId + "lscopyAll";
+ copyId = parentId + "lscopy";
+ removeId = parentId + "lsremove";
+ removeAllId = parentId + "lsremoveAll";
+ firstId = parentId + "lsfirst";
+ upId = parentId + "lsup";
+ downId = parentId + "lsdown";
+ lastId = parentId + "lslast";
+ submitId = parentId + "submit";
+ resetId = parentId + "reset";
+
+ }
+
+
+ private void _testListShuttleComponent(Template template) {
+ renderPage(template);
+ init();
+ reset();
+
+ // Check count
+ _assertTableRowsCount(availebleListId, 5);
+ _assertTableRowsCount(targetListId, 0);
+
+ // Copy all and check count
+ clickById(copyAllId);
+ _assertTableRowsCount(availebleListId, 0);
+ _assertTableRowsCount(targetListId, 5);
+
+ // Remove all and check count
+ clickById(removeAllId);
+ _assertTableRowsCount(availebleListId, 5);
+ _assertTableRowsCount(targetListId, 0);
+
+ try {
+ // Copy 1st & 2nd item
+ _doItemAction(parentId + "ls:0", copyId, "Copy");
+ _doItemAction(parentId + "ls:1", copyId, "Copy");
+ _doItemAction(parentId + "ls:2", copyId, "Copy");
+
+ // Check count
+ _assertTableRowsCount(availebleListId, 2);
+ _assertTableRowsCount(targetListId, 3);
+ }catch (Exception e) {
+ Assert.fail("Copy does nto work. cause: " + e);
+ }
+
+ // Check posting to server
+ _checkDataPost2Server(2,3);
+
+ // Check ordering
+ _checkItemText("1Item1", targetListId, 0);
+ _checkItemText("2Item2", targetListId, 1);
+ _checkItemText("3Item3", targetListId, 2);
+
+ // Move the first to to the last
+ _doItemAction(parentId + "ls:t0", downId, "Down");
+ _checkItemText("2Item2", targetListId, 0);
+ _checkItemText("1Item1", targetListId, 1);
+ _checkItemText("3Item3", targetListId, 2);
+
+
+ _doItemAction(parentId + "ls:t0", lastId, "Last");
+ _checkItemText("2Item2", targetListId, 0);
+ _checkItemText("3Item3", targetListId, 1);
+ _checkItemText("1Item1", targetListId, 2);
+
+ _doItemAction(parentId + "ls:t2", firstId, "first");
+ _checkItemText("3Item3", targetListId, 0);
+ _checkItemText("2Item2", targetListId, 1);
+ _checkItemText("1Item1", targetListId, 2);
+
+ _doItemAction(parentId + "ls:t0", upId, "Up");
+ _checkItemText("3Item3", targetListId, 0);
+ _checkItemText("1Item1", targetListId, 1);
+ _checkItemText("2Item2", targetListId, 2);
+
+ _doItemAction(parentId + "ls:t1", removeId, "Remove");
+ _assertTableRowsCount(targetListId, 2);
+ _checkItemText("3Item3", targetListId, 0);
+ _checkItemText("1Item1", targetListId, 1);
+
+
+ }
+
+
+
+ private void reset() {
+ clickAjaxCommandAndWait(resetId);
+ }
+
+ private void _assertTableRowsCount(String tbId, int rows) {
+ writeStatus("Check items count for list id : " + tbId);
+ StringBuffer b = new StringBuffer("$('");
+ b.append(tbId);
+ b.append("').rows.length");
+ String l = runScript(b.toString());
+ int r;
+ try {
+ r = Integer.parseInt(l);
+ if (r != rows) {
+ writeStatus("List shuttle test failed. Incorrect list item count in table id: " + tbId, true);
+ Assert.fail("List shuttle test failed. Incorrect list item count in table id: " + tbId);
+ }
+ }catch (Exception e) {
+ writeStatus("List shuttle test failed. cause: " + e.getMessage(), true);
+ Assert.fail("List shuttle test failed. cause: " + e);
+ }
+ }
+
+ private void _doItemAction(String itemId, String actionId, String actionName) {
+ writeStatus(actionName + " the item id: " + itemId);
+ _selectItem(itemId);
+ clickById(actionId);
+ }
+
+ private void _checkDataPost2Server(int availableCount, int targetCount) {
+ writeStatus("Rerender form. List items should be changed.");
+ clickAjaxCommandAndWait(submitId);
+
+ try {
+ _assertTableRowsCount(availebleListId, availableCount);
+ _assertTableRowsCount(targetListId, targetCount);
+ } catch (Exception e) {
+ writeStatus("Data was post to server incorrectly. List data before rerendering does not match after", true);
+ Assert.fail("Data was post to server incorrectly. List data before rerendering does not match after. Cause: " + e);
+ }
+ }
+
+ private void _selectItem(String itemId) {
+ writeStatus("Select item id: " + itemId);
+ try {
+ clickById(itemId);
+ }catch (Exception e) {
+ writeStatus("Selection item id: " + itemId + " failed.");
+ Assert.fail("List shuttle test failed. No item was found. Item id: " + itemId);
+ }
+ }
+
+ private void _checkItemText(String text, String listId, int i) {
+ StringBuffer b = new StringBuffer("$('");
+ b.append(listId);
+ b.append("').rows[");
+ b.append(i);
+ b.append("].id");
+
+ String id = null;
+ try {
+ id = runScript(b.toString());
+ AssertTextEquals(id, text, "Invalid item's text");
+ }catch (Exception e) {
+ writeStatus("Invalid item text. Item id: " + id);
+ Assert.fail("List shuttle test failed. Item id: " + id);
+ }
+ }
+
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.richfaces.SeleniumTestBase#getTestUrl()
+ */
+ @Override
+ public String getTestUrl() {
+ return "pages/listShuttle/listShuttleTest.xhtml";
+ }
+
+}
16 years, 2 months
JBoss Rich Faces SVN: r9530 - trunk/test-applications/facelets/src/main/java/util/componentInfo.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-11 09:54:52 -0400 (Fri, 11 Jul 2008)
New Revision: 9530
Modified:
trunk/test-applications/facelets/src/main/java/util/componentInfo/ComponentInfo.java
Log:
ELContext check
Modified: trunk/test-applications/facelets/src/main/java/util/componentInfo/ComponentInfo.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/componentInfo/ComponentInfo.java 2008-07-11 13:51:33 UTC (rev 9529)
+++ trunk/test-applications/facelets/src/main/java/util/componentInfo/ComponentInfo.java 2008-07-11 13:54:52 UTC (rev 9530)
@@ -12,7 +12,11 @@
import java.util.Set;
import java.util.Map.Entry;
+import javax.el.ELContext;
+import javax.el.ValueExpression;
import javax.faces.component.UIComponent;
+import javax.faces.component.UIComponentBase;
+import javax.faces.context.FacesContext;
public class ComponentInfo {
private static volatile ComponentInfo INSTANCE;
@@ -95,26 +99,33 @@
if (component == null)
return;
this.component = component;
+
+ //if(ve.isLiteralText()) {ve.getExpressionString()} {ve.getValue(). }
+
componentAttribute.cleanAll();
String str = null;
Field[] fields = component.getClass().getDeclaredFields();
AccessibleObject.setAccessible(fields, true);
for (Field field : fields) {
if (!Modifier.isStatic(field.getModifiers())) {
- str = field.getName().substring(1);
+ str = field.getName().substring(1);
if (str.startsWith("on")) {
componentAttribute.putEvent(str,
"");
} else if (str.indexOf("tyle") != -1 || str.indexOf("lass") != -1) {
try {
- Object obj = field.get(component);
- componentAttribute.putStyle(str, obj == null ? "null" : obj.toString());
+ //Object obj = field.get(component);
+ UIComponentBase comp = (UIComponentBase) component;
+ ValueExpression ve = comp.getValueExpression(str);
+ if(ve.isLiteralText()){
+ componentAttribute.putStyle(str, ve == null ? "null" : ve.getExpressionString());
+ } else{
+ componentAttribute.putStyle(str, ve == null ? "null" : ve.getValue(FacesContext.getCurrentInstance().getELContext()).toString());
+ }
+
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
}
} else {
@@ -122,13 +133,20 @@
try {
Class cl = field.getType();
if(cl.isPrimitive() || cl.getName().equals("java.lang.String")){
- Object obj = field.get(component);
- componentAttribute.putAttribute(str, obj == null ? "null" : obj.toString());
+ UIComponentBase comp = (UIComponentBase) component;
+ ValueExpression ve = comp.getValueExpression(str);
+ if(ve != null){
+ if(ve.isLiteralText()){
+ componentAttribute.putStyle(str, ve == null ? "null" : ve.getExpressionString());
+ } else{
+ componentAttribute.putStyle(str, ve == null ? "null" : ve.getValue(FacesContext.getCurrentInstance().getELContext()).toString());
+ }
+ }
+// Object obj = field.get(component);
+// componentAttribute.putAttribute(str, obj == null ? "null" : obj.toString());
} else componentAttribute.putAttribute(str, "---");
} catch (IllegalArgumentException e) {
e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
}
}
}
16 years, 2 months
JBoss Rich Faces SVN: r9529 - Plan and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: tkuprevich
Date: 2008-07-11 09:51:33 -0400 (Fri, 11 Jul 2008)
New Revision: 9529
Added:
trunk/test-applications/qa/Test Plan/ComponentsAssignment.xls
Log:
Added: trunk/test-applications/qa/Test Plan/ComponentsAssignment.xls
===================================================================
(Binary files differ)
Property changes on: trunk/test-applications/qa/Test Plan/ComponentsAssignment.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 2 months
JBoss Rich Faces SVN: r9528 - trunk/docs/cdkguide/en/src/main/docbook/includes.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-07-11 09:34:19 -0400 (Fri, 11 Jul 2008)
New Revision: 9528
Modified:
trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml
Log:
http://jira.jboss.com/jira/browse/RF-3692
language is corrected
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml 2008-07-11 13:15:31 UTC (rev 9527)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml 2008-07-11 13:34:19 UTC (rev 9528)
@@ -10,7 +10,7 @@
</keywordset>
</sectioninfo>
<title>Creating a UI prototype</title>
- <para> It is a good idea to first create a prototype of the intended markup. You will find out
+ <para> It is a good idea to create at first a prototype of the intended markup. You will find out
which markup elements the component has to generate and also which renderer-specific
attributes are needed in order to parameterize the generated markup. </para>
<para> The <emphasis role="bold">
@@ -22,8 +22,7 @@
<input name="dateField" value="01 January 2008" />
<img class="overlay" src="inputDateOverlay.gif" />
</div>
-...]]>
- </programlisting>
+...]]> </programlisting>
<para> As it is shown in the listing above there are three HTML attributes - <emphasis>
<property>"title"</property>
</emphasis>, <emphasis>
@@ -47,7 +46,7 @@
</emphasis> component is considered in the following chapter.
</para>
<para>
- This is the result of your prototype which shows a simple page with an input field and an icon indicates that
+ This is the result of your prototype which shows a simple page with an input field and an icon indicating that
this is a date field:
</para>
<figure>
@@ -58,4 +57,4 @@
</imageobject>
</mediaobject>
</figure>
-</section>
+</section>
\ No newline at end of file
16 years, 2 months
JBoss Rich Faces SVN: r9527 - in trunk/docs/cdkguide/en/src/main: resources/images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-07-11 09:15:31 -0400 (Fri, 11 Jul 2008)
New Revision: 9527
Added:
trunk/docs/cdkguide/en/src/main/resources/images/protoui.png
Modified:
trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml
Log:
http://jira.jboss.com/jira/browse/RF-3692 - 'Creating a UI prototype' section was added
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml 2008-07-11 11:42:27 UTC (rev 9526)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/protoui.xml 2008-07-11 13:15:31 UTC (rev 9527)
@@ -6,12 +6,56 @@
<keyword>proptotype</keyword>
<keyword>UI</keyword>
<keyword>CDK</keyword>
- <keyword>Guide</keyword>
+ <keyword>Guide</keyword>
</keywordset>
</sectioninfo>
-<title>Creating a UI prototype</title>
-<para>
-UI prototype
-</para>
-</section>
-
+ <title>Creating a UI prototype</title>
+ <para> It is a good idea to first create a prototype of the intended markup. You will find out
+ which markup elements the component has to generate and also which renderer-specific
+ attributes are needed in order to parameterize the generated markup. </para>
+ <para> The <emphasis role="bold">
+ <property><inputDate></property>
+ </emphasis> component consists of an HTML form <code><![CDATA[<input>]]></code> element, an
+ <code><![CDATA[<img>]]></code> element, and <code><![CDATA[<div>]]></code> element: </para>
+ <programlisting role="XML"><![CDATA[...
+<div title="Date Field Component">
+ <input name="dateField" value="01 January 2008" />
+ <img class="overlay" src="inputDateOverlay.gif" />
+</div>
+...]]>
+ </programlisting>
+ <para> As it is shown in the listing above there are three HTML attributes - <emphasis>
+ <property>"title"</property>
+ </emphasis>, <emphasis>
+ <property>"name"</property>
+ </emphasis>, and <emphasis>
+ <property>" value"</property>
+ </emphasis> - are needed to be parameterize the generated markup. </para>
+ <para>
+ You map the HTML attributes to the corresponding <code>UIComponent</code> attributes:
+ </para>
+ <programlisting role="XML"><![CDATA[...
+<div title="[title]">
+ <input name="[clientID]" value="[converted value]" />
+ <img class="overlay" src="inputDateOverlay.gif" />
+</div>
+...]]>
+ </programlisting>
+ <para>
+ All information about styles applied to the <emphasis role="bold">
+ <property><inputDate></property>
+ </emphasis> component is considered in the following chapter.
+ </para>
+ <para>
+ This is the result of your prototype which shows a simple page with an input field and an icon indicates that
+ this is a date field:
+ </para>
+ <figure>
+ <title>The date field component prototype implemented in HTML with an icon</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/protoui.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+</section>
Added: trunk/docs/cdkguide/en/src/main/resources/images/protoui.png
===================================================================
(Binary files differ)
Property changes on: trunk/docs/cdkguide/en/src/main/resources/images/protoui.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 2 months
JBoss Rich Faces SVN: r9526 - trunk/framework/impl/src/main/javascript/prototype.
by richfaces-svn-commits@lists.jboss.org
Author: pyaschenko
Date: 2008-07-11 07:42:27 -0400 (Fri, 11 Jul 2008)
New Revision: 9526
Modified:
trunk/framework/impl/src/main/javascript/prototype/prototype1.6.0.js
Log:
http://jira.jboss.com/jira/browse/RF-3879
Modified: trunk/framework/impl/src/main/javascript/prototype/prototype1.6.0.js
===================================================================
--- trunk/framework/impl/src/main/javascript/prototype/prototype1.6.0.js 2008-07-11 11:22:18 UTC (rev 9525)
+++ trunk/framework/impl/src/main/javascript/prototype/prototype1.6.0.js 2008-07-11 11:42:27 UTC (rev 9526)
@@ -3997,6 +3997,10 @@
}
} else {
+
+ // added by Pavel Yaschenko // http://jira.jboss.com/jira/browse/RF-3879
+ // for 1.6.0.2 //if (document.loaded) return;
+ if (document.readyState != "complete") { // added by Pavel Yaschenko
document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");
$("__onDOMContentLoaded").onreadystatechange = function() {
if (this.readyState == "complete") {
@@ -4004,6 +4008,7 @@
fireContentLoadedEvent();
}
};
+ } // added by Pavel Yaschenko
}
})();
/*------------------------------- DEPRECATED -------------------------------*/
16 years, 2 months
JBoss Rich Faces SVN: r9525 - trunk/docs/cdkguide/en/src/main/docbook/includes.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2008-07-11 07:22:18 -0400 (Fri, 11 Jul 2008)
New Revision: 9525
Modified:
trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml
trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml
Log:
http://jira.jboss.com/jira/browse/RF-3692
xml syntax is fixed for Doc for CDK + language is corrected
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml 2008-07-11 11:18:34 UTC (rev 9524)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/ccreate.xml 2008-07-11 11:22:18 UTC (rev 9525)
@@ -17,8 +17,7 @@
following command: </para>
<programlisting role="XML"><![CDATA[...
mvn cdk:create -Dname=inputDate
-...]]>
-</programlisting>
+...]]></programlisting>
<para> As a result three artifacts will be created: </para>
<itemizedlist>
<listitem>
@@ -35,8 +34,7 @@
directory and launch the following command:</para>
<programlisting role="XML"><![CDATA[...
mvn install
-...]]>
-</programlisting>
+...]]></programlisting>
<para> This command generates and compiles the library and then creates a result JAR file. A
directory named <property>target</property> will be created along with a
<property>src</property> directory. If you get a file named
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-07-11 11:18:34 UTC (rev 9524)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/pcreate.xml 2008-07-11 11:22:18 UTC (rev 9525)
@@ -12,7 +12,7 @@
<title>Creating project for component</title>
<para>
At first we need to create a project for the component itself. In the library directory
- <property>Sandbox</property> you just created launch the following command (all in one line):
+ <property>Sandbox</property> you just created, launch the following command (all in one line):
</para>
<programlisting role="XML"><![CDATA[...
mvn archetype:create -DarchetypeGroupId=org.richfaces.cdk -DarchetypeArtifactId=maven-archetype-jsf-component -DarchetypeVersion=3.2.1.GA -DartifactId=inputDate
@@ -78,10 +78,8 @@
</tbody>
</tgroup>
</table>
- <para>
- Now you should add <property>maven-compiler-plugin</property>
- to the <property>plugins</property> section in the <property>inputDate/pom.xml</property> file:
- </para>
+ <para> Now you should add <property>maven-compiler-plugin</property>
+ to the <property>plugins</property> section in the <property>inputDate/pom.xml</property> file: </para>
<programlisting role="XML"><![CDATA[...
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
@@ -93,9 +91,7 @@
</plugin>
...]]>
</programlisting>
- <para>
- Finally your <property>inputDate/pom.xml</property> should look like this one:
- </para>
+ <para> Finally your <property>inputDate/pom.xml</property> should look like this one: </para>
<programlisting role="XML"><![CDATA[...
<?xml version="1.0"?>
<project>
Modified: trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml
===================================================================
--- trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml 2008-07-11 11:18:34 UTC (rev 9524)
+++ trunk/docs/cdkguide/en/src/main/docbook/includes/template.xml 2008-07-11 11:22:18 UTC (rev 9525)
@@ -11,9 +11,9 @@
</sectioninfo>
<title>Templating</title>
<para>
-How to write your renderer with the help of template.
+How to write your renderer with the help of a template.
</para>
<para>
-How to create base class
+How to create a base class
</para>
</section>
\ No newline at end of file
16 years, 2 months
JBoss Rich Faces SVN: r9524 - in trunk/samples/listShuttleDemo/src/main: webapp and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-07-11 07:18:34 -0400 (Fri, 11 Jul 2008)
New Revision: 9524
Added:
trunk/samples/listShuttleDemo/src/main/java/org/richfaces/Capital.java
trunk/samples/listShuttleDemo/src/main/java/org/richfaces/CapitalsBean.java
trunk/samples/listShuttleDemo/src/main/java/org/richfaces/Converter.java
trunk/samples/listShuttleDemo/src/main/java/org/richfaces/TestBean.java
trunk/samples/listShuttleDemo/src/main/java/org/richfaces/capitals-rules.xml
trunk/samples/listShuttleDemo/src/main/java/org/richfaces/capitals.xml
trunk/samples/listShuttleDemo/src/main/java/org/richfaces/digester-rules.dtd
trunk/samples/listShuttleDemo/src/main/webapp/images/
trunk/samples/listShuttleDemo/src/main/webapp/images/alabama.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/alaska.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/arizona.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/arkansas.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/california.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/colorado.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/connecticut.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/delaware.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/florida.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/georgia.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/hawaii.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/idaho.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/illinois.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/indiana.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/iowa.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/kansas.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/kentucky.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/louisiana.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/maine.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/maryland.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/massachusetts.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/michigan.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/minnesota.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/mississippi.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/missouri.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/montana.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/nebraska.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/nevada.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/newhampshire.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/newjersey.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/newmexico.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/newyork.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/northcarolina.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/northdakota.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/ohio.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/oklahoma.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/oregon.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/pennsylvania.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/rhodeisland.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/southcarolina.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/southdakota.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/tennessee.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/texas.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/utah.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/vermont.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/virginia.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/washington.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/westvirginia.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/wisconsin.gif
trunk/samples/listShuttleDemo/src/main/webapp/images/wyoming.gif
trunk/samples/listShuttleDemo/src/main/webapp/pages/RF3830.xhtml
Modified:
trunk/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml
trunk/samples/listShuttleDemo/src/main/webapp/WEB-INF/web.xml
Log:
demo for the RF-3830
Added: trunk/samples/listShuttleDemo/src/main/java/org/richfaces/Capital.java
===================================================================
--- trunk/samples/listShuttleDemo/src/main/java/org/richfaces/Capital.java (rev 0)
+++ trunk/samples/listShuttleDemo/src/main/java/org/richfaces/Capital.java 2008-07-11 11:18:34 UTC (rev 9524)
@@ -0,0 +1,51 @@
+package org.richfaces;
+
+import java.io.Serializable;
+
+public class Capital implements Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -1042449580199397136L;
+ private boolean checked=false;
+ private String name;
+ private String state;
+ private String timeZone;
+
+ private final static String FILE_EXT = ".gif";
+ public Capital() {
+ }
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public String getState() {
+ return state;
+ }
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ private String stateNameToFileName() {
+ return state.replaceAll("\\s", "").toLowerCase();
+ }
+
+ public String getStateFlag() {
+ return "/images/" + stateNameToFileName() + FILE_EXT;
+ }
+
+ public String getTimeZone() {
+ return timeZone;
+ }
+ public void setTimeZone(String timeZone) {
+ this.timeZone = timeZone;
+ }
+ public boolean isChecked() {
+ return checked;
+ }
+ public void setChecked(boolean checked) {
+ this.checked = checked;
+ }
+}
Added: trunk/samples/listShuttleDemo/src/main/java/org/richfaces/CapitalsBean.java
===================================================================
--- trunk/samples/listShuttleDemo/src/main/java/org/richfaces/CapitalsBean.java (rev 0)
+++ trunk/samples/listShuttleDemo/src/main/java/org/richfaces/CapitalsBean.java 2008-07-11 11:18:34 UTC (rev 9524)
@@ -0,0 +1,84 @@
+package org.richfaces;
+
+
+import java.io.IOException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.faces.FacesException;
+import javax.faces.model.SelectItem;
+
+import org.apache.commons.digester.Digester;
+import org.apache.commons.digester.xmlrules.DigesterLoader;
+import org.xml.sax.SAXException;
+
+public class CapitalsBean {
+ private ArrayList<Capital> capitals = new ArrayList<Capital>();
+ private ArrayList<String> capitalsNames = new ArrayList<String>();
+ private List<SelectItem> capitalsOptions = new ArrayList<SelectItem>();
+ private String capital = "";
+
+ public List<Capital> autocomplete(Object suggest) {
+ String pref = (String)suggest;
+ ArrayList<Capital> result = new ArrayList<Capital>();
+
+ Iterator<Capital> iterator = getCapitals().iterator();
+ while (iterator.hasNext()) {
+ Capital elem = ((Capital) iterator.next());
+ if ((elem.getName() != null && elem.getName().toLowerCase().indexOf(pref.toLowerCase()) == 0) || "".equals(pref))
+ {
+ result.add(elem);
+ }
+ }
+ return result;
+ }
+
+ public CapitalsBean() {
+ URL rulesUrl = getClass().getResource("capitals-rules.xml");
+ Digester digester = DigesterLoader.createDigester(rulesUrl);
+ digester.push(this);
+ try {
+ digester.parse(getClass().getResourceAsStream("capitals.xml"));
+ } catch (IOException e) {
+ throw new FacesException(e);
+ } catch (SAXException e) {
+ throw new FacesException(e);
+ }
+ capitalsNames.clear();
+ for (Capital cap : capitals) {
+ capitalsNames.add(cap.getName());
+ }
+ capitalsOptions.clear();
+ for (Capital cap : capitals) {
+ capitalsOptions.add(new SelectItem(cap.getName(),cap.getState()));
+ }
+ }
+
+ public String addCapital(Capital capital) {
+ capitals.add(capital);
+ return null;
+ }
+
+ public ArrayList<Capital> getCapitals() {
+ return capitals;
+ }
+
+ public String getCapital() {
+ return capital;
+ }
+
+ public void setCapital(String capital) {
+ this.capital = capital;
+ }
+
+ public List<SelectItem> getCapitalsOptions() {
+ return capitalsOptions;
+ }
+
+ public ArrayList<String> getCapitalsNames() {
+ return capitalsNames;
+ }
+
+}
Added: trunk/samples/listShuttleDemo/src/main/java/org/richfaces/Converter.java
===================================================================
--- trunk/samples/listShuttleDemo/src/main/java/org/richfaces/Converter.java (rev 0)
+++ trunk/samples/listShuttleDemo/src/main/java/org/richfaces/Converter.java 2008-07-11 11:18:34 UTC (rev 9524)
@@ -0,0 +1,17 @@
+package org.richfaces;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+
+public class Converter implements javax.faces.convert.Converter{
+
+ public Object getAsObject(FacesContext context, UIComponent component, String value) {
+ return null;
+
+ }
+
+ public String getAsString(FacesContext context, UIComponent component, Object value) {
+ return null;
+ }
+
+}
\ No newline at end of file
Added: trunk/samples/listShuttleDemo/src/main/java/org/richfaces/TestBean.java
===================================================================
--- trunk/samples/listShuttleDemo/src/main/java/org/richfaces/TestBean.java (rev 0)
+++ trunk/samples/listShuttleDemo/src/main/java/org/richfaces/TestBean.java 2008-07-11 11:18:34 UTC (rev 9524)
@@ -0,0 +1,24 @@
+package org.richfaces;
+
+public class TestBean {
+
+ boolean rendered = false;
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+
+ public void switchRendered() {
+ if(rendered) {
+ rendered = false;
+ } else {
+ rendered = true;
+ }
+ }
+
+}
Added: trunk/samples/listShuttleDemo/src/main/java/org/richfaces/capitals-rules.xml
===================================================================
--- trunk/samples/listShuttleDemo/src/main/java/org/richfaces/capitals-rules.xml (rev 0)
+++ trunk/samples/listShuttleDemo/src/main/java/org/richfaces/capitals-rules.xml 2008-07-11 11:18:34 UTC (rev 9524)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ <!DOCTYPE digester-rules SYSTEM "digester-rules.dtd">
+-->
+
+<digester-rules>
+ <pattern value="*/capital">
+ <object-create-rule classname="org.richfaces.Capital" />
+ <bean-property-setter-rule pattern="name" propertyname="name"/>
+ <bean-property-setter-rule pattern="state" propertyname="state"/>
+ <bean-property-setter-rule pattern="timeZone" propertyname="timeZone"/>
+ <set-next-rule methodname="addCapital"/>
+ </pattern>
+</digester-rules>
\ No newline at end of file
Added: trunk/samples/listShuttleDemo/src/main/java/org/richfaces/capitals.xml
===================================================================
--- trunk/samples/listShuttleDemo/src/main/java/org/richfaces/capitals.xml (rev 0)
+++ trunk/samples/listShuttleDemo/src/main/java/org/richfaces/capitals.xml 2008-07-11 11:18:34 UTC (rev 9524)
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<capitals>
+ <capital>
+ <state>Alabama</state>
+ <name>Montgomery</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Alaska</state>
+ <name>Juneau</name>
+ <timeZone>GMT-9</timeZone>
+ </capital>
+ <capital>
+ <state>Arizona</state>
+ <name>Phoenix</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Arkansas</state>
+ <name>Little Rock</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>California</state>
+ <name>Sacramento</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Colorado</state>
+ <name>Denver</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Connecticut</state>
+ <name>Hartford</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Delaware</state>
+ <name>Dover</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Florida</state>
+ <name>Tallahassee</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Georgia</state>
+ <name>Atlanta</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Hawaii</state>
+ <name>Honolulu</name>
+ <timeZone>GMT-10</timeZone>
+ </capital>
+ <capital>
+ <state>Idaho</state>
+ <name>Boise</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Illinois</state>
+ <name>Springfield</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Indiana</state>
+ <name>Indianapolis</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Iowa</state>
+ <name>Des Moines</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Kansas</state>
+ <name>Topeka</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Kentucky</state>
+ <name>Frankfort</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Louisiana</state>
+ <name>Baton Rouge</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Maine</state>
+ <name>Augusta</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Maryland</state>
+ <name>Annapolis</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Massachusetts</state>
+ <name>Boston</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Michigan</state>
+ <name>Lansing</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Minnesota</state>
+ <name>St. Paul</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Mississippi</state>
+ <name>Jackson</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Missouri</state>
+ <name>Jefferson City</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Montana</state>
+ <name>Helena</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Nebraska</state>
+ <name>Lincoln</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Nevada</state>
+ <name>Carson City</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>New Hampshire</state>
+ <name>Concord</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>New Jersey</state>
+ <name>Trenton</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>New Mexico</state>
+ <name>Santa Fe</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>New York</state>
+ <name>Albany</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>North Carolina</state>
+ <name>Raleigh</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>North Dakota</state>
+ <name>Bismarck</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Ohio</state>
+ <name>Columbus</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Oklahoma</state>
+ <name>Oklahoma City</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Oregon</state>
+ <name>Salem</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>Pennsylvania</state>
+ <name>Harrisburg</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Rhode Island</state>
+ <name>Providence</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>South Carolina</state>
+ <name>Columbia</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>South Dakota</state>
+ <name>Pierre</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Tennessee</state>
+ <name>Nashville</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Texas</state>
+ <name>Austin</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Utah</state>
+ <name>Salt Lake City</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+ <capital>
+ <state>Vermont</state>
+ <name>Montpelier</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Virginia</state>
+ <name>Richmond</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Washington</state>
+ <name>Olympia</name>
+ <timeZone>GMT-8</timeZone>
+ </capital>
+ <capital>
+ <state>West Virginia</state>
+ <name>Charleston</name>
+ <timeZone>GMT-5</timeZone>
+ </capital>
+ <capital>
+ <state>Wisconsin</state>
+ <name>Madison</name>
+ <timeZone>GMT-6</timeZone>
+ </capital>
+ <capital>
+ <state>Wyoming</state>
+ <name>Cheyenne</name>
+ <timeZone>GMT-7</timeZone>
+ </capital>
+</capitals>
\ No newline at end of file
Added: trunk/samples/listShuttleDemo/src/main/java/org/richfaces/digester-rules.dtd
===================================================================
--- trunk/samples/listShuttleDemo/src/main/java/org/richfaces/digester-rules.dtd (rev 0)
+++ trunk/samples/listShuttleDemo/src/main/java/org/richfaces/digester-rules.dtd 2008-07-11 11:18:34 UTC (rev 9524)
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ "Digester" component of the Jakarta Commons Subproject
+ DTD for the definition of Digester rules in XML.
+ $Id: digester-rules.dtd,v 1.8 2003/03/27 18:54:45 rdonkin Exp $
+-->
+
+<!-- This document type defines an XML format for defining Digester rules.
+ Digester is a framework for pattern-matching-based parsing of XML into
+ Java objects. See http://jakarta.apache.org/commons/digester.html. -->
+
+<!ENTITY % rule-elements "bean-property-setter-rule | call-method-rule | call-param-rule |
+ factory-create-rule | object-create-rule |
+ set-properties-rule | set-property-rule | set-top-rule |
+ set-next-rule" >
+
+<!-- digester-rules is the root element. -->
+<!ELEMENT digester-rules (pattern | include | bean-property-setter-rule | call-method-rule | call-param-rule | factory-create-rule | object-create-rule | set-properties-rule | set-property-rule | set-top-rule | set-next-rule )*>
+
+
+<!-- <pattern> defines a matching pattern, or part of a matching pattern. Any
+ rule nested in a pattern element prepends its parent's to its pattern.
+ Patterns may be recursively nested.
+ Example:
+ <pattern value="foo">
+ <pattern value="bar">
+ <object-create-rule pattern="baz" classname="Fubar" />
+ </pattern>
+ </pattern>
+
+ The above sample fragment defines an ObjectCreateRule associated
+ with the pattern "foo/bar/baz".
+
+ Note that the use of pattern elements is optional; an alternative is for
+ each rule element to contain a 'pattern' attribute. -->
+<!ELEMENT pattern (pattern | include | bean-property-setter-rule | call-method-rule | call-param-rule |
+ factory-create-rule | object-create-rule |
+ set-properties-rule | set-property-rule | set-top-rule |
+ set-next-rule )*>
+<!ATTLIST pattern
+ value CDATA #REQUIRED>
+
+
+<!--
+ <include> allows one set of digester rules to be included inside
+ another. The 'path' attribute contains the URI of the document to
+ include. Inclusion behaves as if the included rules document is
+ 'macro-expanded' within the outer document.
+ Programmatically initialized rules can be included as well, via the
+ 'class' attribute. The 'class' attribute should contain the name
+ of a class that implements
+ org.apache.commons.digester.xmlrules.DigesterRulesSource.
+-->
+<!ELEMENT include EMPTY>
+<!ATTLIST include
+ path CDATA #IMPLIED
+ class CDATA #IMPLIED>
+
+
+<!-- Each 'rule' element below corresponds to a concrete subclass
+ of org.apache.framework.digester.Rule.
+ Each 'rule' element has an optional 'pattern' attribute, which
+ defines the pattern for that rule instance. If the rule element
+ is nested inside one or more <pattern> elements, those patterns
+ will be prepended to the pattern specified in the rule's 'pattern'
+ attribute. -->
+
+<!-- Bean Property Setter Rule -->
+<!ELEMENT bean-property-setter-rule EMPTY>
+<!ATTLIST bean-property-setter-rule
+ pattern CDATA #IMPLIED
+ propertyname CDATA #IMPLIED>
+
+<!-- CallMethodRule -->
+<!ELEMENT call-method-rule EMPTY>
+<!ATTLIST call-method-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramcount CDATA #IMPLIED
+ paramtypes CDATA #IMPLIED>
+
+<!--
+ CallParamRule
+ attrname - set param from attribute value (cannot be combined with from-stack)
+ from-stack - set param from stack (cannot be combined with attrname)
+ -->
+<!ELEMENT call-param-rule EMPTY>
+<!ATTLIST call-param-rule
+ pattern CDATA #IMPLIED
+ paramnumber CDATA #REQUIRED
+ attrname CDATA #IMPLIED
+ from-stack CDATA #IMPLIED>
+
+<!--
+ FactoryCreateRule
+
+ ignore-exceptions - if this attribute is (ignore case) 'true' then any exceptions
+ thrown by the object create rule will be ignore.
+ This will allow processing to continue.
+ -->
+<!ELEMENT factory-create-rule EMPTY>
+<!ATTLIST factory-create-rule
+ pattern CDATA #IMPLIED
+ classname CDATA #REQUIRED
+ attrname CDATA #IMPLIED
+ ignore-exceptions CDATA #IMPLIED>
+
+<!-- ObjectCreateRule -->
+<!ELEMENT object-create-rule EMPTY>
+<!ATTLIST object-create-rule
+ pattern CDATA #IMPLIED
+ classname CDATA #REQUIRED
+ attrname CDATA #IMPLIED>
+
+<!-- SetPropertiesRule -->
+<!ELEMENT set-properties-rule (alias)*>
+<!ATTLIST factory-create-rule
+ pattern CDATA #IMPLIED>
+
+<!-- An alias is a custom attribute->property name mapping -->
+<!ELEMENT alias EMPTY>
+<!ATTLIST alias
+ attr-name CDATA #REQUIRED
+ prop-name CDATA #IMPLIED>
+
+<!-- SetPropertyRule -->
+<!ELEMENT set-property-rule EMPTY>
+<!ATTLIST set-property-rule
+ pattern CDATA #IMPLIED
+ name CDATA #IMPLIED
+ value CDATA #IMPLIED>
+
+<!-- SetTopRule -->
+<!ELEMENT set-top-rule EMPTY>
+<!ATTLIST set-top-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramtype CDATA #IMPLIED>
+
+<!-- SetNextRule -->
+<!ELEMENT set-next-rule EMPTY>
+<!ATTLIST set-next-rule
+ pattern CDATA #IMPLIED
+ methodname CDATA #REQUIRED
+ paramtype CDATA #IMPLIED>
Modified: trunk/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml 2008-07-11 11:15:16 UTC (rev 9523)
+++ trunk/samples/listShuttleDemo/src/main/webapp/WEB-INF/faces-config.xml 2008-07-11 11:18:34 UTC (rev 9524)
@@ -19,8 +19,20 @@
<managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
-
+
<managed-bean>
+ <managed-bean-name>capitalsBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.CapitalsBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
+ <managed-bean-name>testBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.TestBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+
+ <managed-bean>
<managed-bean-name>converter</managed-bean-name>
<managed-bean-class>org.richfaces.ListShuttleOptionItemConverter</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
Modified: trunk/samples/listShuttleDemo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/listShuttleDemo/src/main/webapp/WEB-INF/web.xml 2008-07-11 11:15:16 UTC (rev 9523)
+++ trunk/samples/listShuttleDemo/src/main/webapp/WEB-INF/web.xml 2008-07-11 11:18:34 UTC (rev 9524)
@@ -3,6 +3,14 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Archetype Created Web Application</display-name>
<context-param>
+ <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
+ <param-value>com.sun.facelets.FaceletViewHandler</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/alabama.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/alabama.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/alaska.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/alaska.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/arizona.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/arizona.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/arkansas.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/arkansas.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/california.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/california.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/colorado.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/colorado.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/connecticut.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/connecticut.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/delaware.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/delaware.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/florida.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/florida.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/georgia.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/georgia.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/hawaii.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/hawaii.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/idaho.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/idaho.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/illinois.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/illinois.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/indiana.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/indiana.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/iowa.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/iowa.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/kansas.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/kansas.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/kentucky.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/kentucky.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/louisiana.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/louisiana.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/maine.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/maine.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/maryland.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/maryland.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/massachusetts.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/massachusetts.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/michigan.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/michigan.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/minnesota.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/minnesota.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/mississippi.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/mississippi.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/missouri.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/missouri.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/montana.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/montana.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/nebraska.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/nebraska.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/nevada.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/nevada.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/newhampshire.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/newhampshire.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/newjersey.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/newjersey.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/newmexico.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/newmexico.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/newyork.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/newyork.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/northcarolina.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/northcarolina.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/northdakota.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/northdakota.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/ohio.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/ohio.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/oklahoma.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/oklahoma.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/oregon.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/oregon.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/pennsylvania.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/pennsylvania.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/rhodeisland.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/rhodeisland.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/southcarolina.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/southcarolina.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/southdakota.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/southdakota.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/tennessee.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/tennessee.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/texas.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/texas.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/utah.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/utah.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/vermont.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/vermont.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/virginia.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/virginia.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/washington.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/washington.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/westvirginia.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/westvirginia.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/wisconsin.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/wisconsin.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/images/wyoming.gif
===================================================================
(Binary files differ)
Property changes on: trunk/samples/listShuttleDemo/src/main/webapp/images/wyoming.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/samples/listShuttleDemo/src/main/webapp/pages/RF3830.xhtml
===================================================================
--- trunk/samples/listShuttleDemo/src/main/webapp/pages/RF3830.xhtml (rev 0)
+++ trunk/samples/listShuttleDemo/src/main/webapp/pages/RF3830.xhtml 2008-07-11 11:18:34 UTC (rev 9524)
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:ls="http://labs.jboss.com/jbossrichfaces/ui/listShuttle"
+ xmlns:c="http://labs.jboss.com/jbossrichfaces/ui/dataTable">
+
+ <body>
+ <f:view>
+ <h:form>
+ <h:panelGroup id="group">
+ <ls:listShuttle id="listShuttle" var="cap" sourceValue="#{capitalsBean.capitals}"
+ sourceListWidth="300px" targetListWidth="300px" rendered="#{testBean.rendered}">
+ <c:column>
+ <f:facet name="header">
+ <h:outputText value="State flag"/>
+ </f:facet>
+ <h:graphicImage value="#{cap.stateFlag}"/>
+ </c:column>
+ <c:column>
+ <f:facet name="header">
+ <h:outputText value="State name"/>
+ </f:facet>
+ <h:outputText value="#{cap.name}"/>
+ </c:column>
+ <c:column>
+ <f:facet name="header">
+ <h:outputText value="State capital"/>
+ </f:facet>
+ <h:outputText value="#{cap.state}"/>
+ </c:column>
+ </ls:listShuttle>
+ </h:panelGroup>
+ <div id="test">
+ </div>
+ <a4j:commandButton value="switch" action="#{testBean.switchRendered}" reRender="group" ajaxSingle="true"></a4j:commandButton>
+ </h:form>
+ </f:view>
+ </body>
+</html>
\ No newline at end of file
16 years, 2 months