Author: adubovsky
Date: 2008-06-18 04:14:16 -0400 (Wed, 18 Jun 2008)
New Revision: 9089
Added:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
Modified:
trunk/test-applications/jsp/src/main/java/rich/RichBean.java
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
Log:
Separate InplaceSelect.jsp on 2 files
Modified: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-18 07:56:57 UTC
(rev 9088)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-18 08:14:16 UTC
(rev 9089)
@@ -66,7 +66,7 @@
map.add("ProgressBar", add("/ProgressBar/ProgressBar", new boolean
[] {false, false, false}));
map.add("SortingAndFiltering",
add("/SortingAndFiltering/SortingAndFiltering", new boolean [] {false, false,
false}));
map.add("FileUpload", add("/FileUpload/FileUpload", new boolean []
{false, false, false}));
- map.add("InplaceSelect", add("/InplaceSelect/InplaceSelect", new
boolean [] {false, false, false}));
+ map.add("InplaceSelect", add("/InplaceSelect/InplaceSelect", new
boolean [] {false, true, false}));
map.add("InplaceInput", add("/InplaceInput/InplaceInput", new
boolean [] {false, true, false}));
map.add("Skinning", add("/Skinning/Skinning", new boolean []
{false, false, false}));
Iterator<String> iterator = map.getSet().iterator();
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-06-18
07:56:57 UTC (rev 9088)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-06-18
08:14:16 UTC (rev 9089)
@@ -28,7 +28,7 @@
binding="#{inplaceSelect.myInplaceSelect}"
required="#{inplaceSelect.required}"
requiredMessage="#{inplaceSelect.requiredMessage}"
-
+ valueChangeListener="#{inplaceSelect.valueChangeListener}"
onblur="#{event.onblur}"
onchange="#{event.onchange}"
onclick="#{event.onclick}"
@@ -59,134 +59,21 @@
onselect="#{event.onselect}"
onviewactivated="#{event.onviewactivated}"
onviewactivation="#{event.onviewactivation}"
- layout="#{inplaceSelect.layout}">
+ layout="#{inplaceSelect.layout}"
+ value="#{inplaceSelect.value}" >
+
<f:selectItem itemLabel="errors" itemValue="errors" />
<f:selectItem itemLabel="fatals" itemValue="fatals" />
<f:selectItem itemLabel="infos" itemValue="infos" />
<f:selectItem itemLabel="passeds" itemValue="passeds" />
<f:selectItem itemLabel="warns" itemValue="warns" />
- <f:selectItem itemLabel="warnswarnswarnswarns"
itemValue="warnswarnswarnswarns" />
</rich:inplaceSelect>
are easy to exploit.
+
<h:panelGrid columns="2">
- <a4j:commandButton value="refresh"
reRender="inplaceSelectValueCLID"></a4j:commandButton>
+ <a4j:commandButton value="refresh" reRender="inplaceSelectValueCLID,
inplaceSelectID"></a4j:commandButton>
<h:outputText id="inplaceSelectValueCLID"
value="#{inplaceSelect.valueCL}"></h:outputText>
</h:panelGrid>
- <h:panelGrid columns="2">
- <h:outputText value="value"></h:outputText>
- <h:outputText value="#{inplaceSelect.value}"></h:outputText>
-
- <h:outputText value="defaultLabel"></h:outputText>
- <h:inputText value="#{inplaceSelect.defaultLabel}"
- onchange="submit();"></h:inputText>
-
- <h:outputText value="editEvent"></h:outputText>
- <h:inputText value="#{inplaceSelect.editEvent}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="selectWidth"></h:outputText>
- <h:inputText value="#{inplaceSelect.selectWidth}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="maxSelectWidth"></h:outputText>
- <h:inputText value="#{inplaceSelect.maxSelectWidth}"
- onchange="submit();"></h:inputText>
-
- <h:outputText value="minSelectWidth"></h:outputText>
- <h:inputText value="#{inplaceSelect.minSelectWidth}"
- onchange="submit();"></h:inputText>
-
- <h:outputText value="listWidth"></h:outputText>
- <h:inputText value="#{inplaceSelect.listWidth}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="listHeight"></h:outputText>
- <h:inputText value="#{inplaceSelect.listHeight}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="controlsVerticalPosition"></h:outputText>
- <h:selectOneRadio value="#{inplaceSelect.controlsVerticalPosition}"
- onchange="submit();">
- <f:selectItem itemLabel="top" itemValue="top" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="bottom" itemValue="bottom" />
-
- </h:selectOneRadio>
-
- <h:outputText value="controlsHorizontalPosition"></h:outputText>
- <h:selectOneRadio value="#{inplaceSelect.controlsHorizontalPosition}"
- onchange="submit();">
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="left" itemValue="left" />
- </h:selectOneRadio>
- <h:outputText value="tabindex"></h:outputText>
- <h:inputText value="#{inplaceSelect.tabindex}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="showControls"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceSelect.showControls}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="applyFromControlsOnly"></h:outputText>
- <h:selectBooleanCheckbox
- value="#{inplaceSelect.applyFromControlsOnly}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="openOnEdit"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceSelect.openOnEdit}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceSelect.rendered}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:commandButton actionListener="#{inplaceSelect.checkBinding}"
value="Binding"></h:commandButton>
- <h:outputText value = "#{inplaceSelect.bindLabel}"/>
-
- <h:outputText value="immediate"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceSelect.immediate}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="required"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceSelect.required}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{inplaceSelect.requiredMessage}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="layout"></h:outputText>
- <h:inputText value="#{inplaceSelect.layout}"
onchange="submit();"></h:inputText>
-
- </h:panelGrid>
-
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.edit()"
value="edit"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.save()"
value="save"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.cancel()"
value="cancel"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.getValue()"
value="getValue"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.setValue('setValue')"
value="setValue"></a4j:commandLink>
-
- <br />
- <f:verbatim>
- <h:outputText value="Component Control test"
- style="FONT-WEIGHT: bold;"></h:outputText>
- <br />
- <a href="#" id="editID">edit()</a>
- <br />
- <a href="#" id="saveID">save()</a>
- <br />
- <a href="#" id="cancelID">cancel()</a>
- <br />
- <a href="#" id="getValueID">getValue()</a>
- <br />
- <a href="#"
id="setValueID">setValue('newValue')</a>
- </f:verbatim>
-
- <rich:componentControl attachTo="editID" event="onclick"
- for="inplaceSelectID" operation="edit"
></rich:componentControl>
- <rich:componentControl attachTo="saveID" event="onclick"
- for="inplaceSelectID"
operation="save"></rich:componentControl>
- <rich:componentControl attachTo="cancelID" event="onclick"
- for="inplaceSelectID"
operation="cancel"></rich:componentControl>
- <rich:componentControl attachTo="getValueID" event="onclick"
- for="inplaceSelectID"
operation="getValue"></rich:componentControl>
- <rich:componentControl attachTo="setValueID" event="onclick"
- for="inplaceSelectID"
operation="setValue('newValue')"></rich:componentControl>
-
</f:subview>
\ No newline at end of file
Added:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
(rev 0)
+++
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp 2008-06-18
08:14:16 UTC (rev 9089)
@@ -0,0 +1,123 @@
+<%@ 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="inplaceSelectPropertySubviewID">
+
+ <h:panelGrid columns="2">
+ <h:outputText value="value"></h:outputText>
+ <h:outputText value="#{inplaceSelect.value}"></h:outputText>
+
+ <h:outputText value="defaultLabel"></h:outputText>
+ <h:inputText value="#{inplaceSelect.defaultLabel}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="editEvent"></h:outputText>
+ <h:inputText value="#{inplaceSelect.editEvent}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="selectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.selectWidth}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="maxSelectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.maxSelectWidth}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="minSelectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.minSelectWidth}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.listWidth}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{inplaceSelect.listHeight}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="controlsVerticalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceSelect.controlsVerticalPosition}"
+ onchange="submit();">
+ <f:selectItem itemLabel="top" itemValue="top" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="bottom" itemValue="bottom" />
+
+ </h:selectOneRadio>
+
+ <h:outputText value="controlsHorizontalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceSelect.controlsHorizontalPosition}"
+ onchange="submit();">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ </h:selectOneRadio>
+ <h:outputText value="tabindex"></h:outputText>
+ <h:inputText value="#{inplaceSelect.tabindex}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="showControls"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.showControls}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="applyFromControlsOnly"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inplaceSelect.applyFromControlsOnly}"
onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="openOnEdit"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.openOnEdit}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:commandButton actionListener="#{inplaceSelect.checkBinding}"
value="Binding"></h:commandButton>
+ <h:outputText value = "#{inplaceSelect.bindLabel}"/>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.immediate}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.required}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <h:inputText value="#{inplaceSelect.requiredMessage}"
onchange="submit();"></h:inputText>
+
+ <h:outputText value="layout"></h:outputText>
+ <h:inputText value="#{inplaceSelect.layout}"
onchange="submit();"></h:inputText>
+
+ </h:panelGrid>
+
+ <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.edit()"
value="edit"></a4j:commandLink> <br/>
+ <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.save()"
value="save"></a4j:commandLink> <br/>
+ <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.cancel()"
value="cancel"></a4j:commandLink> <br/>
+ <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.getValue()"
value="getValue"></a4j:commandLink> <br/>
+ <a4j:commandLink
onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.setValue('setValue')"
value="setValue"></a4j:commandLink>
+
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component Control test"
+ style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="editID">edit()</a>
+ <br />
+ <a href="#" id="saveID">save()</a>
+ <br />
+ <a href="#" id="cancelID">cancel()</a>
+ <br />
+ <a href="#" id="getValueID">getValue()</a>
+ <br />
+ <a href="#"
id="setValueID">setValue('newValue')</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="editID" event="onclick"
+ for="inplaceSelectID" operation="edit"
></rich:componentControl>
+ <rich:componentControl attachTo="saveID" event="onclick"
+ for="inplaceSelectID"
operation="save"></rich:componentControl>
+ <rich:componentControl attachTo="cancelID" event="onclick"
+ for="inplaceSelectID"
operation="cancel"></rich:componentControl>
+ <rich:componentControl attachTo="getValueID" event="onclick"
+ for="inplaceSelectID"
operation="getValue"></rich:componentControl>
+ <rich:componentControl attachTo="setValueID" event="onclick"
+ for="inplaceSelectID"
operation="setValue('newValue')"></rich:componentControl>
+
+</f:subview>
\ No newline at end of file