Hi, I tried that, I modified columnSelected to return the value. That works. But it does not seem an ideal solution.
I noticed columnSelected does calls saveSessionState in TableView. Do you know how I could access it using TableView? Do you know when "m_objModelSource" in SimpleTableColumnComponent.java gets updated? Thanks Shalini -----Original Message----- From: Shing Hing Man [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 1:22 PM To: Tapestry users Subject: RE: contrib:table Column Click Have you try the following ? (It is not the most elegant solution. Maybe some else has a better suggestion.) Copy the following org.apache.tapestry.contrib.table.components.inserted.SimpleTableColumnC omponent.java into your WEB-INF/classes directory. Add your processing code in the method columnSelected of the above copy. When a column header is clicked, the above copy of SimpleTableColumnComponent would be called instead of the one in the tapestry jar. Shing --- Shalini Seth <[EMAIL PROTECTED]> wrote: > Yes I do know about it. I am trying to call it on PageBeginRender of > my class. But it does not seem to work. > > > -----Original Message----- > From: Shing Hing Man [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 13, 2005 12:33 PM > To: Tapestry users > Subject: Re: contrib:table Column Click > > In case you did not know, > (unless you have heavily customised the table > component) > when you click the column header, it will called the method > columnSelected(IRequestCycle objCycle) in the class > > org.apache.tapestry.contrib.table.components.inserted.SimpleTableColumnC > omponent > The name of the column being clicked is determined in method > columnSelected. > > In method columnSelected, you have access to the page, via > objCycle.getPage(), containing the table component. > That might enable > you to do the required processing. > > > Shing > --- Shalini Seth <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am new to tapestry. I am working on the table component. > > > > The problem I am facing is, I need to be able to figure out which > > column the user has clicked on on the table, before the sorting > > happens. > > > > I want to be able to do my own processing based on what the user has > > selected. > > > > I know this can be done by using service > parameters. > > But thats not the > > way I want to go as it would not be ideal design. > > > > Thanks > > Shalini > > > > Home page : > http://uk.geocities.com/matmsh/index.html > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Home page : http://uk.geocities.com/matmsh/index.html Send instant messages to your online friends http://uk.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]