Hi
Thanks for the responses but unfortunatley I thought of these things and
they dont work The results are:

   - getName(): works outside a loop just fine, just not inside the loop
   - getClientId(): neither works insdie or outide as it returns null
   - getId(): this shouldnt be used as its the id of the component not
   the clientId.

The odd thing about getName is that its never reset, by which I mean the
second time the page is loaded the first call to getName will return the
name used for the last.

However this is not really that big an issue, not being a total tapestry
n00b, I am able to hack this in a variety of non-elegant ways .

However the main issue is that I am not able to record errors against
components that were in a loop in a listener method.

I have tried a number of ways and have almost resigned myself to another
awful hack using the field trackings or patching the source.

There were problems with components in loops in tapestry 3 and I believed
they had been resolved by vairous posts on this mailing list. Am i just
missing something?

Mike





On 24/01/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> Have you tried using IFormComponent.getClientId() ?
>
> The id's of elements just can't be known ~before~ they are rendered,  but
> if
> you do it during the loop getId() or getClientId() should work just fine.
>
> On 1/24/06, Jorge Quiroga <[EMAIL PROTECTED]> wrote:
> >
> > Hi Mike:
> >
> > I wait for a week to someone respond to me about something like you, but
> > without success. I cannot understand if For generates dynamically
> > components, why the developer cannot do it naturally or at least get the
> > index or something to diferenciate from one component to another.
> >
> > Generate JavaScript in these conditions is a real painful, because you
> > have to generate the function dynamically and avoid as possible the
> > parameters, because the name of the components is unknown if they are
> > into the For.
> >
> > If you know some solution or workaround, please tell me because I have a
> > week to only generate a javascript that in PHP takes minutes
> >
> > Bye and good luck.
> >
> > JQ
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
d-_-b \m/(>_<)\m/ (9ò_ó)-o(@_o)

Reply via email to