Panel Does Not Go Inside Tab

Locked
cloud4288
Posts: 24
Joined: 16 Jun 2011, 11:10

18 Feb 2016, 14:30

Hi everyone,

I tried adding a p:panel inside a p:tab but it won't get inside the tab.

Here's partial of it's code.

Code: Select all

<h:form id="basicDetailsForm">
    <p:tabView>
        <p:tab title="Personal Information">
            <div class="Container100 Responsive100">
                <div class="Container50 Responsive50">
                    <div class="ContainerIndent">
                        <p:panel id="basicDetails" header="Basic Details" style="margin-bottom:20px">
                            <h:panelGrid columns="2">
                            <p:outputLabel value="First Name: "/>
                            <p:inputText id="firstName" value="#{employeeDetails.basicDetails.firstName}"/>
Kindly see the link below for a screenshot.

http://postimg.org/image/eb2wmj7z9/

I'm using PrimeFaces 5.3 and Rio Theme 3.0

Hope someone can help me.


Regards,
Philip

mert.sincan
Posts: 4318
Joined: 29 Jun 2013, 12:38

18 Feb 2016, 15:06

Please try with;

Code: Select all

//CSS
<style type="text/css">
    .Container:before,
    .Container:after {
         content: "";
         display: table;
         border-collapse: collapse;
    }

    .Container:after {
         clear: both;
    }
</style>

//XHML
<h:form id="basicDetailsForm">
    <p:tabView>
        <p:tab title="Personal Information">
          <div class="Container">  <!-- ADDED -->
            <div class="Container100 Responsive100">
                <div class="Container50 Responsive50">
                    <div class="ContainerIndent">
                        <p:panel id="basicDetails" header="Basic Details" style="margin-bottom:20px">
                            <h:panelGrid columns="2">
                            <p:outputLabel value="First Name: "/>
                            <p:inputText id="firstName" value="#{employeeDetails.basicDetails.firstName}"/>


cloud4288
Posts: 24
Joined: 16 Jun 2011, 11:10

18 Feb 2016, 15:15

It works. Thank you so much.

mert.sincan
Posts: 4318
Joined: 29 Jun 2013, 12:38

18 Feb 2016, 15:27

Glad to hear, thanks!

Locked

Return to “Rio”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest