Re: T4: Can I have dynamic component id or how do I solve this?

2007-07-12 Thread Jesse Kuhnert
Yes, Tapestry tries very hard to work however people feel comfortable.. With 4.1.2 especially I don't understand why wouldn't work with a updateComponents="updateArea" parameter value. The client id logic / unique loop id generation / etc should all be handled transparently but maybe

Re: T4: Can I have dynamic component id or how do I solve this?

2007-07-07 Thread Marcus Schulte
cool, I was completely wrong then - didn't know, it worked with client-side id's. Something like that would really be a nice example for the docs, I think! 2007/7/6, Malin Ljungh <[EMAIL PROTECTED]>: Well, actually I works excellent! I have it like this in my template now: ...

Re: T4: Can I have dynamic component id or how do I solve this?

2007-07-06 Thread Malin Ljungh
Well, actually I works excellent! I have it like this in my template now: ... (loopContacts is of type For) and on every row I have edit button which swithes current contact from display to edit form. So on edit linkbutton I have this: and the same on submit/save button.

Re: T4: Can I have dynamic component id or how do I solve this?

2007-07-06 Thread Marcus Schulte
Yes, you should be able to define any attribute (=informal parameter) in the template, in the spec or in annotated Java. In some components, however, id is a reserved parameter, because the component insists on generating it itself. But I think even if you had your data-id in the client-side elem

Re: T4: Can I have dynamic component id or how do I solve this?

2007-07-06 Thread Malin Ljungh
OK, it does NOT work to have the ognl id in the page-file. Not that it's important - but ... am I correct? I thought everything could be done either way. On 7/6/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: Andreas! That was EXACTLY what I was looking for!!! Thanks!!! (And thank you Marcus too

Re: T4: Can I have dynamic component id or how do I solve this?

2007-07-06 Thread Malin Ljungh
Andreas! That was EXACTLY what I was looking for!!! Thanks!!! (And thank you Marcus too, I'll to refresh the whole loop if this doesn't work out) Actually I started with something like this but I normally use just jwcid in my .html file and have everything else in the page-specification (.page f

Re: T4: Can I have dynamic component id or how do I solve this?

2007-07-06 Thread Andreas Andreou
But he can set the id parameter to whatever he likes, i.e. data On 7/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: As there are no dynamic component instances in Tapestry, there are no dynamic component-ids. What you are seeing (loopContacts_i, i=1 ...) are multiple clientId's (Element id'

RE: T4: Can I have dynamic component id or how do I solve this?

2007-07-06 Thread Marcus.Schulte
As there are no dynamic component instances in Tapestry, there are no dynamic component-ids. What you are seeing (loopContacts_i, i=1 ...) are multiple clientId's (Element id's on the client side) rendere by one and the same component instance, whose id, the component-id on the server, is "loopCont