JBoss Rich Faces SVN: r9363 - trunk/test-applications/facelets/src/main/webapp/ComponentControl.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 07:15:33 -0400 (Wed, 02 Jul 2008)
New Revision: 9363
Modified:
trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2008-07-02 11:12:57 UTC (rev 9362)
+++ trunk/test-applications/facelets/src/main/webapp/ComponentControl/ComponentControl.xhtml 2008-07-02 11:15:33 UTC (rev 9363)
@@ -1,16 +1,24 @@
-<f:subview xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" id="componentControlSubviewID">
+<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="componentControlSubviewID">
<h:inputText value="test">
- <rich:componentControl name="controlMe" event="onclick" attachTiming="onload" for="ccToltipID" operation="show" />
+ <rich:componentControl name="controlMe" event="onclick"
+ attachTiming="onload" for="ccToltipID" operation="show" />
</h:inputText>
<rich:panel>
- <rich:toolTip id="ccToltipID" followMouse="false" direction="top-right" value="Help me, help!">
+ <rich:toolTip id="ccToltipID" followMouse="false"
+ direction="top-right" value="Help me, help!">
</rich:toolTip>
</rich:panel>
- <rich:modalPanel id="ccModalPanelID" onshow="alert(event.parameters.show)" onhide="alert(event.parameters.hide)">
+ <rich:modalPanel id="ccModalPanelID"
+ onshow="alert(event.parameters.show)"
+ onhide="alert(event.parameters.hide)">
<h:outputLink id="hideButton1ID" onclick="return false;" value="#">
<f:verbatim>Close 1</f:verbatim>
</h:outputLink>
@@ -23,22 +31,27 @@
</rich:modalPanel>
<h:commandButton id="showButtonID" value="show ModalPanel">
- <rich:componentControl for="ccModalPanelID" event="onclick" disableDefault="true" operation="show"
+ <rich:componentControl for="ccModalPanelID" event="onclick"
+ disableDefault="true" operation="show"
params="show:'componentControl work(show)'" />
</h:commandButton>
- <rich:componentControl attachTiming="onload" attachTo="hideButton1ID, hideButton2ID" event="onclick" for="ccModalPanelID"
- operation="hide" params="hide:'componentControl work(hide)'" />
+ <rich:componentControl attachTiming="onload"
+ attachTo="hideButton1ID, hideButton2ID" event="onclick"
+ for="ccModalPanelID" operation="hide"
+ params="hide:'componentControl work(hide)'" />
<f:verbatim>
<br />
<br />
</f:verbatim>
- <rich:calendar popup="#{componentControl.calendarPopup}" id="ccCalendarID" />
+ <rich:calendar popup="#{componentControl.calendarPopup}"
+ id="ccCalendarID" />
<h:panelGrid columns="2">
<h:outputText value="popup calendar" />
- <h:selectBooleanCheckbox id="calendarSelectID" value="#{componentControl.calendarPopup}" onchange="submit();" />
+ <h:selectBooleanCheckbox id="calendarSelectID"
+ value="#{componentControl.calendarPopup}" onchange="submit();" />
</h:panelGrid>
<f:verbatim>
@@ -55,16 +68,24 @@
<br />
<a href="#" id="doTodayCalendarID">Calendar (today)</a>
<br />
- <a href="#" id="doTodayCalendarRenderedID">Calendar (today) rendered="false"</a>
+ <a href="#" id="doTodayCalendarRenderedID">Calendar (today)
+ rendered="false"</a>
</f:verbatim>
- <rich:componentControl attachTo="doExpandCalendarID" for="ccCalendarID" event="onclick" operation="doExpand" />
- <rich:componentControl attachTo="doNextYearCalendarID" for="ccCalendarID" event="onclick" operation="nextYear" />
- <rich:componentControl attachTo="doPrevYearCalendarID" for="ccCalendarID" event="onclick" operation="prevYear" />
- <rich:componentControl attachTo="doNextMonthCalendarID" for="ccCalendarID" event="onclick" operation="nextMonth" />
- <rich:componentControl attachTo="doPrevMonthCalendarID" for="ccCalendarID" event="onclick" operation="prevMonth" />
- <rich:componentControl attachTo="doTodayCalendarID" for="ccCalendarID" event="onclick" operation="today" />
- <rich:componentControl attachTo="doTodayCalendarRenderedID" for="ccCalendarID" rendered="false" event="onclick" operation="today" />
+ <rich:componentControl id="componentID" attachTo="doExpandCalendarID" for="ccCalendarID"
+ event="onclick" operation="doExpand" />
+ <rich:componentControl attachTo="doNextYearCalendarID"
+ for="ccCalendarID" event="onclick" operation="nextYear" />
+ <rich:componentControl attachTo="doPrevYearCalendarID"
+ for="ccCalendarID" event="onclick" operation="prevYear" />
+ <rich:componentControl attachTo="doNextMonthCalendarID"
+ for="ccCalendarID" event="onclick" operation="nextMonth" />
+ <rich:componentControl attachTo="doPrevMonthCalendarID"
+ for="ccCalendarID" event="onclick" operation="prevMonth" />
+ <rich:componentControl attachTo="doTodayCalendarID" for="ccCalendarID"
+ event="onclick" operation="today" />
+ <rich:componentControl attachTo="doTodayCalendarRenderedID"
+ for="ccCalendarID" rendered="false" event="onclick" operation="today" />
<f:verbatim>
<br />
@@ -75,7 +96,8 @@
<h:outputText value="click text" />
</rich:panelMenu>
- <rich:contextMenu id="ccContextMenuID" submitMode="ajax" onexpand="alert(event.parameters.expand)">
+ <rich:contextMenu id="ccContextMenuID" submitMode="ajax"
+ onexpand="alert(event.parameters.expand)">
<rich:menuItem icon="/pics/header.png" value="tab1">
</rich:menuItem>
<rich:menuSeparator />
@@ -86,6 +108,18 @@
<rich:menuItem icon="/pics/info.gif" value="c">
</rich:menuItem>
</rich:contextMenu>
- <rich:componentControl event="oncontextmenu" attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID" operation="show"
- params="expand:'show work'" />
+ <rich:componentControl event="oncontextmenu"
+ attachTo="ccContextMenuPanelMenuID" for="ccContextMenuID"
+ operation="show" params="expand:'show work'" />
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getOperation" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('componentID').operation}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9362 - trunk/test-applications/facelets/src/main/webapp/Combobox.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 07:12:57 -0400 (Wed, 02 Jul 2008)
New Revision: 9362
Modified:
trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml 2008-07-02 11:08:37 UTC (rev 9361)
+++ trunk/test-applications/facelets/src/main/webapp/Combobox/ComboboxProperty.xhtml 2008-07-02 11:12:57 UTC (rev 9362)
@@ -1,62 +1,96 @@
-
-
-
-
-
-<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="comboboxPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="defaultLabel"></h:outputText>
- <h:inputText value="#{combobox.defaultLabel}" onchange="submit();"></h:inputText>
-
- <h:outputText value="filterNewValues"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.filterNewValues}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="tabindex"></h:outputText>
- <h:inputText value="#{combobox.tabindex}" onchange="submit();"></h:inputText>
-
- <h:outputText value="width"></h:outputText>
- <h:inputText value="#{combobox.width}" onchange="submit();"></h:inputText>
-
- <h:outputText value="listHeight"></h:outputText>
- <h:inputText value="#{combobox.listHeight}" onchange="submit();"></h:inputText>
-
- <h:outputText value="listWidth"></h:outputText>
- <h:inputText value="#{combobox.listWidth}" onchange="submit();"></h:inputText>
-
- <h:outputText value="enableManualInput"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.enableManualInput}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="selectFirstOnUpdate"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.selectFirstOnUpdate}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="directInputSuggestions"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.directInputSuggestions}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="disabled"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.disabled}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="immediate"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.immediate}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="required"></h:outputText>
- <h:selectBooleanCheckbox value="#{combobox.required}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="requiredMessage"></h:outputText>
+
+
+
+
+
+<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="comboboxPropertySubviewID">
+ <h:panelGrid columns="2">
+ <h:outputText value="defaultLabel"></h:outputText>
+ <h:inputText value="#{combobox.defaultLabel}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="filterNewValues"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.filterNewValues}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="tabindex"></h:outputText>
+ <h:inputText value="#{combobox.tabindex}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="width"></h:outputText>
+ <h:inputText value="#{combobox.width}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="listHeight"></h:outputText>
+ <h:inputText value="#{combobox.listHeight}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="listWidth"></h:outputText>
+ <h:inputText value="#{combobox.listWidth}" onchange="submit();"></h:inputText>
+
+ <h:outputText value="enableManualInput"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.enableManualInput}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="selectFirstOnUpdate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.selectFirstOnUpdate}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="directInputSuggestions"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.directInputSuggestions}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="disabled"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.disabled}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="immediate"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.immediate}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="required"></h:outputText>
+ <h:selectBooleanCheckbox value="#{combobox.required}"
+ onchange="submit();"></h:selectBooleanCheckbox>
+
+ <h:outputText value="requiredMessage"></h:outputText>
<h:inputText value="#{combobox.requiredMessage}" onchange="submit();"></h:inputText>
-
- <h:commandButton actionListener="#{combobox.checkBinding}" value="Binding"></h:commandButton>
+
+ <h:commandButton actionListener="#{combobox.checkBinding}"
+ value="Binding"></h:commandButton>
<h:outputText value="#{combobox.bindLabel}"></h:outputText>
-
+
<h:outputText value="align"></h:outputText>
- <h:inputText value="#{combobox.align}" onchange="submit();"></h:inputText>
+ <h:inputText value="#{combobox.align}" onchange="submit();"></h:inputText>
</h:panelGrid>
-
- <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.showList()" value="showList"></a4j:commandLink> <br/>
- <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.hideList()" value="hideList"></a4j:commandLink> <br/>
- <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.enable()" value="enable"></a4j:commandLink> <br/>
- <a4j:commandLink onclick="$('formID:comboboxSubviewID:comboboxID').component.disable()" value="disable"></a4j:commandLink>
-
+
+ <a4j:commandLink
+ onclick="$('formID:comboboxSubviewID:comboboxID').component.showList()"
+ value="showList"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:comboboxSubviewID:comboboxID').component.hideList()"
+ value="hideList"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:comboboxSubviewID:comboboxID').component.enable()"
+ value="enable"></a4j:commandLink>
+ <br />
+ <a4j:commandLink
+ onclick="$('formID:comboboxSubviewID:comboboxID').component.disable()"
+ value="disable"></a4j:commandLink>
+ <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('comboboxID').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9361 - trunk/test-applications/facelets/src/main/webapp/Calendar.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 07:08:37 -0400 (Wed, 02 Jul 2008)
New Revision: 9361
Modified:
trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml
Log:
+findComponent
Modified: trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml 2008-07-02 10:59:41 UTC (rev 9360)
+++ trunk/test-applications/facelets/src/main/webapp/Calendar/CalendarProperty.xhtml 2008-07-02 11:08:37 UTC (rev 9361)
@@ -1,187 +1,251 @@
-<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="calendarPropertySubviewID">
+<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="calendarPropertySubviewID">
- <h:panelGrid columns="2">
- <h:panelGroup>
- <a4j:commandButton value="reRender" reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
- </h:panelGroup>
- <h:column></h:column>
-
- <h:outputText value="Mode:" />
- <h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
- <f:selectItem itemLabel="client" itemValue="client"/>
- <f:selectItem itemLabel="ajax" itemValue="ajax"/>
- </h:selectOneRadio>
-
-
- <h:outputText value="Select Locale:" />
- <h:selectOneRadio onchange="submit()" value="en/US" valueChangeListener="#{calendarBean.selectLocale}">
- <f:selectItem itemLabel="US" itemValue="en/US" />
- <f:selectItem itemLabel="DE" itemValue="de/DE" />
- <f:selectItem itemLabel="FR" itemValue="fr/FR" />
- <f:selectItem itemLabel="RU" itemValue="ru/RU" />
- </h:selectOneRadio>
+ <h:panelGrid columns="2">
+ <h:panelGroup>
+ <a4j:commandButton value="reRender"
+ reRender="calendarClientID,calendarAjaxID"></a4j:commandButton>
+ </h:panelGroup>
+ <h:column></h:column>
- <h:outputText value="Popup Mode:" />
- <h:selectBooleanCheckbox id="popupModeID" value="#{calendarBean.popup}" onclick="submit();" />
-
- <h:outputText value="showApplyButton: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showApplyButton}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="showScrollerBar: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showScrollerBar}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="showWeeksBar: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showWeeksBar}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="showWeekDaysBar: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showWeekDaysBar}" onchange="submit();"></h:selectBooleanCheckbox>
-
- <h:outputText value="cellHeight: "></h:outputText>
- <h:inputText value="#{calendarBean.cellHeight}" onchange="submit();"></h:inputText>
-
- <h:outputText value="cellWidth: "></h:outputText>
- <h:inputText value="#{calendarBean.cellWidth}" onchange="submit();"></h:inputText>
+ <h:outputText value="Mode:" />
+ <h:selectOneRadio value="#{calendarBean.mode}" onchange="submit();">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ </h:selectOneRadio>
- <h:outputText value="Custom day labels" />
- <h:selectOneRadio value="#{calendarBean.todayControlMode}" onchange="submit();">
- <f:selectItem itemLabel="scroll" itemValue="scroll" />
- <f:selectItem itemLabel="select" itemValue="select" />
- <f:selectItem itemLabel="hidden" itemValue="hidden" />
- </h:selectOneRadio>
- <h:outputText value="Custom day labels" />
- <h:selectOneRadio value="#{calendarBean.weekDay}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="day labels" itemValue="long" />
- <f:selectItem itemLabel="day labels short" itemValue="short" />
- </h:selectOneRadio>
+ <h:outputText value="Select Locale:" />
+ <h:selectOneRadio onchange="submit()" value="en/US"
+ valueChangeListener="#{calendarBean.selectLocale}">
+ <f:selectItem itemLabel="US" itemValue="en/US" />
+ <f:selectItem itemLabel="DE" itemValue="de/DE" />
+ <f:selectItem itemLabel="FR" itemValue="fr/FR" />
+ <f:selectItem itemLabel="RU" itemValue="ru/RU" />
+ </h:selectOneRadio>
- <h:outputText value="Custom month labels" />
- <h:selectOneRadio value="#{calendarBean.month}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="day labels" itemValue="long" />
- <f:selectItem itemLabel="day labels short" itemValue="short" />
- </h:selectOneRadio>
+ <h:outputText value="Popup Mode:" />
+ <h:selectBooleanCheckbox id="popupModeID"
+ value="#{calendarBean.popup}" onclick="submit();" />
- <h:outputText value="Select Date Pattern:" />
- <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
- <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
- <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
- <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
- <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
- <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
- <f:selectItem itemLabel="dd-MM-yyyy" itemValue="dd-MM-yyyy" />
- <f:selectItem itemLabel="dd/M/yy HH:mm" itemValue="dd/M/yy HH:mm"/>
- <f:selectItem itemLabel="MMM d, yyyy h:mm a" itemValue="MMM d, yyyy h:mm a"/>
- </h:selectOneMenu>
+ <h:outputText value="showApplyButton: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showApplyButton}"
+ onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="Preload date range begin(d.m.y)" />
- <h:inputText value="#{calendarBean.preloadDateRangeBegin}" onchange="submit();" />
+ <h:outputText value="showScrollerBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showScrollerBar}"
+ onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="Preload date range end(d.m.y)" />
- <h:inputText value="#{calendarBean.preloadDateRangeEnd}" onchange="submit();" />
+ <h:outputText value="showWeeksBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showWeeksBar}"
+ onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="z-index:" />
- <h:inputText value="#{calendarBean.zindex}">
- <a4j:support event="onchange" reRender="calendarClientID,calendarAjaxID"></a4j:support>
- </h:inputText>
+ <h:outputText value="showWeekDaysBar: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showWeekDaysBar}"
+ onchange="submit();"></h:selectBooleanCheckbox>
- <h:outputText value="horizontalOffset: "></h:outputText>
- <h:inputText value="#{calendarBean.horizontalOffset}" onchange="submit();"></h:inputText>
-
- <h:outputText value="verticalOffset:"></h:outputText>
- <h:inputText value="#{calendarBean.verticalOffset}" onchange="submit();"></h:inputText>
-
- <h:outputText value="immediate: "></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.immediate}"></h:selectBooleanCheckbox>
+ <h:outputText value="cellHeight: "></h:outputText>
+ <h:inputText value="#{calendarBean.cellHeight}" onchange="submit();"></h:inputText>
- <h:outputText value="reRender (counter):" />
- <h:outputText id="counter" value="#{calendarBean.counter}" />
+ <h:outputText value="cellWidth: "></h:outputText>
+ <h:inputText value="#{calendarBean.cellWidth}" onchange="submit();"></h:inputText>
- <h:outputText value="Required" />
- <h:selectBooleanCheckbox value="#{calendarBean.required}" onclick="submit()" />
+ <h:outputText value="Custom day labels" />
+ <h:selectOneRadio value="#{calendarBean.todayControlMode}"
+ onchange="submit();">
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="hidden" itemValue="hidden" />
+ </h:selectOneRadio>
- <h:outputText value="Select Popup Joint Point:" />
- <h:selectOneRadio onchange="submit()" value="#{calendarBean.jointPoint}">
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- </h:selectOneRadio>
+ <h:outputText value="Custom day labels" />
+ <h:selectOneRadio value="#{calendarBean.weekDay}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="day labels" itemValue="long" />
+ <f:selectItem itemLabel="day labels short" itemValue="short" />
+ </h:selectOneRadio>
- <h:outputText value="Select Popup Direction:" />
- <h:selectOneRadio onchange="submit()" value="#{calendarBean.direction}">
- <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
- <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
- <f:selectItem itemLabel="top-right" itemValue="top-right" />
- <f:selectItem itemLabel="top-left" itemValue="top-left" />
- <f:selectItem itemLabel="auto" itemValue="auto" />
- </h:selectOneRadio>
+ <h:outputText value="Custom month labels" />
+ <h:selectOneRadio value="#{calendarBean.month}" onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="day labels" itemValue="long" />
+ <f:selectItem itemLabel="day labels short" itemValue="short" />
+ </h:selectOneRadio>
- <h:outputText value="Time Zone:" />
- <h:selectOneRadio valueChangeListener="#{calendarBean.timeZone}" onchange="submit();">
- <f:selectItem itemLabel="Eastern European Time" itemValue="Eastern European Time" />
- <f:selectItem itemLabel="Turkmenistan Time" itemValue="Turkmenistan Time" />
- <f:selectItem itemLabel="Korea Standard Time" itemValue="Korea Standard Time" />
- </h:selectOneRadio>
+ <h:outputText value="Select Date Pattern:" />
+ <h:selectOneMenu value="#{calendarBean.pattern}" onchange="submit()">
+ <f:selectItem itemLabel="d/M/yy" itemValue="d/M/yy" />
+ <f:selectItem itemLabel="dd/M/yy" itemValue="dd/M/yy" />
+ <f:selectItem itemLabel="d/MMM/y" itemValue="d/MMM/y" />
+ <f:selectItem itemLabel="dd.MM.yyyy" itemValue="dd.MM.yyyy" />
+ <f:selectItem itemLabel="MMM d, yyyy" itemValue="MMM d, yyyy" />
+ <f:selectItem itemLabel="dd-MM-yyyy" itemValue="dd-MM-yyyy" />
+ <f:selectItem itemLabel="dd/M/yy HH:mm" itemValue="dd/M/yy HH:mm" />
+ <f:selectItem itemLabel="MMM d, yyyy h:mm a"
+ itemValue="MMM d, yyyy h:mm a" />
+ </h:selectOneMenu>
+ <h:outputText value="Preload date range begin(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeBegin}"
+ onchange="submit();" />
- <h:outputText value="ToolTip Mode:" />
- <h:selectOneRadio value="#{calendarBean.toolTipMode}" onchange="submit();">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="single" itemValue="single" />
- <f:selectItem itemLabel="batch" itemValue="batch" />
- </h:selectOneRadio>
+ <h:outputText value="Preload date range end(d.m.y)" />
+ <h:inputText value="#{calendarBean.preloadDateRangeEnd}"
+ onchange="submit();" />
- <h:outputText value="BoundaryDatesMode:" />
- <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
- <f:selectItem itemLabel="inactive" itemValue="inactive" />
- <f:selectItem itemLabel="select" itemValue="select" />
- <f:selectItem itemLabel="scroll" itemValue="scroll" />
- </h:selectOneRadio>
+ <h:outputText value="z-index:" />
+ <h:inputText value="#{calendarBean.zindex}">
+ <a4j:support event="onchange"
+ reRender="calendarClientID,calendarAjaxID"></a4j:support>
+ </h:inputText>
- <h:outputText value="EnableManualInput:"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}" onclick="submit()">
- </h:selectBooleanCheckbox>
+ <h:outputText value="horizontalOffset: "></h:outputText>
+ <h:inputText value="#{calendarBean.horizontalOffset}"
+ onchange="submit();"></h:inputText>
- <h:outputText value="ShowInput:"></h:outputText>
- <h:selectBooleanCheckbox value="#{calendarBean.showInput}" onclick="submit()">
- </h:selectBooleanCheckbox>
+ <h:outputText value="verticalOffset:"></h:outputText>
+ <h:inputText value="#{calendarBean.verticalOffset}"
+ onchange="submit();"></h:inputText>
- <h:outputText value="Disabled:" />
- <h:selectBooleanCheckbox value="#{calendarBean.disabled}" onclick="submit()" />
+ <h:outputText value="immediate: "></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.immediate}"></h:selectBooleanCheckbox>
- <h:outputText value="Rendered:" />
- <h:selectBooleanCheckbox value="#{calendarBean.rendered}" onclick="submit()" />
+ <h:outputText value="reRender (counter):" />
+ <h:outputText id="counter" value="#{calendarBean.counter}" />
- <f:verbatim></f:verbatim>
- <h:commandButton action="#{calendarBean.changeIcons}" value="ChangeIcons" />
+ <h:outputText value="Required" />
+ <h:selectBooleanCheckbox value="#{calendarBean.required}"
+ onclick="submit()" />
- <h:outputText value="Current date: " />
- <h:outputText value="#{calendarBean.currentDateAsText}" />
+ <h:outputText value="Select Popup Joint Point:" />
+ <h:selectOneRadio onchange="submit()"
+ value="#{calendarBean.jointPoint}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ </h:selectOneRadio>
- <h:outputText value="Selected date: " />
- <h:outputText value="#{calendarBean.selectedDate}" />
+ <h:outputText value="Select Popup Direction:" />
+ <h:selectOneRadio onchange="submit()"
+ value="#{calendarBean.direction}">
+ <f:selectItem itemLabel="bottom-right" itemValue="bottom-right" />
+ <f:selectItem itemLabel="bottom-left" itemValue="bottom-left" />
+ <f:selectItem itemLabel="top-right" itemValue="top-right" />
+ <f:selectItem itemLabel="top-left" itemValue="top-left" />
+ <f:selectItem itemLabel="auto" itemValue="auto" />
+ </h:selectOneRadio>
- <f:verbatim></f:verbatim>
- <h:commandButton value="Submit" />
- </h:panelGrid>
-
- <h:panelGrid columns="3">
- <h:column></h:column>
- <h:outputText value="JavaScript API"></h:outputText>
- <h:column></h:column>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.doExpand(event)" value="expand"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.nextMonth()" value="nextMonth"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.prevMonth()" value="prevMonth"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.nextYear()" value="nextYear"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.prevYear()" value="prevYear"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.today()" value="today"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getSelectedDate(new Data().setFullYear(2010,0,14)))" value="getSelectedDate"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.isDateEnabled(new Data()))" value="isDateEnabled"></a4j:commandLink>
- <a4j:commandLink onclick="$('formID:calendarSubviewID:calendarClientID').component.selectDate(new Data())" value="selectDate"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentMonth())" value="getCurrentMonth"></a4j:commandLink>
- <a4j:commandLink onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentYear())" value="getCurrentYear"></a4j:commandLink>
- </h:panelGrid>
+ <h:outputText value="Time Zone:" />
+ <h:selectOneRadio valueChangeListener="#{calendarBean.timeZone}"
+ onchange="submit();">
+ <f:selectItem itemLabel="Eastern European Time"
+ itemValue="Eastern European Time" />
+ <f:selectItem itemLabel="Turkmenistan Time"
+ itemValue="Turkmenistan Time" />
+ <f:selectItem itemLabel="Korea Standard Time"
+ itemValue="Korea Standard Time" />
+ </h:selectOneRadio>
+
+
+ <h:outputText value="ToolTip Mode:" />
+ <h:selectOneRadio value="#{calendarBean.toolTipMode}"
+ onchange="submit();">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="single" itemValue="single" />
+ <f:selectItem itemLabel="batch" itemValue="batch" />
+ </h:selectOneRadio>
+
+ <h:outputText value="BoundaryDatesMode:" />
+ <h:selectOneRadio onclick="submit()" value="#{calendarBean.boundary}">
+ <f:selectItem itemLabel="inactive" itemValue="inactive" />
+ <f:selectItem itemLabel="select" itemValue="select" />
+ <f:selectItem itemLabel="scroll" itemValue="scroll" />
+ </h:selectOneRadio>
+
+ <h:outputText value="EnableManualInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.enableManualInput}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="ShowInput:"></h:outputText>
+ <h:selectBooleanCheckbox value="#{calendarBean.showInput}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+
+ <h:outputText value="Disabled:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.disabled}"
+ onclick="submit()" />
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{calendarBean.rendered}"
+ onclick="submit()" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton action="#{calendarBean.changeIcons}"
+ value="ChangeIcons" />
+
+ <h:outputText value="Current date: " />
+ <h:outputText value="#{calendarBean.currentDateAsText}" />
+
+ <h:outputText value="Selected date: " />
+ <h:outputText value="#{calendarBean.selectedDate}" />
+
+ <f:verbatim></f:verbatim>
+ <h:commandButton value="Submit" />
+ </h:panelGrid>
+
+ <h:panelGrid columns="3">
+ <h:column></h:column>
+ <h:outputText value="JavaScript API"></h:outputText>
+ <h:column></h:column>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.doExpand(event)"
+ value="expand"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.nextMonth()"
+ value="nextMonth"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.prevMonth()"
+ value="prevMonth"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.nextYear()"
+ value="nextYear"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.prevYear()"
+ value="prevYear"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.today()"
+ value="today"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getSelectedDate(new Data().setFullYear(2010,0,14)))"
+ value="getSelectedDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.isDateEnabled(new Data()))"
+ value="isDateEnabled"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="$('formID:calendarSubviewID:calendarClientID').component.selectDate(new Data())"
+ value="selectDate"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentMonth())"
+ value="getCurrentMonth"></a4j:commandLink>
+ <a4j:commandLink
+ onclick="alert($('formID:calendarSubviewID:calendarClientID').component.getCurrentYear())"
+ value="getCurrentYear"></a4j:commandLink>
+ </h:panelGrid>
+ <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('calendarClientID').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9360 - trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html.
by richfaces-svn-commits@lists.jboss.org
Author: konstantin.mishin
Date: 2008-07-02 06:59:41 -0400 (Wed, 02 Jul 2008)
New Revision: 9360
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
Log:
RF-3842
Modified: trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
--- trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-07-02 09:50:39 UTC (rev 9359)
+++ trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-07-02 10:59:41 UTC (rev 9360)
@@ -640,7 +640,10 @@
grid.setFirst(Integer.parseInt(options.split(",")[1]));
}
}
- int value = grid.getFirst() % grid.getRows();
+ int value = 0;
+ if (grid.getRows() != 0) {
+ value = grid.getFirst() % grid.getRows();
+ }
component.getAttributes().put(ScrollableDataTableUtils.CLIENT_ROW_KEY, value);
composite.decode(context, component);
16 years, 6 months
JBoss Rich Faces SVN: r9359 - trunk/test-applications/jsp/src/main/webapp/VirtualEarth.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 05:50:39 -0400 (Wed, 02 Jul 2008)
New Revision: 9359
Modified:
trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp 2008-07-02 09:43:57 UTC (rev 9358)
+++ trunk/test-applications/jsp/src/main/webapp/VirtualEarth/VirtualEarthProperty.jsp 2008-07-02 09:50:39 UTC (rev 9359)
@@ -7,12 +7,13 @@
<h:panelGrid columns="2">
<h:outputText value="lat(-97 < x < 97):"></h:outputText>
<h:inputText value="#{virtualEarth.lat}" onchange="submit();"></h:inputText>
-
+
<h:outputText value="lng(-180 < x < 180):"></h:outputText>
<h:inputText value="#{virtualEarth.lng}" onchange="submit();"></h:inputText>
<h:outputText value="dashboardSize"></h:outputText>
- <h:selectOneMenu value="#{virtualEarth.dashboardSize}" onchange="submit();">
+ <h:selectOneMenu value="#{virtualEarth.dashboardSize}"
+ onchange="submit();">
<f:selectItem itemLabel="Normal" itemValue="Normal" />
<f:selectItem itemLabel="Small" itemValue="Small" />
<f:selectItem itemLabel="Tiny" itemValue="Tiny" />
@@ -27,20 +28,27 @@
</h:selectOneMenu>
<h:outputText value="rendered:"></h:outputText>
- <h:selectBooleanCheckbox value="#{virtualEarth.rendered}" onchange="submit();"></h:selectBooleanCheckbox>
+ <h:selectBooleanCheckbox value="#{virtualEarth.rendered}"
+ onchange="submit();"></h:selectBooleanCheckbox>
</h:panelGrid>
<h:panelGroup>
<f:verbatim>
Dashboard:<br />
- <a href="javascript:void(0);" onclick="map.HideDashboard();return false;">Remove</a>
- <a href="javascript:void(0);" onclick="map.ShowDashboard();return false;">Show</a>
+ <a href="javascript:void(0);"
+ onclick="map.HideDashboard();return false;">Remove</a>
+ <a href="javascript:void(0);"
+ onclick="map.ShowDashboard();return false;">Show</a>
<br />
<br />
Type:<br />
- <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
- <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
- <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
- <a href="javascript:void(0);" onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Road);return false;">Road</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Aerial);return false;">Aerial</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Hybrid);return false;">Hybrid</a>
+ <a href="javascript:void(0);"
+ onclick="map.SetMapStyle(VEMapStyle.Birdseye);return false;">Birdseye</a>
<br />
<br />
Zoom:<br />
@@ -48,9 +56,23 @@
<a href="javascript:void(0);" onclick="map.ZoomOut();return false;">Out</a>
<br />
<br />
- <a href="javascript:void(0);" onclick="showExadel();return false;">Show Exadel Office</a>
+ <a href="javascript:void(0);" onclick="showExadel();return false;">Show
+ Exadel Office</a>
<br />
- <a href="javascript:void(0);" onclick="showExadelInMinsk();return false;">Show Exadel in Belarus</a>
+ <a href="javascript:void(0);"
+ onclick="showExadelInMinsk();return false;">Show Exadel in
+ Belarus</a>
</f:verbatim>
</h:panelGroup>
+ <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('vEarthID').rendererType}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9358 - trunk/test-applications/jsp/src/main/webapp/Tree.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 05:43:57 -0400 (Wed, 02 Jul 2008)
New Revision: 9358
Modified:
trunk/test-applications/jsp/src/main/webapp/Tree/TreeProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/Tree/TreeProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tree/TreeProperty.jsp 2008-07-02 09:36:11 UTC (rev 9357)
+++ trunk/test-applications/jsp/src/main/webapp/Tree/TreeProperty.jsp 2008-07-02 09:43:57 UTC (rev 9358)
@@ -4,5 +4,15 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="treePropertySubviewID">
-
+<br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getAdviseNodeSelected" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('tree').adviseNodeSelected}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9357 - trunk/test-applications/jsp/src/main/webapp/Tooltip.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 05:36:11 -0400 (Wed, 02 Jul 2008)
New Revision: 9357
Modified:
trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-07-02 09:33:37 UTC (rev 9356)
+++ trunk/test-applications/jsp/src/main/webapp/Tooltip/TooltipProperty.jsp 2008-07-02 09:36:11 UTC (rev 9357)
@@ -73,10 +73,13 @@
<h:outputText value="Style:"></h:outputText>
<h:selectOneRadio value="#{tooltip.style}">
<f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="border:3px; font:bold 14px;" itemValue="border:3px; font:bold 14px;" />
- <f:selectItem itemLabel="border:green 3px solid; background-color:yellow;"
+ <f:selectItem itemLabel="border:3px; font:bold 14px;"
+ itemValue="border:3px; font:bold 14px;" />
+ <f:selectItem
+ itemLabel="border:green 3px solid; background-color:yellow;"
itemValue="border:green 3px solid; background-color:yellow;" />
- <f:selectItem itemLabel="border:green 2px solid; font-family:monospace;"
+ <f:selectItem
+ itemLabel="border:green 2px solid; font-family:monospace;"
itemValue="border:green 2px solid; font-family:monospace;" />
<a4j:support event="onclick" reRender="tooltipID" />
</h:selectOneRadio>
@@ -91,4 +94,15 @@
<a4j:support event="onclick" reRender="tooltipID" />
</h:selectBooleanCheckbox>
</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('tooltipID').value}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9356 - trunk/test-applications/jsp/src/main/webapp/ToolBar.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 05:33:37 -0400 (Wed, 02 Jul 2008)
New Revision: 9356
Modified:
trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp 2008-07-02 09:31:09 UTC (rev 9355)
+++ trunk/test-applications/jsp/src/main/webapp/ToolBar/ToolBarProperty.jsp 2008-07-02 09:33:37 UTC (rev 9356)
@@ -4,29 +4,40 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="toolBarPropertySubviewID">
- <h:panelGrid columns="2">
- <h:outputText value="Image location:"></h:outputText>
- <h:selectOneRadio value="#{toolBar.location}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
- </h:selectOneRadio>
+ <h:panelGrid columns="2">
+ <h:outputText value="Image location:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.location}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="itemSeparator:"></h:outputText>
- <h:selectOneRadio value="#{toolBar.itemSeparator}">
- <f:selectItem itemLabel="none" itemValue="none" />
- <f:selectItem itemLabel="line" itemValue="line" />
- <f:selectItem itemLabel="square" itemValue="square" />
- <f:selectItem itemLabel="disc" itemValue="disc" />
- <f:selectItem itemLabel="grid" itemValue="grid" />
- <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="itemSeparator:"></h:outputText>
+ <h:selectOneRadio value="#{toolBar.itemSeparator}">
+ <f:selectItem itemLabel="none" itemValue="none" />
+ <f:selectItem itemLabel="line" itemValue="line" />
+ <f:selectItem itemLabel="square" itemValue="square" />
+ <f:selectItem itemLabel="disc" itemValue="disc" />
+ <f:selectItem itemLabel="grid" itemValue="grid" />
+ <a4j:support event="onclick" reRender="toolBarId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Switch Styles" />
- <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
- action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
- </a4j:commandButton>
- </h:panelGrid>
+ <h:outputText value="Switch Styles" />
+ <a4j:commandButton id="slBtn" value="#{toolBar.btnLabel}"
+ action="#{toolBar.doStyles}" reRender="toolBarId,slBtn">
+ </a4j:commandButton>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getItemSeparator" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('toolBarId').itemSeparator}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9355 - trunk/test-applications/jsp/src/main/webapp/TogglePanel.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 05:31:09 -0400 (Wed, 02 Jul 2008)
New Revision: 9355
Modified:
trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp 2008-07-02 09:07:48 UTC (rev 9354)
+++ trunk/test-applications/jsp/src/main/webapp/TogglePanel/TogglePanelProperty.jsp 2008-07-02 09:31:09 UTC (rev 9355)
@@ -4,28 +4,41 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="togglePanelPropertySubviewID">
- <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
- <h:outputText value="InitialState:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.initialState}">
- <f:selectItem itemLabel="Asus" itemValue="asus" />
- <f:selectItem itemLabel="Benq" itemValue="benq" />
- <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
- <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
- </h:selectOneRadio>
+ <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px">
+ <h:outputText value="InitialState:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.initialState}">
+ <f:selectItem itemLabel="Asus" itemValue="asus" />
+ <f:selectItem itemLabel="Benq" itemValue="benq" />
+ <f:selectItem itemLabel="toshiba" itemValue="toshiba" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="StateOrder:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.stateOrder}">
- <f:selectItem itemLabel="Asus,Benq,Toshiba" itemValue="asus,benq,toshiba" />
- <f:selectItem itemLabel="Toshiba, Asus, Benq" itemValue="toshiba,asus,benq" />
- <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="StateOrder:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.stateOrder}">
+ <f:selectItem itemLabel="Asus,Benq,Toshiba"
+ itemValue="asus,benq,toshiba" />
+ <f:selectItem itemLabel="Toshiba, Asus, Benq"
+ itemValue="toshiba,asus,benq" />
+ <a4j:support event="onchange" reRender="tooggleTest:panel2"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="switchType:"></h:outputText>
- <h:selectOneRadio value="#{togglePanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
- </h:selectOneRadio>
- </h:panelGrid>
+ <h:outputText value="switchType:"></h:outputText>
+ <h:selectOneRadio value="#{togglePanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onclick" reRender="panel1,panel2"></a4j:support>
+ </h:selectOneRadio>
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getStateOrder" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('panel2').stateOrder}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months
JBoss Rich Faces SVN: r9354 - trunk/test-applications/jsp/src/main/webapp/TabPanel.
by richfaces-svn-commits@lists.jboss.org
Author: mvitenkov
Date: 2008-07-02 05:07:48 -0400 (Wed, 02 Jul 2008)
New Revision: 9354
Modified:
trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
Log:
+findComponent
Modified: trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp 2008-07-02 09:01:43 UTC (rev 9353)
+++ trunk/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp 2008-07-02 09:07:48 UTC (rev 9354)
@@ -4,62 +4,76 @@
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="tabPanelStraightforwardSubviewID">
- <h:panelGrid columns="2" cellspacing="10px">
- <h:outputText value="Width (px or %):"></h:outputText>
- <h:inputText value="#{tabPanel.width}" onchange="submit();" />
+ <h:panelGrid columns="2" cellspacing="10px">
+ <h:outputText value="Width (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.width}" onchange="submit();" />
- <h:outputText value="Height (px or %):"></h:outputText>
- <h:inputText value="#{tabPanel.height}" onchange="submit();" />
+ <h:outputText value="Height (px or %):"></h:outputText>
+ <h:inputText value="#{tabPanel.height}" onchange="submit();" />
- <h:outputText value="Title:"></h:outputText>
- <h:inputText value="#{tabPanel.title}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Title:"></h:outputText>
+ <h:inputText value="#{tabPanel.title}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
- <h:outputText value="LabelWidth:"></h:outputText>
- <h:inputText value="#{tabPanel.labelWidth}" onchange="submit();" />
+ <h:outputText value="LabelWidth:"></h:outputText>
+ <h:inputText value="#{tabPanel.labelWidth}" onchange="submit();" />
- <h:outputText value="SwitchType:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.switchType}">
- <f:selectItem itemLabel="client" itemValue="client" />
- <f:selectItem itemLabel="server" itemValue="server" />
- <f:selectItem itemLabel="ajax" itemValue="ajax" />
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="SwitchType:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.switchType}">
+ <f:selectItem itemLabel="client" itemValue="client" />
+ <f:selectItem itemLabel="server" itemValue="server" />
+ <f:selectItem itemLabel="ajax" itemValue="ajax" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Header Alignment:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.headerAlignment}">
- <f:selectItem itemLabel="left" itemValue="left" />
- <f:selectItem itemLabel="center" itemValue="center" />
- <f:selectItem itemLabel="right" itemValue="right" />
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:selectOneRadio>
+ <h:outputText value="Header Alignment:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.headerAlignment}">
+ <f:selectItem itemLabel="left" itemValue="left" />
+ <f:selectItem itemLabel="center" itemValue="center" />
+ <f:selectItem itemLabel="right" itemValue="right" />
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectOneRadio>
- <h:outputText value="Header Spacing:"></h:outputText>
- <h:inputText value="#{tabPanel.headerSpacing}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:inputText>
+ <h:outputText value="Header Spacing:"></h:outputText>
+ <h:inputText value="#{tabPanel.headerSpacing}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:inputText>
- <h:outputText value="Selected Tab:"></h:outputText>
- <h:selectOneRadio value="#{tabPanel.selectedTab}" onchange="submit();">
- <f:selectItem itemLabel="1" itemValue="tabOne" />
- <f:selectItem itemLabel="2" itemValue="tabTwo" />
- <f:selectItem itemLabel="3" itemValue="tabThree" />
- </h:selectOneRadio>
+ <h:outputText value="Selected Tab:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.selectedTab}" onchange="submit();">
+ <f:selectItem itemLabel="1" itemValue="tabOne" />
+ <f:selectItem itemLabel="2" itemValue="tabTwo" />
+ <f:selectItem itemLabel="3" itemValue="tabThree" />
+ </h:selectOneRadio>
- <h:outputText value="immediate" />
- <h:selectBooleanCheckbox value="#{tabPanel.immediate}">
- <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
- </h:selectBooleanCheckbox>
+ <h:outputText value="immediate" />
+ <h:selectBooleanCheckbox value="#{tabPanel.immediate}">
+ <a4j:support event="onchange" reRender="tabPanelId"></a4j:support>
+ </h:selectBooleanCheckbox>
- <h:outputText value="Rendered"></h:outputText>
- <h:selectBooleanCheckbox value="#{tabPanel.rendered}" onclick="submit()">
- </h:selectBooleanCheckbox>
+ <h:outputText value="Rendered"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.rendered}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
- <h:outputText value="Disable Tab"></h:outputText>
- <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}" onclick="submit()">
- </h:selectBooleanCheckbox>
- <h:outputText value="Switch Styles:" />
- <h:commandButton action="#{tabPanel.doStyles}" value="#{tabPanel.btnLabel}" />
- </h:panelGrid>
+ <h:outputText value="Disable Tab"></h:outputText>
+ <h:selectBooleanCheckbox value="#{tabPanel.disabledTab}"
+ onclick="submit()">
+ </h:selectBooleanCheckbox>
+ <h:outputText value="Switch Styles:" />
+ <h:commandButton action="#{tabPanel.doStyles}"
+ value="#{tabPanel.btnLabel}" />
+ </h:panelGrid>
+ <br />
+ <br />
+ <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
+ <h:panelGrid columns="2">
+ <rich:column>
+ <a4j:commandLink value="getSelectedTab" reRender="findID"></a4j:commandLink>
+ </rich:column>
+ <rich:column id="findID">
+ <h:outputText value="#{rich:findComponent('tabPanelId').selectedTab}" />
+ </rich:column>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file
16 years, 6 months