[richfaces-issues] [JBoss JIRA] (RF-11720) rich:tab double click to change tab (inside h:panelGroup with initally render property set to false)

Nicola Nick (Updated) (JIRA) jira-events at lists.jboss.org
Sat Nov 19 09:58:40 EST 2011


     [ https://issues.jboss.org/browse/RF-11720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicola Nick updated RF-11720:
-----------------------------

    Component/s: component-panels-layout-themes

    
> 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
>
> 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:
> <!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="&rsaquo; Search">
> 					</rich:tab>
> 					<rich:tab id="customerDetail" header="&rsaquo; Customer">
> 					</rich:tab>
> 					<rich:tab id="vehicleDetail" header="&rsaquo; Vehicle">
> 					</rich:tab>
> 					<rich:tab id="subscriptionDetail" header="&rsaquo; Subscription">
> 					</rich:tab>
> 					<rich:tab id="history" header="&rsaquo; History">
> 					</rich:tab>
> 				</rich:tabPanel>
> 			</h:form>
> 		</h:panelGroup>		
> 	</div>
> </ui:composition>
> LAYOUT:
> <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>
> And finally those are the two POST responses:
> FIRST CLICK:
> <?xml version='1.0' encoding='UTF-8'?>
> <partial-response><changes><update id="javax.faces.ViewState"><![CDATA[e10s1]]></update></changes></partial-response>
> SECOND CLICK:
> <?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>

--
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