users@woodstock.java.net

Re: Table bottom Action Bar with 1 record

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Wed, 27 Feb 2008 13:45:38 -0500

Sorry, but this is by design -- per UI guidelines. When there are many
rows in a table, the top and bottom action bars help ensure the user
does not have to scroll up in the page in order to choose a table
action. Therefore, the top and bottom action facets are intended to
display the same controls. Unfortunately, we are forced to provide two
JSF facets so each control can have a unique HTML element ID. That said,
when there are zero or one table rows, displaying both action bars is
not necessary -- it makes the table look too busy.

Dan

jpsfranks wrote:
> Hello,
>
> I've put some controls in the actionsBottom facet of a table. I've noticed
> that when there is 1 and only 1 record, the bottom Action Bar is not
> rendered at all. I don't see any indication in the documentation that the
> Action Bar should be dependent on there being > 1 records. Not rendering
> the bar when there are 0 records makes sense, but it seems like it should
> still be there for 1 record. Is this a bug or is there a reason for this
> behavior? If it's a bug I can file an issue.
>
> Unlike the bottom bar, the top Action Bar with an actionsTop facet seems to
> be rendered always, even if there are no records.
>
> Here's a summary of how the bottom Action Bar seems to be rendered:
>
> <= 1 record
> bottom Action Bar is not rendered
> (should be when == 0 records instead?)
>
>
>> 1 record and <= 1 page
>>
> Action Bar rendered with actionsBottom facet, no pagination controls
> (should be >= 1 record instead?)
>
>
>> 1 page
>>
> Action Bar rendered with actionsBottom facet and pagination controls.
>
> Thanks.
>