[richfaces-issues] [JBoss JIRA] (RF-13455) The rich:tabPanel no longer visits tab header facets while rendering a response.

Brian Leathem (JIRA) issues at jboss.org
Tue Jan 7 10:44:33 EST 2014


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

Brian Leathem commented on RF-13455:
------------------------------------

{quote}
1) I don't like a fact that #visitTree is copied, but without common ancestor we have only option - delegate to static implementation, that isn't clean as well.
{quote}

we can't do a static visit tree as we then can't execute the protected methods

{quote}
2) I might have found one issue: https://github.com/richfaces/richfaces/pull/72/files#r8687561
{quote}

replied:
https://github.com/richfaces/richfaces/pull/72/files#r8696091
                
> The rich:tabPanel no longer visits tab header facets while rendering a response.
> --------------------------------------------------------------------------------
>
>                 Key: RF-13455
>                 URL: https://issues.jboss.org/browse/RF-13455
>             Project: RichFaces
>          Issue Type: Bug
>      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: regression
>             Fix For: 4.3.5, 4.5.0.Alpha2, 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list