JBoss Rich Faces SVN: r9333 - trunk/test-applications/jsp/src/main/webapp/ListShuttle.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:37:01 -0400 (Tue, 01 Jul 2008)
New Revision: 9333
Modified:
trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-07-01 16:28:13 UTC (rev 9332)
+++ trunk/test-applications/jsp/src/main/webapp/ListShuttle/ListShuttleProperty.jsp 2008-07-01 16:37:01 UTC (rev 9333)
@@ -8,7 +8,8 @@
<h:column></h:column>
<h:panelGroup>
<a4j:commandButton value="reRender" reRender="listShuttleID"></a4j:commandButton>
- <a4j:commandButton immediate="true" reRender="listShuttleID" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <a4j:commandButton immediate="true" reRender="listShuttleID"
+ value="immediate submit(); (a4j)"></a4j:commandButton>
<h:commandButton value="submit();" />
<h:commandButton immediate="true" value="immediate submit();" />
</h:panelGroup>
@@ -16,7 +17,8 @@
<h:outputText value="Enter quantity of lines" />
<h:panelGroup>
<h:inputText value="#{listShuttle.lenght}" />
- <a4j:commandButton action="#{listShuttle.addNewItem}" reRender="listShuttleID" value="ok" />
+ <a4j:commandButton action="#{listShuttle.addNewItem}"
+ reRender="listShuttleID" value="ok" />
</h:panelGroup>
<h:outputText value="first" />
@@ -25,22 +27,28 @@
</h:inputText>
<h:outputText value="showButtonLabels" />
- <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}" onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.showButtonLabels}"
+ onchange="submit();" />
<h:outputText value="orderControlsVisible" />
- <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}" onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.orderControlsVisible}"
+ onchange="submit();" />
<h:outputText value="moveControlsVisible" />
- <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}" onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.moveControlsVisible}"
+ onchange="submit();" />
<h:outputText value="fastOrderControlsVisible" />
- <h:selectBooleanCheckbox value="#{listShuttle.fastOrderControlsVisible}" onchange="submit();" />
+ <h:selectBooleanCheckbox
+ value="#{listShuttle.fastOrderControlsVisible}" onchange="submit();" />
<h:outputText value="fastMoveControlsVisible" />
- <h:selectBooleanCheckbox value="#{listShuttle.fastMoveControlsVisible}" onchange="submit();" />
+ <h:selectBooleanCheckbox
+ value="#{listShuttle.fastMoveControlsVisible}" onchange="submit();" />
<h:outputText value="switchByClick" />
- <h:selectBooleanCheckbox value="#{listShuttle.switchByClick}" onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{listShuttle.switchByClick}"
+ onchange="submit();" />
<h:outputText value="sourceCaptionLabel" />
<h:inputText value="#{listShuttle.sourceCaptionLabel}">
@@ -111,21 +119,65 @@
<h:column></h:column>
<h:outputText value="JavaScript API"></h:outputText>
<h:column></h:column>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doHide()" value="Hide"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doShow()" value="Show"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isShown()" value="isShown"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Enable()" value="Enable"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Disable()" value="Disable"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.isEnabled()" value="isEnabled"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveUp()" value="moveUp"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveDown()" value="moveDown"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveTop()" value="moveTop"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveBottom()" value="moveBottom"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy()" value="copy"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove()" value="remove"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll()" value="copyAll"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll()" value="removeAll"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getSelection()" value="getSelection"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getItems()" value="getItems"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doHide()"
+ value="Hide"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doShow()"
+ value="Show"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isShown()"
+ value="isShown"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Enable()"
+ value="Enable"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Disable()"
+ value="Disable"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.isEnabled()"
+ value="isEnabled"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveUp()"
+ value="moveUp"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveDown()"
+ value="moveDown"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveTop()"
+ value="moveTop"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveBottom()"
+ value="moveBottom"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy()"
+ value="copy"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove()"
+ value="remove"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll()"
+ value="copyAll"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll()"
+ value="removeAll"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getSelection()"
+ value="getSelection"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getItems()"
+ value="getItems"></a4j:commandLink>
</h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getActiveItem" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
+ value="#{rich:findComponent('listShuttleID').activeItem}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9332 - trunk/test-applications/jsp/src/main/webapp/jQuery.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:28:13 -0400 (Tue, 01 Jul 2008)
New Revision: 9332
Modified:
trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp 2008-07-01 16:27:48 UTC (rev 9331)
+++ trunk/test-applications/jsp/src/main/webapp/jQuery/jQuery.jsp 2008-07-01 16:28:13 UTC (rev 9332)
@@ -1,9 +1,9 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
-<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="jQuerySubviewID">
-<style>
+ <style>
.divSize_1 {
width: 150px;
height: 90px;
@@ -12,13 +12,13 @@
}
.divColor_1 {
-
- background-color: #1E90FF;
+ background-color: #1E90FF;
}
.divTextSize_1 {
font-size: xx-large;
}
+
.divSize_2 {
width: 90px;
height: 150px;
@@ -27,15 +27,17 @@
}
.divColor_2 {
- background-color: #7FFF00;
+ background-color: #7FFF00;
}
-.oddTable{
+.oddTable {
background-color: #FFE4C4;
}
-.activeTable{
+
+.activeTable {
background-color: #AFEEEE;
}
+
.fontColor {
font-style: italic;
color: #228B22;
@@ -45,46 +47,82 @@
<h:outputText value="add text: [li],work!, e.g. A. one [li],work!" />
<h:panelGroup>
<f:verbatim>
- <ol type="A" title="li">
- <li>one </li>
- <li>two </li>
- <li>three</li>
- </ol>
+ <ol type="A" title="li">
+ <li>one</li>
+ <li>two</li>
+ <li>three</li>
+ </ol>
</f:verbatim>
</h:panelGroup>
-
+
<h:outputText value="green text: add text3 " />
- <f:verbatim> <p><span>Text1 </span>text2</p> </f:verbatim>
-
- <h:panelGroup>
- <h:outputText value="Rectangle: size: "150 x 90"; bgcolor: "dodgerblue"" />
- <f:verbatim><br /></f:verbatim>
+ <f:verbatim>
+ <p><span>Text1 </span>text2</p>
+ </f:verbatim>
+
+ <h:panelGroup>
+ <h:outputText
+ value="Rectangle: size: "150 x 90"; bgcolor: "dodgerblue"" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
<h:outputText value="Table: bgcolor: "bisque"" />
</h:panelGroup>
- <f:verbatim><div id="div_1_ID">xx-large <br /> text </div></f:verbatim>
-
+ <f:verbatim>
+ <div id="div_1_ID">xx-large <br />
+ text</div>
+ </f:verbatim>
+
<h:panelGroup>
- <h:outputText value="Rectangle: size: "90 x 150"; border-color "red"" />
- <f:verbatim><br /></f:verbatim>
+ <h:outputText
+ value="Rectangle: size: "90 x 150"; border-color "red"" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
<h:outputText value="Table: bgcolor: "none"" />
- <f:verbatim><br /></f:verbatim>
+ <f:verbatim>
+ <br />
+ </f:verbatim>
<h:outputText value="effect(mouseover)" />
</h:panelGroup>
- <f:verbatim><div id="div_2_ID"> normal text</div></f:verbatim>
- </h:panelGrid>
+ <f:verbatim>
+ <div id="div_2_ID">normal text</div>
+ </f:verbatim>
+ </h:panelGrid>
- <rich:jQuery selector="li" timing="onload" query="find('ol').end().append('[li],work!')" />
-
- <rich:jQuery selector="body" timing="onload" query="addClass('body')"/>
- <rich:jQuery selector="tr:nth-child(odd)" timing="onload" query="addClass('oddTable')" />
- <rich:jQuery selector="#panelGridID tr" query="mouseover(function(){jQuery(this).addClass('activeTable')})"/>
- <rich:jQuery selector="#panelGridID tr" query="mouseout(function(){jQuery(this).removeClass('activeTable')})"/>
-
- <rich:jQuery selector="#div_2_ID" timing="onload" query="mouseover(function(){jQuery(this).fadeOut({height: 'hide'}, 500).text('New text').animate({height: 'show'}, 500)})" />
- <rich:jQuery selector="p" timing="onload" query="find('span').html('text1').end().append('<p class=\'fontColor\'>add text3<p>')"/>
- <rich:jQuery selector="#div_1_ID" timing="onload" query="addClass('divSize_1')" />
- <rich:jQuery selector=".divSize_1" timing="onload" query="addClass('divColor_1')" />
- <rich:jQuery selector="#panelGridID #div_1_ID" timing="onload" query="addClass('divTextSize_1')" />
- <rich:jQuery selector="#form\\:panelGridID #div_2_ID" timing="onload" query="addClass('divSize_2')" />
+ <rich:jQuery selector="li" timing="onload" id="jQid"
+ query="find('ol').end().append('[li],work!')" />
+
+ <rich:jQuery selector="body" timing="onload" query="addClass('body')" />
+ <rich:jQuery selector="tr:nth-child(odd)" timing="onload"
+ query="addClass('oddTable')" />
+ <rich:jQuery selector="#panelGridID tr"
+ query="mouseover(function(){jQuery(this).addClass('activeTable')})" />
+ <rich:jQuery selector="#panelGridID tr"
+ query="mouseout(function(){jQuery(this).removeClass('activeTable')})" />
+
+ <rich:jQuery selector="#div_2_ID" timing="onload"
+ query="mouseover(function(){jQuery(this).fadeOut({height: 'hide'}, 500).text('New text').animate({height: 'show'}, 500)})" />
+ <rich:jQuery selector="p" timing="onload"
+ query="find('span').html('text1').end().append('<p class=\'fontColor\'>add text3<p>')" />
+ <rich:jQuery selector="#div_1_ID" timing="onload"
+ query="addClass('divSize_1')" />
+ <rich:jQuery selector=".divSize_1" timing="onload"
+ query="addClass('divColor_1')" />
+ <rich:jQuery selector="#panelGridID #div_1_ID" timing="onload"
+ query="addClass('divTextSize_1')" />
+ <rich:jQuery selector="#form\\:panelGridID #div_2_ID" timing="onload"
+ query="addClass('divSize_2')" />
+ <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('jQid').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9331 - trunk/test-applications/jsp/src/main/java/rich.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:27:48 -0400 (Tue, 01 Jul 2008)
New Revision: 9331
Modified:
trunk/test-applications/jsp/src/main/java/rich/RichBean.java
Log:
jQuery === true
Modified: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-07-01 16:21:12 UTC (rev 9330)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-07-01 16:27:48 UTC (rev 9331)
@@ -53,7 +53,7 @@
map.add("Tree", add("/Tree/Tree", new boolean [] {false, true, false}));
map.add("VirtualEarth", add("/VirtualEarth/VirtualEarth", new boolean [] {false, true, false}));
map.add("ScrollableDataTable", add("/ScrollableDataTable/ScrollableDataTable", new boolean [] {false, true, false}));
- map.add("jQuery", add("/jQuery/jQuery", new boolean [] {false, false, false}));
+ map.add("jQuery", add("/jQuery/jQuery", new boolean [] {true, false, false}));
map.add("OrderingList", add("/OrderingList/OrderingList", new boolean [] {false, true, true}));
map.add("DataDefinitionList", add("/DataDefinitionList/DataDefinitionList", new boolean [] {false, true, false}));
map.add("DataOrderedList", add("/DataOrderedList/DataOrderedList", new boolean [] {false, true, false}));
16 years, 6 months
JBoss Rich Faces SVN: r9330 - trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:21:12 -0400 (Tue, 01 Jul 2008)
New Revision: 9330
Modified:
trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp 2008-07-01 16:18:28 UTC (rev 9329)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSpinner/InputNumberSpinnerProperty.jsp 2008-07-01 16:21:12 UTC (rev 9330)
@@ -4,46 +4,59 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview 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: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: r9329 - trunk/test-applications/jsp/src/main/webapp/InputNumberSlider.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:18:28 -0400 (Tue, 01 Jul 2008)
New Revision: 9329
Modified:
trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp 2008-07-01 16:13:04 UTC (rev 9328)
+++ trunk/test-applications/jsp/src/main/webapp/InputNumberSlider/InputNumberSliderProperty.jsp 2008-07-01 16:18:28 UTC (rev 9329)
@@ -4,101 +4,111 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview 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:panelGrid columns="2" cellspacing="10px" border="1">
+
+ <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: r9328 - trunk/test-applications/jsp/src/main/webapp/InplaceSelect.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:13:04 -0400 (Tue, 01 Jul 2008)
New Revision: 9328
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp 2008-07-01 16:10:40 UTC (rev 9327)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp 2008-07-01 16:13:04 UTC (rev 9328)
@@ -8,7 +8,7 @@
<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>
@@ -39,7 +39,7 @@
<f:selectItem itemLabel="top" itemValue="top" />
<f:selectItem itemLabel="center" itemValue="center" />
<f:selectItem itemLabel="bottom" itemValue="bottom" />
-
+
</h:selectOneRadio>
<h:outputText value="controlsHorizontalPosition"></h:outputText>
@@ -63,37 +63,53 @@
<h:outputText value="openOnEdit"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.openOnEdit}"
onchange="submit();"></h:selectBooleanCheckbox>
-
+
<h:outputText value="rendered"></h:outputText>
<h:selectBooleanCheckbox value="#{inplaceSelect.rendered}"
onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:commandButton actionListener="#{inplaceSelect.checkBinding}" value="Binding"></h:commandButton>
- <h:outputText value = "#{inplaceSelect.bindLabel}"/>
-
+
+ <h:commandButton actionListener="#{inplaceSelect.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{inplaceSelect.bindLabel}" />
+
<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: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="setValue"></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="setValue"></a4j:commandLink>
+
+ <br />
<f:verbatim>
<h:outputText value="Component Control test"
style="FONT-WEIGHT: bold;"></h:outputText>
@@ -110,7 +126,7 @@
</f:verbatim>
<rich:componentControl attachTo="editID" event="onclick"
- for="inplaceSelectID" operation="edit" ></rich:componentControl>
+ for="inplaceSelectID" operation="edit"></rich:componentControl>
<rich:componentControl attachTo="saveID" event="onclick"
for="inplaceSelectID" operation="save"></rich:componentControl>
<rich:componentControl attachTo="cancelID" event="onclick"
@@ -119,5 +135,15 @@
for="inplaceSelectID" operation="getValue"></rich:componentControl>
<rich:componentControl attachTo="setValueID" event="onclick"
for="inplaceSelectID" operation="setValue('newValue')"></rich:componentControl>
-
+ <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: r9327 - trunk/test-applications/jsp/src/main/webapp/InplaceInput.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:10:40 -0400 (Tue, 01 Jul 2008)
New Revision: 9327
Modified:
trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp 2008-07-01 16:07:41 UTC (rev 9326)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceInput/InplaceInputProperty.jsp 2008-07-01 16:10:40 UTC (rev 9327)
@@ -6,9 +6,9 @@
<f:subview id="inplaceInputPropertySubviewID">
<h:panelGrid columns="2">
<h:outputText value="value"></h:outputText>
- <h:outputText id="inplaceInputValueID" value="#{inplaceInput.value}" >
- </h:outputText>
-
+ <h:outputText id="inplaceInputValueID" value="#{inplaceInput.value}">
+ </h:outputText>
+
<h:outputText value="defaultLabel"></h:outputText>
<h:inputText value="#{inplaceInput.defaultLabel}" onchange="submit();">
</h:inputText>
@@ -18,11 +18,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>
@@ -34,58 +36,91 @@
</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:selectOneRadio value="#{inplaceInput.layout}" onchange="submit();">
- <f:selectItem itemLabel="inline" itemValue="inline"/>
- <f:selectItem itemLabel="block" itemValue="block"/>
+ <f:selectItem itemLabel="inline" itemValue="inline" />
+ <f:selectItem itemLabel="block" itemValue="block" />
</h:selectOneRadio>
-
+
</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: r9326 - trunk/test-applications/jsp/src/main/webapp/HotKey.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:07:41 -0400 (Tue, 01 Jul 2008)
New Revision: 9326
Modified:
trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-07-01 16:06:57 UTC (rev 9325)
+++ trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-07-01 16:07:41 UTC (rev 9326)
@@ -4,19 +4,23 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview 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}"/>
+ <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>
@@ -25,22 +29,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>
@@ -60,30 +66,65 @@
<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>
+
+ <button
+ onclick="$(rich:component('hotKeyID')).enable(); return false;">turn
+ on</button>
+ <button
+ onclick="$(rich:component('hotKeyID')).disable(); return false;">turn
+ off</button>
+ <br />
+
+ <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: r9325 - trunk/test-applications/jsp/src/main/java/rich.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-01 12:06:57 -0400 (Tue, 01 Jul 2008)
New Revision: 9325
Modified:
trunk/test-applications/jsp/src/main/java/rich/RichBean.java
Log:
+HotKey in combobox
Modified: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-07-01 16:02:04 UTC (rev 9324)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-07-01 16:06:57 UTC (rev 9325)
@@ -69,6 +69,7 @@
map.add("InplaceSelect", add("/InplaceSelect/InplaceSelect", new boolean [] {false, true, false}));
map.add("InplaceInput", add("/InplaceInput/InplaceInput", new boolean [] {false, true, false}));
map.add("Skinning", add("/Skinning/Skinning", new boolean [] {false, false, false}));
+ map.add("HotKey", add("/HotKey/HotKey", new boolean [] {true, false, false}));
map.add("Validator", add("/Validator/Validator", new boolean [] {true, true, true}));
Iterator<String> iterator = map.getSet().iterator();
while(iterator.hasNext()){
16 years, 6 months
JBoss Rich Faces SVN: r9324 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: msorokin
Date: 2008-07-01 12:02:04 -0400 (Tue, 01 Jul 2008)
New Revision: 9324
Modified:
trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
Log:
http://jira.jboss.com/jira/browse/RF-3820
The info is added to the guide
Modified: trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-07-01 15:36:17 UTC (rev 9323)
+++ trunk/docs/userguide/en/src/main/docbook/included/fileUpload.xml 2008-07-01 16:02:04 UTC (rev 9324)
@@ -514,6 +514,34 @@
</entry>
</row>
+
+ <row>
+ <entry>entry.fileName </entry>
+ <entry>Returns the file's name. This property works with all event handlers except for "onadd".
+ </entry>
+ </row>
+
+
+
+ <row>
+ <entry>entry.size</entry><entry> Returns the size of the file. Available in flash enabled version only</entry>
+ </row>
+ <row>
+ <entry>entry.Type</entry><entry>Returns the mime type of the file. Available in flash enabled version only</entry>
+ </row>
+ <row>
+ <entry>entry.creator </entry><entry>Returns the name of the author of the file . Available in flash enabled version only</entry>
+ </row>
+ <row>
+ <entry>entry.creationDate</entry><entry>Returns the date when the file was created. Available in flash enabled version only</entry>
+ </row>
+ <row>
+ <entry>entry.modificationDate</entry> <entry>Returns the date of the last file modification. Available in flash enabled version only</entry>
+ </row>
+
+
+
+
</tbody>
</tgroup>
</table>
16 years, 6 months