You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Iryna Stetska <st...@lohika.lviv.ua> on 2006/02/23 15:02:23 UTC

tobato t:sheet sorting

We are using t:sheet component.
We need to implement sortable column in it which would perform sorting
by clicking on the column header, while sorting will be performed on
the server side. (We don't want to use standard tobago sheet sorting
for substantial reason).


Can we have some event handler implemented for clicking the t:sheet
column header?


Re: tobato t:sheet sorting

Posted by Emily Gu <e2...@gmail.com>.
Hi,

I am very interested in this topic too. I found the example in MyFaces, the
sort method had been called three time when you click a column header. Do
you know why it had to be called three times? It seems a bug to me.

Thanks,
Emily


On 2/23/06, Volker Weber <us...@weber-oldenburg.de> wrote:
>
> Hi Iryna,
>
> Iryna Stetska wrote:
> > We are using t:sheet component.
> > We need to implement sortable column in it which would perform sorting
> > by clicking on the column header, while sorting will be performed on
> > the server side. (We don't want to use standard tobago sheet sorting
> > for substantial reason).
> >
> >
> > Can we have some event handler implemented for clicking the t:sheet
> > column header?
>
> sorry, no. There is currently no such thing.
>
> Bernd and i had talked about change the sorting to an eventListener
> approach. But IMO there is nothing concrete done yet.
>
>
> Regards,
> Volker
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>

Re: tobato t:sheet sorting

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi,

quoting form dev list:

Volker Weber wrote:

> Hi Bernd,
>
> the sheet was already using a actionListener methodBinding to do the
> sort. The (mainly) only thing i did was to enable defining the
> methodBinding to use in the sheetTag.
>
> Hmmm, when i started to write this mail, i thought it where mutch more
> complicated to change this to queue a SortActionEvent instead of an
> standard ActionEvent, because the event is generated in the
> CommandRendererBase, but i just got an idea how to catch and replace
> this ActionEvent with a SortActionEvent.
>
> Regards,
>  Volker
>
> Bernd Bohmann wrote:
>
>> Hi Volker,
>>
>> I would prefer an actionListener and a SortActionEvent instead of a
>> sortActionListener.
>>
>> I don't like the x XYZActionListener.
>>
>> Can you change it?
>>
>> Regards
>>
>> Bernd

just to inform that the sortActionListerner attribute of sheet is still
subject of change.

Regards,
  Volker

Volker Weber wrote:
> Hi again,
> 
> now it is possible to declare a actionListener to let the application sort.
> 
> I just checked it in.
> 
> 
> Regards,
>   Volker
> 
> Volker Weber wrote:
> 
>>Hi Iryna,
>>
>>Iryna Stetska wrote:
>>
>>
>>>We are using t:sheet component.
>>>We need to implement sortable column in it which would perform sorting
>>>by clicking on the column header, while sorting will be performed on
>>>the server side. (We don't want to use standard tobago sheet sorting
>>>for substantial reason).
>>>
>>>
>>>Can we have some event handler implemented for clicking the t:sheet
>>>column header?
>>
>>
>>sorry, no. There is currently no such thing.
>>
>>Bernd and i had talked about change the sorting to an eventListener
>>approach. But IMO there is nothing concrete done yet.
>>
>>
>>Regards,
>>  Volker
>>
> 
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: tobato t:sheet sorting

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi Emily,

my changes are in the tobago subproject (currently still in incubator),
not in myfaces-tomahawk.

It is not possible to combine tobago and tomahawk in one project.

Anyway, if you still intrested you can get the latest sources, see
http://tobago.atanion.net/site/getting-started.html.

An example is in the tobago-example-demo app.

Regards,
  Volker


Emily Gu wrote:
> Hi Volker,
> 
> Thanks for your help. Where can I get your newly checked in changes? Any
> example in how to use it?
> 
> Thanks,
> Emily
> 
> 
> On 2/24/06, Volker Weber <us...@weber-oldenburg.de> wrote:
> 
>>Hi again,
>>
>>now it is possible to declare a actionListener to let the application
>>sort.
>>
>>I just checked it in.
>>
>>
>>Regards,
>>Volker
>>
>>Volker Weber wrote:
>>
>>>Hi Iryna,
>>>
>>>Iryna Stetska wrote:
>>>
>>>
>>>>We are using t:sheet component.
>>>>We need to implement sortable column in it which would perform sorting
>>>>by clicking on the column header, while sorting will be performed on
>>>>the server side. (We don't want to use standard tobago sheet sorting
>>>>for substantial reason).
>>>>
>>>>
>>>>Can we have some event handler implemented for clicking the t:sheet
>>>>column header?
>>>
>>>
>>>sorry, no. There is currently no such thing.
>>>
>>>Bernd and i had talked about change the sorting to an eventListener
>>>approach. But IMO there is nothing concrete done yet.
>>>
>>>
>>>Regards,
>>>  Volker
>>>
>>
>>--
>>Don't answer to From: address!
>>Mail to this account are droped if not recieved via mailinglist.
>>To contact me direct create the mail address by
>>concatenating my forename to my senders domain.
>>
> 
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: tobato t:sheet sorting

Posted by Emily Gu <e2...@gmail.com>.
Hi Volker,

Thanks for your help. Where can I get your newly checked in changes? Any
example in how to use it?

Thanks,
Emily


On 2/24/06, Volker Weber <us...@weber-oldenburg.de> wrote:
>
> Hi again,
>
> now it is possible to declare a actionListener to let the application
> sort.
>
> I just checked it in.
>
>
> Regards,
> Volker
>
> Volker Weber wrote:
> > Hi Iryna,
> >
> > Iryna Stetska wrote:
> >
> >>We are using t:sheet component.
> >>We need to implement sortable column in it which would perform sorting
> >>by clicking on the column header, while sorting will be performed on
> >>the server side. (We don't want to use standard tobago sheet sorting
> >>for substantial reason).
> >>
> >>
> >>Can we have some event handler implemented for clicking the t:sheet
> >>column header?
> >
> >
> > sorry, no. There is currently no such thing.
> >
> > Bernd and i had talked about change the sorting to an eventListener
> > approach. But IMO there is nothing concrete done yet.
> >
> >
> > Regards,
> >   Volker
> >
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>

Re: tobato t:sheet sorting

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi again,

now it is possible to declare a actionListener to let the application sort.

I just checked it in.


Regards,
  Volker

Volker Weber wrote:
> Hi Iryna,
> 
> Iryna Stetska wrote:
> 
>>We are using t:sheet component.
>>We need to implement sortable column in it which would perform sorting
>>by clicking on the column header, while sorting will be performed on
>>the server side. (We don't want to use standard tobago sheet sorting
>>for substantial reason).
>>
>>
>>Can we have some event handler implemented for clicking the t:sheet
>>column header?
> 
> 
> sorry, no. There is currently no such thing.
> 
> Bernd and i had talked about change the sorting to an eventListener
> approach. But IMO there is nothing concrete done yet.
> 
> 
> Regards,
>   Volker
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: tobato t:sheet sorting

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi Iryna,

Iryna Stetska wrote:
> We are using t:sheet component.
> We need to implement sortable column in it which would perform sorting
> by clicking on the column header, while sorting will be performed on
> the server side. (We don't want to use standard tobago sheet sorting
> for substantial reason).
> 
> 
> Can we have some event handler implemented for clicking the t:sheet
> column header?

sorry, no. There is currently no such thing.

Bernd and i had talked about change the sorting to an eventListener
approach. But IMO there is nothing concrete done yet.


Regards,
  Volker

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.