JBoss Rich Faces SVN: r9098 - trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-18 11:21:17 -0400 (Wed, 18 Jun 2008)
New Revision: 9098
Modified:
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
Log:
JS API
Modified: trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-06-18 14:55:09 UTC (rev 9097)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTable.jsp 2008-06-18 15:21:17 UTC (rev 9098)
@@ -56,7 +56,7 @@
<f:facet name="header">
<h:outputText value="facet header"></h:outputText>
</f:facet>
- <rich:column sortExpression="#{sdt.int0}" sortable="true">
+ <rich:column sortExpression="#{sdt.int0}" sortable="true" id="colID">
<f:facet name="header">
<h:outputText value="#" />
</f:facet>
@@ -151,4 +151,22 @@
<h:outputText value="facet footer"></h:outputText>
</f:facet>
</rich:scrollableDataTable>
+ <h:panelGrid columns="1">
+ <h:outputText value="JS API test" style="FONT-WEIGHT: bold;"></h:outputText>
+ <a4j:commandLink onclick="$('formID:scrollableDataTableSubviewID:sdt').component.collapse(colID)" value="collapse('colID')"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:scrollableDataTableSubviewID:sdt').component.expand(colID)" value="expand('colID')"></a4j:commandLink>
+ </h:panelGrid>
+ <f:verbatim>
+ <h:outputText value="Component control+JS API"></h:outputText>
+ <br />
+ <a href="#" id="collapseID">collapseID</a>
+ <br />
+ <a href="#" id="expandID">expandID</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="collapseID" event="onclick" for="sdt" operation="collapse">
+ <f:param value="colID" name="colID"/>
+ </rich:componentControl>
+ <rich:componentControl attachTo="expandID" event="onclick" for="sdt" operation="expand">
+ <f:param value="colID" name="colID"/>
+ </rich:componentControl>
</f:subview>
16 years, 3 months
JBoss Rich Faces SVN: r9097 - trunk/test-applications/jsp/src/main/webapp/ProgressBar.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-18 10:55:09 -0400 (Wed, 18 Jun 2008)
New Revision: 9097
Modified:
trunk/test-applications/jsp/src/main/webapp/ProgressBar/ProgressBar.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/ProgressBar/ProgressBar.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ProgressBar/ProgressBar.jsp 2008-06-18 13:29:58 UTC (rev 9096)
+++ trunk/test-applications/jsp/src/main/webapp/ProgressBar/ProgressBar.jsp 2008-06-18 14:55:09 UTC (rev 9097)
@@ -54,7 +54,22 @@
<a4j:commandLink value="enable"
onclick="$('formID:progressBarSubviewID:progressBarID').component.enable(event);"></a4j:commandLink>
</h:panelGrid>
-
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component control test" style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="setLabelID">setLabel</a>
+ <br />
+ <a href="#" id="setValueID">setValue(0)</a>
+ <br />
+ <a href="#" id="disableID">disable</a>
+ <br />
+ <a href="#" id="enableID">enable</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="setLabelID" event="onclick" for="progressBarID" operation="setLabel" params="{label:setLabel work!}"></rich:componentControl>
+ <rich:componentControl attachTo="setValueID" event="onclick" for="progressBarID" operation="setValue" params="{value:0}"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick" for="progressBarID" operation="disable"></rich:componentControl>
+ <rich:componentControl attachTo="enableID" event="onclick" for="progressBarID" operation="enable"></rich:componentControl>
<h:panelGrid columns="2">
<h:outputText value="first value:" />
<h:outputText value="#{progressBar.value}" />
16 years, 3 months
JBoss Rich Faces SVN: r9096 - trunk/test-applications/jsp/src/main/webapp/PanelMenu.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-18 09:29:58 -0400 (Wed, 18 Jun 2008)
New Revision: 9096
Modified:
trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp
Log:
JS API with component control
Modified: trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp 2008-06-18 13:13:23 UTC (rev 9095)
+++ trunk/test-applications/jsp/src/main/webapp/PanelMenu/PanelMenu.jsp 2008-06-18 13:29:58 UTC (rev 9096)
@@ -54,7 +54,7 @@
</rich:panelMenuItem>
<rich:panelMenuItem label="Action" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
- <rich:panelMenuGroup label="Group 1(expanded=true)" expanded="true">
+ <rich:panelMenuGroup label="Group 1(expanded=true)" expanded="true" id="pmg">
<rich:panelMenuItem label="Item 1" disabled="true"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 1 (action)" onmousedown="alert('OnMouseDown');"></rich:panelMenuItem>
<rich:panelMenuItem label="Item 2"></rich:panelMenuItem>
@@ -185,9 +185,18 @@
</rich:panelMenuGroup>
</rich:panelMenu>
<h:panelGrid columns="1">
-<h:commandLink onclick="$('formID:panelMenuSubviewID:mg2').component.expand();return false;" value="expand"></h:commandLink>
-<h:commandLink onclick="$('formID:panelMenuSubviewID:mg2').component.collapse();return false;" value="collapse"></h:commandLink>
-<a4j:commandLink onclick="PanelMenu.doExpand('formID:panelMenuSubviewID:panelMenuID');return false;" value="doExpand"></a4j:commandLink>
-<a4j:commandLink onclick="PanelMenu.doCollapse('formID:panelMenuSubviewID:panelMenuID');return false;" value="doCollapse"></a4j:commandLink>
+<h:outputText value="JavaScript API" style="FONT-WEIGHT: bold;"></h:outputText>
+<h:commandLink onclick="$('formID:panelMenuSubviewID:pmg').component.expand();return false;" value="expand()"></h:commandLink>
+<h:commandLink onclick="$('formID:panelMenuSubviewID:pmg').component.collapse();return false;" value="collapse()"></h:commandLink>
</h:panelGrid>
-</f:subview>
+<br />
+<f:verbatim>
+<h:outputText value="Component Control test" style="FONT-WEIGHT: bold;"></h:outputText>
+<br />
+<a href="#" id="expandID">expand</a>
+<br />
+<a href="#" id="collapseID">collapse</a>
+</f:verbatim>
+<rich:componentControl attachTo="expandID" event="onclick" for="pmg" operation="expand"></rich:componentControl>
+<rich:componentControl attachTo="collapseID" event="onclick" for="pmg" operation="collapse"></rich:componentControl>
+</f:subview>
\ No newline at end of file
16 years, 3 months
JBoss Rich Faces SVN: r9095 - trunk/test-applications/jsp/src/main/webapp/ModalPanel.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-18 09:13:23 -0400 (Wed, 18 Jun 2008)
New Revision: 9095
Modified:
trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
Log:
show & hide JS API with rich:componentControl
Modified: trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-06-18 11:29:15 UTC (rev 9094)
+++ trunk/test-applications/jsp/src/main/webapp/ModalPanel/ModalPanel.jsp 2008-06-18 13:13:23 UTC (rev 9095)
@@ -2,6 +2,12 @@
<%@ 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"%>
+<style>
+.rich-mpnl-mask-div{
+ background-color:#fae6b0;
+}
+</style>
+
<!-- %@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%-->
<f:subview id="modalPanelSubviewID">
@@ -32,7 +38,7 @@
onmaskmouseout="#{event.onmaskmouseout}"
onmaskmouseover="#{event.onmaskmouseover}"
onmaskmouseup="#{event.onmaskmouseup}" onmove="#{event.onmove}"
- onresize="#{event.onresize}" onshow="#{event.onshow}"
+ onresize="#{event.onresize}" onshow="#{event.onshow}"
>
<f:facet name="header">
<h:outputText value="Heder goes here..." />
@@ -190,13 +196,25 @@
<br />
</f:verbatim>
- <h:graphicImage value="/pics/info.gif"
- onclick="Richfaces.showModalPanel('_panel');" />
+ <h:graphicImage value="/pics/info.gif">
+ <rich:componentControl event="onclick" for="_panel" operation="show"></rich:componentControl>
+ </h:graphicImage>
+ <br/>
+ <br/>
+ <h:graphicImage value="/pics/warn.gif">
+ <
+ </h:graphicImage>
<f:verbatim>
<br />
<br />
</f:verbatim>
- <div
- style="position: relative; font-size: 50px; z-index: 2; color: navy">z-index</div>
+ <div id="idDiv1" style="position: relative; font-size: 50px; z-index: 2; color: navy">
+ z-index1
+ <rich:componentControl attachTo="idDiv1" event="onclick" for="modalPanelID" operation="show"></rich:componentControl>
+ </div>
<br/>
+ <div id="idDiv2" style="position: relative; font-size: 50px; z-index: 2; color: navy">
+ z-index2
+ <rich:componentControl attachTo="idDiv2" event="onclick" for="modalPanelID" operation="hide"></rich:componentControl>
+ </div>
</f:subview>
16 years, 3 months
JBoss Rich Faces SVN: r9094 - trunk/test-applications/jsp/src/main/webapp/OrderingList.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-18 07:29:15 -0400 (Wed, 18 Jun 2008)
New Revision: 9094
Modified:
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-18 11:19:45 UTC (rev 9093)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-18 11:29:15 UTC (rev 9094)
@@ -131,17 +131,17 @@
<a href="#" id="getSelectionID">getSelection()</a>
<a href="#" id="getItemsID">getItems()</a>
</f:verbatim>
- <rich:componentControl attachTo="hideID" event="onclick" for="orderingListID" operation="hide()"></rich:componentControl>
- <rich:componentControl attachTo="showID" event="onclick" for="orderingListID" operation="show()"></rich:componentControl>
- <rich:componentControl attachTo="isShownID" event="onclick" for="orderingListID" operation="alert(isShown())"></rich:componentControl>
- <rich:componentControl attachTo="enableID" event="onclick" for="orderingListID" operation="enable()"></rich:componentControl>
- <rich:componentControl attachTo="disableID" event="onclick" for="orderingListID" operation="disable()"></rich:componentControl>
- <rich:componentControl attachTo="isEnabledID" event="onclick" for="orderingListID" operation="isEnabled()"></rich:componentControl>
- <rich:componentControl attachTo="upID" event="onclick" for="orderingListID" operation="up()"></rich:componentControl>
- <rich:componentControl attachTo="downID" event="onclick" for="orderingListID" operation="down()"></rich:componentControl>
- <rich:componentControl attachTo="topID" event="onclick" for="orderingListID" operation="top()"></rich:componentControl>
- <rich:componentControl attachTo="bottomID" event="onclick" for="orderingListID" operation="bottom()"></rich:componentControl>
- <rich:componentControl attachTo="getSelectionID" event="onclick" for="orderingListID" operation="alert(getSelection())"></rich:componentControl>
- <rich:componentControl attachTo="getItemsID" event="onclick" for="orderingListID" operation="alert(getItems())"></rich:componentControl>
+ <rich:componentControl attachTo="hideID" event="onclick" for="orderingListID" operation="hide"></rich:componentControl>
+ <rich:componentControl attachTo="showID" event="onclick" for="orderingListID" operation="show"></rich:componentControl>
+ <rich:componentControl attachTo="isShownID" event="onclick" for="orderingListID" operation="alert(isShown)"></rich:componentControl>
+ <rich:componentControl attachTo="enableID" event="onclick" for="orderingListID" operation="enable"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick" for="orderingListID" operation="disable"></rich:componentControl>
+ <rich:componentControl attachTo="isEnabledID" event="onclick" for="orderingListID" operation="isEnabled"></rich:componentControl>
+ <rich:componentControl attachTo="upID" event="onclick" for="orderingListID" operation="up"></rich:componentControl>
+ <rich:componentControl attachTo="downID" event="onclick" for="orderingListID" operation="down"></rich:componentControl>
+ <rich:componentControl attachTo="topID" event="onclick" for="orderingListID" operation="top"></rich:componentControl>
+ <rich:componentControl attachTo="bottomID" event="onclick" for="orderingListID" operation="bottom"></rich:componentControl>
+ <rich:componentControl attachTo="getSelectionID" event="onclick" for="orderingListID" operation="alert(getSelection)"></rich:componentControl>
+ <rich:componentControl attachTo="getItemsID" event="onclick" for="orderingListID" operation="alert(getItems)"></rich:componentControl>
</f:subview>
\ No newline at end of file
16 years, 3 months
JBoss Rich Faces SVN: r9093 - trunk/test-applications/jsp/src/main/webapp/OrderingList.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-18 07:19:45 -0400 (Wed, 18 Jun 2008)
New Revision: 9093
Modified:
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-18 11:17:05 UTC (rev 9092)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-18 11:19:45 UTC (rev 9093)
@@ -101,7 +101,7 @@
<h:column></h:column>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.hide()" value="hide()"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.show()" value="show()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.isShown()" value="isShown()"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.isShown())" value="isShown()"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.ebnable()" value="ebnable()"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.disable()" value="disable()"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()" value="isEnabled()"></a4j:commandLink>
@@ -133,7 +133,7 @@
</f:verbatim>
<rich:componentControl attachTo="hideID" event="onclick" for="orderingListID" operation="hide()"></rich:componentControl>
<rich:componentControl attachTo="showID" event="onclick" for="orderingListID" operation="show()"></rich:componentControl>
- <rich:componentControl attachTo="isShownID" event="onclick" for="orderingListID" operation="isShown()"></rich:componentControl>
+ <rich:componentControl attachTo="isShownID" event="onclick" for="orderingListID" operation="alert(isShown())"></rich:componentControl>
<rich:componentControl attachTo="enableID" event="onclick" for="orderingListID" operation="enable()"></rich:componentControl>
<rich:componentControl attachTo="disableID" event="onclick" for="orderingListID" operation="disable()"></rich:componentControl>
<rich:componentControl attachTo="isEnabledID" event="onclick" for="orderingListID" operation="isEnabled()"></rich:componentControl>
16 years, 3 months
JBoss Rich Faces SVN: r9092 - trunk/test-applications/jsp/src/main/webapp/OrderingList.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-18 07:17:05 -0400 (Wed, 18 Jun 2008)
New Revision: 9092
Modified:
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-18 10:07:52 UTC (rev 9091)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-18 11:17:05 UTC (rev 9092)
@@ -97,7 +97,7 @@
</rich:orderingList>
<h:panelGrid columns="3">
<h:column></h:column>
- <h:outputText value="JavaScript API"></h:outputText>
+ <h:outputText value="JavaScript API" style="FONT-WEIGHT: bold;"></h:outputText>
<h:column></h:column>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.hide()" value="hide()"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.show()" value="show()"></a4j:commandLink>
@@ -105,15 +105,43 @@
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.ebnable()" value="ebnable()"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.disable()" value="disable()"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()" value="isEnabled()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Up()" value="Up()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp()" value="moveUp()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Down()" value="Down()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown()" value="moveDown()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Top()" value="Top()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop()" value="moveTop()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Bottom()" value="Bottom()"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom()" value="moveBottom()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.up()" value="up()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp()" value="moveUp()-old"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.down()" value="down()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown()" value="moveDown()-old"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.top()" value="top()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop()" value="moveTop()-old"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.bottom()" value="bottom()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom()" value="moveBottom()-old"></a4j:commandLink>
<a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.getSelection())" value="getSelection()"></a4j:commandLink>
<a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.getItems())" value="getItems()"></a4j:commandLink>
</h:panelGrid>
+ <f:verbatim>
+ <h:outputText value="Component Control test" style="FONT-WEIGHT: bold;"></h:outputText>
+ <a href="#" id="hideID">hide()</a>
+ <a href="#" id="showID">show()</a>
+ <a href="#" id="isShownID">isShown()</a>
+ <a href="#" id="enableID">enable()</a>
+ <a href="#" id="disableID">disable()</a>
+ <a href="#" id="isEnabledID">isEnabled()</a>
+ <a href="#" id="upID">up()</a>
+ <a href="#" id="downID">down()</a>
+ <a href="#" id="topID">top()</a>
+ <a href="#" id="bottomID">bottom()</a>
+ <a href="#" id="getSelectionID">getSelection()</a>
+ <a href="#" id="getItemsID">getItems()</a>
+ </f:verbatim>
+ <rich:componentControl attachTo="hideID" event="onclick" for="orderingListID" operation="hide()"></rich:componentControl>
+ <rich:componentControl attachTo="showID" event="onclick" for="orderingListID" operation="show()"></rich:componentControl>
+ <rich:componentControl attachTo="isShownID" event="onclick" for="orderingListID" operation="isShown()"></rich:componentControl>
+ <rich:componentControl attachTo="enableID" event="onclick" for="orderingListID" operation="enable()"></rich:componentControl>
+ <rich:componentControl attachTo="disableID" event="onclick" for="orderingListID" operation="disable()"></rich:componentControl>
+ <rich:componentControl attachTo="isEnabledID" event="onclick" for="orderingListID" operation="isEnabled()"></rich:componentControl>
+ <rich:componentControl attachTo="upID" event="onclick" for="orderingListID" operation="up()"></rich:componentControl>
+ <rich:componentControl attachTo="downID" event="onclick" for="orderingListID" operation="down()"></rich:componentControl>
+ <rich:componentControl attachTo="topID" event="onclick" for="orderingListID" operation="top()"></rich:componentControl>
+ <rich:componentControl attachTo="bottomID" event="onclick" for="orderingListID" operation="bottom()"></rich:componentControl>
+ <rich:componentControl attachTo="getSelectionID" event="onclick" for="orderingListID" operation="alert(getSelection())"></rich:componentControl>
+ <rich:componentControl attachTo="getItemsID" event="onclick" for="orderingListID" operation="alert(getItems())"></rich:componentControl>
+
</f:subview>
\ No newline at end of file
16 years, 3 months
JBoss Rich Faces SVN: r9091 - trunk/test-applications/jsp/src/main/webapp/OrderingList.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-06-18 06:07:52 -0400 (Wed, 18 Jun 2008)
New Revision: 9091
Modified:
trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
Log:
new JS API
Modified: trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-18 09:17:14 UTC (rev 9090)
+++ trunk/test-applications/jsp/src/main/webapp/OrderingList/OrderingList.jsp 2008-06-18 10:07:52 UTC (rev 9091)
@@ -99,17 +99,21 @@
<h:column></h:column>
<h:outputText value="JavaScript API"></h:outputText>
<h:column></h:column>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.doHide()" value="Hide"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.doShow()" value="Show"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.isShown)" value="isShown"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Enable()" value="Enable"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Disable()" value="Disable"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()" value="isEnabled"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp" value="moveUp"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown" value="moveDown"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop" value="moveTop"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom" value="moveBottom"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.getSelection" value="getSelection"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.getItems" value="getItems"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.hide()" value="hide()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.show()" value="show()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.isShown()" value="isShown()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.ebnable()" value="ebnable()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.disable()" value="disable()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.isEnabled()" value="isEnabled()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Up()" value="Up()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveUp()" value="moveUp()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Down()" value="Down()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveDown()" value="moveDown()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Top()" value="Top()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveTop()" value="moveTop()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.Bottom()" value="Bottom()"></a4j:commandLink>
+ <a4j:commandLink onclick="$('formID:orderingListSubviewID:orderingListID').component.moveBottom()" value="moveBottom()"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.getSelection())" value="getSelection()"></a4j:commandLink>
+ <a4j:commandLink onclick="alert($('formID:orderingListSubviewID:orderingListID').component.getItems())" value="getItems()"></a4j:commandLink>
</h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 3 months
JBoss Rich Faces SVN: r9090 - trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-06-18 05:17:14 -0400 (Wed, 18 Jun 2008)
New Revision: 9090
Modified:
trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
Log:
correct grammatical mistake in error message
Modified: trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java
===================================================================
--- trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-06-18 08:14:16 UTC (rev 9089)
+++ trunk/ui/fileUpload/src/main/java/org/richfaces/renderkit/FileUploadRendererBase.java 2008-06-18 09:17:14 UTC (rev 9090)
@@ -70,7 +70,7 @@
/** Default labels values */
private static final String[] defaultLables = { "Add...", "<b>Upload</b>",
"<b>Stop</b>", "Clear All", "Cancel", "Clear", "Stop",
- "<b>Done</b>", "File size restricted", "Transfer error occuried","uploading"};
+ "<b>Done</b>", "File size restricted", "Transfer error occurred","uploading"};
/** Set of attributes that can define label's value */
private static final String[] labelAttribues = { "addControlLabel",
16 years, 3 months
JBoss Rich Faces SVN: r9089 - in trunk/test-applications/jsp/src/main: webapp/InplaceSelect and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: adubovsky
Date: 2008-06-18 04:14:16 -0400 (Wed, 18 Jun 2008)
New Revision: 9089
Added:
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
Modified:
trunk/test-applications/jsp/src/main/java/rich/RichBean.java
trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
Log:
Separate InplaceSelect.jsp on 2 files
Modified: trunk/test-applications/jsp/src/main/java/rich/RichBean.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-18 07:56:57 UTC (rev 9088)
+++ trunk/test-applications/jsp/src/main/java/rich/RichBean.java 2008-06-18 08:14:16 UTC (rev 9089)
@@ -66,7 +66,7 @@
map.add("ProgressBar", add("/ProgressBar/ProgressBar", new boolean [] {false, false, false}));
map.add("SortingAndFiltering", add("/SortingAndFiltering/SortingAndFiltering", new boolean [] {false, false, false}));
map.add("FileUpload", add("/FileUpload/FileUpload", new boolean [] {false, false, false}));
- map.add("InplaceSelect", add("/InplaceSelect/InplaceSelect", new boolean [] {false, false, false}));
+ map.add("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}));
Iterator<String> iterator = map.getSet().iterator();
Modified: trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-06-18 07:56:57 UTC (rev 9088)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelect.jsp 2008-06-18 08:14:16 UTC (rev 9089)
@@ -28,7 +28,7 @@
binding="#{inplaceSelect.myInplaceSelect}"
required="#{inplaceSelect.required}"
requiredMessage="#{inplaceSelect.requiredMessage}"
-
+ valueChangeListener="#{inplaceSelect.valueChangeListener}"
onblur="#{event.onblur}"
onchange="#{event.onchange}"
onclick="#{event.onclick}"
@@ -59,134 +59,21 @@
onselect="#{event.onselect}"
onviewactivated="#{event.onviewactivated}"
onviewactivation="#{event.onviewactivation}"
- layout="#{inplaceSelect.layout}">
+ layout="#{inplaceSelect.layout}"
+ value="#{inplaceSelect.value}" >
+
<f:selectItem itemLabel="errors" itemValue="errors" />
<f:selectItem itemLabel="fatals" itemValue="fatals" />
<f:selectItem itemLabel="infos" itemValue="infos" />
<f:selectItem itemLabel="passeds" itemValue="passeds" />
<f:selectItem itemLabel="warns" itemValue="warns" />
- <f:selectItem itemLabel="warnswarnswarnswarns" itemValue="warnswarnswarnswarns" />
</rich:inplaceSelect>
are easy to exploit.
+
<h:panelGrid columns="2">
- <a4j:commandButton value="refresh" reRender="inplaceSelectValueCLID"></a4j:commandButton>
+ <a4j:commandButton value="refresh" reRender="inplaceSelectValueCLID, inplaceSelectID"></a4j:commandButton>
<h:outputText id="inplaceSelectValueCLID"
value="#{inplaceSelect.valueCL}"></h:outputText>
</h:panelGrid>
- <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>
-
- <h:outputText value="editEvent"></h:outputText>
- <h:inputText value="#{inplaceSelect.editEvent}" onchange="submit();"></h:inputText>
-
- <h:outputText value="selectWidth"></h:outputText>
- <h:inputText value="#{inplaceSelect.selectWidth}" onchange="submit();"></h:inputText>
-
- <h:outputText value="maxSelectWidth"></h:outputText>
- <h:inputText value="#{inplaceSelect.maxSelectWidth}"
- onchange="submit();"></h:inputText>
-
- <h:outputText value="minSelectWidth"></h:outputText>
- <h:inputText value="#{inplaceSelect.minSelectWidth}"
- onchange="submit();"></h:inputText>
-
- <h:outputText value="listWidth"></h:outputText>
- <h:inputText value="#{inplaceSelect.listWidth}" onchange="submit();"></h:inputText>
-
- <h:outputText value="listHeight"></h:outputText>
- <h:inputText value="#{inplaceSelect.listHeight}" onchange="submit();"></h:inputText>
-
- <h:outputText value="controlsVerticalPosition"></h:outputText>
- <h:selectOneRadio value="#{inplaceSelect.controlsVerticalPosition}"
- onchange="submit();">
- <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>
- <h:selectOneRadio value="#{inplaceSelect.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="tabindex"></h:outputText>
- <h:inputText value="#{inplaceSelect.tabindex}" onchange="submit();"></h:inputText>
-
- <h:outputText value="showControls"></h:outputText>
- <h:selectBooleanCheckbox value="#{inplaceSelect.showControls}"
- onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="applyFromControlsOnly"></h:outputText>
- <h:selectBooleanCheckbox
- value="#{inplaceSelect.applyFromControlsOnly}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <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: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>
-
- <h:outputText value="requiredMessage"></h:outputText>
- <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>
-
- <br />
- <f:verbatim>
- <h:outputText value="Component Control test"
- style="FONT-WEIGHT: bold;"></h:outputText>
- <br />
- <a href="#" id="editID">edit()</a>
- <br />
- <a href="#" id="saveID">save()</a>
- <br />
- <a href="#" id="cancelID">cancel()</a>
- <br />
- <a href="#" id="getValueID">getValue()</a>
- <br />
- <a href="#" id="setValueID">setValue('newValue')</a>
- </f:verbatim>
-
- <rich:componentControl attachTo="editID" event="onclick"
- for="inplaceSelectID" operation="edit" ></rich:componentControl>
- <rich:componentControl attachTo="saveID" event="onclick"
- for="inplaceSelectID" operation="save"></rich:componentControl>
- <rich:componentControl attachTo="cancelID" event="onclick"
- for="inplaceSelectID" operation="cancel"></rich:componentControl>
- <rich:componentControl attachTo="getValueID" event="onclick"
- for="inplaceSelectID" operation="getValue"></rich:componentControl>
- <rich:componentControl attachTo="setValueID" event="onclick"
- for="inplaceSelectID" operation="setValue('newValue')"></rich:componentControl>
-
</f:subview>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp (rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/InplaceSelect/InplaceSelectProperty.jsp 2008-06-18 08:14:16 UTC (rev 9089)
@@ -0,0 +1,123 @@
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="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>
+
+ <h:outputText value="editEvent"></h:outputText>
+ <h:inputText value="#{inplaceSelect.editEvent}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="selectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.selectWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="maxSelectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.maxSelectWidth}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="minSelectWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.minSelectWidth}"
+ onchange="submit();"></h:inputText>
+
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{inplaceSelect.listWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{inplaceSelect.listHeight}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="controlsVerticalPosition"></h:outputText>
+ <h:selectOneRadio value="#{inplaceSelect.controlsVerticalPosition}"
+ onchange="submit();">
+ <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>
+ <h:selectOneRadio value="#{inplaceSelect.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="tabindex"></h:outputText>
+ <h:inputText value="#{inplaceSelect.tabindex}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="showControls"></h:outputText>
+ <h:selectBooleanCheckbox value="#{inplaceSelect.showControls}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="applyFromControlsOnly"></h:outputText>
+ <h:selectBooleanCheckbox
+ value="#{inplaceSelect.applyFromControlsOnly}" onchange="submit();"></h:selectBooleanCheckbox>
+
+ <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: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>
+
+ <h:outputText value="requiredMessage"></h:outputText>
+ <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>
+
+ <br />
+ <f:verbatim>
+ <h:outputText value="Component Control test"
+ style="FONT-WEIGHT: bold;"></h:outputText>
+ <br />
+ <a href="#" id="editID">edit()</a>
+ <br />
+ <a href="#" id="saveID">save()</a>
+ <br />
+ <a href="#" id="cancelID">cancel()</a>
+ <br />
+ <a href="#" id="getValueID">getValue()</a>
+ <br />
+ <a href="#" id="setValueID">setValue('newValue')</a>
+ </f:verbatim>
+
+ <rich:componentControl attachTo="editID" event="onclick"
+ for="inplaceSelectID" operation="edit" ></rich:componentControl>
+ <rich:componentControl attachTo="saveID" event="onclick"
+ for="inplaceSelectID" operation="save"></rich:componentControl>
+ <rich:componentControl attachTo="cancelID" event="onclick"
+ for="inplaceSelectID" operation="cancel"></rich:componentControl>
+ <rich:componentControl attachTo="getValueID" event="onclick"
+ for="inplaceSelectID" operation="getValue"></rich:componentControl>
+ <rich:componentControl attachTo="setValueID" event="onclick"
+ for="inplaceSelectID" operation="setValue('newValue')"></rich:componentControl>
+
+</f:subview>
\ No newline at end of file
16 years, 3 months