You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ayub Khan <ay...@gmail.com> on 2008/08/26 01:23:26 UTC

filter data in data Table

Hi,

I need to filter table data based on user inputs (multiple criteria). Can
anyone point to a working example to achieve this in JSF dataTable ?

Thank you

Ayub

Re: filter data in data Table

Posted by Ayub Khan <ay...@gmail.com>.
Hi Hazem,

thanx for the quick response. I will build a prototype using this. Since
this is a sandbox api I cannot use it for production however it will give me
a good insight of what to expect in the future.

I appreciate your patience and time !!!

Regards
Ayub

On Tue, Aug 26, 2008 at 11:31 AM, Hazem Saleh <ha...@apache.org> wrote:

> You will just have to use the *<s:filterTable>* tag, and can define the
> criteria using* dojo.widget.byId('yourTable').setFilter(...) *(So you can
> define multiple criterias using this approach).
> *
> To see the complete example source code, please check :*
> http://www.irian.at/myfaces-sandbox/filterTable.jsp.source
>
> Thanks!
>
> On Tue, Aug 26, 2008 at 3:56 AM, Ayub Khan <ay...@gmail.com> wrote:
>
>> Hi Hazem,
>>
>> thanx for support !!! Yeah, I will try with the POC. I found that the
>> sandbox filter table is using dojo frame work. I understand dojo based on
>> ajax. In that case this filter table needs ajax support for development ?
>>
>> Also do you have any sample for applying multiple filters on a single
>> table ?
>>
>> Thanks and Regards
>> Ayub
>>
>>
>> On Tue, Aug 26, 2008 at 10:47 AM, Hazem Saleh <ha...@apache.org> wrote:
>>
>>> Hi Ayub,
>>>
>>> Any sandbox component is in the trial stage (*Trial *means; the
>>> component may be stable or not, its APIs might change any time in the
>>> future, and no guarantee that the component will be promoted to Tomahawk).
>>>
>>> I recommend you to make a small POC before usage, and if you found bugs
>>> just tell us and we will help ;).
>>>
>>> Good Luck!
>>>
>>> On Tue, Aug 26, 2008 at 3:41 AM, Ayub Khan <ay...@gmail.com> wrote:
>>>
>>>> Thank you Hazem !!! I will explore this option. Thank you for the clue
>>>> !!! Is this a stable component ? Cuz I am using it for developing a
>>>> production system.
>>>>
>>>>
>>>> On Tue, Aug 26, 2008 at 10:32 AM, Hazem Saleh <ha...@apache.org>wrote:
>>>>
>>>>> Hi Ayub,
>>>>>
>>>>> You can use the Tomahawk sandbox filterTable, check it here :
>>>>> http://www.irian.at/myfaces-sandbox/filterTable.jsf
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>> On Tue, Aug 26, 2008 at 2:23 AM, Ayub Khan <ay...@gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I need to filter table data based on user inputs (multiple criteria).
>>>>>> Can anyone point to a working example to achieve this in JSF dataTable ?
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>> Ayub
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Hazem Ahmed Saleh Ahmed
>>>>> http://www.jroller.com/page/HazemBlog
>>>>>
>>>>> GMaps Integration with JSF:
>>>>> http://code.google.com/p/gmaps4jsf/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> -- "Two roads diverged in a wood
>>>> And I took the one less traveled by
>>>> And that has made all the difference.
>>>>
>>>> Robert Frost....."
>>>>
>>>
>>>
>>>
>>> --
>>> Hazem Ahmed Saleh Ahmed
>>> http://www.jroller.com/page/HazemBlog
>>>
>>> GMaps Integration with JSF:
>>> http://code.google.com/p/gmaps4jsf/
>>>
>>
>>
>>
>> --
>> -- "Two roads diverged in a wood
>> And I took the one less traveled by
>> And that has made all the difference.
>>
>> Robert Frost....."
>>
>
>
>
> --
> Hazem Ahmed Saleh Ahmed
> http://www.jroller.com/page/HazemBlog
>
> GMaps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
>



-- 
-- "Two roads diverged in a wood
And I took the one less traveled by
And that has made all the difference.

Robert Frost....."

Re: filter data in data Table

Posted by Hazem Saleh <ha...@apache.org>.
You will just have to use the *<s:filterTable>* tag, and can define the
criteria using* dojo.widget.byId('yourTable').setFilter(...) *(So you can
define multiple criterias using this approach).
*
To see the complete example source code, please check :*
http://www.irian.at/myfaces-sandbox/filterTable.jsp.source

Thanks!
On Tue, Aug 26, 2008 at 3:56 AM, Ayub Khan <ay...@gmail.com> wrote:

