permaculture playing cards
The moose likes JSF and the fly likes problem with header height in primefaces tabview Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "problem with header height in primefaces tabview" Watch "problem with header height in primefaces tabview" New topic

problem with header height in primefaces tabview

jay kal

Joined: Jan 31, 2011
Posts: 1

i've a page with couple of tabs which is in turn part of a template.

the code for the page is as
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns=""
xmlns:p="" >
<title>Boostershot Prospect Data Creator</title>

<ui:composition template="layout.xhtml">
<ui:define name="middle">
<ui:include src="toolbar.xhtml"/>
<ui:define name="left">
<ui:include src="navigmenu.xhtml"/>

<ui:define name="content">
<h:form id="personal">
<p:focus />
<p:tabView event="mouseover">
<p:tab title="Personal Information">
<p:messages id="msgs" showDetail="true"/>
<h:panelGrid id="grid" columns="3">
<hutputText value="First Name *"/>
<h:inputText label="FirstName" id="fname" value="#{personalBean.firstName}"
<p:message for="fname"/>

<hutputText value="Middle Name *"/>
<h:inputText label="MiddleName" id="mname" value="#{personalBean.middleName}"
<p:message for="mname"/>

<hutputText value="Last Name *"/>
<h:inputText label="LastName" id="lname" value="#{personalBean.lastName}"
<p:message for="lname"/>

<hutputText value="Date of Birth "/>
<p:calendar id ="dob" value="#{personalBean.uDoB}" showOn="button" navigator="true"
<p:message for="dob"/>

<hutputText value="Age "/>
<h:inputText label="Age" id="age" value="#{personalBean.uAge}" />
<p:message for="age"/>

<hutputText value="Sex *"/>
<h:selectOneRadio label="Sex" id="sex" value="#{personalBean.uSex}"
<f:selectItem itemLabel="Male" itemValue="male"/>
<f:selectItem itemLabel="Female" itemValue="female"/>
<p:message for="sex"/>


<p:commandButton value="Save" update="grid" action="addConfirmedUser"/>


<p:tab title="Add contact information">
<h:panelGrid columns="2" cellpadding="5">
<hutputText value="Home Phone 1: " />
<p:inputMask value="#{contactBean.hphone1}" mask="(999) 999-9999"/>

<hutputText value="Home Phone 2: " />
<p:inputMask value="#{contactBean.hphone2}" mask="(999) 999-9999"/>

<hutputText value="Cell Phone 1: " />
<h:inputText value="#{contactBean.cphone1}" />

<hutputText value="Cell Phone 2: " />
<h:inputText value="#{contactBean.cphone2}" />

<hutputText value="Email: " />
<h:inputText value="#{contactBean.hphone1}" />

<p:commandButton styleClass="body_text" value="Save"/>

<p:tab title="Add social networking info">
<h:panelGrid columns="2" cellpadding="5">
<hutputText value="Select social network: " />
<h:selectOneMenu id="sonet" required="true"
value="#{contactBean.sonetwork}" >
<f:selectItem itemLabel="select" itemValue="select"/>
<f:selectItem itemLabel="Youtube" itemValue="YT"/>
<f:selectItem itemLabel="LinkedIn" itemValue="LI"/>
<f:selectItem itemLabel="Twitter" itemValue="TW"/>

<hutputText value="Contact Url" />
<h:inputText value="#{contactBean.sourl}" />


<p:commandButton styleClass="body_text" value="Save"/>




the problem is that tab header height gets set to the height of the left navigation menu. The same problem is seen even in the case when the navigation is done using a p:tree.

i've uploaded a snapshot of the problem at

Please help. Stuck with this since morning

Hakan haln

Joined: Oct 21, 2011
Posts: 1

i have the same Problem!
Can you tell me how do you fix the problem??

Many Thanks.
I agree. Here's the link:
subject: problem with header height in primefaces tabview
It's not a secret anymore!