JBoss Rich Faces SVN: r9383 - trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:41:17 -0400 (Wed, 02 Jul 2008)
New Revision: 9383
Modified:
trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.xhtml 2008-07-02 12:40:15 UTC (rev 9382)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.xhtml 2008-07-02 12:41:17 UTC (rev 9383)
@@ -1,45 +1,62 @@
-<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="iNSpinnerPropertySubviewID">
- <h:panelGrid columns="2" cellpadding="10px" border="1">
- <h:outputText value="Max: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.max}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
+<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="iNSpinnerPropertySubviewID">
+ <h:panelGrid columns="2" cellpadding="10px" border="1">
+ <h:outputText value="Max: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.max}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
- <h:outputText value="Min: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.min}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
+ <h:outputText value="Min: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.min}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
- <h:outputText value="Step: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.step}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
+ <h:outputText value="Step: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.step}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
- <h:outputText value="Size: "></h:outputText>
- <h:inputText value="#{inputNumberSpinner.inputSize}">
- <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
- </h:inputText>
+ <h:outputText value="Size: "></h:outputText>
+ <h:inputText value="#{inputNumberSpinner.inputSize}">
+ <a4j:support reRender="SpinnerID" event="onchange"></a4j:support>
+ </h:inputText>
- <h:outputText value="Cycled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Cycled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.cycled}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Manual Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.manualInput}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Disabled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
- <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.disabled}">
+ <a4j:support event="onclick" reRender="SpinnerID"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}" onclick="submit()">
- </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{inputNumberSpinner.doStyles}" value="#{inputNumberSpinner.btnLabel}" />
- </h:panelGrid>
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSpinner.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{inputNumberSpinner.doStyles}"
+ value="#{inputNumberSpinner.btnLabel}" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('SpinnerID').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9382 - trunk/test-applications/facelets/src/main/webapp/InputNumberSlider.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:40:15 -0400 (Wed, 02 Jul 2008)
New Revision: 9382
Modified:
trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml 2008-07-02 12:37:38 UTC (rev 9381)
+++ trunk/test-applications/facelets/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.xhtml 2008-07-02 12:40:15 UTC (rev 9382)
@@ -1,100 +1,119 @@
-<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="inputNumberSliderPropertySubviewID">
- <h:panelGrid columns="2" cellspacing="10px" border="1">
- <h:outputText value="value" />
- <h:inputText value="#{inputNumberSlider.value}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+<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="inputNumberSliderPropertySubviewID">
+ <h:panelGrid columns="2" cellspacing="10px" border="1">
+ <h:outputText value="value" />
+ <h:inputText value="#{inputNumberSlider.value}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="inputPosition"></h:outputText>
- <h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="left" itemValue="left" />
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="inputPosition"></h:outputText>
+ <h:selectOneRadio value="#{inputNumberSlider.inputPosition}">
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Width:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.width}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Width:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.width}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Max Value:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.maxValue}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Max Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Min Value:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.minValue}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Min Value:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.minValue}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Input Size:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.inputSize}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Input Size:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.inputSize}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Input MaxLength:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.maxlength}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Input MaxLength:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.maxlength}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Step:"></h:outputText>
- <h:inputText value="#{inputNumberSlider.step}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Step:"></h:outputText>
+ <h:inputText value="#{inputNumberSlider.step}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="tabindex" />
- <h:inputText value="#{inputNumberSlider.tabindex}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="tabindex" />
+ <h:inputText value="#{inputNumberSlider.tabindex}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Disabled:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Disabled:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.disabled}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}" onclick="submit()">
- </h:selectBooleanCheckbox>
+ <h:outputText value="Rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
- <h:outputText value="Manual Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.enableManualInput}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Manual Input:"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inputNumberSlider.enableManualInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Boundary Values:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.showBoundaryValues}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Boundary Values:"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inputNumberSlider.showBoundaryValues}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Show Input:"></h:outputText>
- <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="Show Input:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showInput}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="showToolTip" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.showToolTip}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="showToolTip" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.showToolTip}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="required" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.required}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="required" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.required}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="requiredMessage" />
- <h:inputText value="#{inputNumberSlider.requiredMessage}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:inputText>
+ <h:outputText value="requiredMessage" />
+ <h:inputText value="#{inputNumberSlider.requiredMessage}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:inputText>
- <h:outputText value="immediate" />
- <h:selectBooleanCheckbox value="#{inputNumberSlider.immediate}">
- <a4j:support event="onchange" reRender="SliderId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{inputNumberSlider.immediate}">
+ <a4j:support event="onchange" reRender="SliderId"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles" />
- <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}" action="#{inputNumberSlider.doStyles}"
- reRender="SliderId,slBtn">
- </a4j:commandButton>
- </h:panelGrid>
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{inputNumberSlider.btnLabel}"
+ action="#{inputNumberSlider.doStyles}" reRender="SliderId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('SliderId').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9381 - trunk/test-applications/facelets/src/main/webapp/InplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:37:38 -0400 (Wed, 02 Jul 2008)
New Revision: 9381
Modified:
trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelectProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelectProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelectProperty.xhtml 2008-07-02 12:36:39 UTC (rev 9380)
+++ trunk/test-applications/facelets/src/main/webapp/InplaceSelect/InplaceSelectProperty.xhtml 2008-07-02 12:37:38 UTC (rev 9381)
@@ -1,9 +1,14 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="inplaceSelectPropertySubviewID">
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="inplaceSelectPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="value"></h:outputText>
<h:outputText value="#{inplaceSelect.value}"></h:outputText>
-
+
<h:outputText value="defaultLabel"></h:outputText>
<h:inputText value="#{inplaceSelect.defaultLabel}"
onchange="submit();"></h:inputText>
@@ -57,34 +62,60 @@
<h:outputText value="openOnEdit"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.openOnEdit}"
onchange="submit();"></h:selectBooleanCheckbox>
-
+
<h:outputText value="rendered"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:commandButton actionListener="#{inplaceSelect.checkBinding}" value="Binding"></h:commandButton>
+
+ <h:commandButton actionListener="#{inplaceSelect.checkBinding}"
+ value="Binding"></h:commandButton>
<h:outputText value="#{inplaceSelect.bindLabel}"></h:outputText>
-
+
<h:outputText value="immediate"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.immediate}"
onchange="submit();"></h:selectBooleanCheckbox>
-
+
<h:outputText value="required"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.required}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
+ onchange="submit();"></h:selectBooleanCheckbox>
+
<h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{inplaceSelect.requiredMessage}" onchange="submit();"></h:inputText>
-
+ <h:inputText value="#{inplaceSelect.requiredMessage}"
+ onchange="submit();"></h:inputText>
+
<h:outputText value="layout"></h:outputText>
- <h:inputText value="#{inplaceSelect.layout}" onchange="submit();"></h:inputText>
-
+ <h:inputText value="#{inplaceSelect.layout}" onchange="submit();"></h:inputText>
+
</h:panelGrid>
-
- <a4j:commandLink onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.edit()" value="edit"></a4j:commandLink> <br/>
- <a4j:commandLink onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.save()" value="save"></a4j:commandLink> <br/>
- <a4j:commandLink onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.cancel()" value="cancel"></a4j:commandLink> <br/>
- <a4j:commandLink onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.getValue()" value="getValue"></a4j:commandLink> <br/>
- <a4j:commandLink onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.setValue('setValue')" value="setValuel"></a4j:commandLink>
-
+
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.edit()"
+ value="edit"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.save()"
+ value="save"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.cancel()"
+ value="cancel"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.getValue()"
+ value="getValue"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:inplaceSelectSubviewID:inplaceSelectID').component.setValue('setValue')"
+ value="setValuel"></a4j:commandLink>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('inplaceSelectID').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9380 - trunk/test-applications/facelets/src/main/webapp/InplaceInput.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:36:39 -0400 (Wed, 02 Jul 2008)
New Revision: 9380
Modified:
trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInputProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInputProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInputProperty.xhtml 2008-07-02 12:35:20 UTC (rev 9379)
+++ trunk/test-applications/facelets/src/main/webapp/InplaceInput/InplaceInputProperty.xhtml 2008-07-02 12:36:39 UTC (rev 9380)
@@ -1,10 +1,16 @@
-<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">
-
+<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 id="inplaceInputValueID" value="#{inplaceInput.value}"
+ onchange="submit();">
</h:outputText>
-
+
<h:outputText value="defaultLabel"></h:outputText>
<h:inputText value="#{inplaceInput.defaultLabel}" onchange="submit();">
</h:inputText>
@@ -14,11 +20,13 @@
</h:inputText>
<h:outputText value="maxInputWidth"></h:outputText>
- <h:inputText value="#{inplaceInput.maxInputWidth}" onchange="submit();">
+ <h:inputText value="#{inplaceInput.maxInputWidth}"
+ onchange="submit();">
</h:inputText>
<h:outputText value="minInputWidth"></h:outputText>
- <h:inputText value="#{inplaceInput.minInputWidth}" onchange="submit();">
+ <h:inputText value="#{inplaceInput.minInputWidth}"
+ onchange="submit();">
</h:inputText>
<h:outputText value="tabindex"></h:outputText>
@@ -30,56 +38,89 @@
</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 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 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 value="#{inplaceInput.selectOnEdit}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="showControls"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.showControls}" onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.showControls}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.rendered}" onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.rendered}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="immediate"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.immediate}" onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.immediate}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="required"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceInput.required}" onchange="submit();">
+ <h:selectBooleanCheckbox value="#{inplaceInput.required}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
<h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{inplaceInput.requiredMessage}" onchange="submit();">
+ <h:inputText value="#{inplaceInput.requiredMessage}"
+ onchange="submit();">
</h:inputText>
-
- <h:commandButton actionListener="#{inplaceInput.checkBinding}" value="Binding"></h:commandButton>
+
+ <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>
-
+
+ <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>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('inplaceInputId').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9379 - trunk/test-applications/facelets/src/main/webapp/HotKey.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:35:20 -0400 (Wed, 02 Jul 2008)
New Revision: 9379
Modified:
trunk/test-applications/facelets/src/main/webapp/HotKey/HotKey.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/HotKey/HotKey.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/HotKey/HotKey.xhtml 2008-07-02 12:34:19 UTC (rev 9378)
+++ trunk/test-applications/facelets/src/main/webapp/HotKey/HotKey.xhtml 2008-07-02 12:35:20 UTC (rev 9379)
@@ -1,18 +1,24 @@
-<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="hotKeySubviewID">
- <rich:calendar id="hotKeyCalendarID" popup="false"/>
- <h:commandButton id="commandButtonID" onclick="return false;" value="test select"></h:commandButton>
- <rich:hotKey id="hotKeyID" binding="#{hotKey.binding}"
- disableInInput="#{hotKey.disableInInput}" handler="#{hotKey.handler}" key="#{hotKey.key}"
- rendered="#{hotKey.rendered}" selector="#{hotKey.selector}" timing="#{hotKey.timing}"/>
+<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="hotKeySubviewID">
+ <rich:calendar id="hotKeyCalendarID" popup="false" />
+ <h:commandButton id="commandButtonID" onclick="return false;"
+ value="test select"></h:commandButton>
+ <rich:hotKey id="hotKeyID" binding="#{hotKey.binding}"
+ disableInInput="#{hotKey.disableInInput}" handler="#{hotKey.handler}"
+ key="#{hotKey.key}" rendered="#{hotKey.rendered}"
+ selector="#{hotKey.selector}" timing="#{hotKey.timing}" />
- <h:panelGrid columns="2">
+ <h:panelGrid columns="2">
<h:outputText value="type"></h:outputText>
<h:selectOneMenu value="#{hotKey.type}">
- <f:selectItem itemLabel="onkeydown" itemValue="onkeydown"/>
- <f:selectItem itemLabel="onkeypress" itemValue="onkeypress"/>
- <f:selectItem itemLabel="onkeyup" itemValue="onkeyup"/>
- <a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
+ <f:selectItem itemLabel="onkeydown" itemValue="onkeydown" />
+ <f:selectItem itemLabel="onkeypress" itemValue="onkeypress" />
+ <f:selectItem itemLabel="onkeyup" itemValue="onkeyup" />
+ <a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
</h:selectOneMenu>
<h:outputText value="key"></h:outputText>
@@ -21,22 +27,24 @@
<h:outputText value="timing"></h:outputText>
<h:selectOneMenu value="#{hotKey.timing}" onchange="submit();">
- <f:selectItem itemLabel="onload" itemValue="onload"/>
- <f:selectItem itemLabel="immediate" itemValue="immediate"/>
+ <f:selectItem itemLabel="onload" itemValue="onload" />
+ <f:selectItem itemLabel="immediate" itemValue="immediate" />
</h:selectOneMenu>
<h:outputText value="selector"></h:outputText>
<h:selectOneMenu value="#{hotKey.selector}">
- <f:selectItem itemLabel="" itemValue=""/>
- <f:selectItem itemLabel="Button" itemValue="#commandButtonID"/>
+ <f:selectItem itemLabel="" itemValue="" />
+ <f:selectItem itemLabel="Button" itemValue="#commandButtonID" />
<a4j:support reRender="hotKeyID" event="onchange"></a4j:support>
</h:selectOneMenu>
<h:outputText value="handler"></h:outputText>
<h:selectOneMenu value="#{hotKey.handler}" onchange="submit();">
- <f:selectItem itemValue="$('formID:hotKeySubviewID:hotKeyCalendarID').component.nextYear();" itemLabel="nextYear(Calendar)"/>
- <f:selectItem itemValue="alert('work')" itemLabel="alert('work')"/>
+ <f:selectItem
+ itemValue="$('formID:hotKeySubviewID:hotKeyCalendarID').component.nextYear();"
+ itemLabel="nextYear(Calendar)" />
+ <f:selectItem itemValue="alert('work')" itemLabel="alert('work')" />
</h:selectOneMenu>
<h:outputText value="disableInInput"></h:outputText>
@@ -56,30 +64,56 @@
<h:outputText value="test binding:"></h:outputText>
<h:outputText value="#{hotKey.bindingInfo}"></h:outputText>
-
- <h:commandButton onclick="#{rich:component('hotKeyID')}.enable(); return false;" value="enable"></h:commandButton>
- <h:commandButton onclick="#{rich:component('hotKeyID')}.disable(); return false;" value="disable"></h:commandButton>
+
+ <h:commandButton
+ onclick="#{rich:component('hotKeyID')}.enable(); return false;"
+ value="enable"></h:commandButton>
+ <h:commandButton
+ onclick="#{rich:component('hotKeyID')}.disable(); return false;"
+ value="disable"></h:commandButton>
</h:panelGrid>
- <rich:hotKey id="jsID" timing="onregistercall"/>
+ <rich:hotKey id="jsID" timing="onregistercall" />
- <h:panelGrid columns="2">
+ <h:panelGrid columns="2">
<h:commandButton id="jsAddCCID" value="add hotkey: alt+z"></h:commandButton>
<h:commandButton id="jsRemoveCCID" value="remove hotkey: alt+z"></h:commandButton>
-
- <h:commandLink id="jsAddJSID" onclick="document.getElementById('formID:hotKeySubviewID:jsID').component.add({selector:'#formID\\:hotKeySubviewID\\:commandButtonID', key:'alt+x',handler:function(){alert('alt+x');}}); return false;" value="add js: alt+x"></h:commandLink>
- <h:commandLink id="jsRemoveJSID" onclick="document.getElementById('formID:hotKeySubviewID:jsID').component.remove(); return false;" value="remove js: alt+x"></h:commandLink>
-
- <h:commandButton onclick="#{rich:component('jsID')}.enable(); return false;" value="enable"></h:commandButton>
- <h:commandButton onclick="#{rich:component('jsID')}.disable(); return false;" value="disable"></h:commandButton>
- <rich:componentControl disableDefault="true" attachTo="jsAddCCID" for="jsID" event="onclick" operation="add">
- <f:param name="selector" value="#formID\:hotKeySubviewID\:commandButtonID" />
+ <h:commandLink id="jsAddJSID"
+ onclick="document.getElementById('formID:hotKeySubviewID:jsID').component.add({selector:'#formID\\:hotKeySubviewID\\:commandButtonID', key:'alt+x',handler:function(){alert('alt+x');}}); return false;"
+ value="add js: alt+x"></h:commandLink>
+ <h:commandLink id="jsRemoveJSID"
+ onclick="document.getElementById('formID:hotKeySubviewID:jsID').component.remove(); return false;"
+ value="remove js: alt+x"></h:commandLink>
+
+ <h:commandButton
+ onclick="#{rich:component('jsID')}.enable(); return false;"
+ value="enable"></h:commandButton>
+ <h:commandButton
+ onclick="#{rich:component('jsID')}.disable(); return false;"
+ value="disable"></h:commandButton>
+
+ <rich:componentControl disableDefault="true" attachTo="jsAddCCID"
+ for="jsID" event="onclick" operation="add">
+ <f:param name="selector"
+ value="#formID\:hotKeySubviewID\:commandButtonID" />
<f:param name="key" value="alt+z" />
<f:param name="handler" value="alert('alt+z')" />
</rich:componentControl>
-
- <rich:componentControl disableDefault="true" attachTo="jsRemoveCCID" for="jsID" event="onclick" operation="remove">
+
+ <rich:componentControl disableDefault="true" attachTo="jsRemoveCCID"
+ for="jsID" event="onclick" operation="remove">
</rich:componentControl>
- </h:panelGrid>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('hotKeyID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9378 - trunk/test-applications/facelets/src/main/webapp/Gmap.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:34:19 -0400 (Wed, 02 Jul 2008)
New Revision: 9378
Modified:
trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml 2008-07-02 12:28:21 UTC (rev 9377)
+++ trunk/test-applications/facelets/src/main/webapp/Gmap/GmapProperty.xhtml 2008-07-02 12:34:19 UTC (rev 9378)
@@ -1,44 +1,65 @@
-<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="GmapPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="mapType"></h:outputText>
- <h:selectOneMenu value="#{gmap.mapType}" onchange="submit();">
- <f:selectItem itemLabel="G_NORMAL_MAP" itemValue="G_NORMAL_MAP"/>
- <f:selectItem itemLabel="G_SATELLITE_MAP" itemValue="G_SATELLITE_MAP"/>
- <f:selectItem itemLabel="G_HYBRID_MAP" itemValue="G_HYBRID_MAP"/>
- </h:selectOneMenu>
+<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="GmapPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="mapType"></h:outputText>
+ <h:selectOneMenu value="#{gmap.mapType}" onchange="submit();">
+ <f:selectItem itemLabel="G_NORMAL_MAP" itemValue="G_NORMAL_MAP" />
+ <f:selectItem itemLabel="G_SATELLITE_MAP" itemValue="G_SATELLITE_MAP" />
+ <f:selectItem itemLabel="G_HYBRID_MAP" itemValue="G_HYBRID_MAP" />
+ </h:selectOneMenu>
- <h:outputText value="enableInfoWindow:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.enableInfoWindow}" onclick="submit()" ></h:selectBooleanCheckbox>
-
- <h:outputText value="showGLargeMapControl:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.showGLargeMapControl}" onclick="submit()" ></h:selectBooleanCheckbox>
+ <h:outputText value="enableInfoWindow:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.enableInfoWindow}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="showGMapTypeControl:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.showGMapTypeControl}" onclick="submit()" ></h:selectBooleanCheckbox>
+ <h:outputText value="showGLargeMapControl:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.showGLargeMapControl}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="showGScaleControl:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.showGScaleControl}" onclick="submit()" ></h:selectBooleanCheckbox>
-
- <h:outputText value="warningMessage:"></h:outputText>
- <h:inputText value="#{gmap.warningMessage}" onclick="submit()" ></h:inputText>
-
- <h:outputText value="lng:"></h:outputText>
- <h:inputText value="#{gmap.lng}" onclick="submit()" ></h:inputText>
-
- <h:outputText value="lat:"></h:outputText>
- <h:inputText value="#{gmap.lat}" onclick="submit()" ></h:inputText>
-
- <h:outputText value="Dragging:" />
- <h:selectBooleanCheckbox value="#{gmap.dragging}" onclick="submit()" />
+ <h:outputText value="showGMapTypeControl:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.showGMapTypeControl}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="Continuous Zoom:" />
- <h:selectBooleanCheckbox value="#{gmap.continuousZoom}" onclick="submit()" />
+ <h:outputText value="showGScaleControl:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.showGScaleControl}"
+ onclick="submit()"></h:selectBooleanCheckbox>
- <h:outputText value="Double Click Zoom:" />
- <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}" onclick="submit()" />
-
- <h:outputText value="rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{gmap.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
- </h:panelGrid>
+ <h:outputText value="warningMessage:"></h:outputText>
+ <h:inputText value="#{gmap.warningMessage}" onclick="submit()"></h:inputText>
+
+ <h:outputText value="lng:"></h:outputText>
+ <h:inputText value="#{gmap.lng}" onclick="submit()"></h:inputText>
+
+ <h:outputText value="lat:"></h:outputText>
+ <h:inputText value="#{gmap.lat}" onclick="submit()"></h:inputText>
+
+ <h:outputText value="Dragging:" />
+ <h:selectBooleanCheckbox value="#{gmap.dragging}" onclick="submit()" />
+
+ <h:outputText value="Continuous Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.continuousZoom}"
+ onclick="submit()" />
+
+ <h:outputText value="Double Click Zoom:" />
+ <h:selectBooleanCheckbox value="#{gmap.doubleClickZoom}"
+ onclick="submit()" />
+
+ <h:outputText value="rendered:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{gmap.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRendererType" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('gMapID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9377 - trunk/test-applications/facelets/src/main/webapp/FileUpload.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:28:21 -0400 (Wed, 02 Jul 2008)
New Revision: 9377
Modified:
trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml 2008-07-02 12:25:11 UTC (rev 9376)
+++ trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml 2008-07-02 12:28:21 UTC (rev 9377)
@@ -1,45 +1,71 @@
-<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="FileUploadSubviewID">
-<rich:fileUpload id="fileUploadID" disabled="#{fileUpload.disabled}" autoclear="#{fileUpload.autoclear}"
-required="#{fileUpload.required}" requiredMessage="#{fileUpload.requiredMessage}" rendered="#{fileUpload.rendered}"
-listHeight="#{fileUpload.listHeight}" listWidth="#{fileUpload.listHeight}" uploadData="#{fileUpload.data}"
-maxFilesQuantity="#{fileUpload.maxFilesQuantity}" fileUploadListener="#{fileUpload.fileUploadListener}">
- <f:facet name="label">
- <h:outputText value="{_KB}KB from {KB}KB uploaded :[ {mm}:{ss} ]"></h:outputText>
- </f:facet>
-</rich:fileUpload>
-<h:panelGrid columns="2">
- <h:outputText value="acceptedTypes"></h:outputText>
- <h:inputText value="#{fileUpload.acceptedTypes}" onchange="submit();"></h:inputText>
-
- <h:outputText value="listHeight"></h:outputText>
- <h:inputText value="#{fileUpload.listHeight}" onchange="submit();"></h:inputText>
+<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="FileUploadSubviewID">
+ <rich:fileUpload id="fileUploadID" disabled="#{fileUpload.disabled}"
+ autoclear="#{fileUpload.autoclear}" required="#{fileUpload.required}"
+ requiredMessage="#{fileUpload.requiredMessage}"
+ rendered="#{fileUpload.rendered}"
+ listHeight="#{fileUpload.listHeight}"
+ listWidth="#{fileUpload.listHeight}" uploadData="#{fileUpload.data}"
+ maxFilesQuantity="#{fileUpload.maxFilesQuantity}"
+ fileUploadListener="#{fileUpload.fileUploadListener}">
+ <f:facet name="label">
+ <h:outputText value="{_KB}KB from {KB}KB uploaded :[ {mm}:{ss} ]"></h:outputText>
+ </f:facet>
+ </rich:fileUpload>
+ <h:panelGrid columns="2">
+ <h:outputText value="acceptedTypes"></h:outputText>
+ <h:inputText value="#{fileUpload.acceptedTypes}" onchange="submit();"></h:inputText>
- <h:outputText value="listWidth"></h:outputText>
- <h:inputText value="#{fileUpload.listWidth}" onchange="submit();"></h:inputText>
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{fileUpload.listHeight}" onchange="submit();"></h:inputText>
- <h:outputText value="maxFilesQuantity"></h:outputText>
- <h:inputText value="#{fileUpload.maxFilesQuantity}" onchange="submit();"></h:inputText>
-
- <h:outputText value="autoclear"></h:outputText>
- <h:selectBooleanCheckbox value="#{fileUpload.autoclear}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="disabled"></h:outputText>
- <h:selectBooleanCheckbox value="#{fileUpload.disabled}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{fileUpload.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{fileUpload.listWidth}" onchange="submit();"></h:inputText>
- <h:outputText value="required"></h:outputText>
- <h:selectBooleanCheckbox value="#{fileUpload.required}" onchange="submit();"></h:selectBooleanCheckbox>
+ <h:outputText value="maxFilesQuantity"></h:outputText>
+ <h:inputText value="#{fileUpload.maxFilesQuantity}"
+ onchange="submit();"></h:inputText>
- <h:outputText value="requiredMessage"></h:outputText>
- <h:inputText value="#{fileUpload.requiredMessage}" onchange="submit();"></h:inputText>
-
+ <h:outputText value="autoclear"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.autoclear}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.disabled}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{fileUpload.required}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <h:inputText value="#{fileUpload.requiredMessage}"
+ onchange="submit();"></h:inputText>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="File name:"></h:outputText>
+ <h:outputText value="#{fileUpload.upload.file.name}"></h:outputText>
+ </h:panelGrid>
+
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
<h:panelGrid columns="2">
- <h:outputText value="File name:"></h:outputText>
- <h:outputText value="#{fileUpload.upload.file.name}"></h:outputText>
- </h:panelGrid>
-
-</h:panelGrid>
+ <rich:column>
+ <a4j:commandLink value="getFileName" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
+ value="#{rich:findComponent('fileUploadID').uploadData[0].fileName}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9376 - trunk/test-applications/facelets/src/main/webapp/Effect.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:25:11 -0400 (Wed, 02 Jul 2008)
New Revision: 9376
Modified:
trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2008-07-02 12:22:26 UTC (rev 9375)
+++ trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2008-07-02 12:25:11 UTC (rev 9376)
@@ -1,15 +1,20 @@
-<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="effectSubviewID">
-
+<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="effectSubviewID">
+
<rich:panel id="indexID">
- <a4j:commandLink value="Hide all" onclick="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()"></a4j:commandLink>
-
+ <a4j:commandLink value="Hide all"
+ onclick="hideFrm1(),hideFrm2(),hideFrm3(),hideFrm4(),hideFrm5()"></a4j:commandLink>
+
<f:verbatim>
<br />
</f:verbatim>
-
+
<h:outputText value="Menu:" />
- <h:panelGrid columns="2" >
+ <h:panelGrid columns="2">
<h:outputText value="1." />
<f:verbatim>
<span onclick="showFrm1(),hideIndexID()"><font color="blue">JSF
@@ -50,8 +55,8 @@
<h:inputText value="#{effect.time}" />
<f:verbatim>
- <span onclick="hidePanel1(), hideImage1()"><font color="blue">Hide Panel</font>
- </span>
+ <span onclick="hidePanel1(), hideImage1()"><font color="blue">Hide
+ Panel</font> </span>
</f:verbatim>
<h:graphicImage value="/pics/fatal.gif"
onclick="hidePanel1(), hideImage1()" />
@@ -87,7 +92,7 @@
<h:panelGroup id="form_1b_ID">
<h:inputText value="onmouse and onclick">
- <rich:effect event="onclick" type="Fold"
+ <rich:effect event="onclick" type="Fold" id="effectID"
params="duration:0.5,from:0.4,to:1.0" />
<rich:effect event="onmouseout" type="Highlight"
params="duration:0.5,from:1.0,to:0.4" />
@@ -179,14 +184,14 @@
</f:verbatim>
<h:outputText value="3. (Pulsate 3, Show 1)" />
<h:graphicImage id="img_3_ID" value="/pics/toshiba.jpg" width="200px"
- height="150px" >
- <rich:effect event="onclick" type="Pulsate"/>
+ height="150px">
+ <rich:effect event="onclick" type="Pulsate" />
</h:graphicImage>
<rich:effect event="onclick" for="img_1_ID" targetId="img_2_ID"
type="BlindDown" />
<rich:effect event="onclick" for="img_2_ID" targetId="img_1_ID"
- type="Puff" />
+ type="Puff" />
<rich:effect event="onclick" for="img_3_ID" targetId="img_1_ID"
type="Grow" params="duration:0.8" />
@@ -211,14 +216,14 @@
<h:graphicImage value="/pics/warn.gif" onclick="showRichPanel()" />
<f:verbatim>
- <span onclick="hideRichTabPanel()"><font color="blue">Hide Tab
- Panel</font> </span>
+ <span onclick="hideRichTabPanel()"><font color="blue">Hide
+ Tab Panel</font> </span>
</f:verbatim>
<h:graphicImage value="/pics/fatal.gif" onclick="hideRichTabPanel()" />
<f:verbatim>
- <span onclick="showRichTabPanel()"><font color="blue">Show Tab
- Panel</font> </span>
+ <span onclick="showRichTabPanel()"><font color="blue">Show
+ Tab Panel</font> </span>
</f:verbatim>
<h:graphicImage value="/pics/warn.gif" onclick="showRichTabPanel()" />
</h:panelGrid>
@@ -259,11 +264,15 @@
params="duration:0.4,from:0.4,to:1.0" />
</rich:tabPanel>
- <rich:effect for="richPanelID" event="" name="hideRichPanel" type="Fade" />
- <rich:effect for="richPanelID" event="" name="showRichPanel" type="Appear" />
+ <rich:effect for="richPanelID" event="" name="hideRichPanel"
+ type="Fade" />
+ <rich:effect for="richPanelID" event="" name="showRichPanel"
+ type="Appear" />
- <rich:effect for="tabPanelID" event="" name="hideRichTabPanel" type="Fade" />
- <rich:effect for="tabPanelID" event="" name="showRichTabPanel" type="Appear" />
+ <rich:effect for="tabPanelID" event="" name="hideRichTabPanel"
+ type="Fade" />
+ <rich:effect for="tabPanelID" event="" name="showRichTabPanel"
+ type="Appear" />
<f:verbatim>
<br />
@@ -290,5 +299,16 @@
<rich:effect for="frm5" name="hideFrm5" type="Fade" />
<rich:effect for="frm5" name="showFrm5" type="Appear" />
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getParams" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('effectID').params}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
16 years, 6 months
JBoss Rich Faces SVN: r9375 - trunk/test-applications/facelets/src/main/webapp/DropDownMenu.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:22:26 -0400 (Wed, 02 Jul 2008)
New Revision: 9375
Modified:
trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml 2008-07-02 12:21:15 UTC (rev 9374)
+++ trunk/test-applications/facelets/src/main/webapp/DropDownMenu/DropDownMenuProperty.xhtml 2008-07-02 12:22:26 UTC (rev 9375)
@@ -1,89 +1,105 @@
-<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="dropDownMenuPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="HideDelay (ms):" />
- <h:inputText value="#{dDMenu.hideDelay}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
+<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="dropDownMenuPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="HideDelay (ms):" />
+ <h:inputText value="#{dDMenu.hideDelay}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
- <h:outputText value="ShowDelay (ms):" />
- <h:inputText value="#{dDMenu.showDelay}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
+ <h:outputText value="ShowDelay (ms):" />
+ <h:inputText value="#{dDMenu.showDelay}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
- <h:outputText value="PopupWidth (px):" />
- <h:inputText value="#{dDMenu.popupWidth}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
+ <h:outputText value="PopupWidth (px):" />
+ <h:inputText value="#{dDMenu.popupWidth}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
- <h:outputText value="horizontalOffset (px):" />
- <h:inputText value="#{dDMenu.horizontalOffset}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
+ <h:outputText value="horizontalOffset (px):" />
+ <h:inputText value="#{dDMenu.horizontalOffset}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
- <h:outputText value="verticalOffset (px):" />
- <h:inputText value="#{dDMenu.verticalOffset}">
- <a4j:support event="onchange" reRender="ddmId" />
- </h:inputText>
+ <h:outputText value="verticalOffset (px):" />
+ <h:inputText value="#{dDMenu.verticalOffset}">
+ <a4j:support event="onchange" reRender="ddmId" />
+ </h:inputText>
- <h:outputText value="Mode:" />
- <h:selectOneRadio value="#{dDMenu.mode}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{dDMenu.mode}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
- <h:outputText value="Direction:" />
- <h:selectOneRadio value="#{dDMenu.direction}">
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
+ <h:outputText value="Direction:" />
+ <h:selectOneRadio value="#{dDMenu.direction}">
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
- <h:outputText value="GroupDirection:" />
- <h:selectOneRadio value="#{dDMenu.groupDirection}">
- <f:selectItem itemLabel="top-up" itemValue="top-up" />
- <f:selectItem itemLabel="top-down" itemValue="top-down" />
- <f:selectItem itemLabel="bottom-up" itemValue="bottom-up" />
- <f:selectItem itemLabel="bottom-down" itemValue="bottom-down" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
+ <h:outputText value="GroupDirection:" />
+ <h:selectOneRadio value="#{dDMenu.groupDirection}">
+ <f:selectItem itemLabel="top-up" itemValue="top-up" />
+ <f:selectItem itemLabel="top-down" itemValue="top-down" />
+ <f:selectItem itemLabel="bottom-up" itemValue="bottom-up" />
+ <f:selectItem itemLabel="bottom-down" itemValue="bottom-down" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
- <h:outputText value="JointPoint:" />
- <h:selectOneRadio value="#{dDMenu.jointPoint}">
- <f:selectItem itemLabel="top-right" itemValue="tr" />
- <f:selectItem itemLabel="top-left" itemValue="tl" />
- <f:selectItem itemLabel="bottom-right" itemValue="br" />
- <f:selectItem itemLabel="bottom-left" itemValue="bl" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
+ <h:outputText value="JointPoint:" />
+ <h:selectOneRadio value="#{dDMenu.jointPoint}">
+ <f:selectItem itemLabel="top-right" itemValue="tr" />
+ <f:selectItem itemLabel="top-left" itemValue="tl" />
+ <f:selectItem itemLabel="bottom-right" itemValue="br" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bl" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
- <h:outputText value="Menu appearance event:" />
- <h:selectOneRadio value="#{dDMenu.event}" onclick="submit()">
- <f:selectItem itemLabel="onclick" itemValue="onclick" />
- <f:selectItem itemLabel="onmouseover" itemValue="onmouseover" />
- <a4j:support event="onclick" reRender="ddmId" />
- </h:selectOneRadio>
+ <h:outputText value="Menu appearance event:" />
+ <h:selectOneRadio value="#{dDMenu.event}" onclick="submit()">
+ <f:selectItem itemLabel="onclick" itemValue="onclick" />
+ <f:selectItem itemLabel="onmouseover" itemValue="onmouseover" />
+ <a4j:support event="onclick" reRender="ddmId" />
+ </h:selectOneRadio>
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dDMenu.rendered}" onclick="submit()">
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disable some ddmenu:"></h:outputText>
- <h:selectBooleanCheckbox value="#{dDMenu.disabledDDM}">
- <a4j:support reRender="ddmId" event="onclick" />
- </h:selectBooleanCheckbox>
-
- <h:outputText value="Disable some items:" />
- <h:selectBooleanCheckbox value="#{dDMenu.disabled}">
- <a4j:support reRender="ddmId" event="onclick" />
- </h:selectBooleanCheckbox>
- <h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
- </h:panelGrid>
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dDMenu.rendered}" onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable some ddmenu:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{dDMenu.disabledDDM}">
+ <a4j:support reRender="ddmId" event="onclick" />
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disable some items:" />
+ <h:selectBooleanCheckbox value="#{dDMenu.disabled}">
+ <a4j:support reRender="ddmId" event="onclick" />
+ </h:selectBooleanCheckbox>
+ <h:commandButton action="#{dDMenu.changeIcons}" value="ChangeIcons" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getSubmitMode" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('ddmId').submitMode}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9374 - trunk/test-applications/facelets/src/main/webapp/DragAndDrop.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:21:15 -0400 (Wed, 02 Jul 2008)
New Revision: 9374
Modified:
trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml 2008-07-02 12:17:39 UTC (rev 9373)
+++ trunk/test-applications/facelets/src/main/webapp/DragAndDrop/DragAndDrop.xhtml 2008-07-02 12:21:15 UTC (rev 9374)
@@ -1,174 +1,260 @@
-<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="dataDefinitionListSubviewID">
-
+<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="dataDefinitionListSubviewID">
+
<a4j:outputPanel ajaxRendered="true">
<h:messages />
</a4j:outputPanel>
-
+
<script>
DnD.CLIENT_VALIDATION_OFF = false;
</script>
-
- <h:panelGroup id="dragValueText">
- <h:outputText value="#{dndBean.dragValue}" />
- </h:panelGroup>
- <h:panelGrid columns="2">
- <h:dataTable var="type" value="#{dndBean.types}">
- <h:column>
- <h:panelGrid styleClass="dropzoneDecoration" id="drag1">
- <h:outputText value="#{type} - drag" />
- <rich:dragSupport dragType="#{type}" dragValue="#{type} - value" actionListener="#{dndBean.actListenerDrag}" action="#{dndBean.dragAction}" dragListener="#{dndBean.processDrag}"
- oncomplete="#{event.oncomplete}" ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}" onsubmit="#{event.onsubmit}" onbeforedomupdate="#{event.onbeforedomupdate}" ondropout="#{event.ondropout}" ondropover="#{event.ondropover}">
- </rich:dragSupport>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
+ <h:panelGroup id="dragValueText">
+ <h:outputText value="#{dndBean.dragValue}" />
+ </h:panelGroup>
- <h:dataTable var="type" value="#{dndBean.types}">
- <h:column>
- <h:panelGrid styleClass="dropzoneDecoration" id="drop2">
- <h:outputText value="#{type} - drop" />
- <rich:dropSupport reRender="dragValueText" actionListener="#{dndBean.actListenerDrop}"
- action="#{dndBean.dropAction}" acceptedTypes="#{type}" dropListener="#{dndBean.processDrop}" dropValue="#{type} - value"
- ondragenter="#{event.ondragenter}" ondragexit="#{event.ondragexit}" ondrop="#{event.ondrop}" ondropend="#{event.ondropend}" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" onbeforedomupdate="#{event.onbeforedomupdate}">
- </rich:dropSupport>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
- <h:panelGrid id="dndActionID" columns="1">
- <a4j:commandButton value="Show action" reRender="dndActionID" style=" width : 95px;"></a4j:commandButton>
- <h:outputText value="#{dndBean.actionDrag}" />
- <h:outputText value="#{dndBean.actionDrop}" />
- <h:outputText value="#{dndBean.actionListenerDrag}" />
- <h:outputText value="#{dndBean.actionListenerDrop}" />
- </h:panelGrid>
+ <h:panelGrid columns="2">
+ <h:dataTable var="type" value="#{dndBean.types}">
+ <h:column>
+ <h:panelGrid styleClass="dropzoneDecoration" id="drag1">
+ <h:outputText value="#{type} - drag" />
+ <rich:dragSupport dragType="#{type}" dragValue="#{type} - value"
+ actionListener="#{dndBean.actListenerDrag}"
+ action="#{dndBean.dragAction}"
+ dragListener="#{dndBean.processDrag}"
+ oncomplete="#{event.oncomplete}" ondragend="#{event.ondragend}"
+ ondragstart="#{event.ondragstart}" onsubmit="#{event.onsubmit}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ id="dragSupportID">
+ </rich:dragSupport>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+
+ <h:dataTable var="type" value="#{dndBean.types}">
+ <h:column>
+ <h:panelGrid styleClass="dropzoneDecoration" id="drop2">
+ <h:outputText value="#{type} - drop" />
+ <rich:dropSupport reRender="dragValueText" id="dropSupportID"
+ actionListener="#{dndBean.actListenerDrop}"
+ action="#{dndBean.dropAction}" acceptedTypes="#{type}"
+ dropListener="#{dndBean.processDrop}" dropValue="#{type} - value"
+ ondragenter="#{event.ondragenter}"
+ ondragexit="#{event.ondragexit}" ondrop="#{event.ondrop}"
+ ondropend="#{event.ondropend}" oncomplete="#{event.oncomplete}"
+ onsubmit="#{event.onsubmit}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ </rich:dropSupport>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+ <h:panelGrid id="dndActionID" columns="1">
+ <a4j:commandButton value="Show action" reRender="dndActionID"
+ style=" width : 95px;"></a4j:commandButton>
+ <h:outputText value="#{dndBean.actionDrag}" />
+ <h:outputText value="#{dndBean.actionDrop}" />
+ <h:outputText value="#{dndBean.actionListenerDrag}" />
+ <h:outputText value="#{dndBean.actionListenerDrop}" />
</h:panelGrid>
- <rich:dragIndicator id="indicator" acceptClass="accept" rejectClass="reject" style="#{style.style}" styleClass="#{style.styleClass}">
- <f:facet name="single">
- <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
- </f:facet>
- <rich:dndParam name="accept" value="ACCEPT:" />
- <rich:dndParam name="reject">
- <f:verbatim>
- <i style="text-decoration: line-through;">REJECT:</i>
- </f:verbatim>
- </rich:dndParam>
- </rich:dragIndicator>
+ </h:panelGrid>
+ <rich:dragIndicator id="indicator" acceptClass="accept"
+ rejectClass="reject" style="#{style.style}"
+ styleClass="#{style.styleClass}">
+ <f:facet name="single">
+ <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
+ </f:facet>
+ <rich:dndParam name="accept" value="ACCEPT:" />
+ <rich:dndParam name="reject">
+ <f:verbatim>
+ <i style="text-decoration: line-through;">REJECT:</i>
+ </f:verbatim>
+ </rich:dndParam>
+ </rich:dragIndicator>
- <rich:dragIndicator id="dIndicator" acceptClass="defaultIndicator" rejectClass="reject">
- <f:facet name="single">
- <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
- </f:facet>
- <rich:dndParam name="accept" value="ACCEPT:" />
- <rich:dndParam name="reject">
- <f:verbatim>
- <i style="text-decoration: line-through;">REJECT:</i>
- </f:verbatim>
- </rich:dndParam>
- </rich:dragIndicator>
+ <rich:dragIndicator id="dIndicator" acceptClass="defaultIndicator"
+ rejectClass="reject">
+ <f:facet name="single">
+ <f:verbatim>{marker} <b>{testDrag}</b> {label}</f:verbatim>
+ </f:facet>
+ <rich:dndParam name="accept" value="ACCEPT:" />
+ <rich:dndParam name="reject">
+ <f:verbatim>
+ <i style="text-decoration: line-through;">REJECT:</i>
+ </f:verbatim>
+ </rich:dndParam>
+ </rich:dragIndicator>
- <h:panelGrid columns="1" style="position: relative; left: 140px;">
- <h:panelGrid columns="1" style="position: absolute; top: 30px; left: 300px;">
- <rich:dragIndicator id="defaultIndicator">
- </rich:dragIndicator>
- </h:panelGrid>
+ <h:panelGrid columns="1" style="position: relative; left: 140px;">
+ <h:panelGrid columns="1"
+ style="position: absolute; top: 30px; left: 300px;">
+ <rich:dragIndicator id="defaultIndicator">
+ </rich:dragIndicator>
</h:panelGrid>
+ </h:panelGrid>
- <h:panelGrid columns="4" cellspacing="20">
- <h:panelGrid styleClass="dropzoneDecoration" id="grid1">
- <f:verbatim>Accepts file and folder... Customizes</f:verbatim>
- <rich:dropSupport id="zone1"
- oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" ondragenter="#{event.ondragenter}" ondragexit="#{event.ondragexit}" ondropend="#{event.ondropend}" ondrop="#{event.ondrop}" onbeforedomupdate="#{event.onbeforedomupdate}"
- acceptedTypes="file, folder" typeMapping="{file: testDrop}">
- <rich:dndParam name="testDrop">
- <h:graphicImage height="16" width="16"
- value="#{icon.iconFileManager}" />
- </rich:dndParam>
- </rich:dropSupport>
- </h:panelGrid>
+ <h:panelGrid columns="4" cellspacing="20">
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid1">
+ <f:verbatim>Accepts file and folder... Customizes</f:verbatim>
+ <rich:dropSupport id="zone1" oncomplete="#{event.oncomplete}"
+ onsubmit="#{event.onsubmit}" ondragenter="#{event.ondragenter}"
+ ondragexit="#{event.ondragexit}" ondropend="#{event.ondropend}"
+ ondrop="#{event.ondrop}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ acceptedTypes="file, folder" typeMapping="{file: testDrop}">
+ <rich:dndParam name="testDrop">
+ <h:graphicImage height="16" width="16"
+ value="#{icon.iconFileManager}" />
+ </rich:dndParam>
+ </rich:dropSupport>
+ </h:panelGrid>
- <h:panelGrid styleClass="dropzoneDecoration" id="grid2">
- <f:verbatim>Accepts none</f:verbatim>
- <rich:dropSupport>
- </rich:dropSupport>
- </h:panelGrid>
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid2">
+ <f:verbatim>Accepts none</f:verbatim>
+ <rich:dropSupport>
+ </rich:dropSupport>
+ </h:panelGrid>
- <h:panelGrid styleClass="dropzoneDecoration" id="grid3">
- <f:verbatim>Accepts none... Customizes</f:verbatim>
- <rich:dropSupport typeMapping="{file: testDrop}" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" ondragenter="#{event.ondragenter}" ondragexit="#{event.ondragexit}" ondropend="#{event.ondropend}" ondrop="#{event.ondrop}" onbeforedomupdate="#{event.onbeforedomupdate}">
- <rich:dndParam name="testDrop">
- <h:graphicImage height="16" width="16" value="#{icon.iconFileManagerReject}" />
- </rich:dndParam>
- </rich:dropSupport>
- </h:panelGrid>
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid3">
+ <f:verbatim>Accepts none... Customizes</f:verbatim>
+ <rich:dropSupport typeMapping="{file: testDrop}"
+ oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
+ ondragenter="#{event.ondragenter}" ondragexit="#{event.ondragexit}"
+ ondropend="#{event.ondropend}" ondrop="#{event.ondrop}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="testDrop">
+ <h:graphicImage height="16" width="16"
+ value="#{icon.iconFileManagerReject}" />
+ </rich:dndParam>
+ </rich:dropSupport>
+ </h:panelGrid>
- <h:panelGrid styleClass="dropzoneDecoration" id="grid4">
- <f:verbatim>Accepts file and folder</f:verbatim>
- <rich:dropSupport acceptedTypes="file, folder" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" ondragenter="#{event.ondragenter}" ondragexit="#{event.ondragexit}" ondropend="#{event.ondropend}" ondrop="#{event.ondrop}" onbeforedomupdate="#{event.onbeforedomupdate}">
- <rich:dndParam name="testDrop" value="testDropValue" />
- </rich:dropSupport>
- </h:panelGrid>
+ <h:panelGrid styleClass="dropzoneDecoration" id="grid4">
+ <f:verbatim>Accepts file and folder</f:verbatim>
+ <rich:dropSupport acceptedTypes="file, folder"
+ oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
+ ondragenter="#{event.ondragenter}" ondragexit="#{event.ondragexit}"
+ ondropend="#{event.ondropend}" ondrop="#{event.ondrop}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="testDrop" value="testDropValue" />
+ </rich:dropSupport>
+ </h:panelGrid>
- <h:panelGrid id="grid5">
- <rich:dragSupport dragType="file" ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}" ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" onbeforedomupdate="#{event.onbeforedomupdate}">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue" />
- </rich:dragSupport>
- <f:verbatim>File Draggable - no indicator</f:verbatim>
- </h:panelGrid>
+ <h:panelGrid id="grid5">
+ <rich:dragSupport dragType="file" ondragend="#{event.ondragend}"
+ ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}"
+ ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}"
+ onsubmit="#{event.onsubmit}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue" />
+ </rich:dragSupport>
+ <f:verbatim>File Draggable - no indicator</f:verbatim>
+ </h:panelGrid>
- <h:panelGrid id="grid6">
- <rich:dragSupport dragType="file" dragIndicator="indicator" ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}" ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" onbeforedomupdate="#{event.onbeforedomupdate}">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue" />
- </rich:dragSupport>
- <f:verbatim>File Draggable with indicator</f:verbatim>
- </h:panelGrid>
+ <h:panelGrid id="grid6">
+ <rich:dragSupport dragType="file" dragIndicator="indicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue" />
+ </rich:dragSupport>
+ <f:verbatim>File Draggable with indicator</f:verbatim>
+ </h:panelGrid>
- <h:panelGrid id="grid7">
- <rich:dragSupport dragType="folder" dragIndicator="indicator" ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}" ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" onbeforedomupdate="#{event.onbeforedomupdate}">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue for Folder" />
- </rich:dragSupport>
- <f:verbatim>Folder Draggable with indicator</f:verbatim>
- </h:panelGrid>
+ <h:panelGrid id="grid7">
+ <rich:dragSupport dragType="folder" dragIndicator="indicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable with indicator</f:verbatim>
+ </h:panelGrid>
- <h:outputText />
+ <h:outputText />
- <h:panelGrid id="grid8">
- <rich:dragSupport dragType="folder" ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}" ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" onbeforedomupdate="#{event.onbeforedomupdate}">
- <rich:dndParam name="label" value="Label" />
- <rich:dndParam name="testDrag" value="testDragValue for Folder" />
- </rich:dragSupport>
- <f:verbatim>Folder Draggable - no indicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid9">
- <rich:dragSupport dragType="file" dragIndicator="defaultIndicator" ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}" ondropover="#{event.ondropover}">
- <rich:dndParam name="testDrag" value="testDragValue" />
- <rich:dndParam name="marker" value="testMarkerValue" />
- <rich:dndParam name="label" value="testDragValue" />
- </rich:dragSupport>
- <f:verbatim>File Draggable with defaultIndicator</f:verbatim>
- </h:panelGrid>
-
- <h:panelGrid id="grid10">
- <rich:dragSupport dragType="folder" dragIndicator="defaultIndicator" ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}" ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" onbeforedomupdate="#{event.onbeforedomupdate}">
- <rich:dndParam name="label" value="testDragValue for Folder" />
- </rich:dragSupport>
- <f:verbatim>Folder Draggable with defaultIndicator</f:verbatim>
- </h:panelGrid>
- <h:outputText />
+ <h:panelGrid id="grid8">
+ <rich:dragSupport dragType="folder" ondragend="#{event.ondragend}"
+ ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}"
+ ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}"
+ onsubmit="#{event.onsubmit}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="Label" />
+ <rich:dndParam name="testDrag" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable - no indicator</f:verbatim>
</h:panelGrid>
- <h:panelGrid id="renderedId">
- <rich:dragSupport dragType="file" dragIndicator="defaultIndicator" ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}" ondropout="#{event.ondropout}" ondropover="#{event.ondropover}" oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}" onbeforedomupdate="#{event.onbeforedomupdate}">
+ <h:panelGrid id="grid9">
+ <rich:dragSupport dragType="file" dragIndicator="defaultIndicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}">
+ <rich:dndParam name="testDrag" value="testDragValue" />
<rich:dndParam name="marker" value="testMarkerValue" />
<rich:dndParam name="label" value="testDragValue" />
</rich:dragSupport>
+ <f:verbatim>File Draggable with defaultIndicator</f:verbatim>
+ </h:panelGrid>
- <h:graphicImage id="dragImage" value="/pics/masshtaby_01.jpg" width="200px" height="200px" />
- <f:verbatim>dragSupport</f:verbatim>
+ <h:panelGrid id="grid10">
+ <rich:dragSupport dragType="folder" dragIndicator="defaultIndicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="label" value="testDragValue for Folder" />
+ </rich:dragSupport>
+ <f:verbatim>Folder Draggable with defaultIndicator</f:verbatim>
</h:panelGrid>
+ <h:outputText />
+ </h:panelGrid>
+
+ <h:panelGrid id="renderedId">
+ <rich:dragSupport dragType="file" dragIndicator="defaultIndicator"
+ ondragend="#{event.ondragend}" ondragstart="#{event.ondragstart}"
+ ondropout="#{event.ondropout}" ondropover="#{event.ondropover}"
+ oncomplete="#{event.oncomplete}" onsubmit="#{event.onsubmit}"
+ onbeforedomupdate="#{event.onbeforedomupdate}">
+ <rich:dndParam name="marker" value="testMarkerValue" />
+ <rich:dndParam name="label" value="testDragValue" />
+ </rich:dragSupport>
+
+ <h:graphicImage id="dragImage" value="/pics/masshtaby_01.jpg"
+ width="200px" height="200px" />
+ <f:verbatim>dragSupport</f:verbatim>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getDragValue" reRender="findID1"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID1">
+ <h:outputText
+ value="#{rich:findComponent('dragSupportID').dragValue}" />
+ </rich:column>
+ <rich:column>
+ <a4j:commandLink value="getDropValue" reRender="findID2"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID2">
+ <h:outputText
+ value="#{rich:findComponent('dropSupportID').dropValue}" />
+ </rich:column>
+ <rich:column>
+ <a4j:commandLink value="getAcceptClass" reRender="findID3"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID3">
+ <h:outputText value="#{rich:findComponent('indicator').acceptClass}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
16 years, 6 months