> Hi Hazem,
>
> thanx for support !!! Yeah, I will try with the POC. I found that the
> sandbox filter table is using dojo frame work. I understand dojo based on
> ajax. In that case this filter table needs ajax support for development ?
>
> Also do you have any sample for applying multiple filters on a single table
> ?
>
> Thanks and Regards
> Ayub
>
>
> On Tue, Aug 26, 2008 at 10:47 AM, Hazem Saleh <ha...@apache.org> wrote:
>
>> Hi Ayub,
>>
>> Any sandbox component is in the trial stage (*Trial *means; the component
>> may be stable or not, its APIs might change any time in the future, and no
>> guarantee that the component will be promoted to Tomahawk).
>>
>> I recommend you to make a small POC before usage, and if you found bugs
>> just tell us and we will help ;).
>>
>> Good Luck!
>>
>> On Tue, Aug 26, 2008 at 3:41 AM, Ayub Khan <ay...@gmail.com> wrote:
>>
>>> Thank you Hazem !!! I will explore this option. Thank you for the clue
>>> !!! Is this a stable component ? Cuz I am using it for developing a
>>> production system.
>>>
>>>
>>> On Tue, Aug 26, 2008 at 10:32 AM, Hazem Saleh <ha...@apache.org> wrote:
>>>
>>>> Hi Ayub,
>>>>
>>>> You can use the Tomahawk sandbox filterTable, check it here :
>>>> http://www.irian.at/myfaces-sandbox/filterTable.jsf
>>>>
>>>> Thanks!
>>>>
>>>>
>>>> On Tue, Aug 26, 2008 at 2:23 AM, Ayub Khan <ay...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I need to filter table data based on user inputs (multiple criteria).
>>>>> Can anyone point to a working example to achieve this in JSF dataTable ?
>>>>>
>>>>> Thank you
>>>>>
>>>>> Ayub
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Hazem Ahmed Saleh Ahmed
>>>> http://www.jroller.com/page/HazemBlog
>>>>
>>>> GMaps Integration with JSF:
>>>> http://code.google.com/p/gmaps4jsf/
>>>>
>>>
>>>
>>>
>>> --
>>> -- "Two roads diverged in a wood
>>> And I took the one less traveled by
>>> And that has made all the difference.
>>>
>>> Robert Frost....."
>>>
>>
>>
>>
>> --
>> Hazem Ahmed Saleh Ahmed
>> http://www.jroller.com/page/HazemBlog
>>
>> GMaps Integration with JSF:
>> http://code.google.com/p/gmaps4jsf/
>>
>
>
>
> --
> -- "Two roads diverged in a wood
> And I took the one less traveled by
> And that has made all the difference.
>
> Robert Frost....."
>



-- 
Hazem Ahmed Saleh Ahmed
http://www.jroller.com/page/HazemBlog

GMaps Integration with JSF:
http://code.google.com/p/gmaps4jsf/

Re: filter data in data Table

Posted by Ayub Khan <ay...@gmail.com>.
Hi Hazem,

thanx for support !!! Yeah, I will try with the POC. I found that the
sandbox filter table is using dojo frame work. I understand dojo based on
ajax. In that case this filter table needs ajax support for development ?

Also do you have any sample for applying multiple filters on a single table
?

Thanks and Regards
Ayub

On Tue, Aug 26, 2008 at 10:47 AM, Hazem Saleh <ha...@apache.org> wrote:

> Hi Ayub,
>
> Any sandbox component is in the trial stage (*Trial *means; the component
> may be stable or not, its APIs might change any time in the future, and no
> guarantee that the component will be promoted to Tomahawk).
>
> I recommend you to make a small POC before usage, and if you found bugs
> just tell us and we will help ;).
>
> Good Luck!
>
> On Tue, Aug 26, 2008 at 3:41 AM, Ayub Khan <ay...@gmail.com> wrote:
>
>> Thank you Hazem !!! I will explore this option. Thank you for the clue !!!
>> Is this a stable component ? Cuz I am using it for developing a production
>> system.
>>
>>
>> On Tue, Aug 26, 2008 at 10:32 AM, Hazem Saleh <ha...@apache.org> wrote:
>>
>>> Hi Ayub,
>>>
>>> You can use the Tomahawk sandbox filterTable, check it here :
>>> http://www.irian.at/myfaces-sandbox/filterTable.jsf
>>>
>>> Thanks!
>>>
>>>
>>> On Tue, Aug 26, 2008 at 2:23 AM, Ayub Khan <ay...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I need to filter table data based on user inputs (multiple criteria).
>>>> Can anyone point to a working example to achieve this in JSF dataTable ?
>>>>
>>>> Thank you
>>>>
>>>> Ayub
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Hazem Ahmed Saleh Ahmed
>>> http://www.jroller.com/page/HazemBlog
>>>
>>> GMaps Integration with JSF:
>>> http://code.google.com/p/gmaps4jsf/
>>>
>>
>>
>>
>> --
>> -- "Two roads diverged in a wood
>> And I took the one less traveled by
>> And that has made all the difference.
>>
>> Robert Frost....."
>>
>
>
>
> --
> Hazem Ahmed Saleh Ahmed
> http://www.jroller.com/page/HazemBlog
>
> GMaps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
>



