datatable footer width is less than the width of the table?

UI Components for JSF
Post Reply
User avatar
daniel_r
Posts: 199
Joined: 02 Mar 2009, 16:35

23 Oct 2010, 01:28

Hi

i got a table with 2 data columns and 1 editor column

in the bottom i got a footer facet in which i display the amount of rows in the table

the problem is that the footer width is less than the table width... i tried to play with the width of the table/footer but no matter what i do the footer keeps on being less wide than the table.. and it doesn't look good

what am i missing? how can i solve it?

this is the table code

Code: Select all

                                <p:dataTable id="friends" value="#{settingsBean.aFriendsList}" var="friend" 
                                    emptyMessage="Add friends to the list"
                                    scrollable="true" height="200" rowEditListener="#{settingsBean.rowEdit}" style="width:80%;">
this is the footer code

Code: Select all

                                    <f:facet name="footer">  
                                         In total there are #{settingsBean.aFriendsListSize} friends.  
                                     </f:facet>
I'm Using 2.2.RC1

Thanx ahead

zerounix
Posts: 8
Joined: 20 Oct 2010, 22:09

23 Oct 2010, 09:17

Hi,

can you try it without the style="80%" and verify if the table and footer have the same width?
mojarra-2.1.25
primefaces-4.0
tomcat 7 - JBoss EAP 6

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

23 Oct 2010, 10:55

Also a screenshot would help.

User avatar
daniel_r
Posts: 199
Joined: 02 Mar 2009, 16:35

23 Oct 2010, 15:08

without the width 80% it stays the same (less wide than the table itself)

B.T.W the table is inside a tab
here is the tab settings:

Code: Select all

<p:tabView effect="opacity" effectDuration="normal" style="width:80%;height:600px">
and even without the style of the tabView the width problem stays the same...

One more thing, after I'm clicking on add and the table being populated with another row, the width of the table shrinks to the size of the footer...


Image

this is with width:80% for the table

Image

This width error happens in IE 8 and FF 3.6 as well
Primefaces 3.4 , MyFaces 2.0.11
Tomcat 6
Win7 32bit

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

25 Oct 2010, 15:08

I've had similiar problems with the header of a table. It doesn't always line up with the columns, especially if I resize the browser window to be a small size and the table doesn't fit in the viewport.

User avatar
daniel_r
Posts: 199
Joined: 02 Mar 2009, 16:35

26 Oct 2010, 18:22

So it seems that the table header is not really usable...

Is there any way to use the table footer inside a tab ?


Daniel.
Primefaces 3.4 , MyFaces 2.0.11
Tomcat 6
Win7 32bit

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests