Re: random generated ids inside zone after update

2011-12-12 Thread Lenny Primak
You might be hitting this issue: https://issues.apache.org/jira/browse/TAP5-1730 You also to do what it says there otherwise your form will no longer work. On Dec 12, 2011, at 9:32 AM, Andreas Bohnert wrote: > @Seamus > actually what I am doing now is using the name attribute of the form (it

Re: random generated ids inside zone after update

2011-12-12 Thread Andreas Bohnert
@Seamus actually what I am doing now is using the name attribute of the form (it does not change) to refer to the form in js. this works, but it feels like a workaround. I think the ids should not be changend by tapestry. I don't see the id clash here. maybe I am blind ... should be an optional

Re: random generated ids inside zone after update

2011-12-12 Thread Dragan Sahpaski
Hi, On Mon, Dec 12, 2011 at 9:38 AM, Andreas Bohnert wrote: > Thanks Dragan for your quick response! > > I have tried 2. und 3. but I still get the random id for my form (I have > bound the .submit() to an button pressed event, so I can not do 1.). > > I just wonder why your focus is on the zoneI

Re: random generated ids inside zone after update

2011-12-12 Thread Seamus Minogue
This may not be the most elegant solution but I helge it has worked for me in the past. I assigned a bogus class to the element class="whatever" and then in jquery or prototype I selected by class. I am on my phone at the moment or I would look up and post the exact HTML and is but I think you s

Re: random generated ids inside zone after update

2011-12-12 Thread Andreas Bohnert
Thanks Dragan for your quick response! I have tried 2. und 3. but I still get the random id for my form (I have bound the .submit() to an button pressed event, so I can not do 1.). I just wonder why your focus is on the zoneId (and not on the formId), because my zoneId do not change after the

Re: random generated ids inside zone after update

2011-12-11 Thread Dragan Sahpaski
One more thing. I made a mistake in the 2nd case. Using a property expression ${zoneId} to bind the zone parameter in the Form is allowed but not preferred. Better use t:zone="prop:zoneId". Cheers, Dragan Sahpaski On Mon, Dec 12, 2011 at 8:01 AM, Dragan Sahpaski wrote: > Hi, > 1. If your java

Re: random generated ids inside zone after update

2011-12-11 Thread Dragan Sahpaski
Hi, 1. If your javascript code is located after the zone, than you can make a getter getZoneId(){ return zone.getClientId();} and use it in the javascript with a property expression ${zoneId}. 2. Of you want to provide the exact zone id it is possible