users@woodstock.java.net

Re: Table bottom Action Bar with 1 record

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Tue, 04 Mar 2008 19:03:18 -0500

jpsfranks wrote:
> Thanks for your response. Reading the TLD docs it wasn't clear to me that
> the top and bottom action bars were intended to always be the same.
>
> I think I can instead place my controls in the footer facet (I always want
> the controls at the bottom, regardless of how many rows there are). I have
> noticed that if I don't include a footerText attribute on the table, then my
> footer facet does not seem to show at all. Right now I'm working with a
> footerText="" attribute just to make the facet show up. From my reading of
> the TLD docs it doesn't sound like this should be the case.
>

The footer facet sounds like a bug.

Dan

>
>
> Dan Labrecque wrote:
>
>> 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.
>>>
>>>
>>
>>
>
>