Re: How to get stable DOM IDs without hacks?

2010-04-13 Thread Pierre Goupil
:36:55 -0400 Subject: Re: How to get stable DOM IDs without hacks? Hello, You can use myComponent.setMarkupId(blah), but then it's up to you to ensure the id uniqueness. Regards, Pierre On Tue, Apr 13, 2010 at 12:35 AM, b...@actrix.gen.nz wrote: Hi, Wicket has

Re: How to get stable DOM IDs without hacks?

2010-04-13 Thread McIlwee, Craig
expression. - Original Message - From: Pierre Goupil [mailto:goupilpie...@gmail.com] To: users@wicket.apache.org Sent: Tue, 13 Apr 2010 07:14:47 -0400 Subject: Re: How to get stable DOM IDs without hacks? Craig is absolutely right, of course, but if you want to be aware of what an id value

How to get stable DOM IDs without hacks?

2010-04-12 Thread bht
Hi, Wicket has its own mind - it changes IDs in HTML forms so JavaScript breaks. Example: Source: input type=button wicket:id=addButton id=addButton value=Add/ Generated: input type=button id=addButtona value=Add name=addButton/ Please note that Wicket renames the id from addButton to

Re: How to get stable DOM IDs without hacks?

2010-04-12 Thread Pierre Goupil
Hello, You can use myComponent.setMarkupId(blah), but then it's up to you to ensure the id uniqueness. Regards, Pierre On Tue, Apr 13, 2010 at 12:35 AM, b...@actrix.gen.nz wrote: Hi, Wicket has its own mind - it changes IDs in HTML forms so JavaScript breaks. Example: Source: input

Re: How to get stable DOM IDs without hacks?

2010-04-12 Thread McIlwee, Craig
] To: users@wicket.apache.org Sent: Mon, 12 Apr 2010 18:36:55 -0400 Subject: Re: How to get stable DOM IDs without hacks? Hello, You can use myComponent.setMarkupId(blah), but then it's up to you to ensure the id uniqueness. Regards, Pierre On Tue, Apr 13, 2010 at 12:35 AM, b

Re: How to get stable DOM IDs without hacks?

2010-04-12 Thread bht
if in an ajax request. - Original Message - From: Pierre Goupil [mailto:goupilpie...@gmail.com] To: users@wicket.apache.org Sent: Mon, 12 Apr 2010 18:36:55 -0400 Subject: Re: How to get stable DOM IDs without hacks? Hello, You can use myComponent.setMarkupId(blah), but then it's up