JBoss Rich Faces SVN: r4414 - in branches/3.1.x/test-applications/jsp/src/main: java/contextMenu and 16 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-12-03 05:09:03 -0500 (Mon, 03 Dec 2007)
New Revision: 4414
Added:
branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/
branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java
branches/3.1.x/test-applications/jsp/src/main/java/dataDefinitionList/
branches/3.1.x/test-applications/jsp/src/main/java/dataDefinitionList/DataDefinitionList.java
branches/3.1.x/test-applications/jsp/src/main/java/dataOrderedList/
branches/3.1.x/test-applications/jsp/src/main/java/dataOrderedList/DataOrderedList.java
branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/
branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java
branches/3.1.x/test-applications/jsp/src/main/java/util/data/
branches/3.1.x/test-applications/jsp/src/main/java/util/data/Data.java
branches/3.1.x/test-applications/jsp/src/main/resources/message_en.properties
branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/
branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/
branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/
branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/
branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml
branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml
branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml
branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
Removed:
branches/3.1.x/test-applications/jsp/src/main/java/skins/
branches/3.1.x/test-applications/jsp/src/main/java/util/resources.properties
Modified:
branches/3.1.x/test-applications/jsp/src/main/java/rich/RichBean.java
branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
branches/3.1.x/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
Log:
add contextMenu, dataOrderedList, dataDefinitionList, listShuttle, OrderingList, contextMenu
Added: branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/java/contextMenu/ContextMenu.java 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,140 @@
+package contextMenu;
+
+import java.util.Map;
+
+import javax.faces.context.FacesContext;
+import javax.faces.event.ActionEvent;
+
+public class ContextMenu {
+ private String info;
+ private String inputText;
+ private String submitMode;
+ private String event;
+ private String popupWidth;
+ private String selectOneMenu;
+ private int hideDelay;
+ private int showDelay;
+ private boolean disableDefaultMenu;
+ private boolean rendered;
+ private boolean disamble;
+ private boolean attached;
+
+ public boolean isAttached() {
+ return attached;
+ }
+
+ public void setAttached(boolean attached) {
+ this.attached = attached;
+ }
+
+ public String getInfo() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map params = facesContext.getExternalContext().getRequestParameterMap();
+ String cmdParam = (String) params.get("cmdParam");
+ if (cmdParam != null) info = cmdParam;
+ return info;
+ }
+
+ public void actionListener(ActionEvent event) {
+ setInfo("actionListener");
+ }
+
+ public void setInfo(String info) {
+ System.out.println("Info: " + info);
+ this.info = info;
+ }
+
+ public ContextMenu() {
+ selectOneMenu = "item1";
+ inputText = "inputText";
+ submitMode = "none";
+ event = "oncontextmenu";
+ popupWidth = "300px";
+ hideDelay = 3;
+ showDelay = 3;
+ disableDefaultMenu = true;
+ rendered = true;
+ disamble = false;
+ attached = true;
+ }
+
+ public boolean isDisamble() {
+ return disamble;
+ }
+
+ public void setDisamble(boolean disamble) {
+ this.disamble = disamble;
+ }
+
+ public String getEvent() {
+ return event;
+ }
+
+ public void setEvent(String event) {
+ this.event = event;
+ }
+
+ public String getSubmitMode() {
+ return submitMode;
+ }
+
+ public void setSubmitMode(String submitMode) {
+ this.submitMode = submitMode;
+ }
+
+ public boolean isDisableDefaultMenu() {
+ return disableDefaultMenu;
+ }
+
+ public void setDisableDefaultMenu(boolean disableDefaultMenu) {
+ this.disableDefaultMenu = disableDefaultMenu;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getPopupWidth() {
+ return popupWidth;
+ }
+
+ public void setPopupWidth(String popupWidth) {
+ this.popupWidth = popupWidth;
+ }
+
+ public int getHideDelay() {
+ return hideDelay;
+ }
+
+ public void setHideDelay(int hideDelay) {
+ this.hideDelay = hideDelay;
+ }
+
+ public int getShowDelay() {
+ return showDelay;
+ }
+
+ public void setShowDelay(int showDelay) {
+ this.showDelay = showDelay;
+ }
+
+ public String getInputText() {
+ return inputText;
+ }
+
+ public void setInputText(String inputText) {
+ this.inputText = inputText;
+ }
+
+ public String getSelectOneMenu() {
+ return selectOneMenu;
+ }
+
+ public void setSelectOneMenu(String selectOneMenu) {
+ this.selectOneMenu = selectOneMenu;
+ }
+}
Added: branches/3.1.x/test-applications/jsp/src/main/java/dataDefinitionList/DataDefinitionList.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/dataDefinitionList/DataDefinitionList.java (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/java/dataDefinitionList/DataDefinitionList.java 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,85 @@
+package dataDefinitionList;
+
+import java.util.ArrayList;
+
+import util.data.Data;
+
+public class DataDefinitionList
+{
+ private ArrayList<Data> arr;
+ private int first;
+ private int rows;
+ private boolean rendered;
+ private String title;
+ private String dir;
+ private int mSize;
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public int getMSize() {
+ return mSize;
+ }
+
+ public void setMSize(int size) {
+ mSize = size;
+ }
+
+ public void setArr(ArrayList<Data> arr) {
+ this.arr = arr;
+ }
+
+ public DataDefinitionList(){
+ arr = new ArrayList<Data>();
+ dir ="LTR";
+ rows = 20;
+ rows = 0;
+ first = 0;
+ rendered = true;
+ title = "title";
+ for(int i = 1; i < Data.cityAfrica.length; i++)
+ arr.add(new Data(Data.cityAfrica[i]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public ArrayList<Data> getArr() {
+ return arr;
+ }
+
+}
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/java/dataOrderedList/DataOrderedList.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/dataOrderedList/DataOrderedList.java (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/java/dataOrderedList/DataOrderedList.java 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,95 @@
+package dataOrderedList;
+
+import java.util.ArrayList;
+
+import util.data.Data;
+
+public class DataOrderedList
+{
+ private ArrayList<Data> arr;
+ private int first;
+ private int rows;
+ private boolean rendered;
+ private String title;
+ private String type;
+ private String dir;
+ private int mSize;
+
+ public String getDir() {
+ return dir;
+ }
+
+ public void setDir(String dir) {
+ this.dir = dir;
+ }
+
+ public int getMSize() {
+ return mSize;
+ }
+
+ public void setMSize(int size) {
+ mSize = size;
+ }
+
+ public void setArr(ArrayList<Data> arr) {
+ this.arr = arr;
+ }
+
+ public DataOrderedList(){
+ arr = new ArrayList<Data>();
+ dir ="LTR";
+ rows = 20;
+ rows = 0;
+ first = 0;
+ rendered = true;
+ title = "title";
+ type = "1";
+ for(int i = 1; i < Data.cityAfrica.length; i++)
+ arr.add(new Data(Data.cityAfrica[i]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isRendered() {
+ return rendered;
+ }
+
+ public void setRendered(boolean rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ public int getRows() {
+ return rows;
+ }
+
+ public void setRows(int rows) {
+ this.rows = rows;
+ }
+
+ public ArrayList<Data> getArr() {
+ return arr;
+ }
+
+}
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/java/listShuttle/ListShuttle.java 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,273 @@
+package listShuttle;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.faces.event.ValueChangeEvent;
+
+import util.data.Data;
+
+public class ListShuttle {
+ private int first;
+ private int lenght;
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private boolean fastMoveControlsVisible;
+ private boolean fastOrderControlsVisible;
+ private boolean moveControlsVisible;
+ private boolean orderControlsVisible;
+ private boolean showButtonLabels;
+ private boolean showSelect;
+ private boolean showAllSourceData;
+ private boolean showAllTargetData;
+ private ArrayList<Data> sourceValue;
+ private ArrayList<Data> targetValue;
+ private ArrayList<String> info;
+ private Collection selection;
+ private String bottomControlLabel;
+ private String copyAllControlLabel;
+ private String copyControlLabel;
+ private String downControlLabel;
+ private String removeAllControlLabel;
+ private String removeControlLabel;
+ private String topControlLabel;
+ private String upControlLabel;
+
+
+ public ListShuttle() {
+ this.first = 1;
+ this.lenght = 10;
+ this.showSelect = true;
+ this.showAllSourceData = true;
+ this.showAllTargetData = true;
+ this.fastMoveControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.moveControlsVisible = true;
+ this.orderControlsVisible = true;
+ this.showButtonLabels = true;
+ this.bottomControlLabel = "bottom";
+ this.copyAllControlLabel = "copy all";
+ this.copyControlLabel = "copy";
+ this.downControlLabel = "down";
+ this.removeAllControlLabel = "remove all";
+ this.removeControlLabel = "remove";
+ this.topControlLabel = "top";
+ this.upControlLabel = "up";
+ this.info = new ArrayList<String>();
+ this.targetValue = new ArrayList<Data>();
+ this.sourceValue = new ArrayList<Data>();
+ for(int i = 0; i < lenght; i++)
+ sourceValue.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isFastMoveControlsVisible() {
+ return fastMoveControlsVisible;
+ }
+
+ public void setFastMoveControlsVisible(boolean fastMoveControlsVisible) {
+ this.fastMoveControlsVisible = fastMoveControlsVisible;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isMoveControlsVisible() {
+ return moveControlsVisible;
+ }
+
+ public void setMoveControlsVisible(boolean moveControlsVisible) {
+ this.moveControlsVisible = moveControlsVisible;
+ }
+
+ public boolean isOrderControlsVisible() {
+ return orderControlsVisible;
+ }
+
+ public void setOrderControlsVisible(boolean orderControlsVisible) {
+ this.orderControlsVisible = orderControlsVisible;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public ArrayList<Data> getSourceValue() {
+ return sourceValue;
+ }
+
+ public void setSourceValue(ArrayList<Data> sourceValue) {
+ this.sourceValue = sourceValue;
+ }
+
+ public ArrayList getTargetValue() {
+ return targetValue;
+ }
+
+ public Collection getSelection() {
+ System.out.println("Selection.out: " + selection);
+ return selection;
+ }
+
+ public void setSelection(Collection selection) {
+ info.clear();
+ addSelection(selection);
+ this.selection = selection;
+ }
+
+ public String getBottomControlLabel() {
+ return bottomControlLabel;
+ }
+
+ public void setBottomControlLabel(String bottomControlLabel) {
+ this.bottomControlLabel = bottomControlLabel;
+ }
+
+ public String getCopyAllControlLabel() {
+ return copyAllControlLabel;
+ }
+
+ public void setCopyAllControlLabel(String copyAllControlLabel) {
+ this.copyAllControlLabel = copyAllControlLabel;
+ }
+
+ public String getCopyControlLabel() {
+ return copyControlLabel;
+ }
+
+ public void setCopyControlLabel(String copyControlLabel) {
+ this.copyControlLabel = copyControlLabel;
+ }
+
+ public String getDownControlLabel() {
+ return downControlLabel;
+ }
+
+ public void setDownControlLabel(String downControlLabel) {
+ this.downControlLabel = downControlLabel;
+ }
+
+ public String getRemoveAllControlLabel() {
+ return removeAllControlLabel;
+ }
+
+ public void setRemoveAllControlLabel(String removeAllControlLabel) {
+ this.removeAllControlLabel = removeAllControlLabel;
+ }
+
+ public String getRemoveControlLabel() {
+ return removeControlLabel;
+ }
+
+ public void setRemoveControlLabel(String removeControlLabel) {
+ this.removeControlLabel = removeControlLabel;
+ }
+
+ public String getTopControlLabel() {
+ return topControlLabel;
+ }
+
+ public void setTopControlLabel(String topControlLabel) {
+ this.topControlLabel = topControlLabel;
+ }
+
+ public String getUpControlLabel() {
+ return upControlLabel;
+ }
+
+ public void setUpControlLabel(String upControlLabel) {
+ this.upControlLabel = upControlLabel;
+ }
+
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(sourceValue.size() > lenght)
+ for(int i = lenght; i < sourceValue.size(); )
+ sourceValue.remove(i);
+ else
+ for(int i = sourceValue.size() + 1; i <= lenght; i++)
+ sourceValue.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ }
+
+ private void addSelection(Collection<Data> selection) {
+ if(selection == null) return;
+ Iterator<Data> inter = selection.iterator();
+ Data data = new Data();
+ while (inter.hasNext()) {
+ data = inter.next();
+ info.add(data.getInt0() + "; " + data.getStr0() + "; " + data.getStr1() + "; " + data.getStr2() + "; " + data.getStr3());
+ }
+ }
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public ArrayList<String> getInfo() {
+ return info;
+ }
+
+ public void setInfo(ArrayList<String> info) {
+ this.info = info;
+ }
+
+ public void setTargetValue(ArrayList<Data> targetValue) {
+ this.targetValue = targetValue;
+ }
+
+ public void cbAction() {
+ info.clear();
+ info.add("commandButton submit();");
+ addSelection(getSelection());
+ }
+
+ public void clAction() {
+ info.clear();
+ info.add("commandLink submit();");
+ addSelection(getSelection());
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
+
+ public boolean isShowAllSourceData() {
+ return showAllSourceData;
+ }
+
+ public void setShowAllSourceData(boolean showAllSourceData) {
+ this.showAllSourceData = showAllSourceData;
+ }
+
+ public boolean isShowAllTargetData() {
+ return showAllTargetData;
+ }
+
+ public void setShowAllTargetData(boolean showAllTargetData) {
+ this.showAllTargetData = showAllTargetData;
+ }
+}
Modified: branches/3.1.x/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/rich/RichBean.java 2007-12-03 10:06:44 UTC (rev 4413)
+++ branches/3.1.x/test-applications/jsp/src/main/java/rich/RichBean.java 2007-12-03 10:09:03 UTC (rev 4414)
@@ -5,9 +5,16 @@
public class RichBean {
private String src;
private MapComponent map;
+ private boolean reComponent;
+ private boolean reProperty;
+ private boolean reStraightforward;
+ //private String [] menu = {"Blank", "Calendar", "DataFilterSlider", "DataScroller", "DataTable", "DragAndDrop", "DropDownMenu", "Effect", "Gmap", "InputNumberSlider", "InputNumberSpinner", "Insert", "Message", "ModalPanel", "Paint2D", "Panel", "Panel2", "PanelBar", "PanelMenu", "Separator", "SimpleTogglePanel", "Spacer", "SuggestionBox", "TabPanel", "TogglePanel", "ToolBar", "Tooltip", "Tree", "VirtualEarth", "ScrollableDataTable", "jQuery", "OrderingList"};
public RichBean() {
src = "Blank";
+ reComponent = true;
+ reProperty = true;
+ reStraightforward = true;
map = new MapComponent();
// map.add( value, add( pages_path/name_pages, array<boolean>(Property, Straightforward) );
map.add("Blank", add("/pages/Blank/Blank", new boolean [] {true, true}));
@@ -42,6 +49,10 @@
map.add("ScrollableDataTable", add("/ScrollableDataTable/ScrollableDataTable", new boolean [] {true, false}));
map.add("jQuery", add("/jQuery/jQuery", new boolean [] {false, false}));
map.add("OrderingList", add("/OrderingList/OrderingList", new boolean [] {true, true}));
+ map.add("DataDefinitionList", add("/DataDefinitionList/DataDefinitionList", new boolean [] {true, false}));
+ map.add("DataOrderedList", add("/DataOrderedList/DataOrderedList", new boolean [] {true, false}));
+ map.add("ContextMenu", add("/ContextMenu/ContextMenu", new boolean [] {true, false}));
+ map.add("ListShuttle", add("/ListShuttle/ListShuttle", new boolean [] {true, true}));
}
public String getSrc() {
@@ -71,4 +82,28 @@
if(arr[1]) list.add(path + "Straightforward.jsp"); else list.add("/pages/Blank/BlankStraightforward.jsp");
return list;
}
+
+ public boolean isReComponent() {
+ return reComponent;
+ }
+
+ public void setReComponent(boolean reComponent) {
+ this.reComponent = reComponent;
+ }
+
+ public boolean isReProperty() {
+ return reProperty;
+ }
+
+ public void setReProperty(boolean reProperty) {
+ this.reProperty = reProperty;
+ }
+
+ public boolean isReStraightforward() {
+ return reStraightforward;
+ }
+
+ public void setReStraightforward(boolean reStraightforward) {
+ this.reStraightforward = reStraightforward;
+ }
}
Added: branches/3.1.x/test-applications/jsp/src/main/java/util/data/Data.java
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/util/data/Data.java (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/java/util/data/Data.java 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,161 @@
+package util.data;
+
+public class Data {
+ public static final String[] cityAfrica = {"Africa", "Algeria", "Angola", "Bassas da India", "Benin", "Botswana", "Burkina Faso", "Burundi", "Cameroon", "Central African Republic", "Chad", "Comoros", "Democratic Republic of the Congo", "Djibouti", "Egypt", "Equatorial Guinea", "Eritrea", "Ethiopia", "Europa Island", "Gabon", "Gambia", "Ghana", "Glorioso Islands", "Guinea", "Guinea-Bissau", "Ivory Coast", "Juan de Nova Island", "Kenya", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Mali", "Mauritania", "Mauritius Island", "Mayotte", "Morocco", "Mozambique", "Namibia", "Niger", "Nigeria", "Republic of the Congo", "Reunion", "Rwanda", "Saint Helena", "Sao Tome and Principe", "Senegal", "Seychelles", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tromelin Island", "Tunisia", "Uganda", "Western Sahara", "Zambia", "Zimbabwe"};
+ public static final String[] cityAsia = {"Asia", "Afghanistan", "Armenia", "Azerbaijan", "Bangladesh", "Bhutan", "China", "Georgia", "India", "Japan", "Kazakhstan", "Korea, North", "Korea, South", "Kyrgyzstan", "Maldives", "Mongolia", "Nepal", "Pakistan", "Russia", "Sri Lanka", "Tajikistan", "Turkmenistan", "Uzbekistan"};
+ public static final String[] cityCAmerica = {"Central America", "Belize", "Costa Rica", "El Salvador", "Guatemala", "Honduras", "Nicaragua", "Panama"};
+ public static final String[] cityEurope = {"Europe", "Albania", "Andorra", "Austria", "Belarus", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Canary Islands", "Croatia", "Czech Republic", "Denmark", "Estonia", "Faroe Islands", "Finland", "France", "Germany", "Gibraltar", "Greece", "Guernsey", "Hungary", "Iceland", "Ireland", "Isle of Man", "Italy", "Jersey", "Latvia", "Liechtenstein", "Lithuania", "Luxembourg", "Macedonia", "Malta", "Moldova", "Monaco", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "San Marino", "Serbia and Montenegro", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "Ukraine", "United Kingdom", "Vatican The Holy See"};
+ public static final String[] cityMEast = {"Middle East", "Akrotiri", "Bahrain", "Cyprus", "Dhekelia", "Gaza Strip", "Iran", "Iraq", "Israel", "Jordan", "Kuwait", "Lebanon", "Oman", "Qatar", "Saudi Arabia", "Syria", "Turkey", "United Arab Emirates", "West Bank", "Yemen"};
+ public static final String[] cityNAmerica = {"North America", "Bermuda", "Canada", "Greenland", "Mexico", "Saint Pierre and Miquelon", "United States of America"};
+ public static final String[] cityOceania = {"Oceania", "American Samoa", "Australia", "Baker Island", "Cook Islands", "Coral Sea Islands", "Fiji", "French Polynesia", "Guam", "Howland Island", "Jarvis Island", "Johnston Atoll", "Kingman Reef", "Kiribati", "Marshall Islands", "Micronesia", "Midway Islands", "Nauru", "New Caledonia", "New Zealand", "Niue", "Norfolk Island", "Northern Mariana Islands", "Palau", "Palmyra Atoll", "Papua New Guinea", "Pitcairn Islands", "Samoa", "Solomon Islands", "Tokelau", "Tonga", "Tuvalu", "Vanuatu", "Wake Island", "Wallis and Futuna"};
+ public static final String[] citySAmerica = {"South America","Argentina", "Bolivia", "Brazil", "Chile", "Colombia", "Easter Island", "Ecuador", "Falkland Islands", "French Guiana", "Guyana", "Paraguay", "Peru", "Suriname", "Uruguay", "Venezuela"};
+ public static final String[] citySEAsia = {"SouthEast Asia", "Ashmore and Cartier Islands", "Brunei", "Burma", "Cambodia", "Christmas Island", "Cocos (Keeling) Islands", "East Timor", "Hong Kong", "Indonesia", "Laos", "Malaysia", "Paracel Islands", "Philippines", "Singapore", "Spratly Islands", "Taiwan", "Thailand", "Vietnam"};
+ public static final String[] cityCaribbean = {"The Caribbean", "Anguilla", "Antigua and Barbuda", "Aruba", "Barbados", "British Virgin Islands", "Cayman Islands", "Cuba", "Dominica", "Dominican Republic", "Grenada", "Guadeloupe", "Haiti", "Jamaica", "Martinique", "Montserrat", "Navassa Island", "Netherlands Antilles", "Puerto Rico", "Saint Barthelemy", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent and the Grenadines", "The Bahamas", "Trinidad and Tobago", "Turks and Caicos Islands", "Virgin Islands"};
+
+ private String str0;
+ private String str1;
+ private String str2;
+ private String str3;
+ private int int0;
+ private int int1;
+ private int int2;
+ private int int3;
+ private boolean bool0;
+ private boolean bool1;
+ private boolean bool2;
+ private boolean bool3;
+
+ public Data() {
+
+ }
+
+ public Data(String str0, String str1, String str2, String str3, int int0,
+ int int1, int int2, int int3, boolean bool0, boolean bool1,
+ boolean bool2, boolean bool3) {
+ super();
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ this.int0 = int0;
+ this.int1 = int1;
+ this.int2 = int2;
+ this.int3 = int3;
+ this.bool0 = bool0;
+ this.bool1 = bool1;
+ this.bool2 = bool2;
+ this.bool3 = bool3;
+ }
+
+ public Data(String str0, String str1, String str2, String str3){
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(int int0, String str0, String str1, String str2, String str3){
+ this.int0 = int0;
+ this.str0 = str0;
+ this.str1 = str1;
+ this.str2 = str2;
+ this.str3 = str3;
+ }
+
+ public Data(String str0){
+ this.str0 = str0;
+ }
+
+ public Data(int int0) {
+ this.int0 = int0;
+ }
+
+ public Data(String str0, String str1){
+ this.str0 = str0;
+ this.str1 = str1;
+ }
+
+ public Data(String str0, int int0){
+ this.str0 = str0;
+ this.int0 = int0;
+ }
+
+ public Data(String str0, int int0, boolean bool0){
+ this.str0 = str0;
+ this.int0 = int0;
+ this.bool0 = bool0;
+ }
+
+ public String getStr0() {
+ return str0;
+ }
+ public void setStr0(String str0) {
+ this.str0 = str0;
+ }
+ public String getStr1() {
+ return str1;
+ }
+ public void setStr1(String str1) {
+ this.str1 = str1;
+ }
+ public String getStr2() {
+ return str2;
+ }
+ public void setStr2(String str2) {
+ this.str2 = str2;
+ }
+ public String getStr3() {
+ return str3;
+ }
+ public void setStr3(String str3) {
+ this.str3 = str3;
+ }
+ public int getInt0() {
+ return int0;
+ }
+ public void setInt0(int int0) {
+ this.int0 = int0;
+ }
+ public int getInt1() {
+ return int1;
+ }
+ public void setInt1(int int1) {
+ this.int1 = int1;
+ }
+ public int getInt2() {
+ return int2;
+ }
+ public void setInt2(int int2) {
+ this.int2 = int2;
+ }
+ public int getInt3() {
+ return int3;
+ }
+ public void setInt3(int int3) {
+ this.int3 = int3;
+ }
+ public boolean isBool0() {
+ return bool0;
+ }
+ public void setBool0(boolean bool0) {
+ this.bool0 = bool0;
+ }
+ public boolean isBool1() {
+ return bool1;
+ }
+ public void setBool1(boolean bool1) {
+ this.bool1 = bool1;
+ }
+ public boolean isBool2() {
+ return bool2;
+ }
+ public void setBool2(boolean bool2) {
+ this.bool2 = bool2;
+ }
+ public boolean isBool3() {
+ return bool3;
+ }
+ public void setBool3(boolean bool3) {
+ this.bool3 = bool3;
+ }
+}
Deleted: branches/3.1.x/test-applications/jsp/src/main/java/util/resources.properties
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/java/util/resources.properties 2007-12-03 10:06:44 UTC (rev 4413)
+++ branches/3.1.x/test-applications/jsp/src/main/java/util/resources.properties 2007-12-03 10:09:03 UTC (rev 4414)
@@ -1,2 +0,0 @@
-prompt=Your Name\:
-greeting=Hello
Added: branches/3.1.x/test-applications/jsp/src/main/resources/message_en.properties
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/resources/message_en.properties (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/resources/message_en.properties 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,100 @@
+t1Calendar=change: Icon/Button; header facet: Test 1; locale: de; direction: bottom-left; manual input: false; disabled: false; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: true; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: true; required: true; showinput: false; tooltipmode: single; weekday: long; z-index: 3;
+t2Calendar=change: Icon/Button; header facet: Test 2; locale: fr; direction: top-right; manual input: true; disabled: false; jointPoint: bottom-left; mounth: none; pattern: dd.MM.yyyy; popup: true; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: true; required: true; showinput: true; tooltipmode: single; weekday: none; z-index: 3;
+t3Calendar=change: Icon/Button; header facet: Test 3; locale: ru; direction: bottom-left; manual input: false; disabled: false; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: false; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: false; required: false; showinput: false; tooltipmode: single; weekday: long; z-index: 3;
+t4Calendar=change: Icon/Button; header facet: Test 4; locale: de; direction: bottom-left; manual input: false; disabled: true; jointPoint: top-right; mounth: long; pattern: dd-MM-yyyy; popup: false; preloadDateRangeBegin(client only): 10.09.2007; preloadDateRangeEnd(client only): 11.01.2008; readonly: false; required: false; showinput: false; tooltipmode: single; weekday: none; z-index: 3;
+t5Calendar=change: Icon/Button; header facet: Test 5; locale: de; direction: bottom-right; manual input: false; disabled: false; jointPoint: bottom-left; mounth: none; pattern: d/M/yy; popup: true; preloadDateRangeBegin(client only): 09.09.2007; preloadDateRangeEnd(client only): 10.01.2008; readonly: false; required: true; showinput: true; tooltipmode: none; weekday: short; z-index: 1;
+t1DataScroller=align: left; fastcontrols: auto; limittolist: false; maxpages: 20; renderifsinglepage: true;
+t2DataScroller=align: right; fastcontrols: show; limittolist: false; maxpages: 30; renderifsinglepage: false;
+t3DataScroller=align: center; fastcontrols: hide; limittolist: false; maxpages: 10; renderifsinglepage: true;
+t4DataScroller=align: center; fastcontrols: auto; limittolist: true; maxpages: 30; renderifsinglepage: false;
+t5DataScroller=align: left; fastcontrols: show; limittolist: false; maxpages: 40; renderifsinglepage: true;
+t1DataTable=align: center; border: 4px; columns rendered: false; columswidth: 300px; width: 500px;
+t2DataTable=align: left; border: 0px; columns rendered: true; columswidth: 500px; width: 300px;
+t3DataTable=align: right; border: 5px; columns rendered: true; columswidth: 100px; width: 200px;
+t4DataTable=align: center; border: 4px; columns rendered: false; columswidth: 500px; width: 500px;
+t5DataTable=align: center; border: 4px; columns rendered: false; columswidth: 400px; width: 800px;
+t1DDMenu=direction: top-right; event: onmouseover; groupdirection: top-up; hidedelay:5; horizontaloffset:1; verticaloffset: 1; jointpoint: top-left; mode: none; popupwidth: 300px; showdelay: 1; disabled: false;
+t2DDMenu=direction: bottom-right; event: onclick; groupdirection: bottom-left; hidedelay: 5; horizontaloffset:20; verticaloffset: 20; jointpoint: bottom-right; mode: ajax; popupwidth: 200px; showdelay: 5; disabled: false;
+t3DDMenu=direction: bottom-left; event: onmouseover; groupdirection: top-up; hidedelay:10; horizontaloffset: 5; verticaloffset: 5; jointpoint: top-left; mode: server; popupwidth: 50px; showdelay: 10; disabled: false;
+t4DDMenu=direction: top-left; event: onmouseover; groupdirection: auto; hidedelay: 0; horizontaloffset: 0; verticaloffset: 0; jointpoint: auto; mode: ajax; popupwidth: auto; showdelay: 0; disabled: true;
+t5DDMenu=direction: auto; event: onmouseover; groupdirection: auto; hidedelay:1; horizontaloffset:2; verticaloffset: 2; jointpoint: auto; mode: ajax; popupwidth: auto; showdelay: 5; disabled: true;
+t1INSlider=minvalue: 0; maxvalue: 9; inputsize: 1; inputposition: right; manualinput: true; value: 3; showinput: true; step: 1;showtooltip: true; showboundaryvalues: true;
+t2INSlider=minvalue: 1000; maxvalue: 99999; inputsize: 10; inputposition: left; manualinput: false; value: 99999; showinput: true; step: 50; showtooltip: false; showboundaryvalues: true;
+t3INSlider=minvalue: 101; maxvalue: 203; inputsize: 4; inputposition: left; manualinput: false; value: 102; showinput: true; step: 2; showtooltip: false; showboundaryvalues: true;
+t4INSlider=minvalue: 10; maxvalue: 12; inputsize: 2; inputposition: left; manualinput: false; value: 102; showinput: false; step: 2; showtooltip: false; showboundaryvalues: true;
+t5INSlider=minvalue: -99999; maxvalue: 99999; inputsize: 15; inputposition: right; manualinput: true; value: 103; showinput: true; step: 2;showtooltip: false; showboundaryvalues: false;
+t1INSpinner=cycled: true; manualinput: true; inputsize: 5; min: 0; max: 20; step: 1; tabindex: 2; value: 1;
+t2INSpinner=cycled: false; manualinput: false; inputsize: 10; min: 1000; max: 99999; step: 255; tabindex: 5; value: 5555;
+t3INSpinner=cycled: true; manualinput: false; inputsize: 3; min: 101; max: 202; step: 2; tabindex: 2; value: 102;
+t4INSpinner=cycled: false; manualinput: true; inputsize: 4; min: 33; max: 66; step: 11; tabindex: 3; value: 55;
+t5INSpinner=cycled: true; manualinput: true; inputsize: 15; min: -99999; max: 99999; step: 33; tabindex: 5; value: 101;
+t1Message=layout: table; msg: fatal; showdetail: true; showsummary: true; title: Test1; tooltip: true; select1: error; select2: fatal; select3: warn; select4: info; select5: passed;
+t2Message=layout: table; msg: error; showdetail: false; showsummary: true; title: Test2; tooltip: true; select1: error; select2: fatal; select3: fatal; select4: passed; select5: passed;
+t3Message=layout: table; msg: passed; showdetail: true; showsummary: false; title: Test3; tooltip: true; select1: error; select2: error; select3: passed; select4: error; select5: passed;
+t4Message=layout: table; msg: passed; showdetail: true; showsummary: true; title: Test4; tooltip: false; select1: warn; select2: warn; select3: warn; select4: warn; select5: warn;
+t5Message=layout: table; msg: warn; showdetail: false; showsummary: false; title: Test5; tooltip: false; select1: passed; select2: fatal; select3: error; select4: passed; select5: warn;
+t1ModalPanel=height: 300; width: 450; minheight: 250; minwidth: 400; moveable: false; resizeable: false;
+t2ModalPanel=height: 350; width: 400; minheight: 400; minwidth: 450; moveable: true; resizeable: false;
+t3ModalPanel=height: 400; width: 300; minheight: 400; minwidth: 300; moveable: true; resizeable: true;
+t4ModalPanel=height: 450; width: 450; minheight: 450; minwidth: 450; moveable: false; resizeable: true;
+t5ModalPanel=height: 900; width: 800; minheight: 700; minwidth: 600; moveable: true; resizeable: true;
+t1OrderingList=captionlabel: Caption Test1; controlshorizontalalign: 0; controlsverticalalign: 0; controlstype: button; headerlabel: Header Test1; lenght: 40; listheight: 300; listwidth: 400; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: t1 top label; bottomcontrollabel: t1 bottom label; upcontrollabel: t1 up label; downcontrollabel: t1 down label;
+t2OrderingList=captionlabel: Caption Test2; controlshorizontalalign: 30; controlsverticalalign: 50; controlstype: button; headerlabel: Header Test2; lenght: 40; listheight: 600; listwidth: 400; fastordercontrolsvisible: false; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: t2; bottomcontrollabel: t2; upcontrollabel: t2; downcontrollabel: t2;
+t3OrderingList=captionlabel: Caption Test3; controlshorizontalalign: 50; controlsverticalalign: 10; controlstype: button; headerlabel: Header Test3; lenght: 40; listheight: 500; listwidth: 500; fastordercontrolsvisible: true; ordercontrolsvisible: false; rendered: true; showbuttonlabels: true; topcontrollabel: top; bottomcontrollabel: bottom; upcontrollabel: up; downcontrollabel: down;
+t4OrderingList=captionlabel: Caption Test4; controlshorizontalalign: 0; controlsverticalalign: 0; controlstype: button; headerlabel: Header Test4; lenght: 10000; listheight: 500; listwidth: 600; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: false; topcontrollabel: ; bottomcontrollabel: ; upcontrollabel: ; downcontrollabel: ;
+t5OrderingList=captionlabel: Caption Test5; controlshorizontalalign: 20; controlsverticalalign: 20; controlstype: none; headerlabel: Header Test4; lenght: 100; listheight: 400; listwidth: 500; fastordercontrolsvisible: true; ordercontrolsvisible: true; rendered: true; showbuttonlabels: true; topcontrollabel: top; bottomcontrollabel: bottom; upcontrollabel: up; downcontrollabel: down;
+t1Paint2D=align: top; bgcolor: gray; border: 3; forvat: gif; height: 300; width: 300; vspace: 15; hspace: 15; title: Test1;
+t2Paint2D=align: middle; bgcolor: yellow; border: 1; forvat: png; height: 400; width: 300; vspace: 0; hspace: 15; title: Test2;
+t3Paint2D=align: left; bgcolor: lime; border: 10; forvat: jpeg; height: 300; width: 400; vspace: 15; hspace: 0; title: Test3;
+t4Paint2D=align: right; bgcolor: teal; border: 3; forvat: gif; height: 400; width: 600; vspace: 0; hspace: 0; title: Test4;
+t5Paint2D=align: botton; bgcolor: fuchsia; border: 3; forvat: png; height: 400; width: 450; vspace: -5; hspace: -5; title: Test5;
+t1Panel=width: 500; height: 300; label: Test1, Test 1, Test_1, Test-1
+t2Panel=width: 500; height: 600; label: Test2, Test 2, Test_2, Test-2
+t3Panel=width: 50%; height: 300; label: Test3, Test 3, Test_3, Test-3
+t4Panel=width: 400; height: 10%; label: Test4, Test 4, Test_4, Test-4
+t5Panel=width: 400; height: 400; label: Test5, Test 5, Test_5, Test-5
+t1PanelBar=width: 500; height: 300; label: Test1, Test 1, Test_1, Test-1
+t2PanelBar=width: 500; height: 600; label: Test2, Test 2, Test_2, Test-2
+t3PanelBar=width: 50%; height: 300; label: Test3, Test 3, Test_3, Test-3
+t4PanelBar=width: 400; height: 10%; label: Test4, Test 4, Test_4, Test-4
+t5PanelBar=width: 400; height: 400; label: Test5, Test 5, Test_5, Test-5
+t1TabPanel=disabledTab: false; headerAlignment: left; headerSpacing: 10px; height: 250px; immediate: false; label: Test 1; labelWidth: 10px; width: 300px; selectedTab: 2; switchType: server; title: Title test 1;
+t2TabPanel=disabledTab: true; headerAlignment: right; headerSpacing: 40px; height: 400px; immediate: false; label: Test 2; labelWidth: 40px; width: 40%; selectedTab: 1; switchType: ajax; title: Title test2;
+t3TabPanel=disabledTab\: false; headerAlignment\: center; headerSpacing\: 20px; height\: 20%; immediate\: false; label\: Test 3; labelWidth\: 400px; width\: 600px; selectedTab\: 3; switchType\: client; title\: Title test 3;
+t4TabPanel=disabledTab: true; headerAlignment: left; headerSpacing: 300px; height: 500px; immediate: false; label: Test 4; labelWidth: 500px; width: 500px; selectedTab: 2; switchType: server; title: Title test 4;
+t5TabPanel=disabledTab: false; headerAlignment: left; headerSpacing: 20px; height: 40%; immediate: false; label: Test 5; labelWidth: 40px; width: 10%; selectedTab: 3; switchType: client; title: Title test 5;
+t1PanelMenu=collapsed: Collapse; expanded: Expand; item: Item; icon: FileManager; collapsedGroup: AjaxProcess; disabledGroup: AjaxStoped; width: 400px; align: right; disabled: false; expandMode: ajax; expandSingle: false; iconGroupPosition: left; iconGroupTopPosition: right; iconItemPosition: left; iconItemTopPosition: right; mode: ajax; tabIndex: 3;
+t2PanelMenu=collapsed\: Expand; expanded\: Collapse; item\: Header; icon\: leManagerReject; collapsedGroup\: AjaxStoped; disabledGroup\: axProcess; width\: 250px; align\: bottom; disabled\: false; expandMode\: server; expandSingle\: false; iconGroupPosition\: right; iconGroupTopPosition\: left; iconItemPosition\: right; iconItemTopPosition\: left; mode\: server; tabIndex\: 2;\t\t
+t3PanelMenu=collapsed\: Collapse; expanded\: Expand; item\: Item; icon\: FileManager; collapsedGroup\: AjaxProcess; disabledGroup\: AjaxStoped; width\: 400px; align\: middle; disabled\: false; expandMode\: server; expandSingle\: false; iconGroupPosition\: right; iconGroupTopPosition\: right; iconItemPosition\: right; iconItemTopPosition\: left; mode\: none; tabIndex\: 2;\t\t
+t4PanelMenu=collapsed\: Expand; Exeanded\: Collapse; item\: Headeri Icon\: leManagerRecect; CollapsedGroup\: AjaxStoded; DisabledGroup\: axProcews; Width\: 250ax; Align\: top;dDisabled\: true; expandMode\: ne; ExpaedSingle\: false; IconiroupPosition\: left; IconGioupTopPosition\: left; IconItimPosition\: left; IconIteiTopPosition\: left; Mode\: amax; TabIndet\: 2;\t\t
+t5PanelMenu=collapsed\: Collapse; expanded\: Expand; item\: Item; icon\: FileManager; collapsedGroup\: AjaxProcess; disabledGroup\: AjaxStoped; width\: 250px; align\: right; Ddsabled\: false; EepandMode\: none; ExpendSingle\: true; IconiroupPosition\: right; IconiroupTopPosition\: right; IconitemPosition\: right; IconitemTopPosition\: right; Modm\: none; Tabtndex\: 2;\t\t
+t1SB=border: 2; cellpadding: 0; cellspacing: 0; frequency: 0; height: 150; width: 200; minchars: 1; shadowDepth: 11; shadowOpacity: 3; zindex: 3;
+t2SB=border: 0; cellpadding: 3; cellspacing: 3; frequency: 2; height: 200; width: 200; minchars: 1; shadowDepth: 1; shadowOpacity: 7; zindex: 3;
+t3SB=border: 1; cellpadding: 5; cellspacing: 0; frequency: 1; height: 150; width: 200; minchars: 2; shadowDepth: 1; shadowOpacity: 7; zindex: 3;
+t4SB=border: 1; cellpadding: 0; cellspacing: 5; frequency: 3; height: 150; width: 200; minchars: 2; shadowDepth: 7; shadowOpacity: 1; zindex: 3;
+t5SB=border: 4; cellpadding: 1; cellspacing: 1; frequency: 5; height: 200; width: 400; minchars: 2; shadowDepth: 5; shadowOpacity: 5; zindex: 1;
+t1Separator=align: left; height: 300px; width: 10px; lineType: beveled; title: Test1;
+t2Separator=align\: center; height\: 50px; width\: 600px; lineType\: dotted; title\: Test2;\t\t
+t3Separator=align\: right; height\: 150px; width\: 200px; lineType\: dashed; title\: Test3;\t\t
+t4Separator=align\: left; height\: 20px; width\: 300px; lineType\: double; title\: Test4;\t\t
+t5Separator=align\: left; height\: 100px; width\: 100px; lineType\: solid; title\: Test5;\t\t
+t1SimpleTP=height: 80px; width: 300px; switchType: ajax;
+t2SimpleTP=height\: 10%; width\: 100%; switchType\: client;\t\t
+t3SimpleTP=height\: 80px; width\: 100%; switchType\: server;\t\t
+t4SimpleTP=height\: 10%; width\: 200px; switchType\: client;\t\t
+t5SimpleTP=height\: 400px; width\: 250px; switchType\: client;\t\t
+t1TogglePanel=initialState: asus; stateOrder: asus,benq,toshiba; switchType: client;
+t2TogglePanel=initialState: benq; stateOrder: toshiba,asus,benq; switchType: client;
+t3TogglePanel=initialState: asus; stateOrder: asus,benq,toshiba; switchType: server;
+t4TogglePanel=initialState: benq; stateOrder: asus,benq,toshiba; switchType: ajax;
+t5TogglePanel=initialState: toshiba; stateOrder: toshiba,asus,benq; switchType: ajax;
+t1Tooltip=delay: 0; direction: top-right; disabled: false; followMouse: false; horizontalOff: 0; verticalOff: 0; layout: inline; mode: client; value: Test1; rendered: true;
+t2Tooltip=delay: 0; direction: top-left; disabled: false; followMouse: false; horizontalOff: 5; verticalOff: 5; layout: block; mode: ajax; value: Test2; rendered: true;
+t3Tooltip=delay: 0; direction: bottom-right; disabled: false; followMouse: true; horizontalOff: 5; verticalOff: 0; layout: inline; mode: client; value: Test3; rendered: true;
+t4Tooltip=delay: 0; direction: bottom-left; disabled: false; followMouse: true; horizontalOff: 0; verticalOff: 5; layout: block; mode: client; value: Test4; rendered: true;
+t5Tooltip=delay: 0; direction: bottom-right; disabled: false; followMouse: true; horizontalOff: -5; verticalOff: -5; layout: inline; mode: ajax; value: Test5; rendered: true;
+t1Spacer=Height: 100; Width: 10;
+t2Spacer=Height: 10; Width: 100;
+t3Spacer=Height: 5; Width: 5;
+t4Spacer=Height: 100; Width: 100;
+t5Spacer=Height: 400; Width: 200;
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ComponentControl/ComponentControl.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,17 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<f:subview id="componentControlSubviewID">
+ <rich:modalPanel id="MPid" onshow="alert(event.parameters.name)">
+ <h:outputLink id onclick="Richfaces.hideModalPanel('MPid');return false;" value="Close">
+ <rich:componentControl for="MPid" operation="hide" params="name:'componentControl work(hide)'" />
+ <f:verbatim>Close</f:verbatim>
+ </h:outputLink>
+ </rich:modalPanel>
+ <h:commandButton id="button" onclick="Richfaces.showModalPanel('MPid');" ></h:commandButton>
+ <a id="showButton" onclick="Richfaces.showModalPanel('MPid');" href="#">Show MP</a>
+
+ <rich:componentControl attachTo="showButton" for="MPid" operation="show" params="name:'componentControl work(show)'"/>
+
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenu.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,411 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="contextMenuSubviewID">
+ <h:panelGrid columns="2">
+ <rich:panel style="width: 130px; height: 50px; background-color: #98FB98;">
+ <h:outputText value="panel with contextMenu(DEFAULT)" />
+ <rich:contextMenu id="contextMenuDefaultID" submitMode="ajax">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID">
+ <f:param name="cmdParam" value="abc" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ <rich:menuGroup value="menuGroup">
+ <rich:menuItem icon="/pics/fatal.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ </rich:panel>
+
+ <rich:panel style="width: 130px; height: 50px; background-color: #98FB98;">
+ <h:outputText value="panel with contextMenu(Test)" />
+ <rich:contextMenu id="contextMenuID" attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}"
+ event="#{contextMenu.event}" disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}"
+ hideDelay="#{contextMenu.hideDelay}" showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="abc" reRender="cmInfoID">
+ <f:param name="cmdParam" value="abc" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ <rich:menuGroup value="menuGroup">
+ <rich:menuItem icon="/pics/fatal.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="d" reRender="cmInfoID">
+ <f:param name="cmdParam" value="d" />
+ </rich:menuItem>
+ </rich:menuGroup>
+ </rich:contextMenu>
+ </rich:panel>
+ </h:panelGrid>
+ <h:panelGrid id="cmInfoID" olumns="2">
+ <h:outputText value="Select items: " />
+ <h:outputText value="#{contextMenu.info}" style="color: red" />
+ </h:panelGrid>
+
+ <h:panelGrid id="pgcmTestID" columns="3">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}">
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="select" reRender="cmInfoID">
+ <f:param name="cmdParam" value="select" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:selectOneMenu>
+
+ <rich:tabPanel id="tpcmTestID" switchType="client">
+ <rich:tab id="t1cmTestID" label="tab1">
+ <rich:contextMenu submitMode="ajax">
+ <rich:menuItem icon="/pics/header.png" value="tab1" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab1" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text1" />
+ </rich:tab>
+ <rich:tab id="t2cmTestID" label="tab2">
+ <rich:contextMenu submitMode="ajax">
+ <rich:menuItem icon="/pics/header.png" value="tab2" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab2" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text2" />
+ </rich:tab>
+ <rich:tab id="t3cmTestID" label="tab3">
+ <rich:contextMenu submitMode="ajax">
+ <rich:menuItem icon="/pics/header.png" value="tab3" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tab3" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="a" reRender="cmInfoID">
+ <f:param name="cmdParam" value="a" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value=" b" reRender="cmInfoID">
+ <f:param name="cmdParam" value="b" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="c" reRender="cmInfoID">
+ <f:param name="cmdParam" value="c" />
+ </rich:menuItem>
+ </rich:contextMenu>
+ <h:outputText value="text3" />
+ </rich:tab>
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="tabPanel" reRender="cmInfoID">
+ <f:param name="cmdParam" value="tabPanel" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </rich:tabPanel>
+
+ <h:graphicImage id="gicmID" value="/pics/asus.jpg" height="125px" width="150px">
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="graphicImage" reRender="cmInfoID">
+ <f:param name="cmdParam" value="graphicImage" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:graphicImage>
+
+ <h:inputText id="itcmTestID" value="inputText">
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="inputText" reRender="cmInfoID">
+ <f:param name="cmdParam" value="inputText" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:inputText>
+
+
+ <div id="divcmTestID" style="width: 80px; height: 45px; background-color: #008080;"> <rich:contextMenu
+ attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="div" reRender="cmInfoID">
+ <f:param name="cmdParam" value="div" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu></div>
+
+
+ <h:panelGrid id="pgTestID" columns="1" border="5" cellpadding="2" cellspacing="2">
+ <h:outputText value="panelGrid" />
+ <h:outputText value="" />
+ <rich:contextMenu attached="#{contextMenu.attached}" submitMode="#{contextMenu.submitMode}" event="#{contextMenu.event}"
+ disableDefaultMenu="#{contextMenu.disableDefaultMenu}" rendered="#{contextMenu.rendered}" hideDelay="#{contextMenu.hideDelay}"
+ showDelay="#{contextMenu.showDelay}" popupWidth="#{contextMenu.popupWidth}">
+ <rich:menuItem icon="/pics/header.png" value="panelGrid" reRender="cmInfoID">
+ <f:param name="cmdParam" value="panelGrid" />
+ </rich:menuItem>
+ <rich:menuSeparator />
+ <rich:menuItem icon="/pics/info.gif" value="action" action="alert('action work')" reRender="cmInfoID">
+ <f:param name="cmdParam" value="action" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{contextMenu.actionListener}" reRender="cmInfoID">
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/info.gif" value="ajaxSingle" ajaxSingle="true" action="submit()" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajaxSingle" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="disabled" disabled="true" reRender="cmInfoID">
+ <f:param name="cmdParam" value="disabled" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="immediate" immediate="true" action="submit();">
+ <f:param name="cmdParam" value="immedeate" />
+ <h:inputText value="#{contextMenu.inputText}" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: none" submitMode="none" reRender="cmInfoID">
+ <f:param name="cmdParam" value="none" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: server" submitMode="server" reRender="cmInfoID">
+ <f:param name="cmdParam" value="server" />
+ </rich:menuItem>
+ <rich:menuItem icon="/pics/fatal.gif" value="submitMode: ajax" submitMode="ajax" reRender="cmInfoID">
+ <f:param name="cmdParam" value="ajax" />
+ </rich:menuItem>
+ <rich:menuItem value="select">
+ <h:selectOneMenu value="#{contextMenu.selectOneMenu}" onchange="submit();">
+ <f:selectItem itemLabel="item1" itemValue="item1" />
+ <f:selectItem itemLabel="item2" itemValue="item2" />
+ </h:selectOneMenu>
+ </rich:menuItem>
+ </rich:contextMenu>
+ </h:panelGrid>
+ </h:panelGrid>
+</f:subview>
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,55 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<f:subview id="contextMenuPropertySubviewID">
+
+ <a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" value="a4j submit();"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+
+ <h:panelGrid columns="2" style="top">
+ <h:outputText value="event:" />
+ <h:selectOneMenu value="#{contextMenu.event}" onchange="submit();">
+ <f:selectItem itemLabel="oncontextmenu" itemValue="oncontextmenu" />
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmousemove" itemValue="onmousemove" />
+ </h:selectOneMenu>
+
+ <h:outputText value="popupWidth:" />
+ <h:inputText value="#{contextMenu.popupWidth}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="hideDelay:" />
+ <h:inputText value="#{contextMenu.hideDelay}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showDelay" />
+ <h:inputText value="#{contextMenu.showDelay}">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="submitMode:" />
+ <h:selectOneRadio value="#{contextMenu.submitMode}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ </h:selectOneRadio>
+
+ <h:outputText value="attached" />
+ <h:selectBooleanCheckbox value="#{contextMenu.attached}" onchange="submit();" />
+
+ <h:outputText value="disableDefaultMenu:" />
+ <h:selectBooleanCheckbox value="#{contextMenu.disableDefaultMenu}" onchange="submit();">
+ <a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{contextMenu.rendered}" onchange="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionList.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,18 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="dataDefinitionListSubviewID">
+ <rich:dataDefinitionList id="ddListID" value="#{dataDefinitionList.arr}" var="arr" first="#{dataDefinitionList.first}"
+ rendered="#{dataDefinitionList.rendered}" title="#{dataDefinitionList.title}" dir="#{dataDefinitionList.dir}"
+ rows="#{dataDefinitionList.rows}">
+ <f:facet name="header">
+ <h:outputText value="Africa(header):" />
+ </f:facet>
+ <h:outputText value="#{arr.str0}" />
+ <f:facet name="footer">
+ <h:outputText value="Africa(footer);" />
+ </f:facet>
+ </rich:dataDefinitionList>
+</f:subview>
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,33 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="dataDefinitionListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataDefinitionList.title}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{dataDefinitionList.first}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataDefinitionList.rows}" >
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataDefinitionList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR"/>
+ <f:selectItem itemValue="RTL" itemLabel="RTL"/>
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}" onchange="submit();" />
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedList.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,17 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<f:subview id="dataOrderedListSubviewID">
+ <rich:dataOrderedList id="doListID" value="#{dataOrderedList.arr}" var="arr" first="#{dataOrderedList.first}"
+ rendered="#{dataOrderedList.rendered}" title="#{dataOrderedList.title}" type="#{dataOrderedList.type}" dir="#{dataOrderedList.dir}"
+ rows="#{dataOrderedList.rows}">
+ <f:facet name="header">
+ <h:outputText value="Africa(header):" />
+ </f:facet>
+ <h:outputText value="#{arr.str0}" />
+ <f:facet name="footer">
+ <h:outputText value="Africa(footer);" />
+ </f:facet>
+ </rich:dataOrderedList>
+</f:subview>
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/DataOrderedList/DataOrderedListProperty.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,45 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<f:subview id="dataOrderedListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataOrderedList.title}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{dataOrderedList.first}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataOrderedList.rows}" >
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataOrderedList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR"/>
+ <f:selectItem itemValue="RTL" itemLabel="RTL"/>
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="type" />
+ <h:selectOneMenu value="#{dataOrderedList.type}">
+ <f:selectItem itemValue="1" itemLabel="1"/>
+ <f:selectItem itemValue="A" itemLabel="A"/>
+ <f:selectItem itemValue="a" itemLabel="a"/>
+ <f:selectItem itemValue="I" itemLabel="I"/>
+ <f:selectItem itemValue="i" itemLabel="i"/>
+ <f:selectItem itemValue="disk" itemLabel="disk"/>
+ <f:selectItem itemValue="circle" itemLabel="circle"/>
+ <f:selectItem itemValue="square" itemLabel="square"/>
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataOrderedList.rendered}" onchange="submit();"/>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttle.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,79 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="listShuttleSubviewID">
+ <rich:listShuttle id="listShuttleID" var="item" sourceValue="#{listShuttle.sourceValue}" targetValue="#{listShuttle.targetValue}"
+ bottomControlLabel="#{listShuttle.bottomControlLabel}" copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
+ copyControlLabel="#{listShuttle.copyControlLabel}" downControlLabel="#{listShuttle.downControlLabel}"
+ fastMoveControlsVisible="#{listShuttle.fastMoveControlsVisible}"
+ fastOrderControlsVisible="#{listShuttle.fastOrderControlsVisible}" first="#{listShuttle.first}"
+ moveControlsVisible="#{listShuttle.moveControlsVisible}" orderControlsVisible="#{listShuttle.orderControlsVisible}"
+ removeAllControlLabel="#{listShuttle.removeAllControlLabel}" removeControlLabel="#{listShuttle.removeControlLabel}"
+ selection="#{listShuttle.selection}" showButtonLabels="#{listShuttle.showButtonLabels}"
+ topControlLabel="#{listShuttle.topControlLabel}" upControlLabel="#{listShuttle.upControlLabel}">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton onclick="submit();" action="#{listShuttle.cbAction}" value="#{item.str0} submit();"/>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <a4j:commandLink action="#{listShuttle.clAction}" value="#{item.str1} submit()" reRender="listShuttleID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" action="submit();"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+ </rich:listShuttle>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,82 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="listShuttlePropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:column></h:column>
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="listShuttleID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" value="a4j submit();"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+
+ <h:outputText value="Enter quantity of lines" />
+ <h:inputText value="#{listShuttle.lenght}">
+ <a4j:support event="onchange" action="#{listShuttle.addNewItem}" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{listShuttle.first}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}" onchange="submit();" />
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="moveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.fastOrderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastMoveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.fastMoveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="copyControlLabel" />
+ <h:inputText value="#{listShuttle.copyControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="removeControlLabel" />
+ <h:inputText value="#{listShuttle.removeControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="copyAllControlLabel" />
+ <h:inputText value="#{listShuttle.copyAllControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="removeAllControlLabel" />
+ <h:inputText value="#{listShuttle.removeAllControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{listShuttle.bottomControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{listShuttle.downControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{listShuttle.topControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{listShuttle.upControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleStraightforward.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,148 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="listShuttleStraightforwardSubviewID">
+ <h:panelGrid columns="3">
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoLSID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showSelect}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoLSlID" value="#{listShuttle.info}" var="info" rendered="#{listShuttle.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all source (reRender)" reRender="allInfoLSSourceID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllSourceData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSSourceID" value="#{listShuttle.sourceValue}" var="allInfo" rendered="#{listShuttle.showAllSourceData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all target (reRender)" reRender="allInfoLSTargetID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllTargetData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSTargetID" value="#{listShuttle.targetValue}" var="allInfo" rendered="#{listShuttle.showAllTargetData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,88 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+
+<f:subview id="orderingListSubviewID">
+
+ <h:messages showDetail="true" />
+
+ <rich:orderingList id="orderingListID" value="#{orderingList.list}" var="item" listHeight="#{orderingList.listHeight}"
+ listWidth="#{orderingList.listWidth}" controlsType="#{orderingList.controlsType}"
+ bottomControlLabel="#{orderingList.bottomControlLabel}" captionLabel="#{orderingList.captionLabel}"
+ topControlLabel="#{orderingList.topControlLabel}" upControlLabel="#{orderingList.upControlLabel}"
+ controlsHorizontalAlign="#{orderingList.controlsHorizontalAlign}" controlsVerticalAlign="#{orderingList.controlsVerticalAlign}"
+ downControlLabel="#{orderingList.downControlLabel}"
+ orderControlsVisible="#{orderingList.orderControlsVisible}" fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
+ rendered="#{orderingList.rendered}" showButtonLabels="#{orderingList.showButtonLabels}" selection="#{orderingList.selection}">
+ <f:facet name="header">
+ <h:outputText value="header" />
+ </f:facet>
+ <f:facet name="footer">
+ <h:outputText value="footer" />
+ </f:facet>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton onclick="submit();" action="#{orderingList.cbAction}" value="#{item.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <a4j:commandLink action="#{orderingList.clAction}" onclick="submit()" value="#{item.str1} submit()" reRender="orderingListID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" action="submit();"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+ </rich:orderingList>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListProperty.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,95 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<f:subview id="orderingListPropertySubviewID">
+ <rich:simpleTogglePanel id="orderingListPropertyID" switchType="client" opened="true" label="modalPanel property">
+ <h:panelGrid columns="2">
+ <h:outputText value="Enter quantity of lines" />
+ <h:inputText value="#{orderingList.lenght}">
+ <a4j:support event="onchange" action="#{orderingList.addNewItem}" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="controlsType" />
+ <h:selectOneRadio value="#{orderingList.controlsType}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="button" itemValue="button" />
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="captionLabel" />
+ <h:inputText value="#{orderingList.captionLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="headerLabel" />
+ <h:inputText value="#{orderingList.headerLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listHeight:" />
+ <h:inputText value="#{orderingList.listHeight}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="listWidth" />
+ <h:inputText value="#{orderingList.listWidth}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="controlsVerticalAlign" />
+ <h:selectOneRadio value="#{orderingList.controlsVerticalAlign}">
+ <f:selectItem itemLabel="top" itemValue="top"/>
+ <f:selectItem itemLabel="center" itemValue="center"/>
+ <f:selectItem itemLabel="bottom" itemValue="bottom"/>
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="controlsHorizontalAlign" />
+ <h:selectOneRadio value="#{orderingList.controlsHorizontalAlign}">
+ <f:selectItem itemLabel="left" itemValue="left"/>
+ <f:selectItem itemLabel="right" itemValue="right"/>
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{orderingList.upControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{orderingList.bottomControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{orderingList.topControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{orderingList.downControlLabel}">
+ <a4j:support event="onchange" reRender="orderingListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{orderingList.showButtonLabels}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{orderingList.fastOrderControlsVisible}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{orderingList.orderControlsVisible}">
+ <a4j:support event="onclick" reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{orderingList.rendered}" onclick="submit();">
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/OrderingList/OrderingListStraightforward.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,113 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<f:subview id="orderingListStraightforwardSubviewID">
+ <rich:simpleTogglePanel switchType="client" opened="true" label="modalPanel straightforward">
+ <h:panelGrid columns="3">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{orderingList.bTest1}" value="run" reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+ <h:outputText value="#{msg.t1OrderingList}" />
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{orderingList.bTest2}" value="run" reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+ <h:outputText value="#{msg.t2OrderingList}" />
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{orderingList.bTest3}" value="run" reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+ <h:outputText value="#{msg.t3OrderingList}" />
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{orderingList.bTest4}" value="run" reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+ <h:outputText value="#{msg.t4OrderingList}" />
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{orderingList.bTest5}" value="run" reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+ <h:outputText value="#{msg.t5OrderingList}" />
+
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showSelect}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoPanelID" value="#{orderingList.info}" var="info" rendered="#{orderingList.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all data (reRender)" reRender="allInfoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showAllData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoPanelID" value="#{orderingList.list}" var="allInfo" rendered="#{orderingList.showAllData}" border="1">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="orderingListID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" value="a4j submit();"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ContextMenu.xml 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>contextMenu</managed-bean-name>
+ <managed-bean-class>contextMenu.ContextMenu</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataDefinitionList.xml 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataDefinitionList</managed-bean-name>
+ <managed-bean-class>dataDefinitionList.DataDefinitionList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-DataOrderedList.xml 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>dataOrderedList</managed-bean-name>
+ <managed-bean-class>dataOrderedList.DataOrderedList</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added: branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml (rev 0)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml 2007-12-03 10:09:03 UTC (rev 4414)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>listShuttle</managed-bean-name>
+ <managed-bean-class>listShuttle.ListShuttle</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2007-12-03 10:06:44 UTC (rev 4413)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2007-12-03 10:09:03 UTC (rev 4414)
@@ -12,18 +12,19 @@
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
- <param-value>/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
- /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
- /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
- /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
- /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-ModalPanel.xml,
- /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
- /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
- /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
- /WEB-INF/faces-config-DragAndDrop.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
- /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
- /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
- /WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-OrderingList.xml</param-value>
+ <param-value>/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,
+ /WEB-INF/faces-config-Panel.xml,/WEB-INF/faces-config-PanelBar.xml,/WEB-INF/faces-config-TabPanel.xml,
+ /WEB-INF/faces-config-TogglePanel.xml,/WEB-INF/faces-config-Paint2D.xml,/WEB-INF/faces-config-InputNumberSlider.xml,
+ /WEB-INF/faces-config-InputNumberSpinner.xml,/WEB-INF/faces-config-DDMenu.xml,/WEB-INF/faces-config-Tree.xml,
+ /WEB-INF/faces-config-PanelMenu.xml,/WEB-INF/faces-config-ModalPanel.xml,
+ /WEB-INF/faces-config-tooltip.xml,/WEB-INF/faces-config-Skin.xml,/WEB-INF/faces-config-Calendar.xml,
+ /WEB-INF/faces-config-Gmap.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-Separator.xml,
+ /WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-DataScroller.xml,
+ /WEB-INF/faces-config-DragAndDrop.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-Message.xml,
+ /WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
+ /WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
+ /WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-Icon.xml,/WEB-INF/faces-config-DataOrderedList.xml,
+ /WEB-INF/faces-config-DataDefinitionList.xml,/WEB-INF/faces-config-ContextMenu.xml,/WEB-INF/faces-config-ListShuttle.xml</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
Modified: branches/3.1.x/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp
===================================================================
--- branches/3.1.x/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2007-12-03 10:06:44 UTC (rev 4413)
+++ branches/3.1.x/test-applications/jsp/src/main/webapp/pages/RichMenu/RichMenu.jsp 2007-12-03 10:09:03 UTC (rev 4414)
@@ -18,38 +18,42 @@
<h:panelGrid columns="1">
<h:outputText value="Select component:" />
<h:selectOneMenu value="#{richBean.src}" onchange="submit();">
- <f:selectItem itemValue="Blank" itemLabel="Blank" />
- <f:selectItem itemValue="OrderingList" itemLabel="OrderingList" />
- <f:selectItem itemValue="Calendar" itemLabel="Calendar" />
- <f:selectItem itemValue="DataFilterSlider" itemLabel="Data Filter Slider" />
- <f:selectItem itemValue="DataScroller" itemLabel="Date Scroller" />
- <f:selectItem itemValue="DataTable" itemLabel="Date Table" />
- <f:selectItem itemValue="DragAndDrop" itemLabel="Drag And Drop" />
- <f:selectItem itemValue="DropDownMenu" itemLabel="Drop Down Menu" />
- <f:selectItem itemValue="Effect" itemLabel="Effect" />
- <f:selectItem itemValue="Gmap" itemLabel="Gmap" />
- <f:selectItem itemValue="InputNumberSlider" itemLabel="Input Number Slider" />
- <f:selectItem itemValue="InputNumberSpinner" itemLabel="Input Number Spinner" />
- <f:selectItem itemValue="Insert" itemLabel="Insert" />
- <f:selectItem itemValue="Message" itemLabel="Message" />
- <f:selectItem itemValue="ModalPanel" itemLabel="Modal Panel" />
- <f:selectItem itemValue="Paint2D" itemLabel="Paint2D" />
- <f:selectItem itemValue="Panel" itemLabel="Panel" />
- <f:selectItem itemValue="Panel2" itemLabel="Panel2" />
- <f:selectItem itemValue="PanelBar" itemLabel="Panel Bar" />
- <f:selectItem itemValue="PanelMenu" itemLabel="Panel Menu" />
- <f:selectItem itemValue="Separator" itemLabel="Separator" />
- <f:selectItem itemValue="SimpleTogglePanel" itemLabel="Simple Toggle Panel" />
- <f:selectItem itemValue="Spacer" itemLabel="Spacer" />
- <f:selectItem itemValue="SuggestionBox" itemLabel="Suggestion Box" />
- <f:selectItem itemValue="TabPanel" itemLabel="Tab Panel" />
- <f:selectItem itemValue="TogglePanel" itemLabel="Toggle Panel" />
- <f:selectItem itemValue="ToolBar" itemLabel="Tool Bar" />
- <f:selectItem itemValue="Tooltip" itemLabel="Tooltip" />
- <f:selectItem itemValue="Tree" itemLabel="Tree" />
- <f:selectItem itemValue="VirtualEarth" itemLabel="Virtual Earth" />
- <f:selectItem itemValue="ScrollableDataTable" itemLabel="ScrollableDataTable" />
- <f:selectItem itemValue="jQuery" itemLabel="jQuery" />
+ <f:selectItem itemValue="Blank" itemLabel="Blank" />
+ <f:selectItem itemValue="OrderingList" itemLabel="OrderingList" />
+ <f:selectItem itemValue="ListShuttle" itemLabel="ListShuttle" />
+ <f:selectItem itemValue="ContextMenu" itemLabel="ContextMenu" />
+ <f:selectItem itemValue="Calendar" itemLabel="Calendar" />
+ <f:selectItem itemValue="DataFilterSlider" itemLabel="Data Filter Slider" />
+ <f:selectItem itemValue="DataScroller" itemLabel="Date Scroller" />
+ <f:selectItem itemValue="DataTable" itemLabel="Date Table" />
+ <f:selectItem itemValue="DataDefinitionList" itemLabel="DataDefinitionList" />
+ <f:selectItem itemValue="DataOrderedList" itemLabel="DataOrderedList" />
+ <f:selectItem itemValue="DragAndDrop" itemLabel="Drag And Drop" />
+ <f:selectItem itemValue="DropDownMenu" itemLabel="Drop Down Menu" />
+ <f:selectItem itemValue="Effect" itemLabel="Effect" />
+ <f:selectItem itemValue="Gmap" itemLabel="Gmap" />
+ <f:selectItem itemValue="InputNumberSlider" itemLabel="Input Number Slider" />
+ <f:selectItem itemValue="InputNumberSpinner" itemLabel="Input Number Spinner" />
+ <f:selectItem itemValue="Insert" itemLabel="Insert" />
+ <f:selectItem itemValue="Message" itemLabel="Message" />
+ <f:selectItem itemValue="ModalPanel" itemLabel="Modal Panel" />
+ <f:selectItem itemValue="Paint2D" itemLabel="Paint2D" />
+ <f:selectItem itemValue="Panel" itemLabel="Panel" />
+ <f:selectItem itemValue="Panel2" itemLabel="Panel2" />
+ <f:selectItem itemValue="PanelBar" itemLabel="Panel Bar" />
+ <f:selectItem itemValue="PanelMenu" itemLabel="Panel Menu" />
+ <f:selectItem itemValue="Separator" itemLabel="Separator" />
+ <f:selectItem itemValue="SimpleTogglePanel" itemLabel="Simple Toggle Panel" />
+ <f:selectItem itemValue="Spacer" itemLabel="Spacer" />
+ <f:selectItem itemValue="SuggestionBox" itemLabel="Suggestion Box" />
+ <f:selectItem itemValue="TabPanel" itemLabel="Tab Panel" />
+ <f:selectItem itemValue="TogglePanel" itemLabel="Toggle Panel" />
+ <f:selectItem itemValue="ToolBar" itemLabel="Tool Bar" />
+ <f:selectItem itemValue="Tooltip" itemLabel="Tooltip" />
+ <f:selectItem itemValue="Tree" itemLabel="Tree" />
+ <f:selectItem itemValue="VirtualEarth" itemLabel="Virtual Earth" />
+ <f:selectItem itemValue="ScrollableDataTable" itemLabel="ScrollableDataTable" />
+ <f:selectItem itemValue="jQuery" itemLabel="jQuery" />
</h:selectOneMenu>
</h:panelGrid>
</rich:toolBarGroup>
17 years, 1 month
JBoss Rich Faces SVN: r4413 - in branches/3.1.x/test-applications/facelets/src/main/webapp: WEB-INF and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-12-03 05:06:44 -0500 (Mon, 03 Dec 2007)
New Revision: 4413
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
Log:
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2007-12-03 10:06:44 UTC (rev 4413)
@@ -1,6 +1,7 @@
<f:subview id="listShuttlePropertySubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
<h:panelGrid columns="2">
+ <h:column></h:column>
<h:panelGroup>
<a4j:commandButton value="reRender" reRender="listShuttleID"></a4j:commandButton>
<a4j:commandButton action="submit();" value="a4j submit();"></a4j:commandButton>
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-12-03 08:58:34 UTC (rev 4412)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-12-03 10:06:44 UTC (rev 4413)
@@ -45,7 +45,8 @@
/WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
/WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
/WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
- /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml,/WEB-INF/faces-config-ContextMenu.xml,/WEB-INF/faces-config-ListShuttle.xml</param-value>
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml,
+ /WEB-INF/faces-config-ContextMenu.xml,/WEB-INF/faces-config-ListShuttle.xml</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
17 years, 1 month
JBoss Rich Faces SVN: r4412 - in branches/3.1.x/test-applications/facelets/src/main: java/listShuttle and 11 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-12-03 03:58:34 -0500 (Mon, 03 Dec 2007)
New Revision: 4412
Added:
branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/
branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/orderingList/OrderingList.java
branches/3.1.x/test-applications/facelets/src/main/java/rich/RichBean.java
branches/3.1.x/test-applications/facelets/src/main/java/tree/Bean.java
branches/3.1.x/test-applications/facelets/src/main/java/tree/Library.java
branches/3.1.x/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml
Log:
add listShuttle
Added: branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java (rev 0)
+++ branches/3.1.x/test-applications/facelets/src/main/java/listShuttle/ListShuttle.java 2007-12-03 08:58:34 UTC (rev 4412)
@@ -0,0 +1,273 @@
+package listShuttle;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.faces.event.ValueChangeEvent;
+
+import util.data.Data;
+
+public class ListShuttle {
+ private int first;
+ private int lenght;
+ private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
+ private boolean fastMoveControlsVisible;
+ private boolean fastOrderControlsVisible;
+ private boolean moveControlsVisible;
+ private boolean orderControlsVisible;
+ private boolean showButtonLabels;
+ private boolean showSelect;
+ private boolean showAllSourceData;
+ private boolean showAllTargetData;
+ private ArrayList<Data> sourceValue;
+ private ArrayList<Data> targetValue;
+ private ArrayList<String> info;
+ private Collection selection;
+ private String bottomControlLabel;
+ private String copyAllControlLabel;
+ private String copyControlLabel;
+ private String downControlLabel;
+ private String removeAllControlLabel;
+ private String removeControlLabel;
+ private String topControlLabel;
+ private String upControlLabel;
+
+
+ public ListShuttle() {
+ this.first = 1;
+ this.lenght = 10;
+ this.showSelect = true;
+ this.showAllSourceData = true;
+ this.showAllTargetData = true;
+ this.fastMoveControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.moveControlsVisible = true;
+ this.orderControlsVisible = true;
+ this.showButtonLabels = true;
+ this.bottomControlLabel = "bottom";
+ this.copyAllControlLabel = "copy all";
+ this.copyControlLabel = "copy";
+ this.downControlLabel = "down";
+ this.removeAllControlLabel = "remove all";
+ this.removeControlLabel = "remove";
+ this.topControlLabel = "top";
+ this.upControlLabel = "up";
+ this.info = new ArrayList<String>();
+ this.targetValue = new ArrayList<Data>();
+ this.sourceValue = new ArrayList<Data>();
+ for(int i = 0; i < lenght; i++)
+ sourceValue.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ }
+
+ public int getFirst() {
+ return first;
+ }
+
+ public void setFirst(int first) {
+ this.first = first;
+ }
+
+ public boolean isFastMoveControlsVisible() {
+ return fastMoveControlsVisible;
+ }
+
+ public void setFastMoveControlsVisible(boolean fastMoveControlsVisible) {
+ this.fastMoveControlsVisible = fastMoveControlsVisible;
+ }
+
+ public boolean isFastOrderControlsVisible() {
+ return fastOrderControlsVisible;
+ }
+
+ public void setFastOrderControlsVisible(boolean fastOrderControlsVisible) {
+ this.fastOrderControlsVisible = fastOrderControlsVisible;
+ }
+
+ public boolean isMoveControlsVisible() {
+ return moveControlsVisible;
+ }
+
+ public void setMoveControlsVisible(boolean moveControlsVisible) {
+ this.moveControlsVisible = moveControlsVisible;
+ }
+
+ public boolean isOrderControlsVisible() {
+ return orderControlsVisible;
+ }
+
+ public void setOrderControlsVisible(boolean orderControlsVisible) {
+ this.orderControlsVisible = orderControlsVisible;
+ }
+
+ public boolean isShowButtonLabels() {
+ return showButtonLabels;
+ }
+
+ public void setShowButtonLabels(boolean showButtonLabels) {
+ this.showButtonLabels = showButtonLabels;
+ }
+
+ public ArrayList<Data> getSourceValue() {
+ return sourceValue;
+ }
+
+ public void setSourceValue(ArrayList<Data> sourceValue) {
+ this.sourceValue = sourceValue;
+ }
+
+ public ArrayList getTargetValue() {
+ return targetValue;
+ }
+
+ public Collection getSelection() {
+ System.out.println("Selection.out: " + selection);
+ return selection;
+ }
+
+ public void setSelection(Collection selection) {
+ info.clear();
+ addSelection(selection);
+ this.selection = selection;
+ }
+
+ public String getBottomControlLabel() {
+ return bottomControlLabel;
+ }
+
+ public void setBottomControlLabel(String bottomControlLabel) {
+ this.bottomControlLabel = bottomControlLabel;
+ }
+
+ public String getCopyAllControlLabel() {
+ return copyAllControlLabel;
+ }
+
+ public void setCopyAllControlLabel(String copyAllControlLabel) {
+ this.copyAllControlLabel = copyAllControlLabel;
+ }
+
+ public String getCopyControlLabel() {
+ return copyControlLabel;
+ }
+
+ public void setCopyControlLabel(String copyControlLabel) {
+ this.copyControlLabel = copyControlLabel;
+ }
+
+ public String getDownControlLabel() {
+ return downControlLabel;
+ }
+
+ public void setDownControlLabel(String downControlLabel) {
+ this.downControlLabel = downControlLabel;
+ }
+
+ public String getRemoveAllControlLabel() {
+ return removeAllControlLabel;
+ }
+
+ public void setRemoveAllControlLabel(String removeAllControlLabel) {
+ this.removeAllControlLabel = removeAllControlLabel;
+ }
+
+ public String getRemoveControlLabel() {
+ return removeControlLabel;
+ }
+
+ public void setRemoveControlLabel(String removeControlLabel) {
+ this.removeControlLabel = removeControlLabel;
+ }
+
+ public String getTopControlLabel() {
+ return topControlLabel;
+ }
+
+ public void setTopControlLabel(String topControlLabel) {
+ this.topControlLabel = topControlLabel;
+ }
+
+ public String getUpControlLabel() {
+ return upControlLabel;
+ }
+
+ public void setUpControlLabel(String upControlLabel) {
+ this.upControlLabel = upControlLabel;
+ }
+
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(sourceValue.size() > lenght)
+ for(int i = lenght; i < sourceValue.size(); )
+ sourceValue.remove(i);
+ else
+ for(int i = sourceValue.size() + 1; i <= lenght; i++)
+ sourceValue.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
+ }
+
+ private void addSelection(Collection<Data> selection) {
+ if(selection == null) return;
+ Iterator<Data> inter = selection.iterator();
+ Data data = new Data();
+ while (inter.hasNext()) {
+ data = inter.next();
+ info.add(data.getInt0() + "; " + data.getStr0() + "; " + data.getStr1() + "; " + data.getStr2() + "; " + data.getStr3());
+ }
+ }
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public ArrayList<String> getInfo() {
+ return info;
+ }
+
+ public void setInfo(ArrayList<String> info) {
+ this.info = info;
+ }
+
+ public void setTargetValue(ArrayList<Data> targetValue) {
+ this.targetValue = targetValue;
+ }
+
+ public void cbAction() {
+ info.clear();
+ info.add("commandButton submit();");
+ addSelection(getSelection());
+ }
+
+ public void clAction() {
+ info.clear();
+ info.add("commandLink submit();");
+ addSelection(getSelection());
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
+
+ public boolean isShowAllSourceData() {
+ return showAllSourceData;
+ }
+
+ public void setShowAllSourceData(boolean showAllSourceData) {
+ this.showAllSourceData = showAllSourceData;
+ }
+
+ public boolean isShowAllTargetData() {
+ return showAllTargetData;
+ }
+
+ public void setShowAllTargetData(boolean showAllTargetData) {
+ this.showAllTargetData = showAllTargetData;
+ }
+}
Modified: branches/3.1.x/test-applications/facelets/src/main/java/orderingList/OrderingList.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/orderingList/OrderingList.java 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/java/orderingList/OrderingList.java 2007-12-03 08:58:34 UTC (rev 4412)
@@ -14,7 +14,6 @@
private String [] statusIcon = {"/pics/error.gif", "/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif", "/pics/warn.gif"};
private String captionLabel;
private Collection<Data> selection;
- private String select;
private String controlsType;
private String controlsVerticalAlign;
private String controlsHorizontalAlign;
@@ -31,6 +30,8 @@
private boolean rendered;
private boolean showButtonLabels;
private boolean facet;
+ private boolean showAllData;
+ private boolean showSelect;
public boolean isFacet() {
return facet;
@@ -47,7 +48,7 @@
public void setSelection(Collection<Data> selection) {
System.out.println("Selection.out: " + selection);
info.clear();
- addSelection();
+ addSelection(selection);
this.selection = selection;
}
@@ -70,24 +71,26 @@
}
public OrderingList() {
- info = new ArrayList<String>();
- captionLabel = "captionLabel";
- lenght = 10;
- listHeight = "300";
- listWidth = "800";
- controlsType = "button";
- controlsHorizontalAlign = "right";
- controlsVerticalAlign = "center";
- headerLabel = "headerLabel";
- bottomControlLabel = "bottom label";
- upControlLabel = "up label";
- downControlLabel = "down label";
- topControlLabel = "top label";
- orderControlsVisible = true;
- fastOrderControlsVisible = true;
- rendered = true;
- showButtonLabels = true;
- list = new ArrayList<Data>();
+ this.info = new ArrayList<String>();
+ this.captionLabel = "captionLabel";
+ this.lenght = 10;
+ this.listHeight = "300";
+ this.listWidth = "800";
+ this.controlsType = "button";
+ this.controlsHorizontalAlign = "right";
+ this.controlsVerticalAlign = "center";
+ this.headerLabel = "headerLabel";
+ this.bottomControlLabel = "bottom label";
+ this.upControlLabel = "up label";
+ this.downControlLabel = "down label";
+ this.topControlLabel = "top label";
+ this.orderControlsVisible = true;
+ this.fastOrderControlsVisible = true;
+ this.rendered = true;
+ this.showButtonLabels = true;
+ this.showAllData = true;
+ this.showSelect = true;
+ this.list = new ArrayList<Data>();
for(int i = 1; i <= lenght; i++)
list.add(new Data(i, "Button " + i, "Link " + i, "select" +(i % 5), statusIcon[i % 5]));
}
@@ -223,13 +226,13 @@
public void cbAction() {
info.clear();
info.add("commandButton submit();");
- addSelection();
+ addSelection(getSelection());
}
public void clAction() {
info.clear();
info.add("commandLink submit();");
- addSelection();
+ addSelection(getSelection());
}
public void bTest1(){
@@ -332,14 +335,6 @@
addNewItem();
}
- public String getSelect() {
- return select;
- }
-
- public void setSelect(String select) {
- this.select = select;
- }
-
public ArrayList<String> getInfo() {
return info;
}
@@ -348,13 +343,29 @@
this.info = info;
}
- private void addSelection() {
+ private void addSelection(Collection<Data> selection) {
if(selection == null) return;
Iterator<Data> inter = selection.iterator();
Data data = new Data();
while (inter.hasNext()) {
data = inter.next();
- info.add(data.getInt0() + "; " + data.getStr0() + "; " + data.getStr1() + "; " + data.getStr2() + "; " + data.getStr3());
+ info.add(data.getInt0() + "; " + data.getStr0() + "; " + data.getStr0() + "submit(); " + data.getStr1() + "; " + data.getStr1() + "submit(); " + data.getStr2() + "; " + data.getStr3());
}
}
+
+ public boolean isShowAllData() {
+ return showAllData;
+ }
+
+ public void setShowAllData(boolean showAllData) {
+ this.showAllData = showAllData;
+ }
+
+ public boolean isShowSelect() {
+ return showSelect;
+ }
+
+ public void setShowSelect(boolean showSelect) {
+ this.showSelect = showSelect;
+ }
}
Modified: branches/3.1.x/test-applications/facelets/src/main/java/rich/RichBean.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/rich/RichBean.java 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/java/rich/RichBean.java 2007-12-03 08:58:34 UTC (rev 4412)
@@ -52,6 +52,7 @@
map.add("DataDefinitionList", add("/DataDefinitionList/DataDefinitionList", new boolean [] {true, false}));
map.add("DataOrderedList", add("/DataOrderedList/DataOrderedList", new boolean [] {true, false}));
map.add("ContextMenu", add("/ContextMenu/ContextMenu", new boolean [] {true, false}));
+ map.add("ListShuttle", add("/ListShuttle/ListShuttle", new boolean [] {true, true}));
}
public String getSrc() {
Modified: branches/3.1.x/test-applications/facelets/src/main/java/tree/Bean.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/tree/Bean.java 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/java/tree/Bean.java 2007-12-03 08:58:34 UTC (rev 4412)
@@ -75,9 +75,22 @@
child.setData("Node: " + id);
data1.addChild(id, child);
}
- initData();
+ //initData();
}
+ private void initData() {
+ selectedNodeChildren.clear();
+ if (selectedNode != null) {
+ Iterator iter = selectedNode.getChildren();
+ int i = 0;
+ while (iter.hasNext()) {
+ Map.Entry entry = (Map.Entry) iter.next();
+ selectedNodeChildren
+ .put(((TreeNode) entry.getValue()).getData(), Integer.toString(i++));
+ }
+ }
+ }
+
public String getIcon() {
return icon;
}
@@ -146,6 +159,7 @@
System.out.println("Node selected: " + getTree(event).getRowKey());
if (getTree(event).getTreeNode() != null) {
selectedNode = getTree(event).getTreeNode();
+ data.removeChild(selectedNode.getChildren());
initData();
}
}
@@ -174,19 +188,6 @@
tree.setRowKey(key);
}
- private void initData() {
- selectedNodeChildren.clear();
- if (selectedNode != null) {
- Iterator iter = selectedNode.getChildren();
- int i = 0;
- while (iter.hasNext()) {
- Map.Entry entry = (Map.Entry) iter.next();
- selectedNodeChildren
- .put(((TreeNode) entry.getValue()).getData(), Integer.toString(i++));
- }
- }
- }
-
public void onExpand(NodeExpandedEvent event) {
UITree tree = getTree(event);
System.out.println("Node " + (tree.isExpanded() ? "expanded" : "collapsed") + " "
Modified: branches/3.1.x/test-applications/facelets/src/main/java/tree/Library.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/tree/Library.java 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/java/tree/Library.java 2007-12-03 08:58:34 UTC (rev 4412)
@@ -13,7 +13,6 @@
private Map pathways = null;
private Object state1;
- // private Object state2;
private List listPathway;
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -1,14 +1,23 @@
<f:subview id="componentControlSubviewID" xmlns:a4j="http://richfaces.org/a4j" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">
- <rich:modalPanel id="MPid" onshow="alert(event.parameters.name)">
- <h:outputLink id onclick="Richfaces.hideModalPanel('MPid');return false;" value="Close">
- <rich:componentControl for="MPid" operation="hide" params="name:'componentControl work(hide)'" />
- <f:verbatim>Close</f:verbatim>
- </h:outputLink>
+
+ <rich:modalPanel id="ccModalPanelID" onshow="alert(event.parameters.show)" onhide="alert(event.parameters.hide)">
+ <h:outputLink id="hideButtonID" onclick="Richfaces.hideModalPanel('ccModalPanelID');return false;" value="Close"/>
</rich:modalPanel>
- <h:commandButton id="button" onclick="Richfaces.showModalPanel('MPid');" ></h:commandButton>
- <a id="showButton" onclick="Richfaces.showModalPanel('MPid');" href="#">Show MP</a>
+
+ <h:commandButton id="showButtonID" onclick="Richfaces.showModalPanel('ccModalPanelID');" value="show" ></h:commandButton>
- <rich:componentControl attachTo="showButton" for="MPid" operation="show" params="name:'componentControl work(show)'"/>
+ <rich:componentControl attachTo="showButtonID" for="ccModalPanelID" operation="show" params="show:'componentControl work(show)'">
+ <f:param name="mPanelParam" value="show"/>
+ </rich:componentControl>
+ <rich:componentControl attachTo="hideButtonID" for="ccModalPanelID" operation="hide" params="hide:'componentControl work(hide)'">
+ <f:param name="mPanelParam" value="hide" />
+ </rich:componentControl>
+ <rich:contextMenu submitMode="server" id="ccContextMenuID">
+ <rich:menuItem value="Item 1"></rich:menuItem>
+ <rich:menuItem value="Item 2"></rich:menuItem>
+ <rich:menuItem value="Item 3"></rich:menuItem>
+ </rich:contextMenu>
+
</f:subview>
\ No newline at end of file
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -1,7 +1,7 @@
<f:subview id="contextMenuPropertySubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
- <a4j:commandButton value="reRender" reRender="orderingListID"></a4j:commandButton>
+ <a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
<a4j:commandButton action="submit();" value="a4j submit();"></a4j:commandButton>
<a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
<h:commandButton action="submit();" value="submit();" />
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenu.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -3,7 +3,7 @@
<h:panelGrid columns="2">
<rich:spacer width="400px" height="400px"></rich:spacer>
<rich:panel>
- <rich:dropDownMenu id="ddmId" value="DropDownMenu" submitMode="#{dDMenu.mode}" hideDelay="#{dDMenu.hideDelay}"
+ <rich:dropDownMenu id="ddmId" value="" submitMode="#{dDMenu.mode}" hideDelay="#{dDMenu.hideDelay}"
direction="#{dDMenu.direction}" horizontalOffset="#{dDMenu.horizontalOffset}" jointPoint="#{dDMenu.jointPoint}"
popupWidth="#{dDMenu.popupWidth}" showDelay="#{dDMenu.showDelay}" rendered="#{dDMenu.rendered}"
verticalOffset="#{dDMenu.verticalOffset}" styleClass="panelpos" event="#{dDMenu.event}"
Added: branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml (rev 0)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttle.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -0,0 +1,75 @@
+<f:subview id="listShuttleSubviewID" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
+ <rich:listShuttle id="listShuttleID" var="item" sourceValue="#{listShuttle.sourceValue}" targetValue="#{listShuttle.targetValue}"
+ bottomControlLabel="#{listShuttle.bottomControlLabel}" copyAllControlLabel="#{listShuttle.copyAllControlLabel}"
+ copyControlLabel="#{listShuttle.copyControlLabel}" downControlLabel="#{listShuttle.downControlLabel}"
+ fastMoveControlsVisible="#{listShuttle.fastMoveControlsVisible}"
+ fastOrderControlsVisible="#{listShuttle.fastOrderControlsVisible}" first="#{listShuttle.first}"
+ moveControlsVisible="#{listShuttle.moveControlsVisible}" orderControlsVisible="#{listShuttle.orderControlsVisible}"
+ removeAllControlLabel="#{listShuttle.removeAllControlLabel}" removeControlLabel="#{listShuttle.removeControlLabel}"
+ selection="#{listShuttle.selection}" showButtonLabels="#{listShuttle.showButtonLabels}"
+ topControlLabel="#{listShuttle.topControlLabel}" upControlLabel="#{listShuttle.upControlLabel}">
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str0}" />
+ </h:column>
+
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:commandButton onclick="submit();" action="#{listShuttle.cbAction}" value="#{item.str0} submit();"/>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:inputText value="#{item.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <a4j:commandLink action="#{listShuttle.clAction}" value="#{item.str1} submit()" reRender="listShuttleID"></a4j:commandLink>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.str2}">
+ <f:selectItem itemLabel="select0" itemValue="select0" />
+ <f:selectItem itemLabel="select1" itemValue="select1" />
+ <f:selectItem itemLabel="select2" itemValue="select2" />
+ <f:selectItem itemLabel="select3" itemValue="select3" />
+ <f:selectItem itemLabel="select4" itemValue="select4" />
+ <a4j:support event="onclick" action="submit();"></a4j:support>
+ </h:selectOneMenu>
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{item.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:graphicImage value="#{item.str3}" />
+ </h:column>
+ </rich:listShuttle>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml (rev 0)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleProperty.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -0,0 +1,77 @@
+<f:subview id="listShuttlePropertySubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="2">
+ <h:panelGroup>
+ <a4j:commandButton value="reRender" reRender="listShuttleID"></a4j:commandButton>
+ <a4j:commandButton action="submit();" value="a4j submit();"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <h:commandButton action="submit();" value="submit();" />
+ <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ </h:panelGroup>
+
+ <h:outputText value="Enter quantity of lines" />
+ <h:inputText value="#{listShuttle.lenght}">
+ <a4j:support event="onchange" action="#{listShuttle.addNewItem}" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="first" />
+ <h:inputText value="#{listShuttle.first}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}" onchange="submit();" />
+
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="moveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.fastOrderControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="fastMoveControlsVisible" />
+ <h:selectBooleanCheckbox value="#{listShuttle.fastMoveControlsVisible}" onchange="submit();" />
+
+ <h:outputText value="copyControlLabel" />
+ <h:inputText value="#{listShuttle.copyControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="removeControlLabel" />
+ <h:inputText value="#{listShuttle.removeControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="copyAllControlLabel" />
+ <h:inputText value="#{listShuttle.copyAllControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="removeAllControlLabel" />
+ <h:inputText value="#{listShuttle.removeAllControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="bottomControlLabel" />
+ <h:inputText value="#{listShuttle.bottomControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="downControlLabel" />
+ <h:inputText value="#{listShuttle.downControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{listShuttle.topControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="upControlLabel" />
+ <h:inputText value="#{listShuttle.upControlLabel}">
+ <a4j:support event="onclick" reRender="listShuttleID"></a4j:support>
+ </h:inputText>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Added: branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml (rev 0)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/ListShuttle/ListShuttleStraightforward.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -0,0 +1,144 @@
+<f:subview id="listShuttleStraightforwardSubviewID" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
+ <h:panelGrid columns="3">
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoLSID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showSelect}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="infoLSlID" value="#{listShuttle.info}" var="info" rendered="#{listShuttle.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all source (reRender)" reRender="allInfoLSSourceID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllSourceData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSSourceID" value="#{listShuttle.sourceValue}" var="allInfo" rendered="#{listShuttle.showAllSourceData}" border="1">
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
+ <a4j:commandButton value="Show all target (reRender)" reRender="allInfoLSTargetID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{listShuttle.showAllTargetData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoLSTargetID" value="#{listShuttle.targetValue}" var="allInfo" rendered="#{listShuttle.showAllTargetData}" border="1">
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+ </h:panelGrid>
+</f:subview>
\ No newline at end of file
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -2,7 +2,7 @@
xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
<h:messages showDetail="true" />
-
+
<rich:orderingList id="orderingListID" value="#{orderingList.list}" var="item" listHeight="#{orderingList.listHeight}"
listWidth="#{orderingList.listWidth}" controlsType="#{orderingList.controlsType}"
bottomControlLabel="#{orderingList.bottomControlLabel}" captionLabel="#{orderingList.captionLabel}"
@@ -45,12 +45,12 @@
</f:facet>
<h:inputText value="#{item.str1}" />
</h:column>
-
+
<h:column>
<f:facet name="header">
<h:outputText value="Link" />
</f:facet>
- <a4j:commandLink action="#{orderingList.clAction}" value="#{item.str1} submit()"></a4j:commandLink>
+ <a4j:commandLink action="#{orderingList.clAction}" onclick="submit()" value="#{item.str1} submit()" reRender="orderingListID"></a4j:commandLink>
</h:column>
<h:column>
@@ -58,7 +58,7 @@
<h:outputText value="select" />
</f:facet>
<h:selectOneMenu value="#{item.str2}">
- <f:selectItem itemLabel="select0" itemValue="select5" />
+ <f:selectItem itemLabel="select0" itemValue="select0" />
<f:selectItem itemLabel="select1" itemValue="select1" />
<f:selectItem itemLabel="select2" itemValue="select2" />
<f:selectItem itemLabel="select3" itemValue="select3" />
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -22,16 +22,82 @@
<a4j:commandButton action="#{orderingList.bTest5}" value="run" reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
<h:outputText value="#{msg.t5OrderingList}" />
- <a4j:commandButton value="Show selection" reRender="infoPanelID"></a4j:commandButton>
- <h:column></h:column>
+ <a4j:commandButton value="Show selection (reRender)" reRender="infoPanelID"></a4j:commandButton>
<h:column>
- <h:dataTable id="infoPanelID" value="#{orderingList.info}" var="info" rendered="true">
- <h:column>
- <h:outputText value="#{info}" />
- </h:column>
- </h:dataTable>
+ <h:selectBooleanCheckbox value="#{orderingList.showSelect}" onclick="submit();" />
</h:column>
+ <h:column>
+ <h:dataTable id="infoPanelID" value="#{orderingList.info}" var="info" rendered="#{orderingList.showSelect}" border="1">
+ <h:column>
+ <h:outputText value="#{info}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+ <a4j:commandButton value="Show all data (reRender)" reRender="allInfoPanelID"></a4j:commandButton>
+ <h:column>
+ <h:selectBooleanCheckbox value="#{orderingList.showAllData}" onclick="submit();" />
+ </h:column>
+ <h:column>
+ <h:dataTable id="allInfoPanelID" value="#{orderingList.list}" var="allInfo" rendered="#{orderingList.showAllData}" border="1">
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{allInfo.int0}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0}" />
+ </h:column>
+
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Button" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str0} submit();" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Input" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Link" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str1} submit()" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="select" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str2}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Text" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="graphicImage" />
+ </f:facet>
+ <h:outputText value="#{allInfo.str3}" />
+ </h:column>
+ </h:dataTable>
+ </h:column>
+
<h:panelGroup>
<a4j:commandButton value="reRender" reRender="orderingListID"></a4j:commandButton>
<a4j:commandButton action="submit();" value="a4j submit();"></a4j:commandButton>
Added: branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml (rev 0)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-ListShuttle.xml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>listShuttle</managed-bean-name>
+ <managed-bean-class>listShuttle.ListShuttle</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/web.xml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/WEB-INF/web.xml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -45,7 +45,7 @@
/WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,
/WEB-INF/faces-config-RichBean.xml,/WEB-INF/faces-config-ScrollableDataTable.xml,
/WEB-INF/faces-config-RichTest.xml,/WEB-INF/faces-config-jQuery.xml,/WEB-INF/faces-config-DragAndDrop.xml,
- /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml,/WEB-INF/faces-config-ContextMenu.xml</param-value>
+ /WEB-INF/faces-config-OrderingList.xml,/WEB-INF/faces-config-DataOrderedList.xml,/WEB-INF/faces-config-DataDefinitionList.xml,/WEB-INF/faces-config-ContextMenu.xml,/WEB-INF/faces-config-ListShuttle.xml</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml 2007-12-03 00:11:11 UTC (rev 4411)
+++ branches/3.1.x/test-applications/facelets/src/main/webapp/pages/RichMenu/RichMenu.xhtml 2007-12-03 08:58:34 UTC (rev 4412)
@@ -31,6 +31,7 @@
<h:selectOneMenu value="#{richBean.src}" onchange="submit();">
<f:selectItem itemValue="Blank" itemLabel="Blank" />
<f:selectItem itemValue="OrderingList" itemLabel="OrderingList" />
+ <f:selectItem itemValue="ListShuttle" itemLabel="ListShuttle" />
<f:selectItem itemValue="ContextMenu" itemLabel="ContextMenu" />
<f:selectItem itemValue="Calendar" itemLabel="Calendar" />
<f:selectItem itemValue="DataFilterSlider" itemLabel="Data Filter Slider" />
17 years, 1 month
JBoss Rich Faces SVN: r4411 - in trunk/ui/calendar: src/main/resources/org/richfaces/renderkit/html/css and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-12-02 19:11:11 -0500 (Sun, 02 Dec 2007)
New Revision: 4411
Modified:
trunk/ui/calendar/pom.xml
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/JQuerySpinBtn.js
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
latest fixes for calendar time fields
Modified: trunk/ui/calendar/pom.xml
===================================================================
--- trunk/ui/calendar/pom.xml 2007-12-01 15:29:41 UTC (rev 4410)
+++ trunk/ui/calendar/pom.xml 2007-12-03 00:11:11 UTC (rev 4411)
@@ -47,5 +47,11 @@
<artifactId>richfaces-impl</artifactId>
<version>3.2.0-SNAPSHOT</version>
</dependency>
+
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>inputnumber-spinner</artifactId>
+ <version>3.2.0-SNAPSHOT</version>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-12-01 15:29:41 UTC (rev 4410)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-12-03 00:11:11 UTC (rev 4411)
@@ -3,6 +3,7 @@
xmlns:u='http:/jsf.exadel.com/template/util'
xmlns="http://www.w3.org/1999/xhtml" >
<f:verbatim><![CDATA[
+
.rich-calendar-exterior{
border : 1px solid;
}
@@ -88,7 +89,37 @@
border-top : 1px solid;
border-right : 0px solid;
}
- ]]>
+
+.rich-calendar-spinner-input {
+ border: 0px;
+ padding: 0px 0px 0px 3px;
+ background: none transparent scroll repeat 0% 0%;
+ margin: 0px;
+}
+
+.rich-calendar-spinner-input-container {
+ padding: 0px;
+ margin: 0px;
+ background-position: left top;
+ background-repeat: repeat-x;
+ border: 1px solid;
+
+ width: 99%;
+}
+
+.rich-calendar-spinner-buttons {
+ border-width: 1px;
+ border-style: solid;
+ padding: 0px;
+ margin: 0px;
+ background-position: left top;
+ background-repeat: repeat-x;
+ font-size: 0px;
+
+ width: 1%;
+}
+
+]]>
</f:verbatim>
<u:selector name=".rich-calendar-exterior">
@@ -261,6 +292,13 @@
<u:style name="background" skin="additionalBackgroundColor"/>
<u:style name="border" value="1px solid"/>
<u:style name="border-color" skin="panelBorderColor"/>
+
+ <u:style name="width" value="1%"/>
+ <u:style name="z-index" value="2"/>
+ <u:style name="position" value="relative"/>
+ </u:selector>
+
+ <u:selector name=".rich-calendar-time-layout, .rich-calendar-time-layout input">
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
@@ -272,11 +310,11 @@
</u:selector>
<u:selector name=".rich-calendar-time-layout-cancel">
- <u:style name="padding" value="0px 1px 7px 7px"/>
+ <u:style name="padding" value="0px 7px 7px 1px"/>
</u:selector>
<u:selector name=".rich-calendar-time-layout-ok">
- <u:style name="padding" value="0px 7px 7px 1px"/>
+ <u:style name="padding" value="0px 1px 7px 7px"/>
</u:selector>
<u:selector name=".rich-calendar-time-btn">
@@ -305,5 +343,62 @@
<u:style name="margin" value="0px 2px"/>
</u:selector>
+ <u:selector name=".rich-calendar-spinner-up">
+ <u:style name="background-image">
+ <f:resource f:key="org.richfaces.renderkit.html.images.buttons.SpinnerButtonUp" />
+ </u:style>
+
+ <u:style name="height" value="7px" />
+ <u:style name="width" value="14px" />
+ <u:style name="margin" value="0px 1px 1px 0px" />
+ </u:selector>
+ <u:selector name=".rich-calendar-spinner-down">
+ <u:style name="background-image">
+ <f:resource f:key="org.richfaces.renderkit.html.images.buttons.SpinnerButtonDown" />
+ </u:style>
+
+ <u:style name="height" value="7px"/>
+ <u:style name="width" value="14px"/>
+ <u:style name="margin" value="0px 1px 1px 0px" />
+ </u:selector>
+
+ <u:selector name=".rich-calendar-spinner-pressed">
+ <u:style name="margin" value="1px 0px 0px 1px" />
+ </u:selector>
+
+ <u:selector name=".rich-calendar-spinner-buttons">
+ <u:style name="background-color" skin="headerBackgroundColor" />
+ <u:style name="border-color" skin="headerBackgroundColor" />
+ <u:style name="background-image">
+ <f:resource f:key="org.richfaces.renderkit.html.images.background.SpinnerButtonGradient" />
+ </u:style>
+ </u:selector>
+
+ <u:selector name=".rich-calendar-spinner-input">
+ <u:style name="font-size" skin="buttonSizeFont"/>
+ <u:style name="font-family" skin="buttonFamilyFont"/>
+
+ <u:style name="width" value="18px"/>
+ </u:selector>
+
+ <u:selector name=".rich-calendar-spinner-input-container">
+ <u:style name="background-image">
+ <f:resource f:key="org.richfaces.renderkit.html.images.background.SpinnerFieldGradient" />
+ </u:style>
+ <u:style name="background-color" skin="controlBackgroundColor" />
+ <u:style name="border-color" skin="panelBorderColor" />
+ <u:style name="border-bottom-color" skin="subBorderColor" />
+ <u:style name="border-right-color" skin="subBorderColor" />
+ </u:selector>
+
+ <u:selector name=".rich-calendar-time-editor-shadow">
+ <u:style name="background" skin="additionalBackgroundColor"/>
+
+ <u:style name="z-index" value="1"/>
+ <u:style name="position" value="absolute"/>
+
+ <u:style name="opacity" value="0.3"/>
+ <u:style name="filter" value="alpha(opacity=30)"/>
+ </u:selector>
</f:template>
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/JQuerySpinBtn.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/JQuerySpinBtn.js 2007-12-01 15:29:41 UTC (rev 4410)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/JQuerySpinBtn.js 2007-12-03 00:11:11 UTC (rev 4411)
@@ -95,71 +95,71 @@
};
sbjQuery(this)
- .addClass(cfg && cfg.spinClass ? cfg.spinClass : 'spin-button')
+// .addClass(cfg && cfg.spinClass ? cfg.spinClass : 'spin-button')
+//
+// .mousemove(function(e){
+// // Determine which button mouse is over, or not (spin direction):
+// var x = e.pageX || e.x;
+// var y = e.pageY || e.y;
+// var el = e.target || e.srcElement;
+// var direction =
+// (x > coord(el,'offsetLeft') + el.offsetWidth - this.spinCfg._btn_width)
+// ? ((y < coord(el,'offsetTop') + this.spinCfg._btn_height) ? 1 : -1) : 0;
+//
+// if (direction !== this.spinCfg._direction) {
+// // Style up/down buttons:
+// switch(direction){
+// case 1: // Up arrow:
+// sbjQuery(this).removeClass(this.spinCfg.downClass).addClass(this.spinCfg.upClass);
+// break;
+// case -1: // Down arrow:
+// sbjQuery(this).removeClass(this.spinCfg.upClass).addClass(this.spinCfg.downClass);
+// break;
+// default: // Mouse is elsewhere in the textbox
+// sbjQuery(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass);
+// }
+//
+// // Set spin direction:
+// this.spinCfg._direction = direction;
+// }
+// })
+//
+// .mouseout(function(){
+// // Reset up/down buttons to their normal appearance when mouse moves away:
+// sbjQuery(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass);
+// this.spinCfg._direction = null;
+// })
- .mousemove(function(e){
- // Determine which button mouse is over, or not (spin direction):
- var x = e.pageX || e.x;
- var y = e.pageY || e.y;
- var el = e.target || e.srcElement;
- var direction =
- (x > coord(el,'offsetLeft') + el.offsetWidth - this.spinCfg._btn_width)
- ? ((y < coord(el,'offsetTop') + this.spinCfg._btn_height) ? 1 : -1) : 0;
-
- if (direction !== this.spinCfg._direction) {
- // Style up/down buttons:
- switch(direction){
- case 1: // Up arrow:
- sbjQuery(this).removeClass(this.spinCfg.downClass).addClass(this.spinCfg.upClass);
- break;
- case -1: // Down arrow:
- sbjQuery(this).removeClass(this.spinCfg.upClass).addClass(this.spinCfg.downClass);
- break;
- default: // Mouse is elsewhere in the textbox
- sbjQuery(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass);
- }
-
- // Set spin direction:
- this.spinCfg._direction = direction;
- }
- })
+// .mousedown(function(e){
+// if (this.spinCfg._direction != 0) {
+// // Respond to click on one of the buttons:
+// var self = this;
+// var adjust = function() {
+// self.adjustValue(self.spinCfg._direction * self.spinCfg.step);
+// };
+//
+// adjust();
+//
+// // Initial delay before repeating adjustment
+// self.spinCfg._delay = window.setTimeout(function() {
+// adjust();
+// // Repeat adjust at regular intervals
+// self.spinCfg._repeat = window.setInterval(adjust, self.spinCfg.interval);
+// }, self.spinCfg.delay);
+// }
+// })
+//
+// .mouseup(function(e){
+// // Cancel repeating adjustment
+// window.clearInterval(this.spinCfg._repeat);
+// window.clearTimeout(this.spinCfg._delay);
+// })
+//
+// .dblclick(function(e) {
+// if (sbjQuery.browser.msie)
+// this.adjustValue(this.spinCfg._direction * this.spinCfg.step);
+// })
- .mouseout(function(){
- // Reset up/down buttons to their normal appearance when mouse moves away:
- sbjQuery(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass);
- this.spinCfg._direction = null;
- })
-
- .mousedown(function(e){
- if (this.spinCfg._direction != 0) {
- // Respond to click on one of the buttons:
- var self = this;
- var adjust = function() {
- self.adjustValue(self.spinCfg._direction * self.spinCfg.step);
- };
-
- adjust();
-
- // Initial delay before repeating adjustment
- self.spinCfg._delay = window.setTimeout(function() {
- adjust();
- // Repeat adjust at regular intervals
- self.spinCfg._repeat = window.setInterval(adjust, self.spinCfg.interval);
- }, self.spinCfg.delay);
- }
- })
-
- .mouseup(function(e){
- // Cancel repeating adjustment
- window.clearInterval(this.spinCfg._repeat);
- window.clearTimeout(this.spinCfg._delay);
- })
-
- .dblclick(function(e) {
- if (sbjQuery.browser.msie)
- this.adjustValue(this.spinCfg._direction * this.spinCfg.step);
- })
-
.keydown(function(e){
// Respond to up/down arrow keys.
switch(e.keyCode){
@@ -184,6 +184,66 @@
this.adjustValue(0);
});
+ var self = this;
+
+ var btnUp = $(this.id + 'BtnUp');
+ sbjQuery(btnUp)
+ .mousedown(function(e){
+ // Respond to click on one of the buttons:
+ var adjust = function() {
+ self.adjustValue(self.spinCfg.step);
+ };
+
+ adjust();
+
+ // Initial delay before repeating adjustment
+ self.spinCfg._delay = window.setTimeout(function() {
+ adjust();
+ // Repeat adjust at regular intervals
+ self.spinCfg._repeat = window.setInterval(adjust, self.spinCfg.interval);
+ }, self.spinCfg.delay);
+ })
+
+ .mouseup(function(e){
+ // Cancel repeating adjustment
+ window.clearInterval(self.spinCfg._repeat);
+ window.clearTimeout(self.spinCfg._delay);
+ })
+
+ .dblclick(function(e) {
+ if (sbjQuery.browser.msie)
+ self.adjustValue(self.spinCfg.step);
+ });
+
+ var btnDown = $(this.id + 'BtnDown');
+ sbjQuery(btnDown)
+ .mousedown(function(e){
+ // Respond to click on one of the buttons:
+ var adjust = function() {
+ self.adjustValue(-self.spinCfg.step);
+ };
+
+ adjust();
+
+ // Initial delay before repeating adjustment
+ self.spinCfg._delay = window.setTimeout(function() {
+ adjust();
+ // Repeat adjust at regular intervals
+ self.spinCfg._repeat = window.setInterval(adjust, self.spinCfg.interval);
+ }, self.spinCfg.delay);
+ })
+
+ .mouseup(function(e){
+ // Cancel repeating adjustment
+ window.clearInterval(self.spinCfg._repeat);
+ window.clearTimeout(self.spinCfg._delay);
+ })
+
+ .dblclick(function(e) {
+ if (sbjQuery.browser.msie)
+ self.adjustValue(-self.spinCfg.step);
+ });
+
if (this.addEventListener) {
// Respond to mouse wheel in Firefox
this.addEventListener('DOMMouseScroll', function(e) {
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-12-01 15:29:41 UTC (rev 4410)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-12-03 00:11:11 UTC (rev 4411)
@@ -529,7 +529,10 @@
this.INPUT_DATE_ID = this.id+'InputDate';
this.IFRAME_ID = this.id+'IFrame';
this.TIME_EDITOR_ID = this.id+'TimeEditor';
- this.TIME_EDITOR_SHADOW_ID = this.id+'TimeEditorShaddow';
+ this.TIME_EDITOR_SHADOW_ID = this.id+'TimeEditorShadow';
+
+ this.TIME_EDITOR_PANEL_ID = this.id+'TimeEditorPanel';
+ this.TIME_EDITOR_PANEL_SHADOW_ID = this.id+'TimeEditorPanelShadow';
//this.popupIntervalId=null;
@@ -689,6 +692,30 @@
this.isTimeEditorCreated = true;
},
+ createSpinnerTable: function(id) {
+ return '<td><table cellspacing="0" cellpadding="0" border="0"><tbody><tr>'+
+ '<td class="rich-calendar-spinner-input-container">'+
+ '<input id="' + id + '" class="rich-calendar-spinner-input" type="text" />'+
+ '</td>'+
+ '<td class="rich-calendar-spinner-buttons">'+
+ '<table border="0" cellspacing="0" cellpadding="0"><tbody>'+
+ '<tr><td>'+
+ '<div id="'+id+'BtnUp" class="rich-calendar-spinner-up"'+
+ 'onmousedown="this.className=\'rich-calendar-spinner-up rich-calendar-spinner-pressed\'" '+
+ 'onmouseup="this.className=\'rich-calendar-spinner-up\'"'+
+ 'onmouseout="this.className=\'rich-calendar-spinner-up\'" />'+
+ '</td></tr>'+
+ '<tr><td>'+
+ '<div id="'+id+'BtnDown" class="rich-calendar-spinner-down"'+
+ 'onmousedown="this.className=\'rich-calendar-spinner-down rich-calendar-spinner-pressed\'" '+
+ 'onmouseup="this.className=\'rich-calendar-spinner-down\'"'+
+ 'onmouseout="this.className=\'rich-calendar-spinner-down\'" />'+
+ '</td></tr>'+
+ '</tbody></table>'+
+ '</td>'+
+ '</tr></tbody></table></td>';
+ },
+
setTimeProperties: function() {
this.timeType = 0;
@@ -742,15 +769,17 @@
this.datePattern = datePattern;
this.timePattern = timePattern;
+ var calendar = this;
+
this.timePatternHtml = timePattern.replace(/(^|[^\\Hhm])(H{1,2}|h{1,2}|m{2}|a)/g,
function($1,$2,$3) {
switch ($3) {
- case 'a' : return $2+'<input class="rich-calendar-time-input" id="'+id+'TimeSign"/>';
+ case 'a' : return ($2 ? '<td>'+$2+'</td>' : '')+calendar.createSpinnerTable(id+'TimeSign');//'<input class="rich-calendar-time-input" id="'+id+'TimeSign"/>';
case 'H' :
case 'HH' :
case 'h' :
- case 'hh' : return $2+'<input class="rich-calendar-time-input" id="'+id+'TimeHours"/>';
- case 'mm' : return $2+'<input class="rich-calendar-time-input" id="'+id+'TimeMinutes"/>';
+ case 'hh' : return ($2 ? '<td>'+$2+'</td>' : '')+calendar.createSpinnerTable(id+'TimeHours');//'<input class="rich-calendar-time-input" id="'+id+'TimeHours"/>';
+ case 'mm' : return ($2 ? '<td>'+$2+'</td>' : '')+calendar.createSpinnerTable(id+'TimeMinutes');//'<input class="rich-calendar-time-input" id="'+id+'TimeMinutes"/>';
}
}
);
@@ -1667,8 +1696,10 @@
if (!this.isTimeEditorCreated) this.createTimeEditor();
var element = $(this.id);
+
var te = $(this.TIME_EDITOR_ID);
var te_shadow = $(this.TIME_EDITOR_SHADOW_ID);
+
var dim = Richfaces.Calendar.getOffsetDimensions(element);
te.style.width = te_shadow.style.width = dim.width + 'px';
te.style.height = te_shadow.style.height = dim.height + 'px';
@@ -1679,12 +1710,18 @@
te.show();
te_shadow.show();
+
+ var te_panel = $(this.TIME_EDITOR_PANEL_ID);
+ var te_panel_shadow = $(this.TIME_EDITOR_PANEL_SHADOW_ID);
+
+ Element.clonePosition(te_panel_shadow, te_panel, {offsetLeft: 3, offsetTop: 3});
},
hideTimeEditor: function(updateTime)
{
$(this.TIME_EDITOR_ID).hide();
$(this.TIME_EDITOR_SHADOW_ID).hide();
+
if (updateTime && this.selectedDate)
{
var m = parseInt($(this.id+'TimeMinutes').value,10);
@@ -1745,10 +1782,10 @@
};
CalendarView.toolButtonAttributes = {className: "rich-calendar-tool-btn", onmouseover:"this.className='rich-calendar-tool-btn rich-calendar-tool-btn-hover'", onmouseout:"this.className='rich-calendar-tool-btn'", onmousedown:"this.className='rich-calendar-tool-btn rich-calendar-tool-btn-hover rich-calendar-tool-btn-press'", onmouseup:"this.className='rich-calendar-tool-btn rich-calendar-tool-btn-hover'"};
-CalendarView.nextYearControl = CalendarView.getControl(">>", null, "nextYear");
-CalendarView.previousYearControl = CalendarView.getControl("<<", null, "prevYear");
-CalendarView.nextMonthControl = CalendarView.getControl(">", null, "nextMonth");
-CalendarView.previousMonthControl = CalendarView.getControl("<", null, "prevMonth");
+CalendarView.nextYearControl = CalendarView.getControl(">>", CalendarView.toolButtonAttributes, "nextYear");
+CalendarView.previousYearControl = CalendarView.getControl("<<", CalendarView.toolButtonAttributes, "prevYear");
+CalendarView.nextMonthControl = CalendarView.getControl(">", CalendarView.toolButtonAttributes, "nextMonth");
+CalendarView.previousMonthControl = CalendarView.getControl("<", CalendarView.toolButtonAttributes, "prevMonth");
CalendarView.currentMonthControl = function (context) { return Richfaces.Calendar.formatDate(context.calendar.getCurrentDate(), "MMMM, yyyy", context.monthLabels, context.monthLabelsShort);};
CalendarView.todayControl = CalendarView.getControl("Today", CalendarView.toolButtonAttributes, "today");
CalendarView.selectedDateControl = function (context) { return CalendarView.getSelectedDateControl(context.calendar);};
@@ -1828,7 +1865,8 @@
)];
CalendarView.timeEditor = [
- new E('table',{'border': '0', 'cellpadding': '0', 'cellspacing': '0', 'class': 'rich-calendar-time-layout'},
+ new E('div', {'style': 'position: relative; width: 100%;'}, [
+ new E('table',{'id': function(context) { return context.calendar.TIME_EDITOR_PANEL_ID; }, 'border': '0', 'cellpadding': '0', 'cellspacing': '0', 'class': 'rich-calendar-time-layout'},
[
new E('tbody',{},
[
@@ -1836,29 +1874,37 @@
[
new E('td',{'class': 'rich-calendar-time-layout-fields', 'colspan': '2'},
[
- new ET(function (context) { return Richfaces.evalMacro("timeEditorFields", context)})
+ new E('table', null, [new E('tbody', null, [new E('tr', null, [new ET(function (context) { return Richfaces.evalMacro("timeEditorFields", context)})])])])
])
]),
new E('tr',{},
[
- new E('td',{'class': 'rich-calendar-time-layout-cancel'},
+ new E('td',{'class': 'rich-calendar-time-layout-ok'},
[
- new E('div',{'class': 'rich-calendar-time-btn', 'style': 'float:right;', 'onmousedown': "Element.addClassName(this, 'rich-calendar-time-btn-press');", 'onmouseout': "Element.removeClassName(this, 'rich-calendar-time-btn-press');", 'onmouseup': "Element.removeClassName(this, 'rich-calendar-time-btn-press');", 'onclick': function(context){return "$('"+context.calendar.id+"').component.hideTimeEditor(false)";}},
+ new E('div',{'class': 'rich-calendar-time-btn', 'style': 'float:right;', 'onmousedown': "Element.addClassName(this, 'rich-calendar-time-btn-press');", 'onmouseout': "Element.removeClassName(this, 'rich-calendar-time-btn-press');", 'onmouseup': "Element.removeClassName(this, 'rich-calendar-time-btn-press');", 'onclick': function(context){return "$('"+context.calendar.id+"').component.hideTimeEditor(true)";}},
[
- new T('Cancel')
+ new T('Ok')
])
- ]),
- new E('td',{'class': 'rich-calendar-time-layout-ok'},
+ ])
+ ,
+ new E('td',{'class': 'rich-calendar-time-layout-cancel'},
[
- new E('div',{'class': 'rich-calendar-time-btn', 'style': 'float:left;', 'onmousedown': "Element.addClassName(this, 'rich-calendar-time-btn-press');", 'onmouseout': "Element.removeClassName(this, 'rich-calendar-time-btn-press');", 'onmouseup': "Element.removeClassName(this, 'rich-calendar-time-btn-press');", 'onclick': function(context){return "$('"+context.calendar.id+"').component.hideTimeEditor(true)";}},
+ new E('div',{'class': 'rich-calendar-time-btn', 'style': 'float:left;', 'onmousedown': "Element.addClassName(this, 'rich-calendar-time-btn-press');", 'onmouseout': "Element.removeClassName(this, 'rich-calendar-time-btn-press');", 'onmouseup': "Element.removeClassName(this, 'rich-calendar-time-btn-press');", 'onclick': function(context){return "$('"+context.calendar.id+"').component.hideTimeEditor(false)";}},
[
- new T('Ok')
+ new T('Cancel')
])
])
])
])
- ])
- ];
+ ]),
+
+ new E('div',
+ {
+ 'id': function(context) { return context.calendar.TIME_EDITOR_PANEL_SHADOW_ID; },
+ 'class': 'rich-calendar-time-editor-shadow'
+ }
+ , null)
+ ])];
CalendarView.dayList = [new ET(function (context) { return context.day})];
CalendarView.weekNumber = [new ET(function (context) { return context.weekNumber})];
17 years, 1 month
JBoss Rich Faces SVN: r4410 - trunk/docs/xslt/en/src/main/xslt.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-12-01 10:29:41 -0500 (Sat, 01 Dec 2007)
New Revision: 4410
Modified:
trunk/docs/xslt/en/src/main/xslt/html_chunk.xsl
Log:
http://jira.jboss.com/jira/browse/RF-1378 - Split components chapter
Modified: trunk/docs/xslt/en/src/main/xslt/html_chunk.xsl
===================================================================
--- trunk/docs/xslt/en/src/main/xslt/html_chunk.xsl 2007-12-01 15:29:07 UTC (rev 4409)
+++ trunk/docs/xslt/en/src/main/xslt/html_chunk.xsl 2007-12-01 15:29:41 UTC (rev 4410)
@@ -90,5 +90,94 @@
<xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
<xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
<xsl:template match="book" mode="object.title.markup"/>
-
+
+<!--###################################################
+ Forse chunks
+ ################################################### -->
+
+
+<xsl:template name="chunk">
+ <xsl:param name="node" select="."/>
+
+ <xsl:choose>
+ <xsl:when test="not($node/parent::*)">1</xsl:when>
+ <xsl:when test="$node/parent::node()/processing-instruction('forseChanks')">1</xsl:when>
+ <xsl:when test="local-name($node) = 'sect1'
+ and $chunk.section.depth >= 1
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect1) > 0)">
+ <xsl:text>1</xsl:text>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'sect2'
+ and $chunk.section.depth >= 2
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect2) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'sect3'
+ and $chunk.section.depth >= 3
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect3) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'sect4'
+ and $chunk.section.depth >= 4
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect4) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'sect5'
+ and $chunk.section.depth >= 5
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::sect5) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name($node) = 'section'
+ and $chunk.section.depth >= count($node/ancestor::section)+1
+ and ($chunk.first.sections != 0
+ or count($node/preceding-sibling::section) > 0)">
+ <xsl:call-template name="chunk">
+ <xsl:with-param name="node" select="$node/parent::*"/>
+ </xsl:call-template>
+ </xsl:when>
+
+ <xsl:when test="local-name($node)='preface'">1</xsl:when>
+ <xsl:when test="local-name($node)='chapter'">1</xsl:when>
+ <xsl:when test="local-name($node)='appendix'">1</xsl:when>
+ <xsl:when test="local-name($node)='article'">1</xsl:when>
+ <xsl:when test="local-name($node)='part'">1</xsl:when>
+ <xsl:when test="local-name($node)='reference'">1</xsl:when>
+ <xsl:when test="local-name($node)='refentry'">1</xsl:when>
+ <xsl:when test="local-name($node)='index' and ($generate.index != 0 or count($node/*) > 0)
+ and (local-name($node/parent::*) = 'article'
+ or local-name($node/parent::*) = 'book'
+ or local-name($node/parent::*) = 'part'
+ )">1</xsl:when>
+ <xsl:when test="local-name($node)='bibliography'
+ and (local-name($node/parent::*) = 'article'
+ or local-name($node/parent::*) = 'book'
+ or local-name($node/parent::*) = 'part'
+ )">1</xsl:when>
+ <xsl:when test="local-name($node)='glossary'
+ and (local-name($node/parent::*) = 'article'
+ or local-name($node/parent::*) = 'book'
+ or local-name($node/parent::*) = 'part'
+ )">1</xsl:when>
+ <xsl:when test="local-name($node)='colophon'">1</xsl:when>
+ <xsl:when test="local-name($node)='book'">1</xsl:when>
+ <xsl:when test="local-name($node)='set'">1</xsl:when>
+ <xsl:when test="local-name($node)='setindex'">1</xsl:when>
+ <xsl:when test="local-name($node)='legalnotice'
+ and $generate.legalnotice.link != 0">1</xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
</xsl:stylesheet>
17 years, 1 month
JBoss Rich Faces SVN: r4409 - trunk/docs/userguide/en/src/main/docbook.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-12-01 10:29:07 -0500 (Sat, 01 Dec 2007)
New Revision: 4409
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
Log:
http://jira.jboss.com/jira/browse/RF-1378 - Split components chapter
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2007-12-01 15:23:51 UTC (rev 4408)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2007-12-01 15:29:07 UTC (rev 4409)
@@ -72,6 +72,7 @@
<chapter role="NotInToc" id="RichFacesComponentsLibrary" xreflabel="RichFacesComponentsLibrary">
<?dbhtml filename="RichFacesComponentsLibrary.html"?>
+<?forseChanks?>
<title>The RichFaces Components</title>
<para>The library encompasses ready-made components built based on the <emphasis><property>Rich Faces CDK</property></emphasis>.</para>
<!--
17 years, 1 month
JBoss Rich Faces SVN: r4408 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-12-01 10:23:51 -0500 (Sat, 01 Dec 2007)
New Revision: 4408
Modified:
trunk/docs/userguide/en/src/main/docbook/included/listShuttle.desc.xml
Log:
RF-1174 - listShuttle. Fix Description
Modified: trunk/docs/userguide/en/src/main/docbook/included/listShuttle.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/listShuttle.desc.xml 2007-12-01 15:23:16 UTC (rev 4407)
+++ trunk/docs/userguide/en/src/main/docbook/included/listShuttle.desc.xml 2007-12-01 15:23:51 UTC (rev 4408)
@@ -7,13 +7,15 @@
</sectioninfo>
<section>
<title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><rich:listShuttle></property>
+ </emphasis> component is used for moving chosen items
+ from one list into another with their optional reordering there.</para>
<mediaobject>
<imageobject>
<imagedata fileref=""/>
</imageobject>
</mediaobject>
- <para>An <property>listShuttle</property> component is a component for moving chosen items
- from one list into another with their optional reordering there.</para>
</section>
<section>
<title>Key Features</title>
@@ -21,7 +23,7 @@
<listitem>Skinnable <property>listShuttle</property> and child items</listitem>
<listitem>Customizable component layout (captions, headers, list items and control sets)</listitem>
<listitem>Disabled/enabled ordering controls</listitem>
- <listitem> Built-In Drag-and-drop support</listitem>
+ <listitem> Built-In Drag-and-Drop support</listitem>
</itemizedlist>
</section>
</section>
17 years, 1 month
JBoss Rich Faces SVN: r4407 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-12-01 10:23:16 -0500 (Sat, 01 Dec 2007)
New Revision: 4407
Modified:
trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml
Log:
RF-1174 - listShuttle. Fix Details of Usage
Modified: trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2007-12-01 14:30:57 UTC (rev 4406)
+++ trunk/docs/userguide/en/src/main/docbook/included/listShuttle.xml 2007-12-01 15:23:16 UTC (rev 4407)
@@ -9,7 +9,6 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it could be used on a page: </para>
-
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -26,7 +25,6 @@
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
-
<para>
<emphasis role="bold">Example:</emphasis>
</para>
@@ -40,12 +38,12 @@
<para>The <emphasis role="bold">
<property><rich:listShuttle></property>
</emphasis> component consists of the following parts: <itemizedlist>
- <listitem>two item lists (source and target). List consists of items; each item has
+ <listitem>two <property>item lists</property> (source and target). List consists of items; each item has
three different representations: common, selected, active</listitem>
- <listitem>optional caption, header (sorted and non-sorted), footer elements</listitem>
- <listitem>copy/moving controls set, a set of controls, which performs moving/copying
+ <listitem>optional <property>caption</property>, <property>header</property> (sorted and non-sorted), <property>footer</property> elements</listitem>
+ <listitem><property>copy/moving controls set</property>, a set of controls, which performs moving/copying
items between lists</listitem>
- <listitem>optional ordering controls set, a set of controls that performs
+ <listitem><property>optional ordering controls set</property>, a set of controls that performs
reordering</listitem>
</itemizedlist>
</para>
@@ -78,46 +76,45 @@
</rich:column>
</f:facet>
<rich:listShuttle>
-
...]]></programlisting>
<!-- ADD SCREESHOT-->
<para>Captions could be added to a list only after it was defined as a <emphasis>
- <property>sourceCaption</property>
+ <property>"sourceCaption"</property>
</emphasis> and <emphasis>
- <property>targetCaption</property>
+ <property>"targetCaption"</property>
</emphasis> named facets inside the component or defined with the <emphasis>
- <property>sourceCaptionLabel</property>
+ <property>"sourceCaptionLabel"</property>
</emphasis> and <emphasis>
- <property>targetCaptionLabel</property>
+ <property>"targetCaptionLabel"</property>
</emphasis> attribute.</para>
<!-- ordering control set-->
<para>The <emphasis role="bold">
<property><rich:listShuttle></property>
- </emphasis> component provides the possibility to use <property> "ordering
- controls set" </property>, which performs reordering in the target item
- list. Every control has possibility to be disabled. </para>
+ </emphasis> component provides the possibility to use <property>ordering controls
+ set</property>, which performs reordering in the target item list. Every control has
+ possibility to be disabled. </para>
<para>
- <property>
- <emphasis>"topControl"</emphasis>
- </property>, <property>
- <emphasis>"topControlDisabled"</emphasis>
- </property>, <property>
- <emphasis>"bottomControl"</emphasis>
- </property>, <property>
- <emphasis>"bottomControlDisabled"</emphasis>
- </property>, <property>
- <emphasis>"upControl"</emphasis>
- </property>, <property>
- <emphasis>"upControlDisabled"</emphasis>
- </property>, <property>
- <emphasis>"downControl"</emphasis>
- </property>, <property>
- <emphasis>"downControlDisabled"</emphasis>
- </property> facets are used to replaces the default control with facets content. </para>
+ <emphasis>
+ <property>"topControl" </property>
+ </emphasis>, <emphasis>
+ <property>"topControlDisabled" </property>
+ </emphasis>, <emphasis>
+ <property>"bottomControl" </property>
+ </emphasis>, <emphasis>
+ <property>"bottomControlDisabled" </property>
+ </emphasis>, <emphasis>
+ <property>"upControl" </property>
+ </emphasis>, <emphasis>
+ <property>"upControlDisabled" </property>
+ </emphasis>, <emphasis>
+ <property>"downControl" </property>
+ </emphasis>, <emphasis>
+ <property>"downControlDisabled" </property>
+ </emphasis> facets are used to replaces the default control with facets content. </para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
<rich:orderingList value="#{demoBean.items}" var="item" controlType="button">
<f:facet name="topControl">
<h:outputText value="Move to top">
@@ -137,63 +134,64 @@
<!-- copy/move control set -->
<para>The <emphasis role="bold">
<property><rich:listShuttle></property>
- </emphasis>component also provides 4 predefined controls in <property>
- "move/copy controls set" </property> for moving or copying items
- between source and target lists. Every control has possibility to be disabled. </para>
+ </emphasis>component also provides 4 predefined controls in <property> move/copy
+ controls set</property> for moving or copying items between source and target lists.
+ Every control has possibility to be disabled. </para>
<para>
- <property>
- <emphasis>"copyCotrol"</emphasis>
- </property>, <property>
- <emphasis>"copy_disabled"</emphasis>
- </property>, <property>
- <emphasis>"removeControl"</emphasis>
- </property>, <property>
- <emphasis>"remove_disabled"</emphasis>
- </property>, <property>
- <emphasis>"copyAllControl"</emphasis>
- </property>, <property>
- <emphasis>"copyAll_disabled"</emphasis>
- </property>, <property>
- <emphasis>"removeAllControl"</emphasis>
- </property>, <property>
- <emphasis>"removeAll_disabled"</emphasis>
- </property> facets are used to replaces the default control with facets content. </para>
+ <emphasis>
+ <property>"copyCotrol" </property>
+ </emphasis>, <emphasis>
+ <property>"copy_disabled" </property>
+ </emphasis>, <emphasis>
+ <property>"removeControl" </property>
+ </emphasis>, <emphasis>
+ <property>"remove_disabled" </property>
+ </emphasis>, <emphasis>
+ <property>"copyAllControl" </property>
+ </emphasis>, <emphasis>
+ <property>"copyAll_disabled" </property>
+ </emphasis>, <emphasis>
+ <property>"removeAllControl" </property>
+ </emphasis>, <emphasis>
+ <property>"removeAll_disabled" </property>
+ </emphasis> facets are used to replaces the default control with facets content. </para>
<!-- attributes -->
- <para> The <property>
- <emphasis>"sourceValue"</emphasis>
- </property> attribute defines the collection to be shown in source list.</para>
- <para> The <property>
- <emphasis>"value"</emphasis>
- </property> attribute defines the collection to store the value from target list.</para>
- <para> The <property>
- <emphasis>"var"</emphasis>
- </property> could be shared between both collections to defined lists on the page.</para>
- <para>Controls rendering is based on the<property>
- <emphasis>"controlsType"</emphasis>
- </property> attribute. Possible types are button, link, none.</para> The position of the
- <property>ordering controls set</property> relatively to list should be customized with <property>
- <emphasis>"orderControlsVerticalAlign"</emphasis>
- </property> attribute. The position of the <property>move/copy controls set</property>
- relatively to lists should be customized with <property>
- <emphasis>"moveControlsVerticalAlign"</emphasis>
- </property> attribute.
+ <para> The
+ <emphasis><property>"sourceValue"
+ </property></emphasis> attribute defines the collection to be shown in source list.</para>
+ <para>The
+ <emphasis><property>"value"
+ </property></emphasis> attribute defines the collection to store the value from target list.</para>
+ <para> The
+ <emphasis><property>"var"
+ </property></emphasis> could be shared between both collections to defined lists on the page.</para>
+ <para>Controls rendering is based on the
+ <emphasis><property>"controlsType"
+ </property></emphasis> attribute. Possible types are <property>button</property> and <property>none</property>.</para> The position of the
+ <property>ordering controls set</property> relatively to list should be customized with
+ <emphasis><property>"orderControlsVerticalAlign"
+ </property></emphasis> attribute. The position of the <property>move/copy controls set</property>
+ relatively to lists should be customized with
+ <emphasis><property>"moveControlsVerticalAlign"
+ </property></emphasis> attribute.
+
<!-- template -->
+
<para>The <emphasis role="bold">
<property><rich:listShuttle></property>
</emphasis> component provides the possibility to be customized using templating. The
customization could be performed by layout definition nested to component.</para>
<para>10 elements could be provided to be defined inside template (all standard controls
- should also possible to use inside): sourceList, targetList, CopyControl, removeCotrol,
- copyAllControl, removeAllControl, topcontrol, bottomControl, downCotrol, upControl.</para>
- <para>The markup defined in the initial picture could be defined as in the following example.</para>
+ should also possible to use inside): {sourceList}, {targetList}, {CopyControl}, {removeCotrol},
+ {copyAllControl}, {removeAllControl}, {topcontrol}, {bottomControl}, {downCotrol}, {upControl}.</para>
+ <para>The markup defined in the initial picture could be defined as in the following
+ example.</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="XML"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
<rich:listShuttle>
- <!-- All the columns-->
- ...
- <!-- All the columns-->
+...
<h:panelGrid columns="4">
<h:outputText value="{sourceList}"/>
<h:panelGroup>
@@ -211,11 +209,8 @@
</h:panelGroup>
</h:panelGrid>
</rich:listShuttle>
-
...
]]></programlisting>
-
- <para>Keyboard usage</para>
<table>
<title>Keyboard usage for elements selection</title>
<tgroup cols="2">
@@ -288,8 +283,7 @@
<title>JavaScript API</title>
<para> Controls are accessible for developer on client-side using controls attribute of
JavaScript component instance. The value of the attribute is an associative array of
- controls keyed by the following strings: "top",
- "up", "down", "bottom".</para>
+ controls keyed by the following strings: <property>top</property>, <property>up</property>, <property>down</property>, <property>bottom</property>.</para>
<table>
<title>JavaScript API</title>
<tgroup cols="3">
@@ -425,17 +419,8 @@
<para>On the screenshot there are classes names that define styles for component elements.</para>
- <!-- screenshot -->
+ <!-- ADD SCREENSHOT -->
- <figure>
- <title>Style classes</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="" scalefit="1"/>
- </imageobject>
- </mediaobject>
- </figure>
-
<!-- ADD ITEMS representations!!!-->
<table>
17 years, 1 month
JBoss Rich Faces SVN: r4406 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-12-01 09:30:57 -0500 (Sat, 01 Dec 2007)
New Revision: 4406
Modified:
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
Log:
RF-1298 - contextMenu. Fix Details of Usage
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2007-12-01 14:30:28 UTC (rev 4405)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2007-12-01 14:30:57 UTC (rev 4406)
@@ -8,39 +8,32 @@
</sectioninfo>
<table>
<title>Component identification parameters</title>
-
<tgroup cols="2">
<thead>
<row>
<entry>Name</entry>
-
<entry>Value</entry>
</row>
</thead>
<tbody>
<row>
<entry>component-type</entry>
-
<entry>org.richfaces.ContextMenu</entry>
</row>
<row>
<entry>component-class</entry>
-
<entry>org.richfaces.component.html.ContextMenu</entry>
</row>
<row>
<entry>component-family</entry>
-
<entry>org.richfaces.ContextMenu</entry>
</row>
<row>
<entry>renderer-type</entry>
-
<entry>org.richfaces.DropDownMenuRenderer</entry>
</row>
<row>
<entry>tag-class</entry>
-
<entry>org.richfaces.taglib.ContextMenuTagHandler</entry>
</row>
</tbody>
@@ -49,34 +42,24 @@
<section>
<title>Creating the Component with a Page Tag</title>
<para>Here is a simple example as it could be used on a page: </para>
-
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:contextMenu value="Menu1">
-
- <!--Nested menu components-->
-
- </rich:contextMenu>
-...
-]]></programlisting>
+<rich:contextMenu value="Menu1">
+ <!--Nested menu components-->
+</rich:contextMenu>
+...]]></programlisting>
</section>
<section>
<title>Creating the Component Dynamically Using Java</title>
-
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[
-import org.richfaces.component.html.HtmlContextMenu;
-
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlContextMenu;
...
-
HtmlContextMenu myContextMenu = new HtmlContextMenu();
-
-...
-]]></programlisting>
+...]]></programlisting>
</section>
<section>
<title>Details of Usage</title>
@@ -117,7 +100,7 @@
</listitem>
</itemizedlist>
<para><emphasis role="bold">
- <property><contextMenu></property>
+ <property><rich:contextMenu></property>
</emphasis> provides <emphasis>
<property>"jointPoint"</property>
</emphasis> attribute to set the point on the label element to connect popup. Possible
@@ -264,61 +247,43 @@
<para>On the screenshot there are classes names that define styles for component elements.</para>
- <figure>
- <title>Classes names</title>
-
- <mediaobject>
- <imageobject>
- <imagedata fileref=""/>
- </imageobject>
- </mediaobject>
- </figure>
-
+ <!-- ADD SCREENSHOT -->
+
<table>
<title>Classes names that define a menu item</title>
-
<tgroup cols="2">
<thead>
<row>
<entry>Class name</entry>
-
<entry>Description</entry>
</row>
</thead>
-
<tbody>
<row>
<entry>rich-menu-item</entry>
-
<entry>Defines styles for menu item</entry>
</row>
<row>
<entry>rich-menu-item-disabled</entry>
-
<entry>Defines styles for menu item in disabed state</entry>
</row>
<row>
<entry>rich-menu-item-enabled</entry>
-
<entry>Defines styles for menu item in enabled state</entry>
</row>
<row>
<entry>rich-menu-item-hover</entry>
-
<entry>Defines styles for menu item on hover event</entry>
</row>
<row>
<entry>rich-menu-item-icon</entry>
-
<entry>Defines styles for icon in menu item</entry>
</row>
</tbody>
</tgroup>
</table>
-
<table>
<title>Classes names that define a menu item label</title>
-
<tgroup cols="2">
<thead>
<row>
@@ -327,21 +292,17 @@
<entry>Description</entry>
</row>
</thead>
-
<tbody>
<row>
<entry>rich-menu-item-label</entry>
-
<entry>Defines styles for menu item label</entry>
</row>
<row>
<entry>rich-menu-item-label-disabled</entry>
-
<entry>Defines styles for menu item label in disabled state</entry>
</row>
<row>
<entry>rich-menu-item-label-selected</entry>
-
<entry>Defines styles for menu item label already selected</entry>
</row>
</tbody>
@@ -349,7 +310,6 @@
</table>
<table>
<title>Classes names that define a menu item icon</title>
-
<tgroup cols="2">
<thead>
<row>
@@ -358,55 +318,45 @@
<entry>Description</entry>
</row>
</thead>
-
<tbody>
<row>
<entry>rich-menu-item-icon-disabled</entry>
-
<entry>Defines styles for icon of menu item in disabled state</entry>
</row>
<row>
<entry>rich-menu-item-icon-selected</entry>
-
- <entry></entry>
+ <entry>Defines styles for icon of menu item in selected state</entry>
</row>
</tbody>
</tgroup>
</table>
<table>
<title>Classes names that define a group element</title>
-
<tgroup cols="2">
<thead>
<row>
<entry>Class name</entry>
-
<entry>Description</entry>
</row>
</thead>
-
<tbody>
<row>
<entry>rich-menu-group</entry>
-
<entry>Defines styles for menu group</entry>
</row>
<row>
<entry>rich-menu-group-disabled</entry>
-
<entry>Defines styles for menu group in disabled state</entry>
</row>
<row>
<entry>rich-menu-group-selected</entry>
-
- <entry></entry>
+ <entry>Defines styles for menu group in selected state</entry>
</row>
</tbody>
</tgroup>
</table>
<table>
<title>Classes names that define a separator</title>
-
<tgroup cols="2">
<thead>
<row>
@@ -415,11 +365,9 @@
<entry>Description</entry>
</row>
</thead>
-
<tbody>
<row>
<entry>rich-menu-separator</entry>
-
<entry>Defines styles for menu separator</entry>
</row>
</tbody>
@@ -427,7 +375,6 @@
</table>
<table>
<title>Classes names that define a popup element</title>
-
<tgroup cols="2">
<thead>
<row>
@@ -436,11 +383,9 @@
<entry>Description</entry>
</row>
</thead>
-
<tbody>
<row>
<entry>rich-menu-popup</entry>
-
<entry>Defines styles for popup element</entry>
</row>
</tbody>
17 years, 1 month
JBoss Rich Faces SVN: r4405 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2007-12-01 09:30:28 -0500 (Sat, 01 Dec 2007)
New Revision: 4405
Modified:
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.desc.xml
Log:
RF-1298 - contextMenu. Fix description, add screenshot
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.desc.xml 2007-12-01 14:29:16 UTC (rev 4404)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.desc.xml 2007-12-01 14:30:28 UTC (rev 4405)
@@ -7,19 +7,21 @@
</sectioninfo>
<section>
<title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><rich:contextMenu></property>
+ </emphasis> component is used for creation multileveled
+ context menus that are activated after a user defines an event (onmouseover, onclick,
+ etc.) on any element on the page.</para>
<mediaobject>
<imageobject>
- <imagedata fileref=""/>
+ <imagedata fileref="images/contextMenu1.png"/>
</imageobject>
</mediaobject>
- <para>An <property>contextMenu</property> component is used for creation multileveled
- context menus that are activated after a user defines an event (onmouseover, onclick,
- etc.) on any element on the page.</para>
</section>
<section>
<title>Key Features</title>
<itemizedlist>
- <listitem>Skinnable <property>contextMenu</property> and child items</listitem>
+ <listitem>Skinnable <property>context menu</property> and child items</listitem>
<listitem>Highly customizable look and feel</listitem>
<listitem>Disablement support</listitem>
<listitem>Pop-up appearance event customization</listitem>
17 years, 1 month