Author: jjamrich
Date: 2012-01-16 09:11:55 -0500 (Mon, 16 Jan 2012)
New Revision: 23149
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/rf-11814.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/list.xhtml
Log:
RF-11814: add example for tab switching problem in tabPanel
This issue describe problem with tab switch when @switchType on tabPanel is set to
"ajax"
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/list.xhtml 2012-01-13
18:21:23 UTC (rev 23148)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/list.xhtml 2012-01-16
14:11:55 UTC (rev 23149)
@@ -48,6 +48,11 @@
Simple page containing <b>rich:tabPanel</b> demonstrating
that ajax-switching tabs causes all tabs to load
(<h:outputLink id="jiraRF11782"
value="https://issues.jboss.org/browse/RF-11782">RF-11782<...>).
</metamer:testPageLink>
+
+ <metamer:testPageLink id="rf-11814" outcome="rf-11814"
value="Tab switch type">
+ Simple page containing <b>rich:tabPanel</b> demonstrating
problem with tab switching when switchType set to ajax
+ (<h:outputLink id="JiraRF11814"
value="https://issues.jboss.org/browse/RF-11814">RF-11814<...>).
+ </metamer:testPageLink>
</ui:define>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/rf-11814.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/rf-11814.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richTabPanel/rf-11814.xhtml 2012-01-16
14:11:55 UTC (rev 23149)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!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:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:c="http://java.sun.com/jsp/jstl/core"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010-2011, 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.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <p>Demo demonstration problem with switching tab when @switchType set
to <i>"ajax"</i></p>
+
+ <rich:tabPanel id="test-rf-11814"
switchType="#{richTabPanelBean.attributes['switchType'].value}">
+ <rich:tab id="Query_Tab" header="Query">
+ First tab content
+ </rich:tab>
+
+ <rich:tab>
+ <f:facet name="header">
+ <a4j:commandLink
action="#{richTabPanelBean.generateNewTab}">
+ <h:graphicImage
value="/resources/images/star.png"/>
+ </a4j:commandLink>
+ </f:facet>
+ Second tab content
+ </rich:tab>
+ </rich:tabPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richTabPanelBean.attributes}"
id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file