|
List Info
Thread: Table with special row to define filters
|
|
| Table with special row to define
filters |
  Germany |
2007-10-08 04:01:45 |
Hi,
is there a way to add a special row to a trinidad table,
which is not
defined by the data ?
We have to implement a table, with filters for each column.
Under the
header should be a row, with one input fields for every
column. The user
can define a filter, by entering a value into these input
fields.
I tried it with the header facet, but there is the sorting
mechanism in
the way :-(. Any better ideas/solutions ?
Thanks,
David
--
David Uebelacker
mailto:david uebelacker.eu
http://david.uebelacker.e
u/
|
|
| Re: Table with special row to define
filters |

|
2007-10-08 11:23:12 |
Custom DataModel that always returns a special first row?
On 10/8/07, David Uebelacker <david uebelacker.eu> wrote:
> Hi,
>
> is there a way to add a special row to a trinidad
table, which is not
> defined by the data ?
>
> We have to implement a table, with filters for each
column. Under the
> header should be a row, with one input fields for every
column. The user
> can define a filter, by entering a value into these
input fields.
>
> I tried it with the header facet, but there is the
sorting mechanism in
> the way :-(. Any better ideas/solutions ?
>
>
> Thanks,
>
> David
>
>
> --
> David Uebelacker
> mailto:david uebelacker.eu
> http://david.uebelacker.e
u/
>
>
|
|
| Re: Table with special row to define
filters |

|
2007-10-09 15:54:11 |
Hi,
i want to define input text fields in this row, so it will
not work with
another data model :-(.
Overwriting the default renderer seems to be the only
solution for me.
David
Andrew Robinson schrieb:
> Custom DataModel that always returns a special first
row?
>
> On 10/8/07, David Uebelacker <david uebelacker.eu> wrote:
>
>> Hi,
>>
>> is there a way to add a special row to a trinidad
table, which is not
>> defined by the data ?
>>
>> We have to implement a table, with filters for each
column. Under the
>> header should be a row, with one input fields for
every column. The user
>> can define a filter, by entering a value into these
input fields.
>>
>> I tried it with the header facet, but there is the
sorting mechanism in
>> the way :-(. Any better ideas/solutions ?
>>
>>
>> Thanks,
>>
>> David
>>
>>
>> --
>> David Uebelacker
>> mailto:david uebelacker.eu
>> http://david.uebelacker.e
u/
>>
>>
>>
>
>
|
|
| Re: Table with special row to define
filters |

|
2007-10-09 16:35:13 |
Why would a different data model prevent usage of input
fields?
<tr:dataTable value="#"
varStatus="_mystatus" var="_row">
<tr:column>
<tr:inputText rendered="#{_mystatus.index eq
0}" ... />
<tr:outputText rendered="#{_mystatus.index ne
0}" ... />
</tr:column>
This would only show the input text if it is the first row.
This is an
extremely simple example, but you should get the point.
-Andrew
On 10/9/07, David Uebelacker <david uebelacker.eu> wrote:
> Hi,
>
> i want to define input text fields in this row, so it
will not work with
> another data model :-(.
> Overwriting the default renderer seems to be the only
solution for me.
>
> David
>
> Andrew Robinson schrieb:
> > Custom DataModel that always returns a special
first row?
> >
> > On 10/8/07, David Uebelacker <david uebelacker.eu> wrote:
> >
> >> Hi,
> >>
> >> is there a way to add a special row to a
trinidad table, which is not
> >> defined by the data ?
> >>
> >> We have to implement a table, with filters for
each column. Under the
> >> header should be a row, with one input fields
for every column. The user
> >> can define a filter, by entering a value into
these input fields.
> >>
> >> I tried it with the header facet, but there is
the sorting mechanism in
> >> the way :-(. Any better ideas/solutions ?
> >>
> >>
> >> Thanks,
> >>
> >> David
> >>
> >>
> >> --
> >> David Uebelacker
> >> mailto:david uebelacker.eu
> >> http://david.uebelacker.e
u/
> >>
> >>
> >>
> >
> >
>
>
|
|
| Programmatically selecting and
deselecting rows in a tr:table with
rowSelection="multiple" |

|
2007-10-09 18:21:34 |
Is it possible to programmatically select or deselect rows
in a
tr:table? I would like to remove the rows that a user has
selected from
within an action handler method that is bound to a
commandButton.
It seems that when I call getSelectionState() on the
CoreTable, I'm
getting a null RowKeySet.
Thanks,
Richard
|
|
| Re: Table with special row to define
filters |

|
2007-10-10 01:30:50 |
Hi Andrew,
thanks a lot, that idea did not came to my mind!
David
Andrew Robinson schrieb:
> Why would a different data model prevent usage of input
fields?
>
> <tr:dataTable
value="#"
> varStatus="_mystatus"
var="_row">
> <tr:column>
> <tr:inputText rendered="#{_mystatus.index eq
0}" ... />
> <tr:outputText rendered="#{_mystatus.index ne
0}" ... />
> </tr:column>
>
> This would only show the input text if it is the first
row. This is an
> extremely simple example, but you should get the
point.
>
> -Andrew
>
> On 10/9/07, David Uebelacker <david uebelacker.eu> wrote:
>
>> Hi,
>>
>> i want to define input text fields in this row, so
it will not work with
>> another data model :-(.
>> Overwriting the default renderer seems to be the
only solution for me.
>>
>> David
>>
>> Andrew Robinson schrieb:
>>
>>> Custom DataModel that always returns a special
first row?
>>>
>>> On 10/8/07, David Uebelacker <david uebelacker.eu> wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> is there a way to add a special row to a
trinidad table, which is not
>>>> defined by the data ?
>>>>
>>>> We have to implement a table, with filters
for each column. Under the
>>>> header should be a row, with one input
fields for every column. The user
>>>> can define a filter, by entering a value
into these input fields.
>>>>
>>>> I tried it with the header facet, but there
is the sorting mechanism in
>>>> the way :-(. Any better ideas/solutions ?
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> David
>>>>
>>>>
>>>> --
>>>> David Uebelacker
>>>> mailto:david uebelacker.eu
>>>> http://david.uebelacker.e
u/
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
>
|
|
| Re: Table with special row to define
filters |

|
2007-10-10 12:54:30 |
Hi Andrew,
finally i did overwrite the table renderer, cause your
solution doesn't
really work, if you don't display all rows on one page.
The page selection functionality will always display one
record to much .
David
David Uebelacker schrieb:
> Hi,
>
> i want to define input text fields in this row, so it
will not work
> with another data model :-(.
> Overwriting the default renderer seems to be the only
solution for me.
>
> David
>
> Andrew Robinson schrieb:
>> Custom DataModel that always returns a special
first row?
>>
>> On 10/8/07, David Uebelacker <david uebelacker.eu> wrote:
>>
>>> Hi,
>>>
>>> is there a way to add a special row to a
trinidad table, which is not
>>> defined by the data ?
>>>
>>> We have to implement a table, with filters for
each column. Under the
>>> header should be a row, with one input fields
for every column. The
>>> user
>>> can define a filter, by entering a value into
these input fields.
>>>
>>> I tried it with the header facet, but there is
the sorting mechanism in
>>> the way :-(. Any better ideas/solutions ?
>>>
>>>
>>> Thanks,
>>>
>>> David
>>>
>>>
>>> --
>>> David Uebelacker
>>> mailto:david uebelacker.eu
>>> http://david.uebelacker.e
u/
>>>
>>>
>>>
>>
>>
>
>
|
|
[1-7]
|
|