Author: adubovsky
Date: 2008-06-18 03:56:57 -0400 (Wed, 18 Jun 2008)
New Revision: 9088
Added:
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelectProperty.xhtml
Modified:
trunk/test-applications/facelets/src/main/java/rich/RichBean.java
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelect.xhtml
Log:
Separate InplaceSelect.xhtml on 2 files
Modified: trunk/test-applications/facelets/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2008-06-18 00:06:07
UTC (rev 9087)
+++ trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2008-06-18 07:56:57
UTC (rev 9088)
@@ -67,7 +67,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/facelets/src/main/webapp/InplaceSelect/InplaceSelect.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelect.xhtml 2008-06-18
00:06:07 UTC (rev 9087)
+++
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelect.xhtml 2008-06-18
07:56:57 UTC (rev 9088)
@@ -55,7 +55,10 @@
onselect="#{event.onselect}"
onviewactivated="#{evant.onviewactivated}"
onviewactivation="#{event.onviewactivation}"
- layout="#{inplaceSelect.layout}">
+ layout="#{inplaceSelect.layout}"
+ valueChangeListener="#{inplaceSelect.valueChangeListener}"
+ value="#{inplaceSelect.value}" >
+
<f:selectItem itemLabel="errors" itemValue="errors" />
<f:selectItem itemLabel="fatals" itemValue="fatals" />
<f:selectItem itemLabel="infos" itemValue="infos" />
@@ -65,96 +68,9 @@
are easy to exploit.
<h:panelGrid columns="2">
- <a4j:commandButton value="refresh"
reRender="inplaceSelectValueCLID"></a4j:commandButton>
+ <a4j:commandButton value="reRender" 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>
-
- <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="setValuel"></a4j:commandLink>
-
</f:subview>
\ No newline at end of file
Added:
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelectProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelectProperty.xhtml
(rev 0)
+++
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelectProperty.xhtml 2008-06-18
07:56:57 UTC (rev 9088)
@@ -0,0 +1,90 @@
+<f:subview
xmlns:ui="http://java.sun.com/jsf/facelets"
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"
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>
+
+ <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="setValuel"></a4j:commandLink>
+
+</f:subview>
\ No newline at end of file