[opencms-dev] How to get CmsObjects from a Vector

M Butcher mbutcher at grcomputing.net
Mon Jul 12 17:31:01 CEST 2004


I don't think you want to cast them into CmsObjects.

Matt

Raza Naqvi wrote:
> Hi All,
> 
> Here is my Code Snippet:
> 
> Vector v= new Vector();
> v=xyzContentDefinition.getXyzList();// returns a vector of Content Definitions
> 
> If I traverse the Vector using it's index. Iam able to get the Objects.
> But Casting an Object to a CmsObject will be an error.
> 
> How to get individual CmsObjects from Vector-v. or any other idea to get CmsObjects from a ContentDefinition.
> 
> It's urgent, need a quick solution.
> 
> Please helpout.
> 
> 
> TIA,
> Raza Naqvi
> 
> _____________________________________________________________
> I use Krify Mail - http://mail.krify.com  Get  Yourname at  Krify today!
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list