Tabview in PrimeFaces 3.0.M4

UI Components for JSF
Post Reply
viniciuspadua
Posts: 12
Joined: 28 Dec 2010, 15:36

21 Nov 2011, 15:30

I have a tabview with 3 pages and in the second page a have another tabView. In 3.0.M3 work´s fine, but when I update to M4 dosen´t.

In M4:
When the page open appear the 3 pages for the frist tabview and the tabview insite.

I found the problem happen when I use ThemeRoller diferent from default

Code: Select all

<p:tabView>

	<p:tab title="Godfather Part I">
		<h:panelGrid columns="2" cellpadding="10">
			<p:graphicImage value="/images/godfather/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="/images/godfather/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:tabView>

				<p:tab title="Godfather Part I">
					<h:panelGrid columns="2" cellpadding="10">
						<p:graphicImage value="/images/godfather/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="/images/godfather/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="/images/godfather/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:tabView>		
		
	</p:tab>

	<p:tab title="Godfather Part III">
		<h:panelGrid columns="2" cellpadding="10">
			<p:graphicImage value="/images/godfather/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:tabView>

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

21 Nov 2011, 18:49

PrimeFaces 3.0.M4 came with aristo bundled as default theme. When I migrated from PrimeFaces 3.0M3 to M4 and/or 3.0RC1-SNAPSHOT, I had to remove reference to aristo theme in web.xml. What PrimeFaces configuration options do you have listed in web.xml? I'm asking, because modifying PrimeFaces options in my web.xml, after migrating to M4/RC1-SNAPSHOT, solved my problem. I don't have anything in web.xml referencing PrimeFaces any longer.

For now, i'm using PrimeFaces 3.0M4/RC1-SNAPSHOT default theme (aristo). Later on, I would like to add ThemeRoller to the JSF/PrimeFaces web app.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

viniciuspadua
Posts: 12
Joined: 28 Dec 2010, 15:36

21 Nov 2011, 19:55

in my web.xml I set "none" and in the pages I set manually, see above.

Code: Select all

   <!-- web.xml -->
	<context-param>
		<param-name>primefaces.THEME</param-name>
		<param-value>none</param-value>
	</context-param>

<!-- Pages -->
<link rel="stylesheet" href="#{request.contextPath}/theme/custom-theme/jquery-ui-1.8.16.custom.css" />
in this link (viewtopic.php?f=3&t=15803) someone told when I remove display:block for .ui-tabs .ui-tabs-panel sold the problem. I try and works for tabview. But I have other problem with menuButton.

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

21 Nov 2011, 20:08

Have you tried to remove that entire context-param block from web.xml, close browser session, restart server, and retest?

Code: Select all

   <!-- web.xml -->
   <context-param>
      <param-name>primefaces.THEME</param-name>
      <param-value>none</param-value>
   </context-param>

<!-- Pages -->
<link rel="stylesheet" href="#{request.contextPath}/theme/custom-theme/jquery-ui-1.8.16.custom.css" />
You may want to use h:outputStylesheet in page header block like I did.

Code: Select all

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><h:outputText value="MCMS"/></title>
        <h:outputStylesheet name="#{pageNavigationController.css}"/>
    </h:head>
You may also want to read the following blog post by Optimus.Prime; may be related, since your custom.css is considered a resource.

http://blog.primefaces.org/?p=1503
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests