Author: adubovsky
Date: 2008-06-17 05:36:19 -0400 (Tue, 17 Jun 2008)
New Revision: 9069
Added:
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInputProperty.xhtml
Modified:
trunk/test-applications/facelets/src/main/java/rich/RichBean.java
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml
trunk/test-applications/facelets/src/main/webapp/styles/styles.css
Log:
Separate InplaceInput 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-17 09:15:36
UTC (rev 9068)
+++ trunk/test-applications/facelets/src/main/java/rich/RichBean.java 2008-06-17 09:36:19
UTC (rev 9069)
@@ -68,7 +68,7 @@
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("InplaceInput", add("/InplaceInput/InplaceInput", new
boolean [] {false, false, 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();
while(iterator.hasNext()){
Modified:
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml 2008-06-17
09:15:36 UTC (rev 9068)
+++
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml 2008-06-17
09:36:19 UTC (rev 9069)
@@ -8,6 +8,7 @@
acquire the source code, many of those
<rich:inplaceInput id = "inplaceInputId"
inputWidth="#{inplaceInput.inputWidth}"
+ valueChangeListener="#{inplaceInput.valueChangeListener}"
maxInputWidth="#{inplaceInput.maxInputWidth}"
minInputWidth="#{inplaceInput.minInputWidth}"
required="#{inplaceInput.required}"
@@ -17,7 +18,7 @@
defaultLabel="#{inplaceInput.defaultLabel}"
controlsVerticalPosition="#{inplaceInput.controlsVerticalPosition}"
controlsHorizontalPosition="#{inplaceInput.controlsHorizontalPosition}"
-
+ value="#{inplaceInput.value}"
selectOnEdit="#{inplaceInput.selectOnEdit}"
showControls="#{inplaceInput.showControls}"
rendered="#{inplaceInput.rendered}"
@@ -46,101 +47,18 @@
onmousedown="#{event.onmousedown}"
onmousemove="#{event.onmousemove}"
onmouseout="#{event.onmouseout}"
- onmouseover="#{event.onmouseover}"
+ onmouseover="#{event.onmouseover}"
onmouseup="#{event.onmouseup}"
onselect="#{event.onselect}"
onviewactivated="#{evant.onviewactivated}"
onviewactivation="#{event.onviewactivation}"
- binding="#{inplaceInput.myInplaceInput}">
+ binding="#{inplaceInput.myInplaceInput}" >
</rich:inplaceInput>
are easy to exploit.
<h:panelGrid columns="2">
- <a4j:commandButton value="refresh"
reRender="inplaceInputValueCLID"></a4j:commandButton>
+ <a4j:commandButton value="reRender" reRender="inplaceInputValueCLID,
inplaceInputId"></a4j:commandButton>
<h:outputText id="inplaceInputValueCLID"
value="#{inplaceInput.valueCL}"></h:outputText>
</h:panelGrid>
- <h:panelGrid columns="2">
- <h:outputText value="value"></h:outputText>
- <h:outputText id="inplaceInputValueID"
value="#{inplaceInput.value}" onchange="submit();">
- </h:outputText>
-
-
- <h:outputText value="defaultLabel"></h:outputText>
- <h:inputText value="#{inplaceInput.defaultLabel}"
onchange="submit();">
- </h:inputText>
- <h:outputText value="inputWidth"></h:outputText>
- <h:inputText value="#{inplaceInput.inputWidth}"
onchange="submit();">
- </h:inputText>
-
- <h:outputText value="maxInputWidth"></h:outputText>
- <h:inputText value="#{inplaceInput.maxInputWidth}"
onchange="submit();">
- </h:inputText>
-
- <h:outputText value="minInputWidth"></h:outputText>
- <h:inputText value="#{inplaceInput.minInputWidth}"
onchange="submit();">
- </h:inputText>
-
- <h:outputText value="tabindex"></h:outputText>
- <h:inputText value="#{inplaceInput.tabindex}"
onchange="submit();">
- </h:inputText>
-
- <h:outputText value="editEvent"></h:outputText>
- <h:inputText value="#{inplaceInput.editEvent}"
onchange="submit();">
- </h:inputText>
-
- <h:outputText value="controlsVerticalPosition"></h:outputText>
- <h:selectOneRadio value="#{inplaceInput.controlsVerticalPosition}"
onchange="submit();">
- <f:selectItem itemLabel="top" itemValue="top"/>
- <f:selectItem itemLabel="bottom" itemValue="bottom"/>
- <f:selectItem itemLabel="center" itemValue="center"/>
- </h:selectOneRadio>
-
- <h:outputText value="controlsHorizontalPosition"></h:outputText>
- <h:selectOneRadio value="#{inplaceInput.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="selectOnEdit"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.selectOnEdit}"
onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="showControls"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.showControls}"
onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.rendered}"
onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="immediate"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.immediate}"
onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="required"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.required}"
onchange="submit();">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{inplaceInput.requiredMessage}"
onchange="submit();">
- </h:inputText>
-
- <h:commandButton actionListener="#{inplaceInput.checkBinding}"
value="Binding"></h:commandButton>
- <h:outputText value="#{inplaceInput.bindLabel}"></h:outputText>
-
- <h:outputText value="layout"></h:outputText>
- <h:inputText value="#{inplaceInput.layout}"
onchange="submit();">
- </h:inputText>
-
- </h:panelGrid>
-
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.edit()"
value="edit"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.save()"
value="save"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.cancel()"
value="cancel"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.getValue()"
value="getValue"></a4j:commandLink> <br/>
- <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.setValue('setValue')"
value="setValuel"></a4j:commandLink>
-
-
</f:subview>
\ No newline at end of file
Added:
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInputProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInputProperty.xhtml
(rev 0)
+++
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInputProperty.xhtml 2008-06-17
09:36:19 UTC (rev 9069)
@@ -0,0 +1,85 @@
+<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="inplaceInputPropertySubviewID">
+
+ <h:panelGrid columns="2">
+ <h:outputText value="value"></h:outputText>
+ <h:outputText id="inplaceInputValueID"
value="#{inplaceInput.value}" onchange="submit();">
+ </h:outputText>
+
+ <h:outputText value="defaultLabel"></h:outputText>
+ <h:inputText value="#{inplaceInput.defaultLabel}"
onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="inputWidth"></h:outputText>
+ <h:inputText value="#{inplaceInput.inputWidth}"
onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="maxInputWidth"></h:outputText>
+ <h:inputText value="#{inplaceInput.maxInputWidth}"
onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="minInputWidth"></h:outputText>
+ <h:inputText value="#{inplaceInput.minInputWidth}"
onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="tabindex"></h:outputText>
+ <h:inputText value="#{inplaceInput.tabindex}"
onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="editEvent"></h:outputText>
+ <h:inputText value="#{inplaceInput.editEvent}"
onchange="submit();">
+ </h:inputText>
+
+ <h:outputText value="controlsVerticalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceInput.controlsVerticalPosition}"
onchange="submit();">
+ <f:selectItem itemLabel="top" itemValue="top"/>
+ <f:selectItem itemLabel="bottom" itemValue="bottom"/>
+ <f:selectItem itemLabel="center" itemValue="center"/>
+ </h:selectOneRadio>
+
+ <h:outputText value="controlsHorizontalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceInput.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="selectOnEdit"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.selectOnEdit}"
onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="showControls"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.showControls}"
onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.rendered}"
onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.immediate}"
onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceInput.required}"
onchange="submit();">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <h:inputText value="#{inplaceInput.requiredMessage}"
onchange="submit();">
+ </h:inputText>
+
+ <h:commandButton actionListener="#{inplaceInput.checkBinding}"
value="Binding"></h:commandButton>
+ <h:outputText value="#{inplaceInput.bindLabel}"></h:outputText>
+
+ <h:outputText value="layout"></h:outputText>
+ <h:inputText value="#{inplaceInput.layout}"
onchange="submit();">
+ </h:inputText>
+
+ </h:panelGrid>
+
+ <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.edit()"
value="edit"></a4j:commandLink> <br/>
+ <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.save()"
value="save"></a4j:commandLink> <br/>
+ <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.cancel()"
value="cancel"></a4j:commandLink> <br/>
+ <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.getValue()"
value="getValue"></a4j:commandLink> <br/>
+ <a4j:commandLink
onclick="$('formID:inplaceInputSubviewID:inplaceInputId').component.setValue('setValue')"
value="setValuel"></a4j:commandLink>
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/facelets/src/main/webapp/styles/styles.css
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/styles/styles.css 2008-06-17 09:15:36
UTC (rev 9068)
+++ trunk/test-applications/facelets/src/main/webapp/styles/styles.css 2008-06-17 09:36:19
UTC (rev 9069)
@@ -190,7 +190,7 @@
}
.rich-panel-header {
- color: #F00 !important;
+
}
.top {