[richfaces-issues] [JBoss JIRA] (RF-13278) Add support for a 'header' meta-component to the rich:tabPanel

Jiří Štefek (JIRA) issues at jboss.org
Wed Jun 18 09:33:24 EDT 2014


    [ https://issues.jboss.org/browse/RF-13278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977375#comment-12977375 ] 

Jiří Štefek commented on RF-13278:
----------------------------------

It seems that this issue was not resolved in 5.0.0.Alpha3.
The provided test do not pass with: 5.0.0.Alpha3, 5.0.0-SNAPSHOT, 4.5.0-SNAPSHOT. Tried on AS 7.1 (for 5.0.0.Alpha3), EAP 6.3 (for actual 5 and 4.5 snapshots and 5.0.0.Alpha3)

Steps:
# build and deploy metamer
# load http://localhost:8080/metamer/faces/components/richTabPanel/rf-13278.xhtml
# click the "click me" link in tab1 content
# the tab2 header *is* updated with ajax to "1 clicks" (correct)
# switch to second tab
# the header of the second tab is changed back to its *initial state* "0 clicks"
* If you refresh the page, the tab header will be updated.
* if you switch back to tab1, the header will be updated to "1 clicks", but if you then switch again to tab2 the header will be back at "0 clicks"

[~bleathem], is this a correct/ecpected behaviour of the tab panel? Or is the sample somehow wrong?

(the test, bean, sample can be easily accessed from [this comment|https://issues.jboss.org/browse/RF-13278?focusedCommentId=12825431&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12825431])


> Add support for a 'header' meta-component to the rich:tabPanel
> --------------------------------------------------------------
>
>                 Key: RF-13278
>                 URL: https://issues.jboss.org/browse/RF-13278
>             Project: RichFaces
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: component-panels-layout-themes
>    Affects Versions: 4.3.4
>         Environment: java 7,
>  tomcat 7, JBoss AS, 
> mojarra, myfaces
> chrome, firefox
>            Reporter: Alexey Shakov
>            Assignee: Brian Leathem
>              Labels: 45x
>             Fix For: 4.5.0.Alpha3, 5.0.0.Alpha3
>
>   Original Estimate: 2 hours
>  Remaining Estimate: 2 hours
>
> I use ajax to update the header label of rich:tab. That is why label is placed in a header-facet. Since RF 4.3.4 this does not work:
> {code:xml}
> <?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:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
>   xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"
>   xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
> <h:head>
> </h:head>
> <h:body>
>   
>   <a4j:log hotkey="M" mode="popup" />
>   <h:form id="form" prependId="false">
>     <rich:tabPanel id="tabPanel">
>       <rich:tab header="tab 1">
>         <a4j:commandLink value="click me" action="#{testBean.put('clicks',testBean.clicks + 1)}" render="label" execute="@this" />
>       </rich:tab>
>       <rich:tab>
>         <f:facet name="header">
>           <h:outputText id="label" value="#{testBean.clicks} clicks" />
>         </f:facet>
>       </rich:tab>
>     </rich:tabPanel>
>   </h:form>
> </h:body>
> </html>
> {code}
> testBean is a simple session-scoped HashMap. 



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the richfaces-issues mailing list