Author: ayanul
Date: 2007-09-03 04:48:03 -0400 (Mon, 03 Sep 2007)
New Revision: 2687
Modified:
trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java
trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp
trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
Log:
http://jira.jboss.com/jira/browse/RF-798
Modified: trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java 2007-09-03
01:12:17 UTC (rev 2686)
+++ trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java 2007-09-03
08:48:03 UTC (rev 2687)
@@ -8,9 +8,18 @@
private ArrayList dataTable;
public Data tD;
+ public boolean render;
+ public boolean renderIfSinglePage;
+ public String align;
+ public boolean limitToList;
public DataScroller() {
+ render = true;
+ renderIfSinglePage = true;
+ align = "left";
+ limitToList = false;
+
dataTable = new ArrayList();
for(int i=0;i<40;i++)
@@ -51,7 +60,47 @@
System.out.println("OldScrollValue: "+e.getOldScrolVal());
}
+ public Data getTD() {
+ return tD;
+ }
+ public void setTD(Data td) {
+ tD = td;
+ }
+ public boolean isRender() {
+ return render;
+ }
+
+ public void setRender(boolean render) {
+ this.render = render;
+ }
+
+ public boolean isRenderIfSinglePage() {
+ return renderIfSinglePage;
+ }
+
+ public void setRenderIfSinglePage(boolean renderIfSinglePage) {
+ this.renderIfSinglePage = renderIfSinglePage;
+ }
+
+ public String getAlign() {
+ return align;
+ }
+
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+ public boolean isLimitToList() {
+ return limitToList;
+ }
+
+ public void setLimitToList(boolean limitToList) {
+ this.limitToList = limitToList;
+ }
+
+
+
}
Modified: trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp 2007-09-03 01:12:17
UTC (rev 2686)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp 2007-09-03 08:48:03
UTC (rev 2687)
@@ -11,9 +11,9 @@
<h:form dir="DSform">
<h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
- var="dT" cellpadding="5px" rows="5"
border="1">
+ var="dT" cellpadding="5px" rows="5" border="1"
>
<f:facet name="header">
- <rich:datascroller maxPages="20"
scrollerListener="#{dataScroller.ScrollerListener}"/>
+ <rich:datascroller align="#{dataScroller.align}"
limitToList="#{dataScroller.limitToList}"
renderIfSinglePage="#{dataScroller.renderIfSinglePage}" maxPages="20"
scrollerListener="#{dataScroller.ScrollerListener}"/>
</f:facet>
<h:column>
<h:outputText value="#{dT.data0}" />
@@ -25,6 +25,26 @@
</h:dataTable>
<h:commandButton action="#{dataScroller.CutArray}"
value="CutArray" />
<h:commandButton action="#{dataScroller.RestoreArray}"
value="RestoreArray" />
+
+ <h:panelGrid columns="2">
+ <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="limitToList:" />
+ <h:selectBooleanCheckbox value="#{dataScroller.limitToList}"
onclick="submit();"/>
+
+ <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:panelGrid>
<h:commandLink value="Back"
action="main"></h:commandLink>
</h:form>
</f:subview>
Modified: trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-09-03 01:12:17 UTC
(rev 2686)
+++ trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-09-03 08:48:03 UTC
(rev 2687)
@@ -42,73 +42,73 @@
</h:panelGrid>
</h:form>
- <h:form id="frm1">
- <h:outputText value="JSF Components:" />
+ <h:form id="frm1">
+ <h:outputText value="JSF Components:" />
- <h:panelGrid id="panGrID" columns="2">
- <h:outputText value="Time:" />
- <h:inputText value="#{effect.time}" />
+ <h:panelGrid id="panGrID" columns="2">
+ <h:outputText value="Time:" />
+ <h:inputText value="#{effect.time}" />
- <f:verbatim>
- <span onclick="hidePanel1(), hedeImage1()"><font
- color="blue">Hide</font> </span>
- </f:verbatim>
- <h:graphicImage value="/pics/fatal.gif"
- onclick="hidePanel1(), hedeImage1()" />
+ <f:verbatim>
+ <span onclick="hidePanel1(), hedeImage1()"><font
color="blue">Hide Panel</font>
+ </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/fatal.gif"
+ onclick="hidePanel1(), hedeImage1()" />
- <f:verbatim>
- <span onclick="showPanel1(), showImage1()"><font
- color="blue">Show</font> </span>
- </f:verbatim>
- <h:graphicImage value="/pics/warn.gif"
- onclick="showPanel1(), showImage1()" />
+ <f:verbatim>
+ <span onclick="showPanel1(), showImage1()"><font
color="blue">Show</font>
+ </span>
+ </f:verbatim>
+ <h:graphicImage value="/pics/warn.gif"
+ onclick="showPanel1(), showImage1()" />
- <h:outputText value="Event (onclick):" />
+ <h:outputText value="Event (onclick):" />
- <f:verbatim></f:verbatim>
+ <f:verbatim></f:verbatim>
- <h:outputText value="No" />
- <h:outputText value="Yes" />
+ <h:outputText value="No" />
+ <h:outputText value="Yes" />
- <h:panelGroup id="form_1a_ID">
- <h:panelGrid id="panel_1_ID" border="1"
- style="background-color:#CCC">
- <f:facet name="header">
- <h:outputText value="Panel Header" />
- </f:facet>
+ <h:panelGroup id="form_1a_ID">
+ <h:panelGrid id="panel_1_ID" border="1"
+ style="background-color:#CCC">
+ <f:facet name="header">
+ <h:outputText value="Panel Header" />
+ </f:facet>
- <h:outputText value="Panel Content" />
- </h:panelGrid>
- </h:panelGroup>
+ <h:outputText value="Panel Content" />
+ </h:panelGrid>
+ </h:panelGroup>
- <h:graphicImage id="asusID" value="/pics/asus.jpg"
height="100px"
- width="125px" onclick="hideImage1()" />
+ <h:graphicImage id="asusID" value="/pics/asus.jpg"
height="100px"
+ width="125px" onclick="hideImage1()" />
- <h:panelGroup id="form_1b_ID">
- <h:inputText value="onmouse and onclick">
- <rich:effect event="onclick" type="Opacity"
- params="duration:0.5,from:0.4,to:1.0" />
- <rich:effect event="onmouseout" type="Opacity"
- params="duration:0.5,from:1.0,to:0.4" />
- </h:inputText>
- </h:panelGroup>
- </h:panelGrid>
+ <h:panelGroup id="form_1b_ID">
+ <h:inputText value="onmouse and onclick">
+ <rich:effect event="onclick" type="Highlight"
+ params="duration:0.5,from:0.4,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.5,from:0.4,to:1.0" />
+ </h:inputText>
+ </h:panelGroup>
+ </h:panelGrid>
- <rich:effect for="panel_1_ID" event=""
name="hidePanel1" type="Fade"
- params="duration:#{effect.time}" />
- <rich:effect for="panel_1_ID" event=""
name="showPanel1" type="Appear" />
+ <rich:effect for="panel_1_ID" event=""
name="hidePanel1" type="Fade"
+ params="duration:#{effect.time}" />
+ <rich:effect for="panel_1_ID" event=""
name="showPanel1" type="Appear" />
- <rich:effect for="asusID" event="" name="hideImage1"
type="Fade"
- params="duration:#{effect.time}" />
- <rich:effect for="asusID" event="" name="showImage1"
type="Appear" />
-
- <f:verbatim>
- <br />
- <span onclick="hideFrm1(),showIndexID()"><font
color="blue">Close</font></span>
- </f:verbatim>
- </h:form>
+ <rich:effect for="asusID" event="" name="hideImage1"
type="Fold"
+ params="duration:#{effect.time}" />
+ <rich:effect for="asusID" event="" name="showImage1"
type="Grow" />
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm1(),showIndexID()"><font
color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
+
<h:form id="frm2">
<h:outputText
value="JSF Component with Event and non-jsf target (onclick, onmouseout)"
/>
@@ -164,108 +164,121 @@
</f:verbatim>
</h:form>
- <h:form id="frm4">
- <h:graphicImage id="img_1_ID" value="/pics/asus.jpg"
width="200px"
- height="150px" />
+ <h:form id="frm4">
+ <h:outputText value="1. (Event 2)" />
+ <h:graphicImage id="img_1_ID" value="/pics/asus.jpg"
width="200px"
+ height="150px" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="2. (Hide 1)" />
+ <h:graphicImage id="img_2_ID" value="/pics/benq.jpg"
width="200px"
+ height="150px" />
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+ <h:outputText value="3. (Pulsate 3, Show 1)" />
+ <h:graphicImage id="img_3_ID" value="/pics/toshiba.jpg"
width="200px"
+ height="150px" >
+ <rich:effect event="onclick" type="Pulsate"/>
+ </h:graphicImage>
+
+ <rich:effect event="onclick" for="img_1_ID"
targetId="img_2_ID"
+ type="BlindDown" />
+ <rich:effect event="onclick" for="img_2_ID"
targetId="img_1_ID"
+ type="Puff" />
+ <rich:effect event="onclick" for="img_3_ID"
targetId="img_1_ID"
+ type="Grow" params="duration:0.8" />
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm4(),showIndexID()"><font
color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
+
+ <h:form id="frm5">
+ <h:panelGrid id="panGrID" columns="2">
<f:verbatim>
- <br />
+ <span onclick="hideRichPanel()"><font
color="blue">Hide
+ Panel</font> </span>
</f:verbatim>
- <h:graphicImage id="img_2_ID" value="/pics/benq.jpg"
width="200px"
- height="150px" />
+ <h:graphicImage value="/pics/fatal.gif"
onclick="hideRichPanel()" />
+
<f:verbatim>
- <br />
+ <span onclick="showRichPanel()"><font
color="blue">Show
+ Panel</font> </span>
</f:verbatim>
- <h:graphicImage id="img_3_ID" value="/pics/toshiba.jpg"
width="200px"
- height="150px" />
+ <h:graphicImage value="/pics/warn.gif"
onclick="showRichPanel()" />
- <rich:effect event="onclick" for="img_1_ID"
targetId="img_2_ID"
- type="BlindDown" params="duration:0.8" />
- <rich:effect event="onclick" for="img_2_ID"
targetId="img_1_ID"
- type="BlindUp" params="duration:0.8" />
- <rich:effect event="onclick" for="img_3_ID"
targetId="img_1_ID"
- type="Appear" params="duration:0.8" />
-
<f:verbatim>
- <br />
- <span onclick="hideFrm4(),showIndexID()"><font
color="blue">Close</font></span>
+ <span onclick="hideRichTabPanel()"><font
color="blue">Hide Tab
+ Panel</font> </span>
</f:verbatim>
- </h:form>
+ <h:graphicImage value="/pics/fatal.gif"
onclick="hideRichTabPanel()" />
- <h:form id="frm5">
- <h:panelGrid id="panGrID" columns="2">
- <f:verbatim>
- <span onclick="hideRichPanel()"><font
color="blue">Hide
- Panel</font> </span>
- </f:verbatim>
- <h:graphicImage value="/pics/fatal.gif"
onclick="hideRichPanel()" />
-
- <f:verbatim>
- <span onclick="showRichPanel()"><font
color="blue">Show
- Panel</font> </span>
- </f:verbatim>
- <h:graphicImage value="/pics/warn.gif"
onclick="showRichPanel()" />
-
- <f:verbatim>
- <span onclick="hideRichTabPanel()"><font
color="blue">Hide Tab
- Panel</font> </span>
- </f:verbatim>
- <h:graphicImage value="/pics/fatal.gif"
onclick="hideRichTabPanel()" />
-
- <f:verbatim>
- <span onclick="showRichTabPanel()"><font
color="blue">Show Tab
- Panel</font> </span>
- </f:verbatim>
- <h:graphicImage value="/pics/warn.gif"
onclick="showRichTabPanel()" />
- </h:panelGrid>
-
- <rich:panel id="richPanelID">
- <f:facet name="header">
- <h:outputText value="Header of the Panel" />
- </f:facet>
- <f:verbatim>
- This is a panel. This is a panel. This is a panel. This is a panel. <br />
- This is a panel. This is a panel. This is a panel. This is a panel.
- </f:verbatim>
- <rich:effect event="onclick" type="Opacity"
- params="duration:0.6,from:0.3,to:1.0" />
- <rich:effect event="onmouseout" type="Opacity"
- params="duration:0.6,from:1.0,to:0.3" />
- </rich:panel>
-
- <rich:tabPanel id="tabPanelID"
- headerAlignment="Header of the tabPanel" height="200px"
- switchType="ajax" rendered="true" title="Title">
-
- <rich:tab id="tab1" label="label 1">
- <h:outputText value="This is tab panel 1"
styleClass="text1"></h:outputText>
- </rich:tab>
-
- <rich:tab id="tab2" label="label 2">
- <h:outputText value="This is tab panel 2"
styleClass="text1"></h:outputText>
- </rich:tab>
-
- <rich:tab id="tab3" label="label 3">
- <h:outputText value="This is tab panel 3"
styleClass="text1"></h:outputText>
- </rich:tab>
-
- <rich:effect event="onclick" type="Opacity"
- params="duration:0.5,from:0.4,to:1.0" />
- <rich:effect event="onmouseout" type="Opacity"
- params="duration:0.5,from:1.0,to:0.4" />
- </rich:tabPanel>
-
- <rich:effect for="richPanelID" event=""
name="hideRichPanel" type="Fade" />
- <rich:effect for="richPanelID" event=""
name="showRichPanel" type="Appear" />
-
- <rich:effect for="tabPanelID" event=""
name="hideRichTabPanel" type="Fade" />
- <rich:effect for="tabPanelID" event=""
name="showRichTabPanel" type="Appear" />
-
<f:verbatim>
- <br />
- <span onclick="hideFrm5(),showIndexID()"><font
color="blue">Close</font></span>
+ <span onclick="showRichTabPanel()"><font
color="blue">Show Tab
+ Panel</font> </span>
</f:verbatim>
- </h:form>
+ <h:graphicImage value="/pics/warn.gif"
onclick="showRichTabPanel()" />
+
+ <h:outputText value="Tab Panel mode:" />
+ <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:panelGrid>
+ <rich:panel id="richPanelID">
+ <f:facet name="header">
+ <h:outputText value="Header of the Panel" />
+ </f:facet>
+ <f:verbatim>
+ This is a panel. This is a panel. This is a panel. This is a panel. <br />
+ This is a panel. This is a panel. This is a panel. This is a panel.
+ </f:verbatim>
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.6,from:0.3,to:1.0" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.6,from:1.0,to:0.3" />
+ </rich:panel>
+
+ <rich:tabPanel id="tabPanelID"
+ headerAlignment="Header of the tabPanel" height="200px"
+ switchType="#{tabPanel.switchType}" rendered="true"
title="Title">
+
+ <rich:tab id="tab1" label="label 1">
+ <h:outputText value="This is tab panel 1"
styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:tab id="tab2" label="label 2">
+ <h:outputText value="This is tab panel 2"
styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:tab id="tab3" label="label 3">
+ <h:outputText value="This is tab panel 3"
styleClass="text1"></h:outputText>
+ </rich:tab>
+
+ <rich:effect event="onclick" type="Opacity"
+ params="duration:0.4,from:1.0,to:0.4" />
+ <rich:effect event="onmouseout" type="Opacity"
+ params="duration:0.4,from:0.4,to:1.0" />
+ </rich:tabPanel>
+
+ <rich:effect for="richPanelID" event=""
name="hideRichPanel" type="Fade" />
+ <rich:effect for="richPanelID" event=""
name="showRichPanel" type="Appear" />
+
+ <rich:effect for="tabPanelID" event=""
name="hideRichTabPanel" type="Fade" />
+ <rich:effect for="tabPanelID" event=""
name="showRichTabPanel" type="Appear" />
+
+ <f:verbatim>
+ <br />
+ <span onclick="hideFrm5(),showIndexID()"><font
color="blue">Close</font></span>
+ </f:verbatim>
+ </h:form>
+
<rich:effect for="indexID" event="" name="hideIndexID"
type="BlindUp" />
<rich:effect for="indexID" event="" name="showIndexID"
type="BlindDown" />