Author: ayanul
Date: 2007-10-19 07:18:13 -0400 (Fri, 19 Oct 2007)
New Revision: 3448
Added:
trunk/test-applications/jsp/src/main/java/jQuery/
trunk/test-applications/jsp/src/main/java/jQuery/JQuery.java
trunk/test-applications/jsp/src/main/java/util/
trunk/test-applications/jsp/src/main/java/util/componentInfo/
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
trunk/test-applications/jsp/src/main/java/util/phaseTracker/
trunk/test-applications/jsp/src/main/java/util/phaseTracker/PhaseTracker.java
trunk/test-applications/jsp/src/main/java/util/skins/
trunk/test-applications/jsp/src/main/java/util/skins/Skins.java
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-RichBean.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-jQuery.xml
trunk/test-applications/jsp/src/main/webapp/jQuery/
trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
Modified:
trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java
trunk/test-applications/jsp/src/main/java/dataScroller/Data.java
trunk/test-applications/jsp/src/main/java/dataTable/Data.java
trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
trunk/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java
trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java
trunk/test-applications/jsp/src/main/java/sTP/SimpleTogglePanel.java
trunk/test-applications/jsp/src/main/java/sb/Sb.java
trunk/test-applications/jsp/src/main/java/spacer/Spacer.java
trunk/test-applications/jsp/src/main/java/tabPanel/TabPanel.java
trunk/test-applications/jsp/src/main/java/togglePanel/TogglePanel.java
trunk/test-applications/jsp/src/main/java/toolBar/ToolBar.java
trunk/test-applications/jsp/src/main/java/tree/Bean.java
trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Skin.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
Log:
Update
Modified: trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java
===================================================================
---
trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java 2007-10-19
00:54:42 UTC (rev 3447)
+++
trunk/test-applications/jsp/src/main/java/calendar/CalendarDataModelImpl.java 2007-10-19
11:18:13 UTC (rev 3448)
@@ -86,7 +86,6 @@
*/
public Object getToolTip(Date date) {
- // TODO Auto-generated method stub
return null;
}
Modified: trunk/test-applications/jsp/src/main/java/dataScroller/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataScroller/Data.java 2007-10-19 00:54:42
UTC (rev 3447)
+++ trunk/test-applications/jsp/src/main/java/dataScroller/Data.java 2007-10-19 11:18:13
UTC (rev 3448)
@@ -6,11 +6,18 @@
public String data0;
public int data1;
+ public String data2;
+ public String data3;
- public Data(String str,int a) {
- this.data0 =str+"_"+a;
- this.data1 = new Random().nextInt(10+a);
+ public Data(String data0, int data1) {
+ this.data0 = data0;
+ this.data1 = data1;
+ }
+ public Data(String data0, int data1, String data2, String data3) {
+ this(data0, data1);
+ this.data2 = data2;
+ this.data3 = data3;
}
public String getData0() {
@@ -25,6 +32,22 @@
return data1;
}
+ public String getData2() {
+ return data2;
+ }
+
+ public void setData2(String data2) {
+ this.data2 = data2;
+ }
+
+ public String getData3() {
+ return data3;
+ }
+
+ public void setData3(String data3) {
+ this.data3 = data3;
+ }
+
public void setData1(int data1) {
this.data1 = data1;
}
Modified: trunk/test-applications/jsp/src/main/java/dataTable/Data.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataTable/Data.java 2007-10-19 00:54:42 UTC
(rev 3447)
+++ trunk/test-applications/jsp/src/main/java/dataTable/Data.java 2007-10-19 11:18:13 UTC
(rev 3448)
@@ -19,7 +19,6 @@
*
*/
public Data() {
- // TODO Auto-generated constructor stub
}
/**
Modified:
trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java
===================================================================
---
trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-10-19
00:54:42 UTC (rev 3447)
+++
trunk/test-applications/jsp/src/main/java/inputNumberSlider/InputNumberSlider.java 2007-10-19
11:18:13 UTC (rev 3448)
@@ -22,7 +22,6 @@
private boolean showBoundaryValues;
public InputNumberSlider() {
- // TODO Auto-generated constructor stub
inputSize = 5;
maxlength = 3;
Modified:
trunk/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java
===================================================================
---
trunk/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java 2007-10-19
00:54:42 UTC (rev 3447)
+++
trunk/test-applications/jsp/src/main/java/inputNumberSpinner/InputNumberSpinner.java 2007-10-19
11:18:13 UTC (rev 3448)
@@ -18,7 +18,6 @@
private boolean rendered;
public InputNumberSpinner() {
- // TODO Auto-generated constructor stub
// size= "200";
inputSize = 2;
cycled = false;
Added: trunk/test-applications/jsp/src/main/java/jQuery/JQuery.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/jQuery/JQuery.java
(rev 0)
+++ trunk/test-applications/jsp/src/main/java/jQuery/JQuery.java 2007-10-19 11:18:13 UTC
(rev 3448)
@@ -0,0 +1,5 @@
+package jQuery;
+
+public class JQuery {
+
+}
Modified: trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java 2007-10-19
00:54:42 UTC (rev 3447)
+++ trunk/test-applications/jsp/src/main/java/modalPanel/ModalPanel.java 2007-10-19
11:18:13 UTC (rev 3448)
@@ -20,8 +20,6 @@
moveable=true;
resizeable=true;
-
- // TODO Auto-generated constructor stub
}
public int getHeight() {
Modified: trunk/test-applications/jsp/src/main/java/sTP/SimpleTogglePanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/sTP/SimpleTogglePanel.java 2007-10-19
00:54:42 UTC (rev 3447)
+++ trunk/test-applications/jsp/src/main/java/sTP/SimpleTogglePanel.java 2007-10-19
11:18:13 UTC (rev 3448)
@@ -10,7 +10,6 @@
private boolean rendered;
public SimpleTogglePanel() {
- // TODO Auto-generated constructor stub
width = "75%";
height = "100%";
switchType = "server";
Modified: trunk/test-applications/jsp/src/main/java/sb/Sb.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/sb/Sb.java 2007-10-19 00:54:42 UTC (rev
3447)
+++ trunk/test-applications/jsp/src/main/java/sb/Sb.java 2007-10-19 11:18:13 UTC (rev
3448)
@@ -50,7 +50,7 @@
frequency = "0";
rules = "none";
setCities(getAllData());
- // TODO Auto-generated constructor stub
+
}
public List autocomplete(Object event) {
Modified: trunk/test-applications/jsp/src/main/java/spacer/Spacer.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/spacer/Spacer.java 2007-10-19 00:54:42 UTC
(rev 3447)
+++ trunk/test-applications/jsp/src/main/java/spacer/Spacer.java 2007-10-19 11:18:13 UTC
(rev 3448)
@@ -13,7 +13,6 @@
private boolean rendered;
public Spacer() {
- // TODO Auto-generated constructor stub
height = "50px";
width = "300px";
Modified: trunk/test-applications/jsp/src/main/java/tabPanel/TabPanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/tabPanel/TabPanel.java 2007-10-19 00:54:42
UTC (rev 3447)
+++ trunk/test-applications/jsp/src/main/java/tabPanel/TabPanel.java 2007-10-19 11:18:13
UTC (rev 3448)
@@ -23,8 +23,6 @@
private boolean disabledTab;
public TabPanel() {
- // TODO Auto-generated constructor stub
-
width="75%";
height="200px";
title="title goes here...";
Modified: trunk/test-applications/jsp/src/main/java/togglePanel/TogglePanel.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/togglePanel/TogglePanel.java 2007-10-19
00:54:42 UTC (rev 3447)
+++ trunk/test-applications/jsp/src/main/java/togglePanel/TogglePanel.java 2007-10-19
11:18:13 UTC (rev 3448)
@@ -9,7 +9,6 @@
public TogglePanel() {
- // TODO Auto-generated constructor stub
initialState="asus";
switchType="server";
stateOrder="asus,benq,toshiba";
Modified: trunk/test-applications/jsp/src/main/java/toolBar/ToolBar.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/toolBar/ToolBar.java 2007-10-19 00:54:42 UTC
(rev 3447)
+++ trunk/test-applications/jsp/src/main/java/toolBar/ToolBar.java 2007-10-19 11:18:13 UTC
(rev 3448)
@@ -22,7 +22,6 @@
location="left";
contentStyle=null;
separatorStyle=null;
- // TODO Auto-generated constructor stub
}
Modified: trunk/test-applications/jsp/src/main/java/tree/Bean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/tree/Bean.java 2007-10-19 00:54:42 UTC (rev
3447)
+++ trunk/test-applications/jsp/src/main/java/tree/Bean.java 2007-10-19 11:18:13 UTC (rev
3448)
@@ -222,7 +222,6 @@
try {
tree.queueNodeExpand(new ListRowKey(expandPath));
} catch (IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
}
@@ -255,7 +254,6 @@
try {
this.tree.queueExpandAll();
} catch (IOException e) {
- // TODO Auto-generated catch block
e.printStackTrace();
}
return null;
Added: trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java
(rev 0)
+++
trunk/test-applications/jsp/src/main/java/util/componentInfo/ComponentInfo.java 2007-10-19
11:18:13 UTC (rev 3448)
@@ -0,0 +1,32 @@
+package util.componentInfo;
+
+public class ComponentInfo {
+ private String attribute;
+ private String property;
+
+ public ComponentInfo() {
+
+ }
+
+ public ComponentInfo(String attribute, String property) {
+ this.attribute = attribute;
+ this.property = property;
+ System.out.println();
+ }
+
+ public String getAttribute() {
+ return attribute;
+ }
+
+ public void setAttribute(String attribute) {
+ this.attribute = attribute;
+ }
+
+ public String getProperty() {
+ return property;
+ }
+
+ public void setProperty(String property) {
+ this.property = property;
+ }
+}
Added: trunk/test-applications/jsp/src/main/java/util/phaseTracker/PhaseTracker.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/phaseTracker/PhaseTracker.java
(rev 0)
+++
trunk/test-applications/jsp/src/main/java/util/phaseTracker/PhaseTracker.java 2007-10-19
11:18:13 UTC (rev 3448)
@@ -0,0 +1,37 @@
+/**
+ *
+ */
+package util.phaseTracker;
+
+import javax.faces.event.PhaseEvent;
+import javax.faces.event.PhaseId;
+import javax.faces.event.PhaseListener;
+
+/**
+ * @author AYanul
+ *
+ */
+public class PhaseTracker implements PhaseListener {
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#afterPhase(javax.faces.event.PhaseEvent)
+ */
+ public void afterPhase(PhaseEvent arg0) {
+ System.out.println("PhaseTracker.afterPhase()" + arg0.getPhaseId());
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#beforePhase(javax.faces.event.PhaseEvent)
+ */
+ public void beforePhase(PhaseEvent arg0) {
+ System.out.println("PhaseTracker.beforePhase()" + arg0.getPhaseId());
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.event.PhaseListener#getPhaseId()
+ */
+ public PhaseId getPhaseId() {
+ return PhaseId.ANY_PHASE;
+ }
+
+}
Added: trunk/test-applications/jsp/src/main/java/util/skins/Skins.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/skins/Skins.java
(rev 0)
+++ trunk/test-applications/jsp/src/main/java/util/skins/Skins.java 2007-10-19 11:18:13
UTC (rev 3448)
@@ -0,0 +1,71 @@
+package util.skins;
+
+import java.util.Map;
+
+import javax.faces.component.UIComponent;
+import javax.faces.component.UISelectItem;
+import javax.faces.component.UISelectOne;
+import javax.faces.component.html.HtmlSelectOneRadio;
+import javax.faces.context.FacesContext;
+
+/**
+ * @author Nick Belaevski - nbelaevski(a)exadel.com created 09.02.2007
+ *
+ */
+public class Skins {
+
+ private String[] skinsArray = new String[] { "blueSky", "classic",
+ "deepMarine", "DEFAULT", "emeraldTown",
"japanCherry", "ruby",
+ "wine", "plain" };
+
+ private String defaultSkin = "blueSky";
+
+ private String skin = defaultSkin;
+
+ private UISelectOne createComponent() {
+ UISelectOne selectOne = new HtmlSelectOneRadio();
+ selectOne.setValue(skin);
+
+ for (int i = 0; i < skinsArray.length; i++) {
+ String skinName = skinsArray[i];
+
+ UISelectItem item = new UISelectItem();
+ item.setItemLabel(skinName);
+ item.setItemValue(skinName);
+ item.setId("skinSelectionFor_" + skinName);
+
+ selectOne.getChildren().add(item);
+ }
+
+ return selectOne;
+ }
+
+ public String getSkin() {
+ return skin;
+ }
+
+ public UIComponent getComponent() {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map requestMap = facesContext.getExternalContext().getRequestMap();
+ Object object = requestMap.get("SkinBean");
+ if (object != null) {
+ return (UISelectOne) object;
+ }
+
+ UISelectOne selectOne = createComponent();
+ requestMap.put("SkinBean", selectOne);
+ return selectOne;
+ }
+
+ public void setComponent(UIComponent component) {
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+ Map requestMap = facesContext.getExternalContext().getRequestMap();
+ requestMap.put("SkinBean", component);
+ }
+
+ public String change() {
+ UISelectOne selectOne = (UISelectOne) getComponent();
+ skin = (String) selectOne.getValue();
+ return null;
+ }
+}
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2007-10-19 00:54:42
UTC (rev 3447)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/Calendar.jsp 2007-10-19 11:18:13
UTC (rev 3448)
@@ -82,62 +82,7 @@
</h:panelGrid>
</h:panelGrid>
</rich:calendar>
- <rich:calendar id="calendarAjaxID"
dataModel="#{calendarDataModel}"
- locale="#{calendarBean.locale}" popup="#{calendarBean.popup}"
- datePattern="#{calendarBean.pattern}"
- weekDayLabels="#{calendarBean.weekDayLabels}"
- weekDayLabelsShort="#{calendarBean.weekDayLabelsShort}"
- monthLabels="#{calendarBean.monthLabels}"
- monthLabelsShort="#{calendarBean.monthLabelsShort}"
- value="#{calendarBean.selectedDate}"
- currentDate="#{calendarBean.currentDate}"
- jointPoint="#{calendarBean.jointPoint}"
- direction="#{calendarBean.direction}"
- enableManualInput="#{calendarBean.enableManualInput}"
- showInput="#{calendarBean.showInput}"
buttonLabel="#{calendarBean.label}"
- boundaryDatesMode="#{calendarBean.boundary}"
- currentDateChangeListener="#{calendarBean.dcl}"
- valueChangeListener="#{calendarBean.ddd}" reRender="counter"
- inputClass="ic" buttonClass="bc"
- ajaxSingle="#{calendarBean.ajaxSingle}"
- buttonIcon="#{calendarBean.icon}"
- buttonIconDisabled="#{icon.iconFileManagerReject}"
- disabled="#{calendarBean.disabled}"
- bypassUpdates="#{calendarBean.bypassUpdates}"
- height="#{calendarBean.height}"
- width="#{calendarBean.width}"
- zindex="#{calendarBean.zindex}"
- toolTipMode="#{calendarBean.toolTipMode}"
- rendered="#{calendarBean.rendered}"
- focus="popupModeID"
- mode="ajax"
- required="#{calendarBean.required}"
- requiredMessage="Required Message">
- <f:facet name="weekDay">
- <f:verbatim><span style="padding: 2px; font-size: 4"
>{weekDayLabel + weekDayLabelShort}</span></f:verbatim>
- </f:facet>
-
- <f:facet name="optionalHeader">
- <h:outputText value="optionalHeader Facet" />
- </f:facet>
-
- <f:facet name="optionalFooter">
- <h:outputText value="optionalFooter Facet" />
- </f:facet>
-
- <f:validator validatorId="org.richfaces.CalendarValidator" />
-
- <h:panelGrid columns="2">
- <f:verbatim>
- <span style="padding: 2px;">{day}</span>
- </f:verbatim>
- <h:panelGrid>
- <h:outputText styleClass="smallText" value="{data.enLabel}"
/>
- <h:outputText styleClass="smallText" value="{data.frLabel}"
/>
- <h:outputText styleClass="smallText" value="{data.deLabel}"
/>
- </h:panelGrid>
- </h:panelGrid>
- </rich:calendar>
+
</h:panelGrid>
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-RichBean.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-RichBean.xml
(rev 0)
+++
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-RichBean.xml 2007-10-19
11:18:13 UTC (rev 3448)
@@ -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>richBean</managed-bean-name>
+ <managed-bean-class>rich.RichBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Added:
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml
===================================================================
---
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml
(rev 0)
+++
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-ScrollableDataTable.xml 2007-10-19
11:18:13 UTC (rev 3448)
@@ -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>scrollableDT</managed-bean-name>
+
<managed-bean-class>scrollableDataTable.ScrollableDataTable</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Skin.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Skin.xml 2007-10-19
00:54:42 UTC (rev 3447)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-Skin.xml 2007-10-19
11:18:13 UTC (rev 3448)
@@ -2,9 +2,9 @@
<!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>skinBean</managed-bean-name>
- <managed-bean-class>skins.Skins</managed-bean-class>
- <managed-bean-scope>session</managed-bean-scope>
- </managed-bean>
+ <managed-bean>
+ <managed-bean-name>skinBean</managed-bean-name>
+ <managed-bean-class>util.skins.Skins</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
</faces-config>
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-jQuery.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-jQuery.xml
(rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-jQuery.xml 2007-10-19
11:18:13 UTC (rev 3448)
@@ -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>jQuery</managed-bean-name>
+ <managed-bean-class>jQuery.JQuery</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-10-19
00:54:42 UTC (rev 3447)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-10-19
11:18:13 UTC (rev 3448)
@@ -150,4 +150,7 @@
<to-view-id>/Panel/Panel.jsp</to-view-id>
</navigation-case>
</navigation-rule>
+ <lifecycle>
+ <phase-listener
id="phaseTracker">util.phaseTracker.PhaseTracker</phase-listener>
+ </lifecycle>
</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2007-10-19 00:54:42 UTC
(rev 3447)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2007-10-19 11:18:13 UTC
(rev 3448)
@@ -12,8 +12,23 @@
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
-
<param-value>/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-Icon.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-Separator.xml,/WEB-INF/faces-config-Spacer.xml,/WEB-INF/faces-config-SimpleTogglePanel.xml,/WEB-INF/faces-config-ToolBar.xml,/WEB-INF/faces-config-ModalPanel.xml,/WEB-INF/faces-config-SuggestionBox.xml,/WEB-INF/faces-config-DragAndDrop.xml,/WEB-INF/faces-config-DataScroller.xml,/WEB-INF/faces-config-DataTable.xml,/WEB-INF/faces-config-DataFilterSlider.xml,/WEB-INF/faces-config-VirtualEarth.xml,/WEB-INF/faces-config-Message!
.xml,/WEB-INF/faces-config-Effect.xml,/WEB-INF/faces-config-Insert.xml,/WEB-INF/faces-config-RichTest.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-Icon.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</param-value>
</context-param>
+ <context-param>
+ <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
+ <param-value>false</param-value>
+ </context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
Added: trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
(rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp 2007-10-19 11:18:13 UTC
(rev 3448)
@@ -0,0 +1,97 @@
+<%@ 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="jQuerySubviewID">
+ <h:form id="form">
+<style>
+.divSize_1 {
+ width: 150px;
+ height: 90px;
+ margin: 10px;
+ border: 2px solid #DAA520;
+}
+
+.divColor_1 {
+
+ background-color: #1E90FF;
+}
+
+.divTextSize_1 {
+ font-size: xx-large;
+}
+.divSize_2 {
+ width: 90px;
+ height: 150px;
+ margin: 10px;
+ border: 2px solid #FF0000;
+}
+
+.divColor_2 {
+ background-color: #7FFF00;
+}
+
+.oddTable{
+ background-color: #FFE4C4;
+}
+.activeTable{
+ background-color: #AFEEEE;
+}
+.fontColor {
+ font-style: italic;
+ color: #228B22;
+}
+</style>
+
+ <h:messages />
+ <h:panelGrid id="panelGridID" columns="2"
border="1">
+ <h:outputText value="add text: [li],work!, e.g. A. one [li],work!" />
+ <h:panelGroup>
+ <f:verbatim>
+ <ol type="A" title="li">
+ <li>one </li>
+ <li>two </li>
+ <li>three</li>
+ </ol>
+ </f:verbatim>
+ </h:panelGroup>
+
+ <h:outputText value="green text: add text3 " />
+ <f:verbatim> <p><span>Text1 </span>text2</p>
</f:verbatim>
+
+ <h:panelGroup>
+ <f:verbatim>
+ Rectangle: size: "150 x 90"; bgcolor: "dodgerblue";
+ <br />
+ Table: bgcolor: "bisque"
+ </f:verbatim>
+ </h:panelGroup>
+ <f:verbatim><div id="div_1_ID">xx-large <br /> text
</div></f:verbatim>
+
+ <h:panelGroup>
+ <f:verbatim>
+ Rectangle: size: "90 x 150"; border-color: "red"
+ <br />
+ effect(mouseover)
+ </f:verbatim>
+ </h:panelGroup>
+ <f:verbatim><div id="div_2_ID"> normal
text</div></f:verbatim>
+ </h:panelGrid>
+
+
+ <rich:jQuery selector="li" timing="onload"
query="find('ol').end().append('[li],work!')" />
+
+
+ <rich:jQuery selector="tr:nth-child(odd)" timing="onload"
query="addClass('oddTable')" />
+ <rich:jQuery selector="#panelGridID tr"
query="mouseover(function(){jQuery(this).addClass('activeTable')})"/>
+ <rich:jQuery selector="#panelGridID tr"
query="mouseout(function(){jQuery(this).removeClass('activeTable')})"/>
+
+ <rich:jQuery selector="p" timing="onload"
query="find('span').html('text1').end().append('<p
class='fontColor'>add text3<p>')"/>
+ <rich:jQuery selector="#div_1_ID" timing="onload"
query="addClass('divSize_1')" />
+ <rich:jQuery selector=".divSize_1" timing="onload"
query="addClass('divColor_1')" />
+ <rich:jQuery selector="#panelGridID #div_1_ID" timing="onload"
query="addClass('divTextSize_1')" />
+ <rich:jQuery selector="#form\\:panelGridID #div_2_ID"
timing="onload" query="addClass('divSize_2')" />
+
+ </h:form>
+</f:subview>