Re: get a IComponent URL

2006-04-13 Thread Rodnei Couto
thanks for your help... this problem was in my own tree component. I wanted the page to open when the user selected a tree node.I had using javascript to make this... Now i'm using a tacos's tree... my problem is resolved :) Thanks, Rodnei Couto Andreas Andreou escreveu: i don't think ther

Re: get a IComponent URL

2006-04-13 Thread Andreas Andreou
i don't think there's such a thing as 'real URL of a component' Only 'real URL of a service'. And since DirectService expects IDirect objects, I don't think there's anything you can do apart writing your own service. And anyway, if indeed 'URL of a component' makes sense, what would happen when so

Re: get a IComponent URL

2006-04-13 Thread Rodnei Couto
I'm trying to retrieve the real URL of a component...then i put it in a javascript Andreas Andreou escreveu: What exactly are you trying to do? Perhaps you don't need to use the direct service... Rodnei Couto wrote: Hi Filip, thanks for your help... the method getPage().getComponent()

Re: get a IComponent URL

2006-04-13 Thread Andreas Andreou
What exactly are you trying to do? Perhaps you don't need to use the direct service... Rodnei Couto wrote: > Hi Filip, > > thanks for your help... > > the method getPage().getComponent() return a object IComponent. I > can't cast this object to IDirect. This is the problem. > > []'s, > Rodnei Cou

Re: get a IComponent URL

2006-04-13 Thread Rodnei Couto
Hi Filip, thanks for your help... the method getPage().getComponent() return a object IComponent. I can't cast this object to IDirect. This is the problem. []'s, Rodnei Couto Filip S. Adamsen escreveu: Hi, DirectLink, Form, and Go implement IDirect, so you can pass a reference to a

Re: get a IComponent URL

2006-04-13 Thread Filip S. Adamsen
Hi, DirectLink, Form, and Go implement IDirect, so you can pass a reference to a component of one of these types to the DirectServiceParameter constructor: IDirect component = getPage().getComponent("expand"); DirectServiceParameter parameter = new DirectServiceParameter(component, param