tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amol Yadwadkar" <ayadwad...@webifyservices.com>
Subject Re: Adding / Deleting Columns @ Runtime
Date Wed, 06 Aug 2003 14:02:18 GMT
Hi Fermin DCG,
Can you please send me across your Stuff to acheive the Issue.
Thankx
Cheers,,
Amol

----- Original Message -----
From: "F. Da Costa Gomez" <dcg@fixed.com>
To: "Tapestry users" <tapestry-user@jakarta.apache.org>
Sent: Tuesday, August 05, 2003 12:55 PM
Subject: Re: Adding / Deleting Columns @ Runtime


> I assume one way of doing it would be:
> - get the current tableModel
> - retrieve columnModel from it
> - either remove the unwanted cols and insert the wanted ones or
> - create a new tableCol using the wanted cols as input adding the new
> cols on the fly
> - give it back to the tableModel or recreate it
>
> Item 3 and 4 I've done by iterating through the colMod adding the cols
> to a vector (because 1 can order it). Also added the new cols to the
vector.
>
> I'm not sure whether it is totally efficient but it will work.
>
> Cheers,
> Fermin DCG
>
> Amol Yadwadkar wrote:
>
> >Hi MB,
> >
> >I will like to do something @RunTime with Table Component.
> >
> >It is as follows:-
> >Assume I have a Screen where I am displaying the Table by using Table
Component.
> >Now, This Screen has a Popup (OnClick Popup) and this Popup is having all
the Column Names (from the Table) with a Check Boxes.
> >On Checking the respective Column name I shall be able to hide that
particular Column and so on......
> >
> >Is that Possible with Table Component.I mean Is it possible to add/delete
the entire Column @Runtime?
> >
> >I have gone thrgh the API of Table related Classes but I failed to get
any such Method.I can get the Colum Name @Runtime but How can I delete/Add
it @ Rutime?
> >Can u Pls Brief me on this?
> >Thankx
> >Best regds,
> >Amol
> >
> >
> >
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


Mime
View raw message