-- 
-- "Two roads diverged in a wood
And I took the one less traveled by
And that has made all the difference.

Robert Frost....."

Re: filter data in data Table

Posted by Hazem Saleh <ha...@apache.org>.
Hi Ayub,

Any sandbox component is in the trial stage (*Trial *means; the component
may be stable or not, its APIs might change any time in the future, and no
guarantee that the component will be promoted to Tomahawk).

I recommend you to make a small POC before usage, and if you found bugs just
tell us and we will help ;).

Good Luck!

On Tue, Aug 26, 2008 at 3:41 AM, Ayub Khan <ay...@gmail.com> wrote:

> Thank you Hazem !!! I will explore this option. Thank you for the clue !!!
> Is this a stable component ? Cuz I am using it for developing a production
> system.
>
>
> On Tue, Aug 26, 2008 at 10:32 AM, Hazem Saleh <ha...@apache.org> wrote:
>
>> Hi Ayub,
>>
>> You can use the Tomahawk sandbox filterTable, check it here :
>> http://www.irian.at/myfaces-sandbox/filterTable.jsf
>>
>> Thanks!
>>
>>
>> On Tue, Aug 26, 2008 at 2:23 AM, Ayub Khan <ay...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I need to filter table data based on user inputs (multiple criteria). Can
>>> anyone point to a working example to achieve this in JSF dataTable ?
>>>
>>> Thank you
>>>
>>> Ayub
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Hazem Ahmed Saleh Ahmed
>> http://www.jroller.com/page/HazemBlog
>>
>> GMaps Integration with JSF:
>> http://code.google.com/p/gmaps4jsf/
>>
>
>
>
> --
> -- "Two roads diverged in a wood
> And I took the one less traveled by
> And that has made all the difference.
>
> Robert Frost....."
>



-- 
Hazem Ahmed Saleh Ahmed
http://www.jroller.com/page/HazemBlog

GMaps Integration with JSF:
http://code.google.com/p/gmaps4jsf/

Re: filter data in data Table

Posted by Ayub Khan <ay...@gmail.com>.
Thank you Hazem !!! I will explore this option. Thank you for the clue !!!
Is this a stable component ? Cuz I am using it for developing a production
system.

On Tue, Aug 26, 2008 at 10:32 AM, Hazem Saleh <ha...@apache.org> wrote:

> Hi Ayub,
>
> You can use the Tomahawk sandbox filterTable, check it here :
> http://www.irian.at/myfaces-sandbox/filterTable.jsf
>
> Thanks!
>
>
> On Tue, Aug 26, 2008 at 2:23 AM, Ayub Khan <ay...@gmail.com> wrote:
>
>> Hi,
>>
>> I need to filter table data based on user inputs (multiple criteria). Can
>> anyone point to a working example to achieve this in JSF dataTable ?
>>
>> Thank you
>>
>> Ayub
>>
>>
>>
>>
>>
>
>
> --
> Hazem Ahmed Saleh Ahmed
> http://www.jroller.com/page/HazemBlog
>
> GMaps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
>



-- 
-- "Two roads diverged in a wood
And I took the one less traveled by
And that has made all the difference.

Robert Frost....."

Re: filter data in data Table

Posted by Hazem Saleh <ha...@apache.org>.
Hi Ayub,

You can use the Tomahawk sandbox filterTable, check it here :
http://www.irian.at/myfaces-sandbox/filterTable.jsf

Thanks!

On Tue, Aug 26, 2008 at 2:23 AM, Ayub Khan <ay...@gmail.com> wrote:

> Hi,
>
> I need to filter table data based on user inputs (multiple criteria). Can
> anyone point to a working example to achieve this in JSF dataTable ?
>
> Thank you
>
> Ayub
>
>
>
>
>


-- 
Hazem Ahmed Saleh Ahmed
http://www.jroller.com/page/HazemBlog

GMaps Integration with JSF:
http://code.google.com/p/gmaps4jsf/