JBoss Rich Faces SVN: r2695 - trunk/test-applications/jsp/src/main/webapp/Insert.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-03 06:40:18 -0400 (Mon, 03 Sep 2007)
New Revision: 2695
Modified:
trunk/test-applications/jsp/src/main/webapp/Insert/Insert.jsp
Log:
http://jira.jboss.com/jira/browse/RF-803
Modified: trunk/test-applications/jsp/src/main/webapp/Insert/Insert.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Insert/Insert.jsp 2007-09-03 10:27:30 UTC (rev 2694)
+++ trunk/test-applications/jsp/src/main/webapp/Insert/Insert.jsp 2007-09-03 10:40:18 UTC (rev 2695)
@@ -47,7 +47,7 @@
</h:selectOneMenu>
<h:outputText value="Rendered" />
- <h:selectBooleanCheckbox value="#{insert.rendered}" />
+ <h:selectBooleanCheckbox value="#{insert.rendered}" onchange="submit();"/>
</h:panelGrid>
<h:commandLink value="Back" action="main"></h:commandLink>
</h:form>
18 years, 8 months
JBoss Rich Faces SVN: r2694 - trunk/test-applications/facelets/src/main/webapp/Effect.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-03 06:27:30 -0400 (Mon, 03 Sep 2007)
New Revision: 2694
Modified:
trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
Log:
update
Modified: trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2007-09-03 10:27:20 UTC (rev 2693)
+++ trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2007-09-03 10:27:30 UTC (rev 2694)
@@ -229,7 +229,7 @@
<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>
+ <a4j:support event="onclick" reRender="tabPanelId"></a4j:support>
</h:selectOneRadio>
</h:panelGrid>
18 years, 8 months
JBoss Rich Faces SVN: r2693 - trunk/test-applications/jsp/src/main/webapp/Effect.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-03 06:27:20 -0400 (Mon, 03 Sep 2007)
New Revision: 2693
Modified:
trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
Log:
update
Modified: trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-09-03 09:48:25 UTC (rev 2692)
+++ trunk/test-applications/jsp/src/main/webapp/Effect/Effect.jsp 2007-09-03 10:27:20 UTC (rev 2693)
@@ -227,7 +227,7 @@
<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>
+ <a4j:support event="onclick" reRender="tabPanelId"></a4j:support>
</h:selectOneRadio>
</h:panelGrid>
18 years, 8 months
JBoss Rich Faces SVN: r2692 - in trunk/test-applications/facelets/src/main: webapp/DataScroller and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-03 05:48:25 -0400 (Mon, 03 Sep 2007)
New Revision: 2692
Modified:
trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java
trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml
Log:
update
Modified: trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java 2007-09-03 09:48:17 UTC (rev 2691)
+++ trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java 2007-09-03 09:48:25 UTC (rev 2692)
@@ -8,15 +8,44 @@
private ArrayList dataTable;
public Data tD;
+ public String align;
+ public String fastControls;
public boolean render;
public boolean renderIfSinglePage;
- public String align;
public boolean limitToList;
+ public boolean renderTable;
+ public int maxPages;
+ public boolean isRenderTable() {
+ return renderTable;
+ }
+
+ public void setRenderTable(boolean renderTable) {
+ this.renderTable = renderTable;
+ }
+
+ public String getFastControls() {
+ return fastControls;
+ }
+
+ public void setFastControls(String fastControls) {
+ this.fastControls = fastControls;
+ }
+
+ public int getMaxPages() {
+ return maxPages;
+ }
+
+ public void setMaxPages(int maxPages) {
+ this.maxPages = maxPages;
+ }
+
public DataScroller() {
+ fastControls = "auto";
render = true;
renderIfSinglePage = true;
align = "left";
+ maxPages = 20;
limitToList = false;
Modified: trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml 2007-09-03 09:48:17 UTC (rev 2691)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml 2007-09-03 09:48:25 UTC (rev 2692)
@@ -9,45 +9,69 @@
<title></title>
</head>
<body>
- <h:form dir="DSform">
+ <h:form dir="DSform">
- <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
- var="dT" cellpadding="5px" rows="5" border="1" >
- <f:facet name="header">
- <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}" />
- </h:column>
- <h:column>
- <h:outputText value="#{dT.data1}" />
- </h:column>
+ <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
+ var="dT" cellpadding="5px" rows="5" border="1">
+ <f:facet name="header">
+ <rich:datascroller fastControls="#{dataScroller.fastControls}" align="#{dataScroller.align}"
+ limitToList="#{dataScroller.limitToList}"
+ renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
+ maxPages="#{dataScroller.maxPages}" scrollerListener="#{dataScroller.ScrollerListener}" />
+ </f:facet>
+ <h:column>
+ <h:outputText value="#{dT.data0}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{dT.data1}" />
+ </h:column>
- </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:dataTable>
+ <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: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>
+ <h:outputText value="Rendered (dataTable)" />
+ <h:selectBooleanCheckbox value="#{dataScroller.renderTable}"
+ onclick="submit();" />
+
+ <h:outputText value="Rendered (datascroller):" />
+ <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="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:panelGrid>
+ <h:commandLink value="Back" action="main"></h:commandLink>
+ </h:form>
</body>
</f:view>
</html>
18 years, 8 months
JBoss Rich Faces SVN: r2691 - in trunk/test-applications/jsp/src/main: webapp/DataScroller and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-03 05:48:17 -0400 (Mon, 03 Sep 2007)
New Revision: 2691
Modified:
trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java
trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp
Log:
update
Modified: trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java 2007-09-03 09:40:28 UTC (rev 2690)
+++ trunk/test-applications/jsp/src/main/java/dataScroller/DataScroller.java 2007-09-03 09:48:17 UTC (rev 2691)
@@ -8,15 +8,44 @@
private ArrayList dataTable;
public Data tD;
+ public String align;
+ public String fastControls;
public boolean render;
public boolean renderIfSinglePage;
- public String align;
public boolean limitToList;
+ public boolean renderTable;
+ public int maxPages;
+ public boolean isRenderTable() {
+ return renderTable;
+ }
+
+ public void setRenderTable(boolean renderTable) {
+ this.renderTable = renderTable;
+ }
+
+ public String getFastControls() {
+ return fastControls;
+ }
+
+ public void setFastControls(String fastControls) {
+ this.fastControls = fastControls;
+ }
+
+ public int getMaxPages() {
+ return maxPages;
+ }
+
+ public void setMaxPages(int maxPages) {
+ this.maxPages = maxPages;
+ }
+
public DataScroller() {
+ fastControls = "auto";
render = true;
renderIfSinglePage = true;
align = "left";
+ maxPages = 20;
limitToList = false;
Modified: trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp 2007-09-03 09:40:28 UTC (rev 2690)
+++ trunk/test-applications/jsp/src/main/webapp/DataScroller/DS.jsp 2007-09-03 09:48:17 UTC (rev 2691)
@@ -3,51 +3,75 @@
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<f:view>
-<html>
-<head>
-<title></title>
-</head>
-<f:subview id="dataScrollerID">
- <h:form dir="DSform">
+ <html>
+ <head>
+ <title></title>
+ </head>
+ <f:subview id="dataScrollerID">
+ <h:form dir="DSform">
- <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
- var="dT" cellpadding="5px" rows="5" border="1" >
- <f:facet name="header">
- <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}" />
- </h:column>
- <h:column>
- <h:outputText value="#{dT.data1}" />
- </h:column>
+ <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
+ var="dT" cellpadding="5px" rows="5" border="1">
+ <f:facet name="header">
+ <rich:datascroller fastControls="#{dataScroller.fastControls}" align="#{dataScroller.align}"
+ limitToList="#{dataScroller.limitToList}"
+ renderIfSinglePage="#{dataScroller.renderIfSinglePage}"
+ maxPages="#{dataScroller.maxPages}" scrollerListener="#{dataScroller.ScrollerListener}" />
+ </f:facet>
+ <h:column>
+ <h:outputText value="#{dT.data0}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{dT.data1}" />
+ </h:column>
- </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:dataTable>
+ <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: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>
-</html>
+ <h:outputText value="Rendered (dataTable)" />
+ <h:selectBooleanCheckbox value="#{dataScroller.renderTable}"
+ onclick="submit();" />
+
+ <h:outputText value="Rendered (datascroller):" />
+ <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="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:panelGrid>
+ <h:commandLink value="Back" action="main"></h:commandLink>
+ </h:form>
+ </f:subview>
+ </html>
</f:view>
18 years, 8 months
JBoss Rich Faces SVN: r2690 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: smukhina
Date: 2007-09-03 05:40:28 -0400 (Mon, 03 Sep 2007)
New Revision: 2690
Modified:
trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml
Log:
http://jira.jboss.com/jira/browse/RF-398
Modified: trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml 2007-09-03 09:29:59 UTC (rev 2689)
+++ trunk/docs/userguide/en/src/main/docbook/included/virtualEarth.desc.xml 2007-09-03 09:40:28 UTC (rev 2690)
@@ -7,7 +7,7 @@
</sectioninfo>
<section>
<title>Description</title>
- <para>It's the component that presents the Microsoft <property>Virtual Earth map</property> in the JSF applications.</para>
+ <para>The component presents the Microsoft <property>Virtual Earth map</property> in the JSF applications.</para>
<figure>
<title>virtualEarth component</title>
<mediaobject>
18 years, 8 months
JBoss Rich Faces SVN: r2689 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: vkukharchuk
Date: 2007-09-03 05:29:59 -0400 (Mon, 03 Sep 2007)
New Revision: 2689
Modified:
trunk/docs/userguide/en/src/main/resources/images/recursiveTreeNodes1.png
trunk/docs/userguide/en/src/main/resources/images/treeNodes1.png
Log:
http://jira.jboss.com/jira/browse/RF-658
Modified: trunk/docs/userguide/en/src/main/resources/images/recursiveTreeNodes1.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/treeNodes1.png
===================================================================
(Binary files differ)
18 years, 8 months
JBoss Rich Faces SVN: r2688 - in trunk/test-applications/facelets/src/main: webapp/DataScroller and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: ayanul
Date: 2007-09-03 04:48:15 -0400 (Mon, 03 Sep 2007)
New Revision: 2688
Modified:
trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java
trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml
trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
Log:
http://jira.jboss.com/jira/browse/RF-798
Modified: trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java 2007-09-03 08:48:03 UTC (rev 2687)
+++ trunk/test-applications/facelets/src/main/java/dataScroller/DataScroller.java 2007-09-03 08:48:15 UTC (rev 2688)
@@ -1,23 +1,51 @@
package dataScroller;
-import java.util.*;
+import java.util.ArrayList;
+import org.richfaces.event.DataScrollerEvent;
+
public class DataScroller {
private ArrayList dataTable;
- public ArrayList temp;
+ 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();
- temp = new ArrayList();
- for(int i=0;i<20;i++)
+
+ for(int i=0;i<40;i++)
{
dataTable.add(new Data("Random",i));
}
}
-
+
+ public void CutArray(){
+ int k = dataTable.size()-1;
+ for(int i = k ;i > (k+1)/2; i--)
+ {
+ dataTable.remove(i);
+ }
+ }
+
+ public void RestoreArray(){
+
+ int k = dataTable.size()-1;
+ for(int i = k;i < (k+1)*2;i++)
+ {
+ dataTable.add(new Data("Random",i));
+ }
+ }
+
public ArrayList getDataTable() {
return dataTable;
}
@@ -25,8 +53,54 @@
public void setDataTable(ArrayList dataTable) {
this.dataTable = dataTable;
}
+
+ public void ScrollerListener(DataScrollerEvent e){
+
+ System.out.println("NewScrollValue: "+e.getNewScrolVal());
+ 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/facelets/src/main/webapp/DataScroller/DS.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml 2007-09-03 08:48:03 UTC (rev 2687)
+++ trunk/test-applications/facelets/src/main/webapp/DataScroller/DS.xhtml 2007-09-03 08:48:15 UTC (rev 2688)
@@ -10,13 +10,12 @@
</head>
<body>
<h:form dir="DSform">
- <h:dataTable width="400" id="dataTableId"
- value="#{dataScroller.dataTable}" var="dT" cellpadding="5px" rows="5"
- border="1">
- <a4j:facet name="header">
- <rich:datascroller maxPages="20"></rich:datascroller>
- </a4j:facet>
+ <h:dataTable id="dataTableId" value="#{dataScroller.dataTable}"
+ var="dT" cellpadding="5px" rows="5" border="1" >
+ <f:facet name="header">
+ <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}" />
</h:column>
@@ -24,9 +23,29 @@
<h:outputText value="#{dT.data1}" />
</h:column>
-
</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>
</body>
Modified: trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2007-09-03 08:48:03 UTC (rev 2687)
+++ trunk/test-applications/facelets/src/main/webapp/Effect/Effect.xhtml 2007-09-03 08:48:15 UTC (rev 2688)
@@ -89,9 +89,9 @@
<h:panelGroup id="form_1b_ID">
<h:inputText value="onmouse and onclick">
- <rich:effect event="onclick" type="Opacity"
+ <rich:effect event="onclick" type="Fold"
params="duration:0.5,from:0.4,to:1.0" />
- <rich:effect event="onmouseout" type="Opacity"
+ <rich:effect event="onmouseout" type="Highlight"
params="duration:0.5,from:1.0,to:0.4" />
</h:inputText>
</h:panelGroup>
@@ -101,9 +101,9 @@
params="duration:#{effect.time}" />
<rich:effect for="panel_1_ID" name="showPanel1" type="Appear" />
- <rich:effect for="asusID" name="hideImage1" type="Fade"
+ <rich:effect for="asusID" name="hideImage1" type="Fold"
params="duration:#{effect.time}" />
- <rich:effect for="asusID" name="showImage1" type="Appear" />
+ <rich:effect for="asusID" name="showImage1" type="Grow" />
<f:verbatim>
<br />
@@ -167,25 +167,30 @@
</h:form>
<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" />
+ height="150px" >
+ <rich:effect event="onclick" type="Pulsate"/>
+ </h:graphicImage>
<rich:effect event="onclick" for="img_1_ID" targetId="img_2_ID"
- type="BlindDown" params="duration:0.8" />
+ type="BlindDown" />
<rich:effect event="onclick" for="img_2_ID" targetId="img_1_ID"
- type="BlindUp" params="duration:0.8" />
+ type="Puff" />
<rich:effect event="onclick" for="img_3_ID" targetId="img_1_ID"
- type="Appear" params="duration:0.8" />
+ type="Grow" params="duration:0.8" />
<f:verbatim>
<br />
@@ -218,6 +223,14 @@
Panel</font> </span>
</f:verbatim>
<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">
@@ -236,7 +249,7 @@
<rich:tabPanel id="tabPanelID"
headerAlignment="Header of the tabPanel" height="200px"
- switchType="ajax" rendered="true" title="Title">
+ 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>
@@ -251,16 +264,16 @@
</rich:tab>
<rich:effect event="onclick" type="Opacity"
- params="duration:0.5,from:0.4,to:1.0" />
+ params="duration:0.4,from:1.0,to:0.4" />
<rich:effect event="onmouseout" type="Opacity"
- params="duration:0.5,from:1.0,to:0.4" />
+ params="duration:0.4,from:0.4,to:1.0" />
</rich:tabPanel>
- <rich:effect for="richPanelID" name="hideRichPanel" type="Fade" />
- <rich:effect for="richPanelID" name="showRichPanel" type="Appear" />
+ <rich:effect for="richPanelID" event="" name="hideRichPanel" type="Fade" />
+ <rich:effect for="richPanelID" event="" name="showRichPanel" type="Appear" />
- <rich:effect for="tabPanelID" name="hideRichTabPanel" type="Fade" />
- <rich:effect for="tabPanelID" name="showRichTabPanel" type="Appear" />
+ <rich:effect for="tabPanelID" event="" name="hideRichTabPanel" type="Fade" />
+ <rich:effect for="tabPanelID" event="" name="showRichTabPanel" type="Appear" />
<f:verbatim>
<br />
@@ -269,8 +282,8 @@
</h:form>
- <rich:effect for="indexID" name="hideIndexID" type="BlindUp" />
- <rich:effect for="indexID" name="showIndexID" type="BlindDown" />
+ <rich:effect for="indexID" name="hideIndexID" type="SlideUp" />
+ <rich:effect for="indexID" name="showIndexID" type="SlideDown" />
<rich:effect for="frm1" name="hideFrm1" type="Fade" />
<rich:effect for="frm1" name="showFrm1" type="Appear" />
18 years, 8 months
JBoss Rich Faces SVN: r2687 - in trunk/test-applications/jsp/src/main: webapp/DataScroller and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
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" />
18 years, 8 months
JBoss Rich Faces SVN: r2686 - in trunk: cdk/generator/src/main/resources/META-INF/templates12 and 8 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-09-02 21:12:17 -0400 (Sun, 02 Sep 2007)
New Revision: 2686
Added:
trunk/ui/core/src/test/java/org/ajax4jsf/component/MediaOutputComponentBaseTest.java
Removed:
trunk/ui/drag-drop/src/main/java/org/richfaces/taglib/DropListenerTag.java
Modified:
trunk/cdk/generator/src/main/resources/META-INF/templates/componenttest.vm
trunk/cdk/generator/src/main/resources/META-INF/templates12/componenttest.vm
trunk/framework/
trunk/samples/richfaces-ear-demo/ejb/
trunk/samples/richfaces-ear-demo/richfacesEAR/
trunk/samples/richfaces-ear-demo/webapp/
trunk/test-applications/
trunk/ui/core/src/main/config/component/actionParameter.xml
trunk/ui/core/src/main/config/component/commandButton.xml
trunk/ui/core/src/main/config/component/commandLink.xml
trunk/ui/core/src/main/config/component/form.xml
trunk/ui/core/src/main/config/component/function.xml
trunk/ui/core/src/main/config/component/include.xml
trunk/ui/core/src/main/config/component/loadBundle.xml
trunk/ui/core/src/main/config/component/loadScript.xml
trunk/ui/core/src/main/config/component/loadStyle.xml
trunk/ui/core/src/main/config/component/log.xml
trunk/ui/core/src/main/config/component/mediaOutput.xml
trunk/ui/core/src/main/config/component/outputPanel.xml
trunk/ui/core/src/main/config/component/page.xml
trunk/ui/core/src/main/config/component/poll.xml
trunk/ui/core/src/main/config/component/portlet.xml
trunk/ui/core/src/main/config/component/push.xml
trunk/ui/core/src/main/config/component/region.xml
trunk/ui/core/src/main/config/component/repeat.xml
trunk/ui/core/src/main/config/component/status.xml
Log:
generator: componenttest.vm - legacy renderView() to HtmlPage code removed
ui.core: test generation enabled & MediaOutputComponentBaseTest.java with test data added
ui.drag-drop: extra DropListenerTag.java deleted
service file svn:ignored
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates/componenttest.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates/componenttest.vm 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates/componenttest.vm 2007-09-03 01:12:17 UTC (rev 2686)
@@ -12,8 +12,6 @@
import com.gargoylesoftware.htmlunit.Page;
import javax.faces.component.UIForm;
import javax.faces.component.html.HtmlForm;
-import com.gargoylesoftware.htmlunit.html.HtmlPage;
-import com.gargoylesoftware.htmlunit.html.HtmlElement;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
import javax.faces.component.UIViewRoot;
@@ -91,13 +89,6 @@
assertEquals("${component.renderer.name}", component.getRendererType());
#end
-/*
- HtmlPage renderedView = renderView();
- assertNotNull(renderedView);
- System.out.println(renderedView.getWebResponse().getContentAsString());
- HtmlElement element = renderedView.getHtmlElementById(form.getId() + ":" + component.getId());
- assertNotNull(element);
-*/
// values[0] = component.saveState(facesContext);
}
Modified: trunk/cdk/generator/src/main/resources/META-INF/templates12/componenttest.vm
===================================================================
--- trunk/cdk/generator/src/main/resources/META-INF/templates12/componenttest.vm 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/cdk/generator/src/main/resources/META-INF/templates12/componenttest.vm 2007-09-03 01:12:17 UTC (rev 2686)
@@ -12,7 +12,6 @@
import com.gargoylesoftware.htmlunit.Page;
import javax.faces.component.UIForm;
import javax.faces.component.html.HtmlForm;
-import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlElement;
import javax.faces.context.FacesContext;
import javax.faces.el.ValueBinding;
@@ -94,13 +93,7 @@
#if(${component.renderer})
assertEquals("${component.renderer.name}", component.getRendererType());
#end
-/*
- HtmlPage renderedView = renderView();
- assertNotNull(renderedView);
- System.out.println(renderedView.getWebResponse().getContentAsString());
- HtmlElement element = renderedView.getHtmlElementById(form.getId() + ":" + component.getId());
- assertNotNull(element);
-*/
+
// values[0] = component.saveState(facesContext);
}
Property changes on: trunk/framework
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: trunk/samples/richfaces-ear-demo/ejb
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: trunk/samples/richfaces-ear-demo/richfacesEAR
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: trunk/samples/richfaces-ear-demo/webapp
___________________________________________________________________
Name: svn:ignore
+ target
Property changes on: trunk/test-applications
___________________________________________________________________
Name: svn:ignore
+ target
Modified: trunk/ui/core/src/main/config/component/actionParameter.xml
===================================================================
--- trunk/ui/core/src/main/config/component/actionParameter.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/actionParameter.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -12,6 +12,7 @@
org.ajax4jsf.component.html.HtmlActionParameter
</classname>
<superclass>org.ajax4jsf.component.UIActionParameter</superclass>
+ <test />
<description>
<![CDATA[
A combination of the functionality of two JSF tags, <f:actionListener> and <f:param>.
Modified: trunk/ui/core/src/main/config/component/commandButton.xml
===================================================================
--- trunk/ui/core/src/main/config/component/commandButton.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/commandButton.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -13,6 +13,7 @@
org.ajax4jsf.component.html.HtmlAjaxCommandButton
</classname>
<superclass>org.ajax4jsf.component.UIAjaxCommandButton</superclass>
+ <test />
<description><![CDATA[
Renders an HTML "input" element.
<br />
@@ -60,6 +61,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
<displayname>Ajax CommandButton</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/commandLink.xml
===================================================================
--- trunk/ui/core/src/main/config/component/commandLink.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/commandLink.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -13,6 +13,7 @@
org.ajax4jsf.component.html.HtmlAjaxCommandLink
</classname>
<superclass>org.ajax4jsf.component.UIAjaxCommandLink</superclass>
+ <test />
<description><![CDATA[
Renders an HTML "a" anchor element that acts like a form
submit button when clicked.
@@ -61,6 +62,7 @@
</superclass>
<displayname>Ajax commandLink</displayname>
<icon>icon</icon>
+ <test />
</tag>
<taghandler>
<classname>org.ajax4jsf.webapp.taglib.AjaxComponentHandler</classname>
Modified: trunk/ui/core/src/main/config/component/form.xml
===================================================================
--- trunk/ui/core/src/main/config/component/form.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/form.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>javax.faces.Form</family>
<classname>org.ajax4jsf.component.html.AjaxForm</classname>
<superclass>org.ajax4jsf.component.UIAjaxForm</superclass>
+ <test />
<description>
<![CDATA[
Ajax-related version of html form. Main difference with original component - all hidden fields,
@@ -29,8 +30,10 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
<displayname>Ajax-related version of html form</displayname>
<icon>icon</icon>
+ <test />
</tag>
<taghandler>
<classname>org.ajax4jsf.webapp.taglib.AjaxComponentHandler</classname>
Modified: trunk/ui/core/src/main/config/component/function.xml
===================================================================
--- trunk/ui/core/src/main/config/component/function.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/function.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>org.ajax4jsf.components.AjaxFunction</family>
<classname>org.ajax4jsf.component.html.HtmlAjaxFunction</classname>
<superclass>org.ajax4jsf.component.UIAjaxFunction</superclass>
+ <test />
<description>
</description>
<displayname>Ajax JavaScript Function</displayname>
@@ -43,6 +44,7 @@
-->
<displayname>Ajax Function</displayname>
<icon>icon</icon>
+ <test />
</tag>
&ui_component_attributes;
&ui_command_attributes;
Modified: trunk/ui/core/src/main/config/component/include.xml
===================================================================
--- trunk/ui/core/src/main/config/component/include.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/include.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>javax.faces.Output</family>
<classname>org.ajax4jsf.component.html.Include</classname>
<superclass>org.ajax4jsf.component.UIInclude</superclass>
+ <test />
<description>
<![CDATA[
include content of external view. Navigation cases in included file change only viewId of included page,
@@ -29,6 +30,7 @@
org.ajax4jsf.taglib.html.jsp.HtmlIncludeTag
</classname>
<superclass>org.ajax4jsf.taglib.html.jsp.IncludeTag</superclass>
+ <test />
<displayname>include content of external view</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/loadBundle.xml
===================================================================
--- trunk/ui/core/src/main/config/component/loadBundle.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/loadBundle.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>org.ajax4jsf.Bundle</family>
<classname>org.ajax4jsf.component.html.AjaxLoadBundle</classname>
<superclass>org.ajax4jsf.component.UILoadBundle</superclass>
+ <test />
<description>
<![CDATA[ Load a resource bundle localized for the Locale of the current view, and expose it (as a Map)
in the request attributes of the current request.
Modified: trunk/ui/core/src/main/config/component/loadScript.xml
===================================================================
--- trunk/ui/core/src/main/config/component/loadScript.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/loadScript.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -6,6 +6,7 @@
<family>org.ajax4jsf.LoadScript</family>
<classname>org.ajax4jsf.component.html.HtmlLoadScript</classname>
<superclass>org.ajax4jsf.component.UIResource</superclass>
+ <test />
<description>
<![CDATA[
]]>
@@ -20,6 +21,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
</superclass>
+ <test />
</tag>
<!--
<taghandler>
Modified: trunk/ui/core/src/main/config/component/loadStyle.xml
===================================================================
--- trunk/ui/core/src/main/config/component/loadStyle.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/loadStyle.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -6,6 +6,7 @@
<family>org.ajax4jsf.LoadStyle</family>
<classname>org.ajax4jsf.component.html.HtmlLoadStyle</classname>
<superclass>org.ajax4jsf.component.UIResource</superclass>
+ <test />
<description>
<![CDATA[
]]>
@@ -20,6 +21,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
</superclass>
+ <test />
</tag>
<!--
<taghandler>
Modified: trunk/ui/core/src/main/config/component/log.xml
===================================================================
--- trunk/ui/core/src/main/config/component/log.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/log.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>org.ajax4jsf.Log</family>
<classname>org.ajax4jsf.component.html.AjaxLog</classname>
<superclass>org.ajax4jsf.component.UIAjaxLog</superclass>
+ <test />
<description>
<![CDATA[
Encode javaScript to open popup window with client-side Log information.
@@ -26,6 +27,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
<displayname>pop-up window with request log</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/mediaOutput.xml
===================================================================
--- trunk/ui/core/src/main/config/component/mediaOutput.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/mediaOutput.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -13,6 +13,11 @@
<superclass>
org.ajax4jsf.component.UIMediaOutput
</superclass>
+ <test>
+ <superclassname>
+ org.ajax4jsf.component.MediaOutputComponentBaseTest
+ </superclassname>
+ </test>
<description>
<![CDATA[Class for create any link-type elements to user-generated resources :
images, sounds, video, active objects, applets etc.
@@ -34,6 +39,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
<displayname>Link to user-generated resource</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/outputPanel.xml
===================================================================
--- trunk/ui/core/src/main/config/component/outputPanel.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/outputPanel.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -13,6 +13,7 @@
org.ajax4jsf.component.html.HtmlAjaxOutputPanel
</classname>
<superclass>org.ajax4jsf.component.UIAjaxOutputPanel</superclass>
+ <test />
<description>
<![CDATA[
Creates an AJAX-enabled part of the page. For a normal request,
@@ -48,6 +49,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
<displayname>Ajax OutputPanel</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/page.xml
===================================================================
--- trunk/ui/core/src/main/config/component/page.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/page.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>org.ajax4jsf.components.AjaxRegion</family>
<classname>org.ajax4jsf.component.html.HtmlPage</classname>
<superclass>org.ajax4jsf.component.UIAjaxRegion</superclass>
+ <test />
<description>
This component renders a full HTML page structure. It must
be the first (and only) child for the view root (JSP
@@ -56,6 +57,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
</superclass>
+ <test />
<displayname>Ajax Page</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/poll.xml
===================================================================
--- trunk/ui/core/src/main/config/component/poll.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/poll.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>org.ajax4jsf.components.AjaxPoll</family>
<classname>org.ajax4jsf.component.html.AjaxPoll</classname>
<superclass>org.ajax4jsf.component.UIPoll</superclass>
+ <test />
<description>
Periodically perform AJAX request to server, to simulate
'poll' data.
@@ -39,6 +40,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
<displayname>Ajax Poll</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/portlet.xml
===================================================================
--- trunk/ui/core/src/main/config/component/portlet.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/portlet.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -12,6 +12,7 @@
org.ajax4jsf.component.html.HtmlPortlet
</classname>
<superclass>org.ajax4jsf.component.UIPortlet</superclass>
+ <test />
<description>
<![CDATA[
]]>
Modified: trunk/ui/core/src/main/config/component/push.xml
===================================================================
--- trunk/ui/core/src/main/config/component/push.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/push.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>org.ajax4jsf.components.AjaxPush</family>
<classname>org.ajax4jsf.component.html.AjaxPush</classname>
<superclass>org.ajax4jsf.component.UIPush</superclass>
+ <test />
<description>
Periodically perform AJAX request to server, to simulate
'push' data.
@@ -39,6 +40,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
<displayname>Ajax Push</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/region.xml
===================================================================
--- trunk/ui/core/src/main/config/component/region.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/region.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>org.ajax4jsf.AjaxRegion</family>
<classname>org.ajax4jsf.component.html.HtmlAjaxRegion</classname>
<superclass>org.ajax4jsf.component.UIAjaxRegion</superclass>
+ <test />
<description>
<![CDATA[Root view for ajax areas on the page. It must either be a
nested tag inside the <body> tag inside of the
@@ -56,6 +57,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
</superclass>
+ <test />
<description>
<![CDATA[This tag defines a part of the JSF Tree that is to be decoded on the
server side during AJAX request processing]]>
Modified: trunk/ui/core/src/main/config/component/repeat.xml
===================================================================
--- trunk/ui/core/src/main/config/component/repeat.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/repeat.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>javax.faces.Data</family>
<classname>org.ajax4jsf.component.html.HtmlAjaxRepeat</classname>
<superclass>org.ajax4jsf.component.UIRepeat</superclass>
+ <test />
<description>
<![CDATA[
]]>
@@ -37,6 +38,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
<displayname>Ajax-enabled repeater</displayname>
<icon>icon</icon>
</tag>
Modified: trunk/ui/core/src/main/config/component/status.xml
===================================================================
--- trunk/ui/core/src/main/config/component/status.xml 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/core/src/main/config/component/status.xml 2007-09-03 01:12:17 UTC (rev 2686)
@@ -11,6 +11,7 @@
<family>javax.faces.Panel</family>
<classname>org.ajax4jsf.component.html.HtmlAjaxStatus</classname>
<superclass>org.ajax4jsf.component.UIAjaxStatus</superclass>
+ <test />
<description><![CDATA[
Renders area for indicating Ajax request status on the
client-side.
@@ -75,6 +76,7 @@
<superclass>
org.ajax4jsf.webapp.taglib.UIComponentTagBase
</superclass>
+ <test />
</tag>
&ui_panel_attributes;
&html_event_handler_attributes;
Added: trunk/ui/core/src/test/java/org/ajax4jsf/component/MediaOutputComponentBaseTest.java
===================================================================
--- trunk/ui/core/src/test/java/org/ajax4jsf/component/MediaOutputComponentBaseTest.java (rev 0)
+++ trunk/ui/core/src/test/java/org/ajax4jsf/component/MediaOutputComponentBaseTest.java 2007-09-03 01:12:17 UTC (rev 2686)
@@ -0,0 +1,71 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.ajax4jsf.component;
+
+import java.util.Calendar;
+import java.util.Date;
+
+/**
+ *
+ * <br /><br />
+ *
+ * Created 03.09.2007
+ * @author Nick Belaevski
+ * @since 3.1
+ */
+
+public class MediaOutputComponentBaseTest extends org.ajax4jsf.tests.AbstractAjax4JsfTestCase {
+
+ public MediaOutputComponentBaseTest(String name) {
+ super(name);
+ }
+
+ protected Date createTestData_lastModified() {
+ Calendar calendar = Calendar.getInstance();
+ calendar.clear();
+ calendar.set(Calendar.YEAR, 2007);
+ calendar.set(Calendar.MONTH, Calendar.SEPTEMBER);
+ calendar.set(Calendar.DATE, 3);
+ calendar.set(Calendar.HOUR, 22);
+ calendar.set(Calendar.MINUTE, 12);
+ calendar.set(Calendar.SECOND, 40);
+
+ return calendar.getTime();
+ }
+
+ protected Date createTestData_expires() {
+ Calendar calendar = Calendar.getInstance();
+ calendar.clear();
+ calendar.set(Calendar.YEAR, 2007);
+ calendar.set(Calendar.MONTH, Calendar.SEPTEMBER);
+ calendar.set(Calendar.DATE, 8);
+ calendar.set(Calendar.HOUR, 11);
+ calendar.set(Calendar.MINUTE, 56);
+ calendar.set(Calendar.SECOND, 9);
+
+ return calendar.getTime();
+ }
+
+ public void testVoid() throws Exception {
+ //empty
+ }
+}
Deleted: trunk/ui/drag-drop/src/main/java/org/richfaces/taglib/DropListenerTag.java
===================================================================
--- trunk/ui/drag-drop/src/main/java/org/richfaces/taglib/DropListenerTag.java 2007-09-02 23:44:02 UTC (rev 2685)
+++ trunk/ui/drag-drop/src/main/java/org/richfaces/taglib/DropListenerTag.java 2007-09-03 01:12:17 UTC (rev 2686)
@@ -1,135 +0,0 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces - Ajax4jsf Component Library
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package org.richfaces.taglib;
-
-import javax.faces.component.UIComponent;
-import javax.faces.context.FacesContext;
-import javax.faces.el.ReferenceSyntaxException;
-import javax.faces.el.ValueBinding;
-import javax.faces.webapp.UIComponentTag;
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.Tag;
-import javax.servlet.jsp.tagext.TagSupport;
-
-import org.richfaces.event.DropListener;
-import org.richfaces.event.DropListenerBinding;
-import org.richfaces.event.DropSource;
-
-
-/**
- * @author shura
- *
- * Custom tag for append AJAX request listeners to AjaxContainer.
- *
- */
-public class DropListenerTag extends TagSupport {
-
- /**
- *
- */
- private static final long serialVersionUID = 2576519366310474212L;
- /**
- * class name for ajax events listener.
- */
- private String type = null;
-
- private String binding = null;
-
- private String dragType = null;
-
- /**
- *
- */
- public DropListenerTag() {
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- /**
- * @param binding the binding to set
- */
- public void setBinding(String binding) {
- this.binding = binding;
- }
-
- /**
- * @param dragType the dragType to set
- */
- public void setDragType(String dragType) {
- this.dragType = dragType;
- }
-
- public int doStartTag() throws JspException {
- if (type == null && binding == null) {
- throw new JspException("dropListener tag must have one of 'type' or 'binding' attribute");
- }
-
- //Find parent UIComponentTag
- UIComponentTag componentTag = UIComponentTag
- .getParentUIComponentTag(pageContext);
- if (componentTag == null) {
- throw new JspException(
- "Tag 'dropListener don't have any UIComponent provided ancestor tag");
- }
-
- if (componentTag.getCreated()) {
- //Component was just created, so we add the Listener
- UIComponent component = componentTag.getComponentInstance();
- if (component instanceof DropSource) {
- DropListener listener;
- if(null != binding){
- ValueBinding valueBinding;
- try {
- valueBinding = FacesContext.getCurrentInstance().getApplication().createValueBinding(binding);
- } catch (ReferenceSyntaxException e) {
- throw new JspException(e);
- }
- listener = new DropListenerBinding(valueBinding);
- } else {
- String className;
- if (UIComponentTag.isValueReference(type)) {
- FacesContext facesContext = FacesContext
- .getCurrentInstance();
- ValueBinding valueBinding = facesContext.getApplication()
- .createValueBinding(type);
- className = (String) valueBinding.getValue(facesContext);
- } else {
- className = type;
- }
- try {
- listener = (DropListener) Class.forName(className).newInstance();
- } catch (Exception e) {
- throw new JspException("Error for create instance of Drop listener class "+ className, e);
- }
- }
- ((DropSource) component).addDropListener(listener);
- } else {
- throw new JspException("Parent component is not instance of DropSource");
- }
- }
-
- return Tag.SKIP_BODY;
- }
-
-}
18 years, 8 months