JBoss Rich Faces SVN: r9078 - trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-06-17 10:25:04 -0400 (Tue, 17 Jun 2008)
New Revision: 9078
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
http://jira.jboss.com/jira/browse/RF-3725
Modified: trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
--- trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-06-17 13:56:26 UTC (rev 9077)
+++ trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-06-17 14:25:04 UTC (rev 9078)
@@ -152,7 +152,7 @@
tmpValueKeyDownHandler : function(e) {
switch (e.keyCode) {
case Event.KEY_ESC :
- this.cancel(e, this.valueKeeper.value);
+ this.cancel(e);
break;
case Event.KEY_RETURN :
Event.stop(e);
@@ -175,7 +175,7 @@
},
cancelHandler : function(e) {
- this.cancel(e, this.valueKeeper.value);
+ this.cancel(e);
Event.stop(e);
},
16 years
JBoss Rich Faces SVN: r9077 - trunk/test-applications/jsp/src/main/webapp/InplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-17 09:56:26 -0400 (Tue, 17 Jun 2008)
New Revision: 9077
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
Log:
JS API test.
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-06-17 13:50:53 UTC (rev 9076)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-06-17 13:56:26 UTC (rev 9077)
@@ -160,6 +160,33 @@
<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>
+ <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
16 years
JBoss Rich Faces SVN: r9076 - trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-06-17 09:50:53 -0400 (Tue, 17 Jun 2008)
New Revision: 9076
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
Log:
extracted a method
Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2008-06-17 12:53:17 UTC (rev 9075)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/common/ComponentNavigator.java 2008-06-17 13:50:53 UTC (rev 9076)
@@ -238,21 +238,10 @@
*/
public void tabPanelSwitched(ValueChangeEvent event) {
FacesContext facesContext = FacesContext.getCurrentInstance();
- String activeTab = getCurrentComponent().getActiveTab();
ViewHandler viewHandler = facesContext.getApplication().getViewHandler();
String viewId = facesContext.getViewRoot().getViewId();
String actionURL = viewHandler.getActionURL(facesContext, viewId);
- String tabParam = "tab=" + activeTab;
- actionURL.replaceAll("[\\?]tab=[\\w]*", "?" + tabParam);
- actionURL.replaceAll("[&]tab=[\\w]*", "&" + tabParam);
- if (!actionURL.contains(tabParam)) {
- if (actionURL.contains("?")) {
- actionURL += "&";
- } else {
- actionURL += "?";
- }
- actionURL += tabParam;
- }
+ actionURL = patchURL(actionURL, "tab", getCurrentComponent().getActiveTab());
try {
facesContext.getExternalContext().redirect(actionURL);
} catch (IOException e) {
@@ -261,4 +250,30 @@
}
}
+ /**
+ * Adds/replaces a query parameter in a given "GET request URL"-like string.
+ *
+ * @param param
+ * name of query parameter
+ * @param value
+ * value of query parameter
+ * @return string representing parched url
+ */
+ private String patchURL(String url, String param, String value) {
+ String queryPair = param + "=" + value;
+ url.replaceAll("[\\?]" + param + "=[\\w]*", "?" + queryPair);
+ url.replaceAll("[&]" + param + "=[\\w]*", "&" + queryPair);
+
+ if (!url.contains("?" + param + "=") && !url.contains("&" + param + "=")) {
+ if (url.contains("?")) {
+ url += "&";
+ } else {
+ url += "?";
+ }
+ url += queryPair;
+ }
+
+ return url;
+ }
+
}
16 years
JBoss Rich Faces SVN: r9075 - trunk/test-applications/jsp/src/main/webapp/InplaceInput.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-06-17 08:53:17 -0400 (Tue, 17 Jun 2008)
New Revision: 9075
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
Log:
Fix some misprints in InplaceInput.jsp
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp 2008-06-17 12:30:43 UTC (rev 9074)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInput.jsp 2008-06-17 12:53:17 UTC (rev 9075)
@@ -2,7 +2,13 @@
<%@ 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"%>
+<<script type="text/javascript">
+<!--
+function onClick() {
+}
+//-->
+</script>
<f:subview id="inplaceInputSubviewID">
<h:inputText value="For verify tabbing tabindex=3" size="25" tabindex="3"></h:inputText>
<f:verbatim><br /><br /></f:verbatim>
@@ -56,14 +62,14 @@
onmouseover="#{event.onmouseover}"
onmouseup="#{event.onmouseup}"
onselect="#{event.onselect}"
- onviewactivated="#{evant.onviewactivated}"
+ onviewactivated="#{event.onviewactivated}"
onviewactivation="#{event.onviewactivation}"
binding="#{inplaceInput.myInplaceInput}" >
</rich:inplaceInput>
are easy to exploit.
<h:panelGrid columns="2">
- <a4j:commandButton value="reRender" reRender="inplaceInputValueCLID inplaceInputId"></a4j:commandButton>
+ <a4j:commandButton value="reRender" reRender="inplaceInputValueCLID, inplaceInputId"></a4j:commandButton>
<h:outputText id="inplaceInputValueCLID"
value="#{inplaceInput.valueCL}"></h:outputText>
</h:panelGrid>
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp 2008-06-17 12:30:43 UTC (rev 9074)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp 2008-06-17 12:53:17 UTC (rev 9075)
@@ -75,8 +75,10 @@
<h:outputText value="#{inplaceInput.bindLabel}"></h:outputText>
<h:outputText value="layout"></h:outputText>
- <h:inputText value="#{inplaceInput.layout}" onchange="submit();">
- </h:inputText>
+ <h:selectOneRadio value="#{inplaceInput.layout}" onchange="submit();">
+ <f:selectItem itemLabel="inline" itemValue="inline"/>
+ <f:selectItem itemLabel="block" itemValue="block"/>
+ </h:selectOneRadio>
</h:panelGrid>
16 years
JBoss Rich Faces SVN: r9074 - trunk/test-applications/jsp/src/main/webapp/FileUpload.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-17 08:30:43 -0400 (Tue, 17 Jun 2008)
New Revision: 9074
Modified:
trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp
Log:
enable(), disable(), clear() & stop() JS API with rich:componentControl test
Modified: trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-06-17 12:07:13 UTC (rev 9073)
+++ trunk/test-applications/jsp/src/main/webapp/FileUpload/FileUpload.jsp 2008-06-17 12:30:43 UTC (rev 9074)
@@ -4,42 +4,29 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="FileUploadSubviewID">
- <rich:fileUpload id="fileUploadID"
- status="a4jStatusID"
+ <rich:fileUpload id="fileUploadID" status="a4jStatusID"
uploadData="#{fileUpload.data}"
acceptedTypes="#{fileUpload.acceptedTypes}"
- disabled="#{fileUpload.disabled}"
- autoclear="#{fileUpload.autoclear}"
- required="#{fileUpload.required}"
- requiredMessage="#{item.fileName}"
+ disabled="#{fileUpload.disabled}" autoclear="#{fileUpload.autoclear}"
+ required="#{fileUpload.required}" requiredMessage="#{item.fileName}"
rendered="#{fileUpload.rendered}"
listHeight="#{fileUpload.listHeight}"
listWidth="#{fileUpload.listWidth}"
maxFilesQuantity="#{fileUpload.maxFilesQuantity}"
- fileUploadListener="#{fileUpload.fileUploadListener}"
+ fileUploadListener="#{fileUpload.fileUploadListener}"
onuploadcanceled="#{event.onuploadcanceled}"
- onclear="#{event.onclear}"
- onblur="#{event.onblur}"
- onchange="#{event.onchange}"
- onclick="#{event.onclick}"
- ondblclick="#{event.ondblclick}"
- onerror="#{event.onerror}"
- onfocus="#{event.onfocus}"
- onkeydown="#{event.onkeydown}"
- onkeypress="#{event.onkeypress}"
- onkeyup="#{event.onkeyup}"
- onmousedown="#{event.onmousedown}"
- onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmousemout}"
- onmouseover="#{event.onmouseover}"
- onmouseup="#{event.onmouseup}"
- onselect="#{event.onselect}"
+ onclear="#{event.onclear}" onblur="#{event.onblur}"
+ onchange="#{event.onchange}" onclick="#{event.onclick}"
+ ondblclick="#{event.ondblclick}" onerror="#{event.onerror}"
+ onfocus="#{event.onfocus}" onkeydown="#{event.onkeydown}"
+ onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
+ onmousedown="#{event.onmousedown}" onmousemove="#{event.onmousemove}"
+ onmouseout="#{event.onmousemout}" onmouseover="#{event.onmouseover}"
+ onmouseup="#{event.onmouseup}" onselect="#{event.onselect}"
onsizerejected="#{event.onsizerejected}"
- ontyperejected="#{event.ontyperejected}"
- onupload="#{event.onupload}"
- onuploadcomplete="#{event.onuploadcomplete}"
- accesskey="y" alt="alternative"
- binding="#{fileUpload.myFileUpload}"
+ ontyperejected="#{event.ontyperejected}" onupload="#{event.onupload}"
+ onuploadcomplete="#{event.onuploadcomplete}" accesskey="y"
+ alt="alternative" binding="#{fileUpload.myFileUpload}"
addButtonClass="#{fileUpload.addButtonClass}"
addButtonClassDisabled="#{fileUpload.addButtonClassDisabled}"
cancelButtonClass="#{fileUpload.cancelButtonClass}"
@@ -54,33 +41,31 @@
uploadButtonClassDisabled="#{fileUpload.uploadButtonClassDisabled}"
uploadListClass="#{fileUpload.uploadListClass}"
uploadListClassDisabled="#{fileUpload.uploadListClassDisabled}"
- immediateUpload="#{fileUpload.immediateUpload}"
- locale="ru"
- noDuplicate="#{fileUpload.noDuplicate}"
- tabindex="222"
- addControlLabel="addControl"
- clearAllControlLabel="clearAllControl"
+ immediateUpload="#{fileUpload.immediateUpload}" locale="ru"
+ noDuplicate="#{fileUpload.noDuplicate}" tabindex="222"
+ addControlLabel="addControl" clearAllControlLabel="clearAllControl"
cancelEntryControlLabel="cancelEntryControl"
- clearControlLabel="clearControl"
- doneLabel="done"
- progressLabel="progress"
- sizeErrorLabel="sizeError"
+ clearControlLabel="clearControl" doneLabel="done"
+ progressLabel="progress" sizeErrorLabel="sizeError"
stopControlLabel="stopControl"
stopEntryControlLabel="stopEntryControl"
- transferErrorLabel="transferError"
- uploadControlLabel="uploadControl">
+ transferErrorLabel="transferError" uploadControlLabel="uploadControl">
<f:facet name="label">
<h:outputText value="{_KB}KB from {KB}KB uploaded :[ {mm}:{ss} ]"></h:outputText>
</f:facet>
+ <f:facet name="header">
+ <h:outputText value="some text"></h:outputText>
+ </f:facet>
</rich:fileUpload>
-
+
<h:panelGrid columns="2">
- <a4j:commandButton value="show file" reRender="fileUploadDataID"></a4j:commandButton>
- <h:dataTable id="fileUploadDataID" value="#{fileUpload.data}" var="item">
- <h:column>
- <h:outputText value="#{item.fileName}"></h:outputText>
- </h:column>
- </h:dataTable>
+ <a4j:commandButton value="show file" reRender="fileUploadDataID"></a4j:commandButton>
+ <h:dataTable id="fileUploadDataID" value="#{fileUpload.data}"
+ var="item">
+ <h:column>
+ <h:outputText value="#{item.fileName}"></h:outputText>
+ </h:column>
+ </h:dataTable>
</h:panelGrid>
<h:panelGrid columns="2">
@@ -115,31 +100,62 @@
<h:outputText value="immediateUpload"></h:outputText>
<h:selectBooleanCheckbox value="#{fileUpload.immediateUpload}">
- <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
</h:selectBooleanCheckbox>
<h:outputText value="requiredMessage"></h:outputText>
<h:inputText value="#{fileUpload.requiredMessage}"
onchange="submit();"></h:inputText>
-
- <h:outputText value="Align"></h:outputText>
- <h:selectOneRadio value="#{fileUpload.align}">
+
+ <h:outputText value="Align"></h:outputText>
+ <h:selectOneRadio value="#{fileUpload.align}">
<a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
- <f:selectItem itemLabel="right" itemValue="right"/>
- <f:selectItem itemLabel="left" itemValue="left"/>
- <f:selectItem itemLabel="center" itemValue="center"/>
- </h:selectOneRadio>
-
- <h:commandButton actionListener="#{fileUpload.checkBinding}" value="Binding"></h:commandButton>
- <h:outputText value="#{fileUpload.bindLabel}"></h:outputText>
-
- <h:outputText value="noDuplicate"></h:outputText>
- <h:selectBooleanCheckbox value="#{fileUpload.noDuplicate}">
- <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Uploaded data:"></h:outputText>
- <h:outputText value="#{fileUpload.changedLabel}"></h:outputText>
-
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ </h:selectOneRadio>
+
+ <h:commandButton actionListener="#{fileUpload.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{fileUpload.bindLabel}"></h:outputText>
+
+ <h:outputText value="noDuplicate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.noDuplicate}">
+ <a4j:support event="onchange" reRender="fileUploadID"></a4j:support>
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Uploaded data:"></h:outputText>
+ <h:outputText value="#{fileUpload.changedLabel}"></h:outputText>
+
+ <a4j:commandLink
+ onclick="$('formID:FileUploadSubviewID:fileUploadID').component.enable()"
+ value="enable()"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:FileUploadSubviewID:fileUploadID').component.disable()"
+ value="disable()"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:FileUploadSubviewID:fileUploadID').component.stop()"
+ value="stop()"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:FileUploadSubviewID:fileUploadID').component.clear()"
+ value="clear()"></a4j:commandLink>
</h:panelGrid>
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component controll" style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="enableID">enable()</a>
+ <br />
+ <a href="#" id="disableID">disable()</a>
+ <br />
+ <a href="#" id="stopID">stop()</a>
+ <br />
+ <a href="#" id="clearID">clear()</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="enableID" event="onclick" for="fileUploadID" operation="enable"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick" for="fileUploadID" operation="disable"></rich:componentControl>
+ <rich:componentControl attachTo="stopID" event="onclick" for="fileUploadID" operation="stop"></rich:componentControl>
+ <rich:componentControl attachTo="clearID" event="onclick" for="fileUploadID" operation="clear"></rich:componentControl>
+
</f:subview>
\ No newline at end of file
16 years
JBoss Rich Faces SVN: r9073 - trunk/test-applications/jsp/src/main/webapp/ContextMenu.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-17 08:07:13 -0400 (Tue, 17 Jun 2008)
New Revision: 9073
Modified:
trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
Log:
4 JS API with component control test
Modified: trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp 2008-06-17 10:49:09 UTC (rev 9072)
+++ trunk/test-applications/jsp/src/main/webapp/ContextMenu/ContextMenuProperty.jsp 2008-06-17 12:07:13 UTC (rev 9073)
@@ -6,9 +6,11 @@
<f:subview id="contextMenuPropertySubviewID">
<a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
- <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true"
+ value="immediate submit(); (a4j)"></a4j:commandButton>
<h:commandButton action="submit();" value="submit();" />
- <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ <h:commandButton action="submit();" immediate="true"
+ value="immediate submit();" />
<h:panelGrid columns="2" style="top">
<h:outputText value="event:" />
@@ -34,22 +36,57 @@
</h:inputText>
<h:outputText value="submitMode:" />
- <h:selectOneRadio value="#{contextMenu.submitMode}" onchange="submit();">
+ <h:selectOneRadio value="#{contextMenu.submitMode}"
+ onchange="submit();">
<f:selectItem itemLabel="none" itemValue="none" />
<f:selectItem itemLabel="server" itemValue="server" />
<f:selectItem itemLabel="ajax" itemValue="ajax" />
</h:selectOneRadio>
<h:outputText value="attached" />
- <h:selectBooleanCheckbox value="#{contextMenu.attached}" onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{contextMenu.attached}"
+ onchange="submit();" />
<h:outputText value="disableDefaultMenu:" />
- <h:selectBooleanCheckbox value="#{contextMenu.disableDefaultMenu}" onchange="submit();">
+ <h:selectBooleanCheckbox value="#{contextMenu.disableDefaultMenu}"
+ onchange="submit();">
<a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
</h:selectBooleanCheckbox>
<h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{contextMenu.rendered}" onchange="submit();">
+ <h:selectBooleanCheckbox value="#{contextMenu.rendered}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
</h:panelGrid>
+ <br />
+ <h:panelGrid columns="2">
+ <a4j:commandLink
+ onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.show(event)"
+ value="show(event)"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.hide(event)"
+ value="hide(event)"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.enable()"
+ value="enable()"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:contextMenuSubviewID:contextMenuDefaultID').component.disable()"
+ value="disable()"></a4j:commandLink>
+ </h:panelGrid>
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component controll test" style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="showID">show(event)</a>
+ <br />
+ <a href="#" id="hideID">hide(event)</a>
+ <br />
+ <a href="#" id="enableID">enable()</a>
+ <br />
+ <a href="#" id="disableID">disable()</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="showID" event="onclick" for="contextMenuDefaultID" operation="show"></rich:componentControl>
+ <rich:componentControl attachTo="hideID" event="onclick" for="contextMenuDefaultID" operation="hide"></rich:componentControl>
+ <rich:componentControl attachTo="enableID" event="onclick" for="contextMenuDefaultID" operation="enable"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick" for="contextMenuDefaultID" operation="disable"></rich:componentControl>
</f:subview>
\ No newline at end of file
16 years
JBoss Rich Faces SVN: r9072 - trunk/test-applications/jsp/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-17 06:49:09 -0400 (Tue, 17 Jun 2008)
New Revision: 9072
Modified:
trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
Log:
enable, disable, showList & hideList JS API test.
Modified: trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-06-17 10:45:16 UTC (rev 9071)
+++ trunk/test-applications/jsp/src/main/webapp/Combobox/ComboboxProperty.jsp 2008-06-17 10:49:09 UTC (rev 9072)
@@ -56,6 +56,22 @@
<a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.showList()" value="showList"></a4j:commandLink> <br/>
<a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.hideList()" value="hideList"></a4j:commandLink> <br/>
<a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.enable()" value="enable"></a4j:commandLink> <br/>
- <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.disable()" value="disable"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.disable()" value="disable"></a4j:commandLink>
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component controll testing" style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="showListID">showList</a>
+ <br />
+ <a href="#" id="hideListID">hideList</a>
+ <br />
+ <a href="#" id="enableID">enable</a>
+ <br />
+ <a href="#" id="disableID">disable</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="showListID" event="onclick" for="comboboxID" operation="showList"></rich:componentControl>
+ <rich:componentControl attachTo="hideListID" event="onclick" for="comboboxID" operation="hideList"></rich:componentControl>
+ <rich:componentControl attachTo="enableID" event="onclick" for="comboboxID" operation="enable"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick" for="comboboxID" operation="disable"></rich:componentControl>
</f:subview>
\ No newline at end of file
16 years
JBoss Rich Faces SVN: r9071 - trunk/test-applications/jsp/src/main/webapp/Calendar.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-17 06:45:16 -0400 (Tue, 17 Jun 2008)
New Revision: 9071
Modified:
trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
Log:
Some new JS API with componetControl
Modified: trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-06-17 09:57:20 UTC (rev 9070)
+++ trunk/test-applications/jsp/src/main/webapp/Calendar/CalendarProperty.jsp 2008-06-17 10:45:16 UTC (rev 9071)
@@ -5,210 +5,332 @@
<f:subview id="calendarPropertySubviewID">
- <h:panelGrid columns="2">
- <h:panelGroup>
- <a4j:commandButton value="reRender" reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
- </h:panelGroup>
- <h:column></h:column>
-
- <h:outputText value="Mode:" />
- <h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
- <f:selectItem itemLabel="client" itemValue="client"/>
- <f:selectItem itemLabel="ajax" itemValue="ajax"/>
- </h:selectOneRadio>
-
-
- <h:outputText value="Select Locale:" />
- <h:selectOneRadio onchange="submit()" value="en/US" valueChangeListener="#{calendarBean.selectLocale}">
- <f:selectItem itemLabel="US" itemValue="en/US" />
- <f:selectItem itemLabel="DE" itemValue="de/DE" />
- <f:selectItem itemLabel="FR" itemValue="fr/FR" />
- <f:selectItem itemLabel="RU" itemValue="ru/RU" />
- </h:selectOneRadio>
+ <h:panelGrid columns="2">
+ <h:panelGroup>
+ <a4j:commandButton value="reRender"
+ reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
+ </h:panelGroup>
+ <h:column></h:column>
- <h:outputText value="Popup Mode:" />
- <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}" onclick="submit();" />
-
- <h:outputText value="showApplyButton: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showApplyButton}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="showScrollerBar: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showScrollerBar}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="showWeeksBar: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showWeeksBar}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="showWeekDaysBar: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showWeekDaysBar}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="cellHeight: "></h:outputText>
- <h:inputText value="#{calendarBean.cellHeight}" onchange="submit();"></h:inputText>
-
- <h:outputText value="cellWidth: "></h:outputText>
- <h:inputText value="#{calendarBean.cellWidth}" onchange="submit();"></h:inputText>
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ </h:selectOneRadio>
- <h:outputText value="firstWeekDay"></h:outputText>
- <h:selectOneRadio value="#{calendarBean.firstWeekDay}" onchange="submit();">
- <f:selectItem itemLabel="1" itemValue="1"/>
- <f:selectItem itemLabel="2" itemValue="2"/>
- <f:selectItem itemLabel="3" itemValue="3"/>
- <f:selectItem itemLabel="4" itemValue="4"/>
- <f:selectItem itemLabel="5" itemValue="5"/>
- <f:selectItem itemLabel="6" itemValue="6"/>
- <f:selectItem itemLabel="7" itemValue="7"/>
- </h:selectOneRadio>
- <h:outputText value="todayControlMode" />
- <h:selectOneRadio value="#{calendarBean.todayControlMode}" onchange="submit();">
- <f:selectItem itemLabel="scroll" itemValue="scroll" />
- <f:selectItem itemLabel="select" itemValue="select" />
- <f:selectItem itemLabel="hidden" itemValue="hidden" />
- </h:selectOneRadio>
+ <h:outputText value="Select Locale:" />
+ <h:selectOneRadio onchange="submit()" value="en/US"
+ valueChangeListener="#{calendarBean.selectLocale}">
+ <f:selectItem itemLabel="US" itemValue="en/US" />
+ <f:selectItem itemLabel="DE" itemValue="de/DE" />
+ <f:selectItem itemLabel="FR" itemValue="fr/FR" />
+ <f:selectItem itemLabel="RU" itemValue="ru/RU" />
+ </h:selectOneRadio>
- <h:outputText value="Custom day labels" />
- <h:selectOneRadio value="#{calendarBean.weekDay}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="day labels" itemValue="long" />
- <f:selectItem itemLabel="day labels short" itemValue="short" />
- </h:selectOneRadio>
+ <h:outputText value="Popup Mode:" />
+ <h:selectBooleanCheckbox id="popupModeID"
+ value="#{calendarBean.popup}" onclick="submit();" />
- <h:outputText value="Custom month labels" />
- <h:selectOneRadio value="#{calendarBean.month}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="day labels" itemValue="long" />
- <f:selectItem itemLabel="day labels short" itemValue="short" />
- </h:selectOneRadio>
+ <h:outputText value="showApplyButton: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showApplyButton}"
+ onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="Select Date Pattern:" />
- <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
- <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
- <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
- <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
- <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
- <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
- <f:selectItem itemLabel="dd-MM-yyyy" itemValue="dd-MM-yyyy" />
- <f:selectItem itemLabel="dd/M/yy HH:mm" itemValue="dd/M/yy HH:mm"/>
- <f:selectItem itemLabel="MMM d, yyyy h:mm a" itemValue="MMM d, yyyy h:mm a"/>
- </h:selectOneMenu>
+ <h:outputText value="showScrollerBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showScrollerBar}"
+ onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="Preload date range begin(d.m.y)" />
- <h:inputText value="#{calendarBean.preloadDateRangeBegin}" onchange="submit();" />
+ <h:outputText value="showWeeksBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showWeeksBar}"
+ onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="Preload date range end(d.m.y)" />
- <h:inputText value="#{calendarBean.preloadDateRangeEnd}" onchange="submit();" />
+ <h:outputText value="showWeekDaysBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showWeekDaysBar}"
+ onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="z-index:" />
- <h:inputText value="#{calendarBean.zindex}">
- <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:inputText>
+ <h:outputText value="cellHeight: "></h:outputText>
+ <h:inputText value="#{calendarBean.cellHeight}" onchange="submit();"></h:inputText>
- <h:outputText value="horizontalOffset: "></h:outputText>
- <h:inputText value="#{calendarBean.horizontalOffset}" onchange="submit();"></h:inputText>
-
- <h:outputText value="verticalOffset:"></h:outputText>
- <h:inputText value="#{calendarBean.verticalOffset}" onchange="submit();"></h:inputText>
-
- <h:outputText value="immediate: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.immediate}"></h:selectBooleanCheckbox>
+ <h:outputText value="cellWidth: "></h:outputText>
+ <h:inputText value="#{calendarBean.cellWidth}" onchange="submit();"></h:inputText>
- <h:outputText value="reRender (counter):" />
- <h:outputText id="counter" value="#{calendarBean.counter}" />
+ <h:outputText value="firstWeekDay"></h:outputText>
+ <h:selectOneRadio value="#{calendarBean.firstWeekDay}"
+ onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="1" />
+ <f:selectItem itemLabel="2" itemValue="2" />
+ <f:selectItem itemLabel="3" itemValue="3" />
+ <f:selectItem itemLabel="4" itemValue="4" />
+ <f:selectItem itemLabel="5" itemValue="5" />
+ <f:selectItem itemLabel="6" itemValue="6" />
+ <f:selectItem itemLabel="7" itemValue="7" />
+ </h:selectOneRadio>
- <h:outputText value="Required" />
- <h:selectBooleanCheckbox value="#{calendarBean.required}" onclick="submit()" />
+ <h:outputText value="todayControlMode" />
+ <h:selectOneRadio value="#{calendarBean.todayControlMode}"
+ onchange="submit();">
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="hidden" itemValue="hidden" />
+ </h:selectOneRadio>
- <h:outputText value="Select Popup Joint Point:" />
- <h:selectOneRadio onchange="submit()" value="#{calendarBean.jointPoint}">
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- </h:selectOneRadio>
+ <h:outputText value="Custom day labels" />
+ <h:selectOneRadio value="#{calendarBean.weekDay}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="day labels" itemValue="long" />
+ <f:selectItem itemLabel="day labels short" itemValue="short" />
+ </h:selectOneRadio>
- <h:outputText value="Select Popup Direction:" />
- <h:selectOneRadio onchange="submit()" value="#{calendarBean.direction}">
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- </h:selectOneRadio>
-
- <h:outputText value="defaultTime"></h:outputText>
- <h:inputText value="#{calendarBean.defaultTime}" onchange="submit();"></h:inputText>
+ <h:outputText value="Custom month labels" />
+ <h:selectOneRadio value="#{calendarBean.month}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="day labels" itemValue="long" />
+ <f:selectItem itemLabel="day labels short" itemValue="short" />
+ </h:selectOneRadio>
- <h:outputText value="Time Zone:" />
- <h:selectOneRadio valueChangeListener="#{calendarBean.timeZone}" onchange="submit();">
- <f:selectItem itemLabel="Eastern European Time" itemValue="Eastern European Time" />
- <f:selectItem itemLabel="Turkmenistan Time" itemValue="Turkmenistan Time" />
- <f:selectItem itemLabel="Korea Standard Time" itemValue="Korea Standard Time" />
- </h:selectOneRadio>
+ <h:outputText value="Select Date Pattern:" />
+ <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+ <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
+ <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
+ <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
+ <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
+ <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
+ <f:selectItem itemLabel="dd-MM-yyyy" itemValue="dd-MM-yyyy" />
+ <f:selectItem itemLabel="dd/M/yy HH:mm" itemValue="dd/M/yy HH:mm" />
+ <f:selectItem itemLabel="MMM d, yyyy h:mm a"
+ itemValue="MMM d, yyyy h:mm a" />
+ </h:selectOneMenu>
+ <h:outputText value="Preload date range begin(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeBegin}"
+ onchange="submit();" />
- <h:outputText value="ToolTip Mode:" />
- <h:selectOneRadio value="#{calendarBean.toolTipMode}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="single" itemValue="single" />
- <f:selectItem itemLabel="batch" itemValue="batch" />
- </h:selectOneRadio>
+ <h:outputText value="Preload date range end(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeEnd}"
+ onchange="submit();" />
- <h:outputText value="BoundaryDatesMode:" />
- <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
- <f:selectItem itemLabel="inactive" itemValue="inactive" />
- <f:selectItem itemLabel="select" itemValue="select" />
- <f:selectItem itemLabel="scroll" itemValue="scroll" />
- </h:selectOneRadio>
+ <h:outputText value="z-index:" />
+ <h:inputText value="#{calendarBean.zindex}">
+ <a4j:support event="onchange"
+ reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:inputText>
- <h:outputText value="EnableManualInput:"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}" onclick="submit()">
- </h:selectBooleanCheckbox>
+ <h:outputText value="horizontalOffset: "></h:outputText>
+ <h:inputText value="#{calendarBean.horizontalOffset}"
+ onchange="submit();"></h:inputText>
- <h:outputText value="ShowInput:"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showInput}" onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="resetTimeOnDateSelect"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.resetTimeOnDateSelect}" onchange="sumit();"></h:selectBooleanCheckbox>
+ <h:outputText value="verticalOffset:"></h:outputText>
+ <h:inputText value="#{calendarBean.verticalOffset}"
+ onchange="submit();"></h:inputText>
- <h:outputText value="showFooter"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showFooter}" onchange="sumit();"></h:selectBooleanCheckbox>
+ <h:outputText value="immediate: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.immediate}"></h:selectBooleanCheckbox>
- <h:outputText value="showHeader"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showHeader}" onchange="sumit();"></h:selectBooleanCheckbox>
+ <h:outputText value="reRender (counter):" />
+ <h:outputText id="counter" value="#{calendarBean.counter}" />
- <h:outputText value="Disabled:" />
- <h:selectBooleanCheckbox value="#{calendarBean.disabled}" onclick="submit()" />
+ <h:outputText value="Required" />
+ <h:selectBooleanCheckbox value="#{calendarBean.required}"
+ onclick="submit()" />
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{calendarBean.rendered}" onclick="submit()" />
+ <h:outputText value="Select Popup Joint Point:" />
+ <h:selectOneRadio onchange="submit()"
+ value="#{calendarBean.jointPoint}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ </h:selectOneRadio>
- <f:verbatim></f:verbatim>
- <h:commandButton action="#{calendarBean.changeIcons}" value="ChangeIcons" />
+ <h:outputText value="Select Popup Direction:" />
+ <h:selectOneRadio onchange="submit()"
+ value="#{calendarBean.direction}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ </h:selectOneRadio>
- <h:outputText value="Current date: " />
- <h:outputText value="#{calendarBean.currentDateAsText}" />
+ <h:outputText value="defaultTime"></h:outputText>
+ <h:inputText value="#{calendarBean.defaultTime}" onchange="submit();"></h:inputText>
- <h:outputText value="Selected date: " />
- <h:outputText value="#{calendarBean.selectedDate}" />
+ <h:outputText value="Time Zone:" />
+ <h:selectOneRadio valueChangeListener="#{calendarBean.timeZone}"
+ onchange="submit();">
+ <f:selectItem itemLabel="Eastern European Time"
+ itemValue="Eastern European Time" />
+ <f:selectItem itemLabel="Turkmenistan Time"
+ itemValue="Turkmenistan Time" />
+ <f:selectItem itemLabel="Korea Standard Time"
+ itemValue="Korea Standard Time" />
+ </h:selectOneRadio>
- <f:verbatim></f:verbatim>
- <h:commandButton value="Submit" />
- </h:panelGrid>
-
- <h:panelGrid columns="3">
- <h:column></h:column>
- <h:outputText value="JavaScript API"></h:outputText>
- <h:column></h:column>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.doExpand(event)" value="expand"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.nextMonth()" value="nextMonth"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.prevMonth()" value="prevMonth"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.nextYear()" value="nextYear"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.prevYear()" value="prevYear"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.today()" value="today"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getSelectedDate(new Data().setFullYear(2010,0,14)))" value="getSelectedDate"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.isDateEnabled(new Data()))" value="isDateEnabled"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.selectDate(new Data())" value="selectDate"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentMonth())" value="getCurrentMonth"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentYear())" value="getCurrentYear"></a4j:commandLink>
- </h:panelGrid>
+
+ <h:outputText value="ToolTip Mode:" />
+ <h:selectOneRadio value="#{calendarBean.toolTipMode}"
+ onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="batch" itemValue="batch" />
+ </h:selectOneRadio>
+
+ <h:outputText value="BoundaryDatesMode:" />
+ <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
+ <f:selectItem itemLabel="inactive" itemValue="inactive" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ </h:selectOneRadio>
+
+ <h:outputText value="EnableManualInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ShowInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showInput}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="resetTimeOnDateSelect"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.resetTimeOnDateSelect}"
+ onchange="sumit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showFooter"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showFooter}"
+ onchange="sumit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="showHeader"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showHeader}"
+ onchange="sumit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="Disabled:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.disabled}"
+ onclick="submit()" />
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.rendered}"
+ onclick="submit()" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton action="#{calendarBean.changeIcons}"
+ value="ChangeIcons" />
+
+ <h:outputText value="Current date: " />
+ <h:outputText value="#{calendarBean.currentDateAsText}" />
+
+ <h:outputText value="Selected date: " />
+ <h:outputText value="#{calendarBean.selectedDate}" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton value="Submit" />
+ </h:panelGrid>
+
+ <script type="text/javascript">
+ var currentTime = new Date()
+ var month = currentTime.getMonth() + 1
+ var day = currentTime.getDate()
+ var year = currentTime.getFullYear()
+ document.write(month + "/" + day + "/" + year)
+ </script>
+
+ <h:panelGrid columns="3" border="2">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.expand(event)"
+ value="expand"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.nextMonth()"
+ value="nextMonth"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.prevMonth()"
+ value="prevMonth"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.nextYear()"
+ value="nextYear"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.prevYear()"
+ value="prevYear"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.today()"
+ value="today"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getSelectedDate())"
+ value="getSelectedDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.isDateEnabled(new Date()))"
+ value="isDateEnabled"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.selectDate(new Date())"
+ value="selectDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentMonth())"
+ value="getCurrentMonth"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentYear())"
+ value="getCurrentYear"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentDate())"
+ value="getCurrentDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.enableDate(currentTime)"
+ value="enableDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.disableDate(new Date)"
+ value="disableDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.doCollapse(event)"
+ value="collapse"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.expand(event)"
+ value="expand"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.resetSelectedDate()"
+ value="resetSelectedDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.doSwitch()"
+ value="switch"></a4j:commandLink>
+ </h:panelGrid>
+
+ <h:outputText value="JS API with componentControl"></h:outputText>
+
+ <f:verbatim>
+ <br />
+ <a href="#" id="doExpandCalendarID">Calendar (expand)</a>
+ <br />
+ <a href="#" id="collapseCalendarID">Calendar (collapse)</a>
+ <br />
+ <a href="#" id="doNextYearCalendarID">Calendar (nextYear)</a>
+ <br />
+ <a href="#" id="doPrevYearCalendarID">Calendar (prevYear)</a>
+ <br />
+ <a href="#" id="doNextMonthCalendarID">Calendar (nextMonth)</a>
+ <br />
+ <a href="#" id="doPrevMonthCalendarID">Calendar (prevMonth)</a>
+ <br />
+ <a href="#" id="doTodayCalendarID">Calendar (today)</a>
+ <br />
+ <a href="#" id="getSelectedDateID">Calendar(getSelectedDate)</a>
+ <br />
+ <a href="#" id="getCurrentDateID">Calendar(getCurrentDate)</a>
+ <br />
+ <a href="#" id="getCurrentMonthID">Calendar(getCurrentMonth)</a>
+ <br />
+ <a href="#" id="getCurrentYearID">Calendar(getCurrentYear)</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="doExpandCalendarID" for="calendarClientID" event="onclick" operation="expand" />
+ <rich:componentControl attachTo="collapseCalendarID" for="calendarClientID" event="onclick" operation="collapse" />
+ <rich:componentControl attachTo="doNextYearCalendarID" for="calendarClientID" event="onclick" operation="nextYear" />
+ <rich:componentControl attachTo="doPrevYearCalendarID" for="calendarClientID" event="onclick" operation="prevYear" />
+ <rich:componentControl attachTo="doNextMonthCalendarID" for="calendarClientID" event="onclick" operation="nextMonth" />
+ <rich:componentControl attachTo="doPrevMonthCalendarID" for="calendarClientID" event="onclick" operation="prevMonth" />
+ <rich:componentControl attachTo="doTodayCalendarID" for="calendarClientID" event="onclick" operation="today" />
+ <rich:componentControl attachTo="doTodayCalendarRenderedID" for="calendarClientID" event="onclick" operation="today" />
+ <rich:componentControl attachTo="getSelectedDateID" for="calendarClientID" event="onclick" operation="alert(getSelectedDate())" />
+ <rich:componentControl attachTo="getCurrentDateID" for="calendarClientID" event="onclick" operation="alert(getCurrentDate())" />
+ <rich:componentControl attachTo="getCurrentMonthID" for="calendarClientID" event="onclick" operation="alert(getCurrentMonth())" />
+ <rich:componentControl attachTo="getCurrentYearID" for="calendarClientID" event="onclick" operation="alert(getCurrentYear())" />
</f:subview>
\ No newline at end of file
16 years
JBoss Rich Faces SVN: r9070 - in trunk/test-applications/facelets/src/main: webapp/InplaceInput and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-06-17 05:57:20 -0400 (Tue, 17 Jun 2008)
New Revision: 9070
Added:
trunk/test-applications/facelets/src/main/java/util/converter/InplaceInputConverter.java
Modified:
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Converter.xml
Log:
Add converter for InplaceInput
Added: trunk/test-applications/facelets/src/main/java/util/converter/InplaceInputConverter.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/util/converter/InplaceInputConverter.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/util/converter/InplaceInputConverter.java 2008-06-17 09:57:20 UTC (rev 9070)
@@ -0,0 +1,33 @@
+/**
+ *
+ */
+package util.converter;
+
+import javax.faces.component.UIComponent;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+
+/**
+ * @author AYanul
+ *
+ */
+public class InplaceInputConverter implements Converter{
+
+ /* (non-Javadoc)
+ * @see javax.faces.convert.Converter#getAsObject(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.String)
+ */
+ public Object getAsObject(FacesContext context, UIComponent component,
+ String value) {
+ return value.toUpperCase();
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.convert.Converter#getAsString(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)
+ */
+ public String getAsString(FacesContext context, UIComponent component,
+ Object value) {
+ // TODO Auto-generated method stub
+ return (String) value;
+ }
+
+}
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:36:19 UTC (rev 9069)
+++ trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInput.xhtml 2008-06-17 09:57:20 UTC (rev 9070)
@@ -52,7 +52,9 @@
onselect="#{event.onselect}"
onviewactivated="#{evant.onviewactivated}"
onviewactivation="#{event.onviewactivation}"
- binding="#{inplaceInput.myInplaceInput}" >
+ binding="#{inplaceInput.myInplaceInput}"
+ converter="inplaceInputConverter"
+ converterMessage="Can't convert">
</rich:inplaceInput>
are easy to exploit.
<h:panelGrid columns="2">
Modified: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Converter.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Converter.xml 2008-06-17 09:36:19 UTC (rev 9069)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Converter.xml 2008-06-17 09:57:20 UTC (rev 9070)
@@ -14,4 +14,8 @@
<converter-id>comboBoxConverter</converter-id>
<converter-class>util.converter.ComboBoxConverter</converter-class>
</converter>
+ <converter>
+ <converter-id>inplaceInputConverter</converter-id>
+ <converter-class>util.converter.InplaceInputConverter</converter-class>
+ </converter>
</faces-config>
16 years
JBoss Rich Faces SVN: r9069 - in trunk/test-applications/facelets/src/main: webapp/InplaceInput and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
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 {
16 years