Author: adubovsky
Date: 2008-06-17 05:15:36 -0400 (Tue, 17 Jun 2008)
New Revision: 9068
Added:
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
Modified:
trunk/test-applications/jsp/src/main/java/rich/RichBean.java
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp
trunk/test-applications/jsp/src/main/webapp/styles/styles.css
Log:
Separete InplaceInput.jsp on 2 parts.
Modified: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-17 09:03:01 UTC
(rev 9067)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-17 09:15:36 UTC
(rev 9068)
@@ -36,7 +36,7 @@
map.add("InputNumberSlider",
add("/InputNumberSlider/InputNumberSlider", new boolean [] {false, true,
true}));
map.add("InputNumberSpinner",
add("/InputNumberSpinner/InputNumberSpinner", new boolean [] {false, true,
true}));
map.add("Insert", add("/Insert/Insert", new boolean [] {false,
true, false}));
- map.add("Message", add("/Message/Message", new boolean [] {false,
true, true}));
+ map.add("Message", add("/Message/M essage", new boolean [] {false,
true, true}));
map.add("ModalPanel", add("/ModalPanel/ModalPanel", new boolean []
{false, true, true}));
map.add("Paint2D", add("/Paint2D/Paint2D", new boolean [] {false,
true, true}));
map.add("Panel", add("/Panel/Panel", new boolean [] {false, true,
true}));
@@ -67,7 +67,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/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp 2008-06-17
09:03:01 UTC (rev 9067)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp 2008-06-17
09:15:36 UTC (rev 9068)
@@ -3,187 +3,68 @@
<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
-<f:subview id="inplaceInputSubviewTableID">
-
- <a4j:commandButton actionListener="#{customList.cars}" value =
"Click" reRender="dataTableID"></a4j:commandButton>
-
- <rich:dataTable id = "dataTableID" cellpadding="0"
cellspacing="0" value="#{customList.carsList}"
- width="300" border="0" var="record">
-
- <f:facet name="header">
- <rich:columnGroup>
- <rich:column>
- <h:outputText value="Cars" />
- </rich:column>
- <rich:column>
- <h:outputText value="Price" />
- </rich:column>
- </rich:columnGroup>
- </f:facet>
-
- <rich:subTable
- var="expense" value="">
- <rich:column>
- <h:outputText
value="#{record.s0}"></h:outputText>
- <f:facet name="footer">
- <rich:spacer />
- </f:facet>
- </rich:column>
- <rich:column>
- <rich:inplaceInput
defaultLabel="#{record.i0}">$
- </rich:inplaceInput>
- </rich:column>
- </rich:subTable>
-
- </rich:dataTable>
-</f:subview>
-<br />
<f:subview id="inplaceInputSubviewID">
-
-<h:inputText value="For verify tabbing tabindex=3" size="25"
tabindex="3"></h:inputText> <br/>
-
-This is because such an error can easily be made at programming level, <br />
-and while invisible for the user who does not understand or cannot <br />
-acquire the source code, many of those
-<rich:inplaceInput
- id = "inplaceInputId"
- valueChangeListener="#{inplaceInput.valueChangeListener}"
- converter="inplaceInputConverter"
- converterMessage="Can't convert"
- inputWidth="#{inplaceInput.inputWidth}"
- maxInputWidth="#{inplaceInput.maxInputWidth}"
- minInputWidth="#{inplaceInput.minInputWidth}"
- required="#{inplaceInput.required}"
- requiredMessage="#{inplaceInput.requiredMessage}"
- tabindex="#{inplaceInput.tabindex}"
- editEvent="#{inplaceInput.editEvent}"
- defaultLabel="#{inplaceInput.defaultLabel}"
- controlsVerticalPosition="#{inplaceInput.controlsVerticalPosition}"
- controlsHorizontalPosition="#{inplaceInput.controlsHorizontalPosition}"
- value="#{inplaceInput.value}"
- selectOnEdit="#{inplaceInput.selectOnEdit}"
- showControls="#{inplaceInput.showControls}"
- rendered="#{inplaceInput.rendered}"
- immediate="#{inplaceInput.immediate}"
- layout = "#{inplaceInput.layout}"
- onblur="#{event.onblur}"
- onchange="#{event.onchange}"
- onclick="#{event.onclick}"
- ondblclick="#{event.ondblclick}"
- oneditactivated="#{event.oneditactivated}"
- oneditactivation="#{event.oneditactivation}"
- onfocus="#{event.onfocus}"
- oninputclick="#{event.oninputclick}"
- oninputdblclick="#{event.oninputdblclick}"
- oninputkeydown="#{event.oninputkeydown}"
- oninputkeypress="#{event.oninputkeypress}"
- oninputkeyup="#{event.oninputkeyup}"
- oninputmousedown="#{event.oninputmousedown}"
- oninputmousemove="#{event.oninputmousemove}"
- oninputmouseout="#{event.oninputmouseout}"
- oninputmouseover="#{event.oninputmouseover}"
- oninputmouseup="#{event.oninputmouseup}"
- onkeydown="#{event.onkeydown}"
- onkeypress="#{event.onkeypress}"
- onkeyup="#{event.onkeyup}"
- onmousedown="#{event.onmousedown}"
- onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmouseout}"
- onmouseover="#{event.onmouseover}"
- onmouseup="#{event.onmouseup}"
- onselect="#{event.onselect}"
- onviewactivated="#{evant.onviewactivated}"
- onviewactivation="#{event.onviewactivation}"
- binding="#{inplaceInput.myInplaceInput}">
+ <h:inputText value="For verify tabbing tabindex=3" size="25"
tabindex="3"></h:inputText>
+ <f:verbatim><br /><br /></f:verbatim>
+ This is because such an error can easily be made at programming level, <br />
+ and while invisible for the user who does not understand or cannot <br />
+ acquire the source code, many of those
+ <rich:inplaceInput
+ id = "inplaceInputId"
+ valueChangeListener="#{inplaceInput.valueChangeListener}"
+ converter="inplaceInputConverter"
+ converterMessage="Can't convert"
+ inputWidth="#{inplaceInput.inputWidth}"
+ maxInputWidth="#{inplaceInput.maxInputWidth}"
+ minInputWidth="#{inplaceInput.minInputWidth}"
+ required="#{inplaceInput.required}"
+ requiredMessage="#{inplaceInput.requiredMessage}"
+ tabindex="#{inplaceInput.tabindex}"
+ editEvent="#{inplaceInput.editEvent}"
+ defaultLabel="#{inplaceInput.defaultLabel}"
+ controlsVerticalPosition="#{inplaceInput.controlsVerticalPosition}"
+ controlsHorizontalPosition="#{inplaceInput.controlsHorizontalPosition}"
+ value="#{inplaceInput.value}"
+ selectOnEdit="#{inplaceInput.selectOnEdit}"
+ showControls="#{inplaceInput.showControls}"
+ rendered="#{inplaceInput.rendered}"
+ immediate="#{inplaceInput.immediate}"
+ layout = "#{inplaceInput.layout}"
+ onblur="#{event.onblur}"
+ onchange="#{event.onchange}"
+ onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}"
+ oneditactivated="#{event.oneditactivated}"
+ oneditactivation="#{event.oneditactivation}"
+ onfocus="#{event.onfocus}"
+ oninputclick="#{event.oninputclick}"
+ oninputdblclick="#{event.oninputdblclick}"
+ oninputkeydown="#{event.oninputkeydown}"
+ oninputkeypress="#{event.oninputkeypress}"
+ oninputkeyup="#{event.oninputkeyup}"
+ oninputmousedown="#{event.oninputmousedown}"
+ oninputmousemove="#{event.oninputmousemove}"
+ oninputmouseout="#{event.oninputmouseout}"
+ oninputmouseover="#{event.oninputmouseover}"
+ oninputmouseup="#{event.oninputmouseup}"
+ onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}"
+ onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}"
+ onselect="#{event.onselect}"
+ onviewactivated="#{evant.onviewactivated}"
+ onviewactivation="#{event.onviewactivation}"
+ binding="#{inplaceInput.myInplaceInput}" >
</rich:inplaceInput>
- are easy to exploit.
+ 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}" >
- </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/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
(rev 0)
+++
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp 2008-06-17
09:15:36 UTC (rev 9068)
@@ -0,0 +1,89 @@
+<%@ 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="inplaceInputPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="value"></h:outputText>
+ <h:outputText id="inplaceInputValueID"
value="#{inplaceInput.value}" >
+ </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/jsp/src/main/webapp/styles/styles.css
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/styles/styles.css 2008-06-17 09:03:01 UTC
(rev 9067)
+++ trunk/test-applications/jsp/src/main/webapp/styles/styles.css 2008-06-17 09:15:36 UTC
(rev 9068)
@@ -190,7 +190,7 @@
}
.rich-panel-header {
- color: #F00 !important;
+
}
.top {