Hello Jesse,

thanks for your response, but I'm afraid my problem was that I'm using
tapestry 4.0 (clientId is public accessible in 4.0, no?). (sorry for not
warning you before).

Well, As I explained before I've tried using the clientId, always inside a
For component. In this For loop I have a component (the one I want to
unequivocally identify), but I've tried accessing inside the component class
to the getClientId but always return to me the same ID.

Thanks you in advance,
        robert

On 11/3/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

IComponent.getClientId() or IComponent.getId()

getClientId() is only relevant "in context"...ie calling it inside a For
loop would be good.

On 11/2/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> I want to use something that I supose tapestry already made for me.
>
> I'll try to explain because probably some of you have, or have had this
> question, and probably the answer to my question is that this is not
> possible or shouldn't be done, but I'm not sure.
>
> I want to use the tapestry generated Id's. I have seen that in tapestry,
> when an element is inside a For component (supose we have a TextField
with
> id= name), and this element is part of a dynamic form, is generated with
a
> different id in each loop, this Id use to be like: tapestryIdName_X
(where
> X
> is the index in the loop, or the index-1). I want to know if is possible
> to
> use the clientId that I've debugged and saw that is the correct one.
> I would like to use this id in two situations, one just to know the id
of
> a
> TextField and the other to know the Id of my own component.
>
> Thanks you,
> --
> Robert Ramírez Vique
> Computer Science Engineer
>
>


--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com




--
Robert Ramírez Vique
Computer Science Engineer

Reply via email to