[richfaces-issues] [JBoss JIRA] (RF-11720) rich:tab double click to change tab (inside h:panelGroup with initally render property set to false)
Brian Leathem (Issue Comment Edited) (JIRA)
jira-events at lists.jboss.org
Wed Nov 23 17:35:40 EST 2011
[ https://issues.jboss.org/browse/RF-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645264#comment-12645264 ]
Brian Leathem edited comment on RF-11720 at 11/23/11 5:34 PM:
--------------------------------------------------------------
Lukas, is this related to the tab panel re-rendering issue you were looking at (RF-11506)?
was (Author: bleathem):
Lukas, is this related to the tab panel re-rendering issue you were looking at?
> rich:tab double click to change tab (inside h:panelGroup with initally render property set to false)
> ----------------------------------------------------------------------------------------------------
>
> Key: RF-11720
> URL: https://issues.jboss.org/browse/RF-11720
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes
> Affects Versions: 4.1.0.Milestone4
> Environment: Tomcat 6.0.16
> Reporter: Nicola Nick
> Assignee: Lukáš Fryč
>
> Hi, I have the following rich:tabPanel that is rendered when the customerShow variable is true.
> The issue appear when the the variable is initally to False and then is set to True.
> The strange behavior is that at the first change of tab i have to click two times to do it.
> This behavior doesn't appear if the customerShow variable is initally true.
> THIS IS THE CODE:
> {code}
> <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
> xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:a4j="http://richfaces.org/a4j"
> xmlns:rich="http://richfaces.org/rich" xmlns:sf="http://www.springframework.org/tags/faces">
> <div class="container">
> <h:panelGroup rendered="#{customerShow}" layout="block">
> <h:form>
> <rich:tabPanel id="customerTabPanel" switchType="ajax" headerPosition="top"
> headerLocation="center">
> <rich:tab id="customerList" header="› Search">
> </rich:tab>
> <rich:tab id="customerDetail" header="› Customer">
> </rich:tab>
> <rich:tab id="vehicleDetail" header="› Vehicle">
> </rich:tab>
> <rich:tab id="subscriptionDetail" header="› Subscription">
> </rich:tab>
> <rich:tab id="history" header="› History">
> </rich:tab>
> </rich:tabPanel>
> </h:form>
> </h:panelGroup>
> </div>
> </ui:composition>
> {code}
> LAYOUT:
> {code}
> <h:body id="top">
> <div id="body" class="wrapper">
> <h:panelGroup id="content-area" layout="block">
> <ui:insert name="content">
> <ui:include src="/WEB-INF/sections/contentEmpty.xhtml" />
> </ui:insert>
> </h:panelGroup>
> </div>
> </h:body>
> {code}
> And finally those are the two POST responses:
> FIRST CLICK:
> {code}
> <?xml version='1.0' encoding='UTF-8'?>
> <partial-response>
> <changes>
> <update id="javax.faces.ViewState">
> <![CDATA[e10s1]]>
> </update>
> </changes>
> </partial-response>
> {code}
> SECOND CLICK:
> {code}
> <?xml version='1.0' encoding='UTF-8'?>
> <partial-response>
> <changes>
> <update id="j_idt246:customerDetail">
> <![CDATA[
> <div id="j_idt246:customerDetail" class="rf-tab">
> <div class="rf-tab-cnt" id="j_idt246:customerDetail:content"></div>
> <script type="text/javascript">
> new RichFaces.ui.Tab("j_idt246:customerDetail",
> {"index":1,
> "leave":null,
> "togglePanelId":"j_idt246:customerTabPanel",
> "switchMode":"ajax",
> "name":"customerDetail",
> "enter":null,
> "disabled":false
> }
> )
> </script>
> </div>
> ]]>
> </update>
> <update id="javax.faces.ViewState">
> <![CDATA[e10s1]]>
> </update>
> </changes>
> <extension id="org.richfaces.extension">
> <complete>
> RichFaces.$('j_idt246:customerTabPanel').onCompleteHandler('customerDetail');;
> </complete>
> </extension>
> </partial-response>
> {code}
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list