Author: ayanul
Date: 2007-11-22 04:11:26 -0500 (Thu, 22 Nov 2007)
New Revision: 4171
Added:
branches/3.1.x/test-applications/facelets/src/main/resources/message_en.properties
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml
Removed:
branches/3.1.x/test-applications/facelets/src/main/java/util/resources.properties
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
branches/3.1.x/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java
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/webapp/Calendar/CalendarStraightforward.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/OrderingListProperty.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Action/EventInfo.xhtml
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
Log:
Modified: branches/3.1.x/test-applications/facelets/src/main/java/ddMenu/DDMenu.java
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-11-22
02:22:16 UTC (rev 4170)
+++ branches/3.1.x/test-applications/facelets/src/main/java/ddMenu/DDMenu.java 2007-11-22
09:11:26 UTC (rev 4171)
@@ -185,9 +185,8 @@
setGroupDirection("top-up");
setHideDelay(5);
setHorizontalOffset(1);
- setHorizontalOffset(1);
setVerticalOffset(1);
- setJointPoint("1px");
+ setJointPoint("top-left");
setMode("none");
setPopupWidth("300px");
setShowDelay(1);
@@ -201,7 +200,6 @@
setHideDelay(5);
setShowDelay(5);
setHorizontalOffset(20);
- setHorizontalOffset(20);
setVerticalOffset(20);
setJointPoint("bottom-right");
setMode("ajax");
@@ -216,7 +214,6 @@
setHideDelay(10);
setShowDelay(10);
setHorizontalOffset(5);
- setHorizontalOffset(5);
setVerticalOffset(5);
setJointPoint("top-left");
setMode("server");
@@ -231,9 +228,8 @@
setHideDelay(0);
setShowDelay(0);
setHorizontalOffset(0);
- setHorizontalOffset(0);
setVerticalOffset(0);
- setJointPoint("0px");
+ setJointPoint("auto");
setMode("ajax");
setPopupWidth("auto");
setDisabled(true);
@@ -246,7 +242,6 @@
setHideDelay(1);
setShowDelay(5);
setHorizontalOffset(2);
- setHorizontalOffset(2);
setVerticalOffset(2);
setJointPoint("auto");
setMode("ajax");
Modified:
branches/3.1.x/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-11-22
02:22:16 UTC (rev 4170)
+++
branches/3.1.x/test-applications/facelets/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-11-22
09:11:26 UTC (rev 4171)
@@ -299,7 +299,6 @@
setStep("50");
setShowToolTip(false);
setShowBoundaryValues(true);
- setShowInput(true);
}
public void bTest3(){
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-11-22
02:22:16 UTC (rev 4170)
+++
branches/3.1.x/test-applications/facelets/src/main/java/orderingList/OrderingList.java 2007-11-22
09:11:26 UTC (rev 4171)
@@ -9,11 +9,10 @@
public class OrderingList{
private ArrayList<Data> list;
+ private Collection<Data> selection;
private String [] status = {"error", "fatal", "info",
"passed", "warn"};
private String [] statusIcon = {"/pics/error.gif",
"/pics/fatal.gif", "/pics/info.gif", "/pics/passed.gif",
"/pics/warn.gif"};
private String captionLabel;
- private String listHeight;
- private String listWidth;
private String controlsType;
private String controlsVerticalAlign;
private String controlsHorizontalAlign;
@@ -22,13 +21,23 @@
private String upControlLabel;
private String topControlLabel;
private String downControlLabel;
- private Object componentState;
+ private int lenght;
+ private int listHeight;
+ private int listWidth;
private boolean orderControlsVisible;
private boolean fastOrderControlsVisible;
private boolean rendered;
private boolean showButtonLabels;
- private Collection<Data> selection;
+ private boolean facet;
+ public boolean isFacet() {
+ return facet;
+ }
+
+ public void setFacet(boolean facet) {
+ this.facet = facet;
+ }
+
public Collection<Data> getSelection() {
return selection;
}
@@ -46,12 +55,22 @@
this.list = list;
}
+ public void addNewItem() {
+ if(lenght < 0) lenght = 0;
+ if(list.size() > lenght)
+ for(int i = lenght; i < list.size(); )
+ list.remove(i);
+ else
+ for(int i = list.size() + 1; i <= lenght; i++)
+ list.add(new Data("Bug " + new Random().nextInt(10 + i), i,status[new
Random().nextInt(5)], statusIcon[new Random().nextInt(5)]));
+ }
+
public OrderingList() {
captionLabel = "captionLabel";
- componentState = null;
- listHeight = "300";
- listWidth = "400";
- controlsType = "none";
+ lenght = 10;
+ listHeight = 300;
+ listWidth = 400;
+ controlsType = "button";
controlsHorizontalAlign = "0";
controlsVerticalAlign = "0";
headerLabel = "headerLabel";
@@ -59,29 +78,28 @@
upControlLabel = "up label";
downControlLabel = "down label";
topControlLabel = "top label";
- orderControlsVisible = false;
- fastOrderControlsVisible = false;
+ orderControlsVisible = true;
+ fastOrderControlsVisible = true;
rendered = true;
- showButtonLabels = false;
+ showButtonLabels = true;
list = new ArrayList<Data>();
- for(int i = 0; i < 10; i++) {
+ for(int i = 1; i <= lenght; i++)
list.add(new Data("Bug " + new Random().nextInt(10 + i), i,status[new
Random().nextInt(5)], statusIcon[new Random().nextInt(5)]));
- }
}
- public String getListHeight() {
+ public int getListHeight() {
return listHeight;
}
- public void setListHeight(String listHeight) {
+ public void setListHeight(int listHeight) {
this.listHeight = listHeight;
}
- public String getListWidth() {
+ public int getListWidth() {
return listWidth;
}
- public void setListWidth(String listWidth) {
+ public void setListWidth(int listWidth) {
this.listWidth = listWidth;
}
@@ -125,14 +143,6 @@
this.topControlLabel = topControlLabel;
}
- public Object getComponentState() {
- return componentState;
- }
-
- public void setComponentState(boolean componentState) {
- this.componentState = componentState;
- }
-
public String getControlsVerticalAlign() {
return controlsVerticalAlign;
}
@@ -196,4 +206,112 @@
public void setShowButtonLabels(boolean showButtonLabels) {
this.showButtonLabels = showButtonLabels;
}
+
+ public int getLenght() {
+ return lenght;
+ }
+
+ public void setLenght(int lenght) {
+ this.lenght = lenght;
+ }
+
+ public void bTest1(){
+ setCaptionLabel("Caption Test1");
+ setControlsHorizontalAlign("0");
+ setControlsVerticalAlign("0");
+ setControlsType("button");
+ setHeaderLabel("Header Test1");
+ setLenght(40);
+ setListHeight(300);
+ setListWidth(400);
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("t1 top label");
+ setBottomControlLabel("t1 bottom label");
+ setUpControlLabel("t1 up label");
+ setDownControlLabel("t1 down label");
+ addNewItem();
+ }
+
+ public void bTest2(){
+ setCaptionLabel("Caption Test2");
+ setControlsHorizontalAlign("30");
+ setControlsVerticalAlign("50");
+ setControlsType("button");
+ setHeaderLabel("Header Test2");
+ setLenght(40);
+ setListHeight(600);
+ setListWidth(400);
+ setFastOrderControlsVisible(false);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("t2");
+ setBottomControlLabel("t2");
+ setUpControlLabel("t2");
+ setDownControlLabel("t2");
+ addNewItem();
+ }
+
+ public void bTest3(){
+ setCaptionLabel("Caption Test3");
+ setControlsHorizontalAlign("50");
+ setControlsVerticalAlign("10");
+ setControlsType("button");
+ setHeaderLabel("Header Test3");
+ setLenght(40);
+ setListHeight(500);
+ setListWidth(500);
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(false);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("top");
+ setBottomControlLabel("bottom");
+ setUpControlLabel("up");
+ setDownControlLabel("down");
+ addNewItem();
+ }
+
+ public void bTest4(){
+ setCaptionLabel("Caption Test1");
+ setControlsHorizontalAlign("0");
+ setControlsVerticalAlign("0");
+ setControlsType("button");
+ setHeaderLabel("Header Test1");
+ setLenght(10000);
+ setListHeight(500);
+ setListWidth(600);
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(false);
+ setTopControlLabel("");
+ setBottomControlLabel("");
+ setUpControlLabel("");
+ setDownControlLabel("");
+ addNewItem();
+ }
+
+ public void bTest5(){
+ setCaptionLabel("Caption Test5");
+ setControlsHorizontalAlign("20");
+ setControlsVerticalAlign("20");
+ setControlsType("none");
+ setHeaderLabel("Header Test5");
+ setLenght(100);
+ setListHeight(400);
+ setListWidth(500);
+ setFastOrderControlsVisible(true);
+ setOrderControlsVisible(true);
+ setRendered(true);
+ setShowButtonLabels(true);
+ setTopControlLabel("top");
+ setBottomControlLabel("bottom");
+ setUpControlLabel("up");
+ setDownControlLabel("down");
+ addNewItem();
+ }
}
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-11-22
02:22:16 UTC (rev 4170)
+++ branches/3.1.x/test-applications/facelets/src/main/java/rich/RichBean.java 2007-11-22
09:11:26 UTC (rev 4171)
@@ -41,7 +41,7 @@
map.add("VirtualEarth", add("/VirtualEarth/VirtualEarth", new
boolean [] {true, true}));
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, false}));
+ map.add("OrderingList", add("/OrderingList/OrderingList", new
boolean [] {true, true}));
}
public String getSrc() {
Deleted:
branches/3.1.x/test-applications/facelets/src/main/java/util/resources.properties
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/java/util/resources.properties 2007-11-22
02:22:16 UTC (rev 4170)
+++
branches/3.1.x/test-applications/facelets/src/main/java/util/resources.properties 2007-11-22
09:11:26 UTC (rev 4171)
@@ -1,2 +0,0 @@
-prompt=Your Name\:
-greeting=Hello
Added: branches/3.1.x/test-applications/facelets/src/main/resources/message_en.properties
===================================================================
--- branches/3.1.x/test-applications/facelets/src/main/resources/message_en.properties
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/resources/message_en.properties 2007-11-22
09:11:26 UTC (rev 4171)
@@ -0,0 +1,41 @@
+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;
+tD5DMenu=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;
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml 2007-11-22
02:22:16 UTC (rev 4170)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/Calendar/CalendarStraightforward.xhtml 2007-11-22
09:11:26 UTC (rev 4171)
@@ -5,10 +5,11 @@
xmlns:rich="http://richfaces.org/rich"
xmlns:ui="http://java.sun.com/jsf/facelets">
<rich:simpleTogglePanel switchType="client" opened="true"
label="calendar straightforward">
- <h:panelGrid columns="2">
+ <h:panelGrid columns="3">
<h:outputText value="Test1" />
<a4j:commandButton action="#{calendarBean.bTest1}" value="run"
reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
-
+ <h:outputText value="#{msg.t1Calendar}" />
+
<h:outputText value="Test2" />
<a4j:commandButton action="#{calendarBean.bTest2}" value="run"
reRender="calendarClientID,calendarAjaxID,calendarPropertyID"></a4j:commandButton>
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-11-22
02:22:16 UTC (rev 4170)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingList.xhtml 2007-11-22
09:11:26 UTC (rev 4171)
@@ -1,57 +1,51 @@
<f:subview id="orderingListSubviewID"
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"
-
xmlns:ui="http://java.sun.com/jsf/facelets">
+
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" />
+ <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}"
+ headerLabel="#{orderingList.headerLabel}"
downControlLabel="#{orderingList.downControlLabel}"
+ orderControlsVisible="#{orderingList.orderControlsVisible}"
fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
+ rendered="#{orderingList.rendered}"
disabled="#{orderingList.disabled}"
showButtonLabels="#{orderingList.showButtonLabels}"
+ selection="#{orderingList.selection}"
onclick="print('onclickInputID', 'onclick work!')"
+ onmouseover="print('onmouseoverInputID', 'onmouseover
work!')" onmouseout="print('onmouseoutInputID', 'onmouseout
work!')"
+ onmousemove="print('onmousemoveInputID', 'onmousemove
work!')">
- <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}"
- headerLabel="#{orderingList.headerLabel}"
downControlLabel="#{orderingList.downControlLabel}"
- orderControlsVisible="#{orderingList.orderControlsVisible}"
fastOrderControlsVisible="#{orderingList.fastOrderControlsVisible}"
- rendered="#{orderingList.rendered}"
showButtonLabels="#{orderingList.showButtonLabels}"
componentState="#{orderingList.componentState}"
- selection="#{orderingList.selection}">
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Number" />
+ </f:facet>
+ <h:outputText value="#{item.data1}" />
+ </h:column>
- <h:column width="100px">
- <f:facet name="header">
- <h:outputText value="Number" />
- </f:facet>
- <h:outputText value="#{item.data1}" />
- </h:column>
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:outputText value="#{item.data0}" />
+ </h:column>
- <h:column width="100px">
- <f:facet name="header">
- <h:outputText value="Name" />
- </f:facet>
- <h:outputText value="#{item.data0}" />
- </h:column>
+ <h:column width="100px">
+ <f:facet name="header">
+ <h:outputText value="Status" />
+ </f:facet>
+ <h:selectOneMenu value="#{item.data2}">
+ <f:selectItem itemLabel="error" itemValue="error" />
+ <f:selectItem itemLabel="fatal" itemValue="fatal" />
+ <f:selectItem itemLabel="info" itemValue="info" />
+ <f:selectItem itemLabel="passed" itemValue="passed" />
+ <f:selectItem itemLabel="warn" itemValue="warn" />
+ </h:selectOneMenu>
+ </h:column>
- <h:column width="100px">
- <f:facet name="header">
- <h:outputText value="Status" />
- </f:facet>
- <h:selectOneMenu value="#{item.data2}">
- <f:selectItem itemLabel="error" itemValue="error" />
- <f:selectItem itemLabel="fatal" itemValue="fatal" />
- <f:selectItem itemLabel="info" itemValue="info" />
- <f:selectItem itemLabel="passed" itemValue="passed" />
- <f:selectItem itemLabel="warn" itemValue="warn" />
- </h:selectOneMenu>
- </h:column>
-
- <h:column width="30px">
- <f:facet name="header">
- <h:outputText value="Icon" />
- </f:facet>
- <h:graphicImage value="#{item.data3}" />
- </h:column>
- </rich:orderingList>
-
- <rich:spacer></rich:spacer>
- <a4j:commandButton value="reRender"
reRender="orderingListID"></a4j:commandButton>
- <h:commandButton action="submit();" value="submit();" />
-
-
+ <h:column width="30px">
+ <f:facet name="header">
+ <h:outputText value="Icon" />
+ </f:facet>
+ <h:graphicImage value="#{item.data3}" />
+ </h:column>
+ </rich:orderingList>
</f:subview>
\ No newline at end of file
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml 2007-11-22
02:22:16 UTC (rev 4170)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListProperty.xhtml 2007-11-22
09:11:26 UTC (rev 4171)
@@ -1,86 +1,87 @@
<f:subview id="orderingListPropertySubviewID"
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">
- <h:panelGrid columns="2">
- <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>
+ <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="captionLabel" />
- <h:inputText value="#{orderingList.captionLabel}">
- <a4j:support event="onchange"
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="headerLabel" />
- <h:inputText value="#{orderingList.headerLabel}">
- <a4j:support event="onchange"
reRender="orderingListID"></a4j:support>
- </h:inputText>
+ <h:outputText value="captionLabel" />
+ <h:inputText value="#{orderingList.captionLabel}">
+ <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="headerLabel" />
+ <h:inputText value="#{orderingList.headerLabel}">
+ <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="listHeight:" />
+ <h:inputText value="#{orderingList.listHeight}">
+ <a4j:support event="onchange"
reRender="orderingListID"></a4j:support>
+ </h:inputText>
- <h:outputText value="controlsVerticalAlign" />
- <h:inputText value="#{orderingList.controlsVerticalAlign}">
- <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="controlsHorizontalAlign" />
- <h:inputText value="#{orderingList.controlsHorizontalAlign}">
- <a4j:support event="onchange"
reRender="orderingListID"></a4j:support>
- </h:inputText>
+ <h:outputText value="controlsVerticalAlign" />
+ <h:inputText value="#{orderingList.controlsVerticalAlign}">
+ <a4j:support event="onchange"
reRender="orderingListID"></a4j:support>
+ </h:inputText>
- <h:outputText value="upControlLabel" />
- <h:inputText value="#{orderingList.upControlLabel}">
- <a4j:support event="onchange"
reRender="orderingListID"></a4j:support>
- </h:inputText>
+ <h:outputText value="controlsHorizontalAlign" />
+ <h:inputText value="#{orderingList.controlsHorizontalAlign}">
+ <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="upControlLabel" />
+ <h:inputText value="#{orderingList.upControlLabel}">
+ <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="bottomControlLabel" />
+ <h:inputText value="#{orderingList.bottomControlLabel}">
+ <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="componentState" />
- <h:selectBooleanCheckbox value="#{orderingList.componentState}" >
- <a4j:support event="onchange"
reRender="orderingListID"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="topControlLabel" />
+ <h:inputText value="#{orderingList.topControlLabel}">
+ <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="downControlLabel" />
+ <h:inputText value="#{orderingList.downControlLabel}">
+ <a4j:support event="onchange"
reRender="orderingListID"></a4j:support>
+ </h:inputText>
- <h:outputText value="fastOrderControlsVisible" />
- <h:selectBooleanCheckbox
value="#{orderingList.fastOrderControlsVisible}">
- <a4j:support event="onclick"
reRender="orderingListID"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="showButtonLabels" />
+ <h:selectBooleanCheckbox value="#{orderingList.showButtonLabels}">
+ <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="fastOrderControlsVisible" />
+ <h:selectBooleanCheckbox
value="#{orderingList.fastOrderControlsVisible}">
+ <a4j:support event="onclick"
reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{orderingList.rendered}"
onclick="submit();">
+ <h:outputText value="orderControlsVisible" />
+ <h:selectBooleanCheckbox
value="#{orderingList.orderControlsVisible}">
+ <a4j:support event="onclick"
reRender="orderingListID"></a4j:support>
+ </h:selectBooleanCheckbox>
- </h:selectBooleanCheckbox>
- </h:panelGrid>
+ <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/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml
(rev 0)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/OrderingList/OrderingListStraightforward.xhtml 2007-11-22
09:11:26 UTC (rev 4171)
@@ -0,0 +1,33 @@
+<f:subview id="orderingListStraightforwardSubviewID"
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"
xmlns:ui="http://java.sun.com/jsf/facelets">
+ <rich:simpleTogglePanel switchType="client" opened="true"
label="modalPanel straightforward">
+ <h:panelGrid columns="2">
+ <h:outputText value="Test1" />
+ <a4j:commandButton action="#{orderingList.bTest1}" value="run"
reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+
+ <h:outputText value="Test2" />
+ <a4j:commandButton action="#{orderingList.bTest2}" value="run"
reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+
+ <h:outputText value="Test3" />
+ <a4j:commandButton action="#{orderingList.bTest3}" value="run"
reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+
+ <h:outputText value="Test4" />
+ <a4j:commandButton action="#{orderingList.bTest4}" value="run"
reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+
+ <h:outputText value="Test5" />
+ <a4j:commandButton action="#{orderingList.bTest5}" value="run"
reRender="orderingListPropertyID,orderingListID"></a4j:commandButton>
+
+ <h:outputText value="reRender:" />
+ <a4j:commandButton value="reRender"
reRender="orderingListID"></a4j:commandButton>
+
+ <h:outputText value="a4j submit:" />
+ <a4j:commandButton action="submit();"
value="submit();"></a4j:commandButton>
+
+ <h:outputText value="html submit:" />
+ <h:commandButton action="submit();" value="submit();" />
+
+ <h:outputText value="immediate submite:" />
+ <h:commandButton action="submit();" immediate="true"
value="submit();" />
+ </h:panelGrid>
+ </rich:simpleTogglePanel>
+</f:subview>
\ No newline at end of file
Modified:
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Action/EventInfo.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Action/EventInfo.xhtml 2007-11-22
02:22:16 UTC (rev 4170)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Action/EventInfo.xhtml 2007-11-22
09:11:26 UTC (rev 4171)
@@ -2,6 +2,10 @@
xmlns:rich="http://richfaces.org/rich"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
+
+
+
+
<f:verbatim><div style="position: relative">
<input id="ontabenterInputID" type="hidden"
value="don't work!" size="42" />
</div></f:verbatim>
Modified: branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml
===================================================================
---
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2007-11-22
02:22:16 UTC (rev 4170)
+++
branches/3.1.x/test-applications/facelets/src/main/webapp/pages/Rich/Rich.xhtml 2007-11-22
09:11:26 UTC (rev 4171)
@@ -7,6 +7,7 @@
xmlns:ui="http://java.sun.com/jsf/facelets">
<f:view>
<head>
+ <f:loadBundle basename="message" var="msg" />
<title></title>
<script type="text/javascript">