Primefaces p:tabView在刷新页面后无法正常工作

时间:2013-01-04 12:01:45

标签: jsf primefaces

我点击第二个标签,然后我使用F5刷新页面。然后,当我尝试打开第二个第二个标签时,它不会打开。如果我先点击第一个标签,它会打开。 (PrimeFaces 3.2,Fİrefox17.0.1)

我该如何解决这个问题?或者如何在刷新页面后执行此操作,打开当前选定的选项卡?

<p:tabView id="tabView" cache="false" activeIndex="#{tabletIdBean.currentTab}" dynamic="true"  >  
    <p:tab id="tab1" title="Godfather Part I" >  
        <h:panelGrid columns="2" cellpadding="10">  
            <p:graphicImage id="tab1Img" value="/images/godfather/godfather1.jpg" />  
            <h:outputText id="tab1Text"  
                          value="The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.  
                          His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. T  
                          hrough Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect,  
                          but given to ruthless violence whenever anything stands against the good of the family." />  
        </h:panelGrid>  
    </p:tab>  

    <p:tab id="tab2" title="Godfather Part II">  
        <h:panelGrid columns="2" cellpadding="10">  
            <p:graphicImage id="tab2Img" value="/images/godfather/godfather2.jpg" />  
            <h:outputText id="tab2Text" value="Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall, deepening The_Godfather's depiction of the dark side of the American dream.  
                          In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy,  
                          killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business. With Fanucci gone, Vito's communal stature grows."/>  
        </h:panelGrid>  
    </p:tab> 

</p:tabView>  

0 个答案:

没有答案