Author: artdaw
Date: 2011-02-03 08:30:51 -0500 (Thu, 03 Feb 2011)
New Revision: 21415
Added:
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/TabPanelRendererTest.java
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordion.xhtml
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordion.xmlunit.xml
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItemDisabled.xmlunit.xml
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xhtml
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xmlunit.xml
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xhtml
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xmlunit.xml
Modified:
trunk/examples/output-demo/src/main/webapp/examples/accordion.xhtml
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractAccordion.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractAccordionItem.java
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanelTitledItem.java
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/AccordionRendererTest.java
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItem.xhtml
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItem.xmlunit.xml
Log:
RF-10297: Classes attributes for Tab, TabPanel, Accordion, and AccordionItem were fixed.
Class itemRightInactiveIcon is also fixed.
Modified: trunk/examples/output-demo/src/main/webapp/examples/accordion.xhtml
===================================================================
--- trunk/examples/output-demo/src/main/webapp/examples/accordion.xhtml 2011-02-03
12:58:29 UTC (rev 21414)
+++ trunk/examples/output-demo/src/main/webapp/examples/accordion.xhtml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -17,7 +17,8 @@
<h:form id="f" style="border:blue solid thin;">
<h:panelGroup>
<pn:accordion width="500px" height="300px"
itemChangeListener="#{togglePanelBean.itemChangeActionListener}"
switchType="ajax"
- itemRightIconActive="triangleDown"
itemInactiveRightIcon="triangleUp" itemDisabledRightIcon="disc"
itemDisabledLeftIcon="disc" >
+ itemActiveRightIcon="triangleDown"
itemInactiveRightIcon="triangleUp" itemDisabledRightIcon="disc"
itemDisabledLeftIcon="disc"
+ itemActiveHeaderClass="ac-active-header">
<pn:accordionItem header="label 1" >Content will be
here. Content will be here. Content will be here. Content will be here. Content will be
here. Content will be here. Content will be here. Content will be here. Content will be
here. Content will be here. Content will be here. Content will be here. Content will be
here. Content will be here. Content will be here. Content will be here. Content will be
here. Content will be here. Content will be here. Content will be here. Content will be
here. Content will be here. Content will be here. Content will be here. Content will be
here. Content will be here. Content will be here. Content will be here. Content will be
here. Content will be here. Content will be here. Content will be here. Content will be
here. Content will be here.</pn:accordionItem>
<pn:accordionItem header="label 2" >content
2</pn:accordionItem>
<pn:accordionItem header="label 3"
onenter="alert('hello, world!')" >content 3</pn:accordionItem>
Modified: trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractAccordion.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractAccordion.java 2011-02-03
12:58:29 UTC (rev 21414)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractAccordion.java 2011-02-03
13:30:51 UTC (rev 21415)
@@ -71,7 +71,7 @@
public abstract String getItemActiveRightIcon();
@Attribute
- public abstract String getItemRightInactiveIcon();
+ public abstract String getItemInactiveRightIcon();
@Attribute
public abstract String getItemDisabledRightIcon();
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractAccordionItem.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractAccordionItem.java 2011-02-03
12:58:29 UTC (rev 21414)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractAccordionItem.java 2011-02-03
13:30:51 UTC (rev 21415)
@@ -106,12 +106,12 @@
getStateHelper().put(Properties.rightDisabledIcon, rightDisabledIcon);
}
- @Attribute(defaultValue = "getAccordion().getItemRightInactiveIcon()",
generate = false)
+ @Attribute(defaultValue = "getAccordion().getItemInactiveRightIcon()",
generate = false)
public String getRightInactiveIcon() {
- return (String) getStateHelper().eval(Properties.rightInactiveIcon,
getAccordion().getItemRightInactiveIcon());
+ return (String) getStateHelper().eval(Properties.rightInactiveIcon,
getAccordion().getItemInactiveRightIcon());
}
- public void setRightInactiveIcon(String rightInactiveIcon) {
+ public void setInactiveRightIcon(String rightInactiveIcon) {
getStateHelper().put(Properties.rightInactiveIcon, rightInactiveIcon);
}
Modified:
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanelTitledItem.java
===================================================================
---
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanelTitledItem.java 2011-02-03
12:58:29 UTC (rev 21414)
+++
trunk/ui/output/ui/src/main/java/org/richfaces/component/AbstractTogglePanelTitledItem.java 2011-02-03
13:30:51 UTC (rev 21415)
@@ -56,7 +56,10 @@
}
public String headerClass() {
- return "headerClass" + capitalize(this.toString());
+ return new StringBuilder("header")
+ .append(capitalize(this.toString()))
+ .append("Class")
+ .toString();
}
}
Modified:
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/AccordionRendererTest.java
===================================================================
---
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/AccordionRendererTest.java 2011-02-03
12:58:29 UTC (rev 21414)
+++
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/AccordionRendererTest.java 2011-02-03
13:30:51 UTC (rev 21415)
@@ -5,10 +5,16 @@
import java.io.IOException;
-public class AccordionRendererTest extends RendererTestBase {
+public class AccordionRendererTest extends RendererTestBase {
@Test
+ public void testAccordion() throws IOException, SAXException {
+ doTest("accordion", "f:accordion");
+ }
+
+ @Test
public void testAccordionItem() throws IOException, SAXException {
doTest("accordionItem", "f:item");
+ doTest("accordionItem", "accordionItemDisabled",
"f:item2");
}
}
Added:
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/TabPanelRendererTest.java
===================================================================
---
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/TabPanelRendererTest.java
(rev 0)
+++
trunk/ui/output/ui/src/test/java/org/richfaces/renderkit/html/TabPanelRendererTest.java 2011-02-03
13:30:51 UTC (rev 21415)
@@ -0,0 +1,19 @@
+package org.richfaces.renderkit.html;
+
+import org.junit.Test;
+import org.xml.sax.SAXException;
+
+import java.io.IOException;
+
+public class TabPanelRendererTest extends RendererTestBase {
+
+ @Test
+ public void testTabPanel() throws IOException, SAXException {
+ doTest("tabPanel", "f:tabPanel");
+ }
+
+ @Test
+ public void testTab() throws IOException, SAXException {
+ doTest("tab", "f:tabPanel");
+ }
+}
Added: trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordion.xhtml
===================================================================
--- trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordion.xhtml
(rev 0)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordion.xhtml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -0,0 +1,52 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright ${year}, Red Hat, Inc. and individual contributors
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software 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 software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:pn="http://richfaces.org/output"
+ >
+
+<h:head>
+ <title>Richfaces Accordion Test</title>
+</h:head>
+
+<h:body>
+ <h:form id="f">
+ <pn:accordion id="accordion"
+ itemActiveHeaderClass="my-ac-active-header-class"
+ itemInactiveHeaderClass="my-ac-inactive-header-class"
+
itemDisabledHeaderClass="my-ac-disabled-header-class">
+ <pn:accordionItem id="item"/>
+ <pn:accordionItem id="item2" disabled="true"/>
+ </pn:accordion>
+ </h:form>
+</h:body>
+</html>
+
+
Added:
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordion.xmlunit.xml
===================================================================
---
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordion.xmlunit.xml
(rev 0)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordion.xmlunit.xml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -0,0 +1,55 @@
+<div id="f:accordion" class="rf-ac">
+ <input type="hidden" value="item"
id="f:accordion-value" name="f:accordion-value"/>
+ <script type="text/javascript">
+ //<![CDATA[
+new
RichFaces.ui.Accordion("f:accordion",{"ajax":{"incId":"1"}
,"activeItem":"item","isKeepHeight":false,"cycledSwitching":false}
)
+//]]>
+ </script>
+ <div id="f:item" class="rf-ac-itm">
+ <div class="rf-ac-itm-hdr rf-ac-itm-hdr-act"
id="f:item:header">
+ <table class="rf-ac-itm-gr">
+ <tbody>
+ <tr>
+ <td class="rf-ac-itm-lbl">
+ <div class="rf-ac-itm-lbl-act
my-ac-active-header-class">
+ item
+ </div>
+ <div class="rf-ac-itm-lbl-inact
my-ac-inactive-header-class">
+ item
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="rf-ac-itm-cnt" id="f:item:content">
+ </div>
+ <script type="text/javascript">
+ //<![CDATA[
+new
RichFaces.ui.AccordionItem("f:item",{"index":0,"togglePanelId":"f:accordion","switchMode":"ajax","name":"item","disabled":false}
)
+//]]>
+ </script>
+ </div>
+ <div id="f:item2" class="rf-ac-itm">
+ <div class="rf-ac-itm-hdr rf-ac-itm-hdr-dis"
id="f:item2:header">
+ <table class="rf-ac-itm-gr">
+ <tbody>
+ <tr>
+ <td class="rf-ac-itm-lbl">
+ <div class="rf-ac-itm-lbl-dis
my-ac-disabled-header-class">
+ item2
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="rf-ac-itm-cnt" id="f:item2:content"
style="display: none">
+ </div>
+ <script type="text/javascript">
+ //<![CDATA[
+new
RichFaces.ui.AccordionItem("f:item2",{"index":1,"togglePanelId":"f:accordion","switchMode":"ajax","name":"item2","disabled":true}
)
+//]]>
+ </script>
+ </div>
+</div>
\ No newline at end of file
Modified:
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItem.xhtml
===================================================================
---
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItem.xhtml 2011-02-03
12:58:29 UTC (rev 21414)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItem.xhtml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -22,7 +22,8 @@
-->
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:h="http://java.sun.com/jsf/html"
@@ -31,14 +32,15 @@
xmlns:pn="http://richfaces.org/output"
- <h:head>
- <title>Richfaces MenuItem Test</title>
- </h:head>
+<h:head>
+ <title>Richfaces MenuItem Test</title>
+</h:head>
<h:body>
<h:form id="f">
- <pn:accordion>
- <pn:accordionItem id="item"></pn:accordionItem>
+ <pn:accordion id="accordion">
+ <pn:accordionItem id="item"
headerActiveClass="my-ac-it-active-header-class"
headerInactiveClass="my-ac-it-inactive-header-class"/>
+ <pn:accordionItem id="item2" disabled="true"
headerDisabledClass="my-ac-it-disabled-header-class"/>
</pn:accordion>
</h:form>
</h:body>
Modified:
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItem.xmlunit.xml
===================================================================
---
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItem.xmlunit.xml 2011-02-03
12:58:29 UTC (rev 21414)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItem.xmlunit.xml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -4,8 +4,8 @@
<tbody>
<tr>
<td class="rf-ac-itm-lbl">
- <div class="rf-ac-itm-lbl-act">item</div>
- <div
class="rf-ac-itm-lbl-inact">item</div>
+ <div class="rf-ac-itm-lbl-act
my-ac-it-active-header-class">item</div>
+ <div class="rf-ac-itm-lbl-inact
my-ac-it-inactive-header-class">item</div>
</td>
</tr>
</tbody>
Added:
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItemDisabled.xmlunit.xml
===================================================================
---
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItemDisabled.xmlunit.xml
(rev 0)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/accordionItemDisabled.xmlunit.xml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -0,0 +1,22 @@
+<div id="f:item2" class="rf-ac-itm">
+ <div class="rf-ac-itm-hdr rf-ac-itm-hdr-dis"
id="f:item2:header">
+ <table class="rf-ac-itm-gr">
+ <tbody>
+ <tr>
+ <td class="rf-ac-itm-lbl">
+ <div class="rf-ac-itm-lbl-dis
my-ac-it-disabled-header-class">
+ item2
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="rf-ac-itm-cnt" id="f:item2:content"
style="display: none">
+ </div>
+ <script type="text/javascript">
+ //<![CDATA[
+new
RichFaces.ui.AccordionItem("f:item2",{"index":1,"togglePanelId":"f:accordion","switchMode":"ajax","name":"item2","disabled":true}
)
+//]]>
+ </script>
+</div>
\ No newline at end of file
Added: trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xhtml
===================================================================
--- trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xhtml
(rev 0)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xhtml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -0,0 +1,45 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright ${year}, Red Hat, Inc. and individual contributors
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software 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 software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:pn="http://richfaces.org/output">
+
+<h:head>
+ <title>Richfaces Tab Test</title>
+</h:head>
+
+<h:body>
+ <h:form id="f">
+ <pn:tabPanel id="tabPanel">
+ <pn:tab id="tab"
headerActiveClass="my-tab-active-header-class"
headerInactiveClass="my-tab-inactive-header-class" />
+ <pn:tab id="tab2" disabled="true"
headerDisabledClass="my-tab-disabled-header-class"/>
+ </pn:tabPanel>
+ </h:form>
+</h:body>
+</html>
+
+
Added: trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xmlunit.xml
===================================================================
--- trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xmlunit.xml
(rev 0)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tab.xmlunit.xml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -0,0 +1,82 @@
+<div id="f:tabPanel" class="rf-tbp" style="width:
100%;">
+ <input type="hidden" value="tab" id="f:tabPanel-value"
name="f:tabPanel-value"/>
+ <script type="text/javascript">
+//<![CDATA[
+//]]>
+ </script>
+ <div class="rf-tab-hdr-tabline-vis">
+ <table class="rf-tab-hdr-tabs" cellspacing="0">
+ <tbody>
+ <tr>
+ <td style="padding-left: 5px;"
class="rf-tab-hdr-spcr">
+ <br/>
+ </td>
+ <td id="f:tab:header:inactive" class="rf-tab-hdr
rf-tab-hdr-inact my-tab-inactive-header-class" style="display : none">
+ <span class="rf-tab-lbl">
+ tab
+ </span>
+ </td>
+ <td id="f:tab:header:active" class="rf-tab-hdr rf-tab-hdr-act
my-tab-active-header-class" style="">
+ <span class="rf-tab-lbl">
+ tab
+ </span>
+ </td>
+ <td id="f:tab:header:disabled" class="rf-tab-hdr
rf-tab-hdr-dis" style="display : none">
+ <span class="rf-tab-lbl">
+ tab
+ </span>
+ </td>
+ <td style="" class="rf-tab-hdr-spcr
rf-tab-hortab-tabspcr-wdh">
+ <br/>
+ </td>
+ <td id="f:tab2:header:inactive" class="rf-tab-hdr
rf-tab-hdr-inact" style="display : none">
+ <span class="rf-tab-lbl">
+ tab2
+ </span>
+ </td>
+ <td id="f:tab2:header:active" class="rf-tab-hdr
rf-tab-hdr-act" style="display : none">
+ <span class="rf-tab-lbl">
+ tab2
+ </span>
+ </td>
+ <td id="f:tab2:header:disabled" class="rf-tab-hdr
rf-tab-hdr-dis my-tab-disabled-header-class" style="">
+ <span class="rf-tab-lbl">
+ tab2
+ </span>
+ </td>
+ <td style="" class="rf-tab-hdr-spcr
rf-tab-hortab-tabspcr-wdh">
+ <br/>
+ </td>
+ <td style="padding-right: 5px; width: 100%;"
class="rf-tab-hdr-spcr">
+ <br/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <div class="rf-tab-hdr-scrl-lft rf-tab-hdn">
+ «
+ </div>
+ <div class="rf-tab-hdr-tablst rf-tab-hdn">
+ ↓
+ </div>
+ <div class="rf-tab-hdr-scrl-rgh rf-tab-hdn">
+ »
+ </div>
+ </div>
+ <div class="rf-tab-hdr-brd">
+ </div>
+ <div id="f:tab" class="rf-tab">
+ <div class="rf-tab-cnt" id="f:tab:content">
+ </div>
+ <script type="text/javascript">
+//<![CDATA[
+//]]>
+ </script>
+ </div>
+ <div id="f:tab2" style="display:none;">
+ <script type="text/javascript">
+//<![CDATA[
+//]]>
+ </script>
+ </div>
+</div>
\ No newline at end of file
Added: trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xhtml
===================================================================
--- trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xhtml
(rev 0)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xhtml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -0,0 +1,48 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright ${year}, Red Hat, Inc. and individual contributors
+ by the @authors tag. See the copyright.txt in the distribution for a
+ full listing of individual contributors.
+
+ This is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of
+ the License, or (at your option) any later version.
+
+ This software 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 software; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:pn="http://richfaces.org/output">
+
+<h:head>
+ <title>Richfaces Tab Panel Test</title>
+</h:head>
+
+<h:body>
+ <h:form id="f">
+ <pn:tabPanel id="tabPanel"
+ tabActiveHeaderClass="my-tp-active-header-class"
+ tabInactiveHeaderClass="my-tp-inactive-header-class"
+ tabDisabledHeaderClass="my-tp-disabled-header-class">
+ <pn:tab id="tab"/>
+ <pn:tab id="tab2" disabled="true"/>
+ </pn:tabPanel>
+ </h:form>
+</h:body>
+</html>
+
+
Added:
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xmlunit.xml
===================================================================
---
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xmlunit.xml
(rev 0)
+++
trunk/ui/output/ui/src/test/resources/org/richfaces/renderkit/html/tabPanel.xmlunit.xml 2011-02-03
13:30:51 UTC (rev 21415)
@@ -0,0 +1,90 @@
+<div id="f:tabPanel" class="rf-tbp" style="width:
100%;">
+ <input type="hidden" value="tab"
id="f:tabPanel-value" name="f:tabPanel-value"/>
+ <script type="text/javascript">
+ //<![CDATA[
+new
RichFaces.ui.TabPanel("f:tabPanel",{"ajax":{"incId":"1"}
,"activeItem":"tab","isKeepHeight":false,"cycledSwitching":false}
)
+//]]>
+ </script>
+ <div class="rf-tab-hdr-tabline-vis">
+ <table class="rf-tab-hdr-tabs" cellspacing="0">
+ <tbody>
+ <tr>
+ <td style="padding-left: 5px;"
class="rf-tab-hdr-spcr">
+ <br/>
+ </td>
+ <td id="f:tab:header:inactive" class="rf-tab-hdr
rf-tab-hdr-inact my-tp-inactive-header-class"
+ style="display : none">
+ <span class="rf-tab-lbl">
+ tab
+ </span>
+ </td>
+ <td id="f:tab:header:active" class="rf-tab-hdr
rf-tab-hdr-act my-tp-active-header-class" style="">
+ <span class="rf-tab-lbl">
+ tab
+ </span>
+ </td>
+ <td id="f:tab:header:disabled" class="rf-tab-hdr
rf-tab-hdr-dis my-tp-disabled-header-class"
+ style="display : none">
+ <span class="rf-tab-lbl">
+ tab
+ </span>
+ </td>
+ <td style="" class="rf-tab-hdr-spcr
rf-tab-hortab-tabspcr-wdh">
+ <br/>
+ </td>
+ <td id="f:tab2:header:inactive" class="rf-tab-hdr
rf-tab-hdr-inact my-tp-inactive-header-class"
+ style="display : none">
+ <span class="rf-tab-lbl">
+ tab2
+ </span>
+ </td>
+ <td id="f:tab2:header:active" class="rf-tab-hdr
rf-tab-hdr-act my-tp-active-header-class"
+ style="display : none">
+ <span class="rf-tab-lbl">
+ tab2
+ </span>
+ </td>
+ <td id="f:tab2:header:disabled" class="rf-tab-hdr
rf-tab-hdr-dis my-tp-disabled-header-class"
+ style="">
+ <span class="rf-tab-lbl">
+ tab2
+ </span>
+ </td>
+ <td style="" class="rf-tab-hdr-spcr
rf-tab-hortab-tabspcr-wdh">
+ <br/>
+ </td>
+ <td style="padding-right: 5px; width: 100%;"
class="rf-tab-hdr-spcr">
+ <br/>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <div class="rf-tab-hdr-scrl-lft rf-tab-hdn">
+ «
+ </div>
+ <div class="rf-tab-hdr-tablst rf-tab-hdn">
+ ↓
+ </div>
+ <div class="rf-tab-hdr-scrl-rgh rf-tab-hdn">
+ »
+ </div>
+ </div>
+ <div class="rf-tab-hdr-brd">
+ </div>
+ <div id="f:tab" class="rf-tab">
+ <div class="rf-tab-cnt" id="f:tab:content">
+ </div>
+ <script type="text/javascript">
+ //<![CDATA[
+new
RichFaces.ui.Tab("f:tab",{"index":0,"leave":null,"togglePanelId":"f:tabPanel","switchMode":"ajax","name":"tab","enter":null,"disabled":false}
)
+//]]>
+ </script>
+ </div>
+ <div id="f:tab2" style="display:none;">
+ <script type="text/javascript">
+ //<![CDATA[
+new
RichFaces.ui.Tab("f:tab2",{"index":1,"leave":null,"togglePanelId":"f:tabPanel","switchMode":"ajax","name":"tab2","enter":null,"disabled":true}
)
+//]]>
+ </script>
+ </div>
+</div>
\ No newline at end of file