2013-03-01 134 views
3

我在執行Showcase網站中顯示的傳送帶 - 選項卡滑塊示例時出現問題。p:傳送帶(標籤滑塊)問題

這裏是我的XHTML代碼:

<?xml version="1.0" encoding="UTF-8"?> 
<ui:composition xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:h="http://java.sun.com/jsf/html" 
    template="/WEB-INF/templates/test.xhtml"  
    xmlns:p="http://primefaces.org/ui"> 
    <ui:define name="content"> 
    #{msg['app.menu.home']} 
    <br /><br /> 
<h:form id="demo"> 
    <p:carousel id="tabsCarousel" numVisible="1" itemStyle="height:200px;width:600px;" effect="easeInStrong"> 
     <p:tab title="Godfather Part I"> 
      <h:panelGrid columns="2" cellpadding="10"> 
       <p:graphicImage value="/pages/img/godfather1.jpg" /> 
       <h:outputText 
        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 title="Godfather Part II"> 
      <h:panelGrid columns="2" cellpadding="10"> 
       <p:graphicImage value="/pages/img/godfather2.jpg" /> 
       <h:outputText 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:tab title="Godfather Part III"> 
      <h:panelGrid columns="2" cellpadding="10"> 
       <p:graphicImage value="/pages/img/godfather3.jpg" /> 
       <h:outputText value="After a break of more than 15 years, director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family. 
        Two decades have passed, and crime kingpin Michael Corleone, now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate." /> 
      </h:panelGrid> 
     </p:tab> 
    </p:carousel> 
</h:form> 
    </ui:define> 

</ui:composition> 

而以下是其對瀏覽器渲染: http://i1298.photobucket.com/albums/ag48/franco_prieto/carousel_zps867d9fd4.png

我使用:jboss-6.1.0.Final,primefaces-3.4.1。 jar,primefaces-extensions-0.6.1.jar,cupertino-1.0.8.jar Firefox 19.0

哦,還有一件事,我使用了幾個其他的primefaces組件,它們都工作得很好,除了這個..

有人能幫我一下嗎?

謝謝!

+1

你把這個放在? – Despicable 2013-03-01 11:09:49

+0

謝謝,你是對的,現在我用標籤包裹了整個東西,但仍然是相同的結果。 – user2123101 2013-03-01 11:16:10

回答

1

好的,我得到它的工作!

剛剛更新了primefaces-3.4.1.jar到primefaces-3.5.jar,並且做了訣竅!

謝謝!