Author: abelevich
Date: 2007-10-03 07:19:48 -0400 (Wed, 03 Oct 2007)
New Revision: 3220
Added:
trunk/samples/tabPanelDemo/src/main/webapp/pages/test.jsp
trunk/samples/tabPanelDemo/src/main/webapp/pages/test2.jsp
Log:
Added: trunk/samples/tabPanelDemo/src/main/webapp/pages/test.jsp
===================================================================
--- trunk/samples/tabPanelDemo/src/main/webapp/pages/test.jsp (rev
0)
+++ trunk/samples/tabPanelDemo/src/main/webapp/pages/test.jsp 2007-10-03 11:19:48 UTC (rev
3220)
@@ -0,0 +1,29 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/tabPanel"
prefix="rich" %>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/message"
prefix="msg" %>
+
+<html>
+ <head>
+ <title>RF-843</title>
+ </head>
+ <body>
+ <f:view>
+ <h:form>
+ <rich:tabPanel switchType="ajax" immediate="false">
+ <rich:tab label="test 1" immediate="false">
+ <h:inputText value="value 1" ></h:inputText>
+ </rich:tab>
+ <rich:tab label="Sample 2" immediate="true">
+ <h:inputText required="true"></h:inputText>
+ </rich:tab>
+ </rich:tabPanel>
+ <msg:messages/>
+ </h:form>
+ <a4j:log popup="false"></a4j:log>
+ </f:view>
+ </body>
+</html>
\ No newline at end of file
Added: trunk/samples/tabPanelDemo/src/main/webapp/pages/test2.jsp
===================================================================
--- trunk/samples/tabPanelDemo/src/main/webapp/pages/test2.jsp
(rev 0)
+++ trunk/samples/tabPanelDemo/src/main/webapp/pages/test2.jsp 2007-10-03 11:19:48 UTC
(rev 3220)
@@ -0,0 +1,50 @@
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j" %>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/tabPanel"
prefix="rich" %>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/message"
prefix="msg" %>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/panel"
prefix="panel" %>
+
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
+
+<html>
+<head>
+ <title>repeater</title>
+</head>
+
+<body>
+ <f:view>
+
+ <h:form id="form">
+
+ <panel:panel header="Errors">
+ <msg:messages/>
+ </panel:panel>
+
+ <panel:panel header="Simple Echo">
+ <h:inputText id="in0" size="50"
value="#{bean.value1}">
+ <a4j:support event="onkeyup" reRender="rep"/>
+ </h:inputText>
+
+ <h:outputText value="#{bean.value1}" id="rep"/>
+ </panel:panel>
+
+ <panel:panel header="Simple Echoless">
+ <h:inputText id="in1" size="50"
value="#{bean.value2}" required="true"/><br/>
+ <msg:message for="in1"/><br/>
+
+ <h:outputText value="#{bean.value2}" id="nonrep"/>
+ <h:commandButton value="Submit"/>
+ </panel:panel>
+
+ <rich:tabPanel id="tabPanel" selectedTab="t2"
switchType="server" immediate="true">
+ <rich:tab id="t1" label="TabOne">
+ <h:outputText value="Content1"/>
+ </rich:tab>
+ <rich:tab id="t2" label="TabTwo">
+ <h:outputText value="Content2"/>
+ </rich:tab>
+ </rich:tabPanel>
+ </h:form>
+ </f:view>
+</body>
+</html>
\ No newline at end of file