JBoss Rich Faces SVN: r9373 - trunk/test-applications/facelets/src/main/webapp/DataTable.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:17:39 -0400 (Wed, 02 Jul 2008)
New Revision: 9373
Modified:
trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml
Log:
Modified: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml 2008-07-02 12:14:23 UTC (rev 9372)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTable.xhtml 2008-07-02 12:17:39 UTC (rev 9373)
@@ -81,7 +81,7 @@
var="cell" binding="#{testBean.myDataGrid}" border="12px" dir="RTL"
elements="#{testBean.elements}">
<h:outputLabel value="Value:" for="field" />
- <h:inputText id="field" value="#{cell.value}" required="true"/>
+ <h:inputText id="field" value="#{cell.value}"/>
</rich:dataGrid>
</h:column>
</h:dataTable>
16 years, 6 months
JBoss Rich Faces SVN: r9372 - trunk/test-applications/facelets/src/main/webapp/DataTable.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:14:23 -0400 (Wed, 02 Jul 2008)
New Revision: 9372
Modified:
trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml 2008-07-02 12:13:07 UTC (rev 9371)
+++ trunk/test-applications/facelets/src/main/webapp/DataTable/DataTableProperty.xhtml 2008-07-02 12:14:23 UTC (rev 9372)
@@ -1,39 +1,57 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="dataTablePropertySubviewID">
- <h:panelGrid columns="2" style="top">
- <h:outputText value="Align:"></h:outputText>
- <h:selectOneMenu value="#{dataTable.align}">
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right " itemValue="right" />
- <a4j:support event="onclick" reRender="dataTableID"></a4j:support>
- </h:selectOneMenu>
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich" id="dataTablePropertySubviewID">
+ <h:panelGrid columns="2" style="top">
+ <h:outputText value="Align:"></h:outputText>
+ <h:selectOneMenu value="#{dataTable.align}">
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right " itemValue="right" />
+ <a4j:support event="onclick" reRender="dataTableID"></a4j:support>
+ </h:selectOneMenu>
- <h:outputText value="Border: "></h:outputText>
- <h:inputText value="#{dataTable.border}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
+ <h:outputText value="Border: "></h:outputText>
+ <h:inputText value="#{dataTable.border}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
- <h:outputText value="Columns Width: "></h:outputText>
- <h:inputText value="#{dataTable.columnsWidth}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
+ <h:outputText value="Columns Width: "></h:outputText>
+ <h:inputText value="#{dataTable.columnsWidth}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
- <h:outputText value="Width: "></h:outputText>
- <h:inputText value="#{dataTable.width}">
- <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
- </h:inputText>
+ <h:outputText value="Width: "></h:outputText>
+ <h:inputText value="#{dataTable.width}">
+ <a4j:support event="onchange" reRender="dataTableID"></a4j:support>
+ </h:inputText>
- <h:outputText value="rendered:" />
- <h:selectBooleanCheckbox value="#{dataTable.rendered}" onclick="submit();" />
+ <h:outputText value="rendered:" />
+ <h:selectBooleanCheckbox value="#{dataTable.rendered}"
+ onclick="submit();" />
- <h:outputText value=" row 2 rendered" />
- <h:selectBooleanCheckbox value="#{dataTable.r2rendered}" onclick="submit();" />
-
- <h:commandButton actionListener="#{testBean.checkBinding}" value="DG_binding"></h:commandButton>
- <h:outputText value="#{testBean.bindLabel}"></h:outputText>
-
- <h:outputText value="elements:"></h:outputText>
- <h:outputText value="#{testBean.elements}"></h:outputText>
- </h:panelGrid>
+ <h:outputText value=" row 2 rendered" />
+ <h:selectBooleanCheckbox value="#{dataTable.r2rendered}"
+ onclick="submit();" />
+
+ <h:commandButton actionListener="#{testBean.checkBinding}"
+ value="DG_binding"></h:commandButton>
+ <h:outputText value="#{testBean.bindLabel}"></h:outputText>
+
+ <h:outputText value="elements:"></h:outputText>
+ <h:outputText value="#{testBean.elements}"></h:outputText>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRowCount" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('dataTableID').rowCount}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9371 - trunk/test-applications/facelets/src/main/webapp/DataScroller.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:13:07 -0400 (Wed, 02 Jul 2008)
New Revision: 9371
Modified:
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2008-07-02 12:11:02 UTC (rev 9370)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScroller.xhtml 2008-07-02 12:13:07 UTC (rev 9371)
@@ -17,7 +17,7 @@
onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
onmousedown="#{event.onmousedown}"
onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
- onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}">
+ onmouseover="#{event.onmouseover}" onmouseup="#{event.onmouseup}" id="dsID">
</rich:datascroller>
</f:facet>
<rich:column sortBy="#{dT.data0}" filterBy="#{dT.data0}" filterEvent="onchange"
Modified: trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml 2008-07-02 12:11:02 UTC (rev 9370)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DataScrollerProperty.xhtml 2008-07-02 12:13:07 UTC (rev 9371)
@@ -1,62 +1,78 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="datascrollerPropertySubviewID">
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="datascrollerPropertySubviewID">
- <h:commandButton action="#{dataScroller.CutArray}" value="CutArray" />
- <h:commandButton action="#{dataScroller.RestoreArray}"
- value="RestoreArray" />
+ <h:commandButton action="#{dataScroller.CutArray}" value="CutArray" />
+ <h:commandButton action="#{dataScroller.RestoreArray}"
+ value="RestoreArray" />
- <h:panelGrid columns="2">
- <h:outputText value="maxPages" />
- <h:inputText value="#{dataScroller.maxPages}">
- <a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
- </h:inputText>
+ <h:panelGrid columns="2">
+ <h:outputText value="maxPages" />
+ <h:inputText value="#{dataScroller.maxPages}">
+ <a4j:support event="onchange" reRender="dataScrollerID"></a4j:support>
+ </h:inputText>
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dataScroller.render}"
- onclick="submit();" />
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.render}"
+ onclick="submit();" />
- <h:outputText value="renderIfSinglePage:" />
- <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
- onclick="submit();" />
+ <h:outputText value="renderIfSinglePage:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.renderIfSinglePage}"
+ onclick="submit();" />
- <h:outputText value="limitToList:" />
- <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
- onclick="submit();" />
+ <h:outputText value="limitToList:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
+ onclick="submit();" />
- <h:outputText value="fastControls" />
- <h:selectOneRadio value="#{dataScroller.fastControls}">
- <f:selectItem itemLabel="auto" itemValue="auto" />
- <f:selectItem itemLabel="show" itemValue="show" />
- <f:selectItem itemLabel="hide" itemValue="hide" />
- <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="fastControls" />
+ <h:selectOneRadio value="#{dataScroller.fastControls}">
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ <f:selectItem itemLabel="show" itemValue="show" />
+ <f:selectItem itemLabel="hide" itemValue="hide" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="align" />
- <h:selectOneRadio value="#{dataScroller.align}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="sortMode"></h:outputText>
- <h:selectOneRadio value="#{dataScroller.sortMode}">
- <f:selectItem itemLabel="single" itemValue="single"/>
- <f:selectItem itemLabel="multi" itemValue="multi"/>
- <a4j:support event="onchange" reRender="dataTableId,dsID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="sortOrder"></h:outputText>
- <h:selectOneRadio value="#{dataScroller.currentSortOrder}">
- <f:selectItem itemLabel="ASCENDING" itemValue="ASCENDING"/>
- <f:selectItem itemLabel="DESCENDING" itemValue="DESCENDING"/>
- <f:selectItem itemLabel="UNSORTED" itemValue="UNSORTED"/>
- <a4j:support event="onchange" reRender="dataTableId,dsID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="selfSorted(1st)"></h:outputText>
- <h:selectBooleanCheckbox value="#{dataScroller.selfSorted}">
- <a4j:support event="onchange" reRender="dataTableId,dsID"></a4j:support>
- </h:selectBooleanCheckbox>
- </h:panelGrid>
+ <h:outputText value="align" />
+ <h:selectOneRadio value="#{dataScroller.align}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <a4j:support event="onclick" reRender="dataTableId"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="sortMode"></h:outputText>
+ <h:selectOneRadio value="#{dataScroller.sortMode}">
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="multi" itemValue="multi" />
+ <a4j:support event="onchange" reRender="dataTableId,dsID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="sortOrder"></h:outputText>
+ <h:selectOneRadio value="#{dataScroller.currentSortOrder}">
+ <f:selectItem itemLabel="ASCENDING" itemValue="ASCENDING" />
+ <f:selectItem itemLabel="DESCENDING" itemValue="DESCENDING" />
+ <f:selectItem itemLabel="UNSORTED" itemValue="UNSORTED" />
+ <a4j:support event="onchange" reRender="dataTableId,dsID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="selfSorted(1st)"></h:outputText>
+ <h:selectBooleanCheckbox value="#{dataScroller.selfSorted}">
+ <a4j:support event="onchange" reRender="dataTableId,dsID"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getPage" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column>
+ <h:outputText id="findID" value="#{rich:findComponent('dsID').page}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9370 - trunk/test-applications/facelets/src/main/webapp/DataOrderedList.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:11:02 -0400 (Wed, 02 Jul 2008)
New Revision: 9370
Modified:
trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2008-07-02 12:09:19 UTC (rev 9369)
+++ trunk/test-applications/facelets/src/main/webapp/DataOrderedList/DataOrderedListProperty.xhtml 2008-07-02 12:11:02 UTC (rev 9370)
@@ -1,45 +1,63 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="dataOrderedListPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="title" />
- <h:inputText value="#{dataOrderedList.title}" >
- <a4j:support event="onchange" reRender="doListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="first" />
- <h:inputText value="#{dataOrderedList.first}" >
- <a4j:support event="onchange" reRender="doListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="rows" />
- <h:inputText value="#{dataOrderedList.rows}" >
- <a4j:support event="onchange" reRender="doListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="dir" />
- <h:selectOneRadio value="#{dataOrderedList.dir}">
- <f:selectItem itemValue="LTR" itemLabel="LTR"/>
- <f:selectItem itemValue="RTL" itemLabel="RTL"/>
- <a4j:support event="onchange" reRender="doListID"></a4j:support>
- </h:selectOneRadio>
-
- <h:outputText value="type" />
- <h:selectOneMenu value="#{dataOrderedList.type}">
- <f:selectItem itemValue="1" itemLabel="1"/>
- <f:selectItem itemValue="A" itemLabel="A"/>
- <f:selectItem itemValue="a" itemLabel="a"/>
- <f:selectItem itemValue="I" itemLabel="I"/>
- <f:selectItem itemValue="i" itemLabel="i"/>
- <f:selectItem itemValue="disc" itemLabel="disc"/>
- <f:selectItem itemValue="circle" itemLabel="circle"/>
- <f:selectItem itemValue="square" itemLabel="square"/>
- <a4j:support event="onchange" reRender="doListID"></a4j:support>
- </h:selectOneMenu>
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="dataOrderedListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataOrderedList.title}">
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
- <h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{dataOrderedList.rendered}" onchange="submit();"/>
-
- <h:commandButton actionListener="#{dataOrderedList.checkBinding}" value="Binding"></h:commandButton>
- <h:outputText value="#{dataOrderedList.bindLabel}"></h:outputText>
- </h:panelGrid>
+ <h:outputText value="first" />
+ <h:inputText value="#{dataOrderedList.first}">
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataOrderedList.rows}">
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataOrderedList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR" />
+ <f:selectItem itemValue="RTL" itemLabel="RTL" />
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="type" />
+ <h:selectOneMenu value="#{dataOrderedList.type}">
+ <f:selectItem itemValue="1" itemLabel="1" />
+ <f:selectItem itemValue="A" itemLabel="A" />
+ <f:selectItem itemValue="a" itemLabel="a" />
+ <f:selectItem itemValue="I" itemLabel="I" />
+ <f:selectItem itemValue="i" itemLabel="i" />
+ <f:selectItem itemValue="disc" itemLabel="disc" />
+ <f:selectItem itemValue="circle" itemLabel="circle" />
+ <f:selectItem itemValue="square" itemLabel="square" />
+ <a4j:support event="onchange" reRender="doListID"></a4j:support>
+ </h:selectOneMenu>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataOrderedList.rendered}"
+ onchange="submit();" />
+
+ <h:commandButton actionListener="#{dataOrderedList.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{dataOrderedList.bindLabel}"></h:outputText>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRowCount" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('doListID').rowCount}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9369 - trunk/test-applications/facelets/src/main/webapp/DataFilterSlider.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:09:19 -0400 (Wed, 02 Jul 2008)
New Revision: 9369
Modified:
trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml 2008-07-02 12:04:42 UTC (rev 9368)
+++ trunk/test-applications/facelets/src/main/webapp/DataFilterSlider/DataFilterSliderProperty.xhtml 2008-07-02 12:09:19 UTC (rev 9369)
@@ -1,9 +1,25 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="dataFilterSliderPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{dfs.rendered}" >
- <a4j:support event="onclick" reRender="p1"></a4j:support>
- </h:selectBooleanCheckbox>
- </h:panelGrid>
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="dataFilterSliderPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{dfs.rendered}">
+ <a4j:support event="onclick" reRender="p1"></a4j:support>
+ </h:selectBooleanCheckbox>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getEndRange" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('dfsID').endRange}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9368 - trunk/test-applications/facelets/src/main/webapp/DataDefinitionList.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:04:42 -0400 (Wed, 02 Jul 2008)
New Revision: 9368
Modified:
trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-07-02 12:03:21 UTC (rev 9367)
+++ trunk/test-applications/facelets/src/main/webapp/DataDefinitionList/DataDefinitionListProperty.xhtml 2008-07-02 12:04:42 UTC (rev 9368)
@@ -1,32 +1,50 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="dataDefinitionListPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="title" />
- <h:inputText value="#{dataDefinitionList.title}" >
- <a4j:support event="onchange" reRender="ddListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="first" />
- <h:inputText value="#{dataDefinitionList.first}" >
- <a4j:support event="onchange" reRender="ddListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="rows" />
- <h:inputText value="#{dataDefinitionList.rows}" >
- <a4j:support event="onchange" reRender="ddListID"></a4j:support>
- </h:inputText>
-
- <h:outputText value="dir" />
- <h:selectOneRadio value="#{dataDefinitionList.dir}">
- <f:selectItem itemValue="LTR" itemLabel="LTR"/>
- <f:selectItem itemValue="RTL" itemLabel="RTL"/>
- <a4j:support event="onchange" reRender="ddListID"></a4j:support>
- </h:selectOneRadio>
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="dataDefinitionListPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="title" />
+ <h:inputText value="#{dataDefinitionList.title}">
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
- <h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}" onchange="submit();" />
-
- <h:commandButton actionListener="#{dataDefinitionList.checkBinding}" value="Binding"></h:commandButton>
- <h:outputText value="#{dataDefinitionList.bindLabel}"></h:outputText>
- </h:panelGrid>
+ <h:outputText value="first" />
+ <h:inputText value="#{dataDefinitionList.first}">
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="rows" />
+ <h:inputText value="#{dataDefinitionList.rows}">
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:inputText>
+
+ <h:outputText value="dir" />
+ <h:selectOneRadio value="#{dataDefinitionList.dir}">
+ <f:selectItem itemValue="LTR" itemLabel="LTR" />
+ <f:selectItem itemValue="RTL" itemLabel="RTL" />
+ <a4j:support event="onchange" reRender="ddListID"></a4j:support>
+ </h:selectOneRadio>
+
+ <h:outputText value="rendered" />
+ <h:selectBooleanCheckbox value="#{dataDefinitionList.rendered}"
+ onchange="submit();" />
+
+ <h:commandButton actionListener="#{dataDefinitionList.checkBinding}"
+ value="Binding"></h:commandButton>
+ <h:outputText value="#{dataDefinitionList.bindLabel}"></h:outputText>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getRowCount" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('ddListID').rowCount}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9367 - trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 08:03:21 -0400 (Wed, 02 Jul 2008)
New Revision: 9367
Modified:
trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
Log:
findComponent correction
Modified: trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-07-02 11:43:09 UTC (rev 9366)
+++ trunk/test-applications/jsp/src/main/webapp/ScrollableDataTable/ScrollableDataTableProperty.jsp 2008-07-02 12:03:21 UTC (rev 9367)
@@ -71,9 +71,9 @@
<br />
<div style="FONT-WEIGHT: bold;">rich:findComponent</div>
<h:panelGrid columns="2">
- <a4j:commandLink value="getValue" reRender="findID"></a4j:commandLink>
+ <a4j:commandLink value="getSelection" reRender="findID"></a4j:commandLink>
- <h:outputText id="findID" value="#{rich:findComponent('sdt').value}" />
+ <h:outputText id="findID" value="#{rich:findComponent('sdt').selection}" />
</h:panelGrid>
<a4j:commandButton value="reRender" reRender="dataList"></a4j:commandButton>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9366 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-07-02 07:43:09 -0400 (Wed, 02 Jul 2008)
New Revision: 9366
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
RF-672 - corrected names of attributes and components
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-07-02 11:42:52 UTC (rev 9365)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-07-02 11:43:09 UTC (rev 9366)
@@ -46,7 +46,7 @@
a few options to send Ajax requests to the server. Also JSF
page doesn't change from a "regular" JSF page
and you don't need to write any JavaScript or
- XMLHttpRequest objects by hands, everything is done
+ XMLHTTPRequest objects by hands, everything is done
automatically.
</para>
</section>
@@ -135,8 +135,8 @@
<formalpara>
<title>AJAX Action Components</title>
<para>
- There are Ajax Action Components: AjaxCommandButton,
- AjaxCommandLink, AjaxPoll and AjaxSupport and etc. You
+ There are Ajax Action Components: <emphasis role="bold"><property><a4j:commandButton></property></emphasis>,
+ <emphasis role="bold"><property><a4j:commandLink></property></emphasis>, <emphasis role="bold"><property><a4j:poll></property></emphasis> and<emphasis role="bold"><property><a4j:support></property></emphasis> and etc. You
can use them to send Ajax requests from the client side.
</para>
</formalpara>
@@ -178,7 +178,7 @@
to append any code to a page, put in a placeholder
for it (any empty element). For the same reason,
it's recommended to place messages in the
- <emphasis>
+ <emphasis role="bold">
<property>"AjaxOutput"</property>
</emphasis>
component (as no messages is also a message).
@@ -196,7 +196,7 @@
</listitem>
<listitem>
<para>
- Ajax requests are made by XMLHttpRequest functions
+ Ajax requests are made by XMLHTTPRequest functions
in XML format, but this XML bypasses most
validations and the corrections that might be made
in a browser. Thus, create only a strict
@@ -398,7 +398,7 @@
<property><a4j:outputPanel></property>
</emphasis>
set to
- <property>"true"</property>
+ "true"
allows to define the area of the page that will be
re-rendered even if it is not pointed in the reRender
attribute explicitly. It might be useful if you have an
@@ -706,11 +706,12 @@
</emphasis>
method must return null if you want to have an Ajax
Response with a partual page update. This is regular
- mode called "Ajax request generates Ajax Response". In
+ mode called <code>"Ajax request generates Non-Ajax
+ Response"</code>. In
case of action does not return null, but the action
outcome that matches one of navigation rules, RichFaces
- starts to work in "Ajax request generates Non-Ajax
- Response" mode. This mode might be helpful in two major
+ starts to work in <code>"Ajax request generates Non-Ajax
+ Response"</code> mode. This mode might be helpful in two major
cases:
</para>
<itemizedlist>
@@ -764,8 +765,8 @@
partial page update will occur and you will see
an error message. Otherwize, the application
proceeds to the next page. Make sure, you define
- <redirect/> option for the navigation rule
- to avoid memory leaks.
+ <emphasis role="bold"><property><redirect/></property></emphasis>
+ option for the navigation rule to avoid memory leaks.
</para>
</listitem>
</itemizedlist>
@@ -778,7 +779,7 @@
<para>
RichFaces allows writing Ajax-enabled JSF application
without writing any Javascript code. However, you can
- still invoke the javascript code if you need. There are
+ still invoke the JavaScript code if you need. There are
several ajax attributes that helps to do it.
</para>
<para>
@@ -1096,11 +1097,11 @@
</para>
<para>
All these tags hide the usual JavaScript activities that
- are required for an XMHttpRequest object building and an
+ are required for an XMHTTPRequest object building and an
Ajax request sending. Also, they allow you to decide
which components of your JSF page are to be re-rendered
as a result of the Ajax response (you can list the IDs
- of these components in the "reRender"
+ of these components in the <emphasis><property>"reRender"</property></emphasis>
attribute).
</para>
<para>
@@ -1112,7 +1113,7 @@
<property><a4j:commandLink></property>
</emphasis>
tags are used to send an Ajax request on
- "onclick" JavaScript event.
+ <emphasis><property>"onclick"</property></emphasis> JavaScript event.
</para>
<para>
<emphasis role="bold">
@@ -1217,7 +1218,7 @@
<para>
If you wish to render the content of an Ajax response
outside of the active region then the value of the
- "renderRegionOnly" attribute should be set to
+ <emphasis><property>"renderRegionOnly"</property></emphasis> attribute should be set to
"false" ("false" is default value).
Otherwise, your Ajax updates are limited to elements of
the active region.
@@ -1230,7 +1231,7 @@
<title>Decide What to Change</title>
<para>
Using IDs in the <emphasis><property>"reRender"</property></emphasis> attribute to
- define "AJAX zones" for update works fine in
+ define <code>"AJAX zones"</code> for update works fine in
many cases.
</para>
<para>
@@ -1510,7 +1511,7 @@
]]></programlisting>
<para>
- The example shows that ORDER parameter defines the order in
+ The example shows that <code>ORDER</code> parameter defines the order in
which particular filter types are used for pages code
correction.
</para>
@@ -1704,8 +1705,8 @@
It's possible to redefine also the
<emphasis>
<property>"onExpired"</property>
- </emphasis>
- framework method that is called on the
+ </emphasis>
+ framework method that is called on the
<emphasis>
<property>"Session Expiration"</property>
</emphasis>
@@ -1967,7 +1968,7 @@
<para>
However, if a
<emphasis role="bold">
- <property><rich-panel></property>
+ <property><rich:panel></property>
</emphasis>
class is specified somewhere on the page, its parameters
are also acquired by all panels on this page.
@@ -2350,7 +2351,7 @@
<listitem>
<para>
- Add a skin definition <contex-param> to
+ Add a skin definition <code><contex-param></code> to
the web.xml of your application. An example is
placed below:
</para>
@@ -2448,13 +2449,8 @@
<listitem>
<para>
The file must be named
- <emphasis role="bold">
- <property>
- <skinName>
- </property>
- </emphasis>
- .skin.properties, in this case, it would
- be called
+ <code><skinName>.skin.properties</code>
+ , in this case, it would be called
<code>newskin.skin.properties</code>
.
</para>
@@ -2463,7 +2459,7 @@
<para>
The first line in this file should be
<code>
- render.kit= <render-kit-id>
+ render.kit=<render-kit-id>
</code>
in this case, it would be called
<code>render.kit=NEW_SKIN</code>
@@ -2771,7 +2767,7 @@
To get a better idea of standard component skinning we
recommend to explore CSS files located in
ui/core/src/main/resources/org/richfaces/ folder of
- Richfaces svn.
+ RichFaces svn.
</para>
@@ -3643,10 +3639,10 @@
<para>
The
- <emphasis><property>name</property></emphasis>
+ <emphasis><property>"e;name"e;</property></emphasis>
attribute of <emphasis role="bold"><property><u:selector></property></emphasis> tag defines the CSS
selector, while
- <property>"name"</property>
+ <emphasis><property>"name"</property></emphasis>
attribute of the
<emphasis role="bold"><property><u:style></property></emphasis>
tag defines what skin constant is mapped to a CSS
@@ -3775,14 +3771,14 @@
<listitem>
<para>
- <property>Dname</property>
+ <code>Dname</code>
defines the name of the new skin
</para>
</listitem>
<listitem>
<para>
- <property>Dpackage</property>
+ <code>Dpackage</code>
base package of the skin. By default
"groupId" of the project is used.
</para>
@@ -3796,14 +3792,14 @@
<listitem>
<para>
- <property>DbaseSkin</property>
+ <code>DbaseSkin</code>
defines the name of the base skin.
</para>
</listitem>
<listitem>
<para>
- <property>DcreateExt</property>
+ <code>DcreateExt</code>
if set to "true", extended CSS classes
are added. For more information, please, see
<link linkend="StControlsSkinning">
@@ -3981,7 +3977,7 @@
"\src\main\resources\SKIN-PACKAGE\SKIN-NAME\css\"
folder). In the example below, it's shown how to
redefine the style properties for the
- "combobox" component.
+ <emphasis role="bold"><property><rich:combobox></property></emphasis> component.
</para>
<programlisting role="XML"><![CDATA[...
16 years, 6 months
JBoss Rich Faces SVN: r9365 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: cluts
Date: 2008-07-02 07:42:52 -0400 (Wed, 02 Jul 2008)
New Revision: 9365
Modified:
trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
Log:
RF-3208 - added description for "attachTo" attribute; updated information for "attached" attribute; updated code example for these two attributes.
Modified: trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-07-02 11:18:50 UTC (rev 9364)
+++ trunk/docs/userguide/en/src/main/docbook/included/contextMenu.xml 2008-07-02 11:42:52 UTC (rev 9365)
@@ -85,23 +85,29 @@
<property><rich:dropDownMenu></property>
</emphasis>. </para>
- <para>If a value of the <emphasis>
- <property>"attached"</property>
- </emphasis> attribute is defined as "true",
- the component is attached to the parent component. An example is placed below.</para>
+ <para>If <emphasis><property>"attached"</property></emphasis> value is "true" (default value),
+ component is attached to the parent component or to the component, which
+ <emphasis><property>"id"</property></emphasis> is specified in the
+ <emphasis><property>"attachTo"</property></emphasis> attribute.
+ An example is placed below.</para>
<para>
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
+ <rich:contextMenu event="oncontextmenu" attachTo="pic1" submitMode="none">
+ <rich:menuItem value="Zoom In" onclick="enlarge();" id="zin"/>
+ <rich:menuItem value="Zoom Out" onclick="decrease();" id="zout"/>
+ </rich:contextMenu>
<h:panelGrid columns="1" columnClasses="cent">
<h:panelGroup id="picture">
<h:graphicImage value="/richfaces/jQuery/images/pic1.png" id="pic"/>
- <rich:contextMenu event="oncontextmenu" attached="true" submitMode="none">
- <rich:menuItem value="Zoom In" onclick="enlarge();" id="zin"></rich:menuItem>
- <rich:menuItem value="Zoom Out" onclick="decrease();" id="zout"></rich:menuItem>
- </rich:contextMenu>
</h:panelGroup>
</h:panelGrid>
+ <h:panelGrid columns="1" columnClasses="cent">
+ <h:panelGroup id="picture1">
+ <h:graphicImage value="/richfaces/jQuery/images/pic2.png" id="pic1"/>
+ </h:panelGroup>
+ </h:panelGrid>
...]]></programlisting>
<para>The <code>"enlarge()"</code> and
<code>"decrease()"</code> functions definition is placed
@@ -126,13 +132,14 @@
<property><h:panelGroup></property>
</emphasis> component. The <emphasis role="bold">
<property><rich:contextMenu></property>
- </emphasis> component is defined as nested to <emphasis role="bold">
+ </emphasis> component is not nested to <emphasis role="bold">
<property><h:panelGroup></property>
- </emphasis> one and has a value of the<emphasis>
- <property>"attached"</property>
- </emphasis> attribute defined as "true". Thus,
- the context menu is attached to the parent component. The context menu has two items to
- zoom in (zoom out) a picture by <emphasis><property>"onclick"</property></emphasis> event.
+ </emphasis> and has a value of the<emphasis>
+ <property>"attachTo"</property>
+ </emphasis> attribute defined as <code>"pic1"</code>. Thus,
+ the context menu is attached to the component, which
+ <emphasis><property>"id"</property></emphasis> is <code>"pic1"</code>.
+ The context menu has two items to zoom in (zoom out) a picture by <emphasis><property>"onclick"</property></emphasis> event.
For earch item corresponding JavaScript function is defined to provide necessary action
as a result of the clicking on it. For the menu is defined an <emphasis>
<property>"oncontextmenu"</property>
16 years, 6 months
JBoss Rich Faces SVN: r9364 - trunk/test-applications/facelets/src/main/webapp/ContextMenu.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 07:18:50 -0400 (Wed, 02 Jul 2008)
New Revision: 9364
Modified:
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2008-07-02 11:15:33 UTC (rev 9363)
+++ trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2008-07-02 11:18:50 UTC (rev 9364)
@@ -1,10 +1,17 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="contextMenuPropertySubviewID">
+<f:subview xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich"
+ id="contextMenuPropertySubviewID">
<a4j:commandButton value="reRender" reRender="cmInfoID"></a4j:commandButton>
- <a4j:commandButton action="submit();" immediate="true" value="immediate submit(); (a4j)"></a4j:commandButton>
+ <a4j:commandButton action="submit();" immediate="true"
+ value="immediate submit(); (a4j)"></a4j:commandButton>
<h:commandButton action="submit();" value="submit();" />
- <h:commandButton action="submit();" immediate="true" value="immediate submit();" />
+ <h:commandButton action="submit();" immediate="true"
+ value="immediate submit();" />
<h:panelGrid columns="2" style="top">
<h:outputText value="event:" />
@@ -30,22 +37,38 @@
</h:inputText>
<h:outputText value="submitMode:" />
- <h:selectOneRadio value="#{contextMenu.submitMode}" onchange="submit();">
+ <h:selectOneRadio value="#{contextMenu.submitMode}"
+ onchange="submit();">
<f:selectItem itemLabel="none" itemValue="none" />
<f:selectItem itemLabel="server" itemValue="server" />
<f:selectItem itemLabel="ajax" itemValue="ajax" />
</h:selectOneRadio>
<h:outputText value="attached" />
- <h:selectBooleanCheckbox value="#{contextMenu.attached}" onchange="submit();" />
+ <h:selectBooleanCheckbox value="#{contextMenu.attached}"
+ onchange="submit();" />
<h:outputText value="disableDefaultMenu:" />
- <h:selectBooleanCheckbox value="#{contextMenu.disableDefaultMenu}" onchange="submit();">
+ <h:selectBooleanCheckbox value="#{contextMenu.disableDefaultMenu}"
+ onchange="submit();">
<a4j:support event="onchange" reRender="contextMenuID"></a4j:support>
</h:selectBooleanCheckbox>
<h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{contextMenu.rendered}" onchange="submit();">
+ <h:selectBooleanCheckbox value="#{contextMenu.rendered}"
+ onchange="submit();">
</h:selectBooleanCheckbox>
</h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getEvent" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText
+ value="#{rich:findComponent('contextMenuDefaultID').event}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months