Author: Vadim Mikovoz
Date: 2009-05-27 04:48:37 -0400 (Wed, 27 May 2009)
New Revision: 14360
Modified:
branches/community/3.3.X/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp
branches/community/3.3.X/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
Log:
Modified:
branches/community/3.3.X/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp
===================================================================
---
branches/community/3.3.X/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp 2009-05-26
19:09:50 UTC (rev 14359)
+++
branches/community/3.3.X/test-applications/jsp/src/main/webapp/TabPanel/TabPanel.jsp 2009-05-27
08:48:37 UTC (rev 14360)
@@ -5,8 +5,9 @@
<f:subview id="tabPanelSubviewID">
<rich:tabPanel id="tabPanelId"
binding="#{tabPanel.htmlTabPanel}"
- headerAlignment="#{tabPanel.headerAlignment}"
- width="#{tabPanel.width}" contentStyle="#{style.contentStyle}"
+ headerAlignment="#{tabPanel.headerAlignment}" label="TabPanel
label"
+ width="#{tabPanel.width}" dir="#{tabPanel.direction}"
+ contentStyle="#{style.contentStyle}"
headerClass="#{style.headerClass}" style="#{style.style}"
styleClass="#{style.styleClass}" tabClass="#{style.tabClass}"
height="#{tabPanel.height}" rendered="#{tabPanel.rendered}"
@@ -17,25 +18,35 @@
disabledTabClass="#{tabPanel.disabledTabStyle}"
inactiveTabClass="#{tabPanel.inactiveTabStyle}"
contentClass="#{tabPanel.contentStyle}" onclick="#{event.onclick}"
- ondblclick="#{event.ondblclick}" onkeydown="#{event.onkeydown}"
- onkeypress="#{event.onkeypress}" onkeyup="#{event.onkeyup}"
- onmousedown="#{event.onmousedown}"
onmousemove="#{event.onmousemove}"
- onmouseout="#{event.onmouseout}"
onmouseover="#{event.onmouseover}"
- onmouseup="#{event.onmouseup}">
+ ondblclick="#{event.ondblclick}"
onmousedown="#{event.onmousedown}"
+ onmousemove="#{event.onmousemove}"
onmouseout="#{event.onmouseout}"
+ onmouseover="#{event.onmouseover}"
onmouseup="#{event.onmouseup}">
- <rich:tab id="tabOne" binding="#{tabPanel.htmlTab}"
labelWidth="#{tabPanel.labelWidth}"
- label="#{tabPanel.label}" onclick="#{event.onclick}"
+ <rich:tab id="tabOne" binding="#{tabPanel.htmlTab}"
+ labelWidth="#{tabPanel.labelWidth}" onclick="#{event.onclick}"
oncomplete="#{event.oncomplete}" ondblclick="#{event.ondblclick}"
onkeydown="#{event.onkeydown}" onkeypress="#{event.onkeypress}"
onkeyup="#{event.onkeyup}" onmousemove="#{event.onmousemove}"
onmouseout="#{event.onmouseout}"
onmouseover="#{event.onmouseover}"
onmouseup="#{event.onmouseup}" ontabenter="#{event.ontabenter}"
- ontableave="#{event.ontableave}">
+ ontableave="#{event.ontableave}"
onlabelclick="#{event.onlabelclick}"
+ onlabeldblclick="#{event.onlabeldblclick}"
+ onlabelmousedown="#{event.onlabelmousedown}"
+ onlabelmousemove="#{event.onlabelmousemove}"
+ onlabelmouseup="#{event.onlabelmouseup}"
+ onbeforedomupdate="#{event.onbeforedomupdate}"
+ onlabelkeydown="#{event.onlabelkeydown}"
+ onlabelkeypress="#{event.onlabelkeypress}"
+ onlabelkeyup="#{event.onlabelkeyup}">
+ <f:facet name="label">
+ <h:inputText value="" />
+ </f:facet>
<h:outputText value="This is tab panel test example"
styleClass="text1"></h:outputText>
<h:outputLink
value="http://www.jboss.com/">
<f:verbatim>Link</f:verbatim>
</h:outputLink>
+ <h:inputText value="" />
</rich:tab>
<rich:tab id="tabTwo" label="Tab with image"
disabled="#{tabPanel.disabledTab}" onclick="#{event.onclick}"
@@ -68,7 +79,7 @@
Some text... Some text... Some text... Some text... Some text... Some text...
Some text... Some text..." />
</rich:tab>
</rich:tabPanel>
-
+ <rich:colorPicker></rich:colorPicker>
<rich:spacer height="20px"></rich:spacer>
<rich:tabPanel switchType="ajax" id="test">
Modified:
branches/community/3.3.X/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp
===================================================================
---
branches/community/3.3.X/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp 2009-05-26
19:09:50 UTC (rev 14359)
+++
branches/community/3.3.X/test-applications/jsp/src/main/webapp/TabPanel/TabPanelProperty.jsp 2009-05-27
08:48:37 UTC (rev 14360)
@@ -4,7 +4,7 @@
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
<f:subview id="tabPanelStraightforwardSubviewID">
-<h:commandButton value="add test"
action="#{tabPanel.addHtmlTabPanel}"></h:commandButton>
+ <h:commandButton value="add test"
action="#{tabPanel.addHtmlTabPanel}"></h:commandButton>
<h:panelGrid columns="2" cellspacing="10px">
<h:outputText value="Width (px or %):"></h:outputText>
<h:inputText value="#{tabPanel.width}" onchange="submit();"
/>
@@ -20,6 +20,12 @@
<h:outputText value="LabelWidth:"></h:outputText>
<h:inputText value="#{tabPanel.labelWidth}" onchange="submit();"
/>
+ <h:outputText value="Direction:"></h:outputText>
+ <h:selectOneRadio value="#{tabPanel.direction}">
+ <f:selectItem itemLabel="LTR" itemValue="LTR" />
+ <f:selectItem itemLabel="RTL" itemValue="RTL" />
+ <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" />
@@ -62,6 +68,13 @@
<h:selectBooleanCheckbox value="#{tabPanel.disabledTab}"
onclick="submit()">
</h:selectBooleanCheckbox>
+ <h:commandButton actionListener="#{tabPanel.checkBinding}"
+ value="Binding">
+ <a4j:support event="onclick"
reRender="bindLabelID"></a4j:support>
+ </h:commandButton>
+ <h:outputText value="#{tabPanel.bindLabel}" id="bindLabelID"
/>
+ <a4j:commandButton value="rerender" reRender="tabPanelId" />
+ <br />
<h:outputText value="Switch Styles:" />
<h:commandButton action="#{tabPanel.doStyles}"
value="#{tabPanel.btnLabel}" />