AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Alexandros Karypidis
Hi, When I add an AjaxFormComponentUpdatingBehavior to a component (a TextFieldString in particular though I don't think that matters), Wicket assigns an HTML id attribute to the component by taking the wicket:id value I specified and appending a character. So, if my original HTML had:

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Martin Makundi
Hi! You can call component.setMarkupId(component.getId()); ** Martin 2010/4/22 Alexandros Karypidis akary...@yahoo.gr: Hi, When I add an AjaxFormComponentUpdatingBehavior to a component (a TextFieldString in particular though I don't think that matters), Wicket assigns an HTML id attribute

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Alexandros Karypidis
Ok, I get it, thank you. On 22/4/2010 21:55, Martin Makundi wrote: Hi! You can call component.setMarkupId(component.getId()); ** Martin 2010/4/22 Alexandros Karypidisakary...@yahoo.gr: Hi, When I add an AjaxFormComponentUpdatingBehavior to a component (a TextFieldString in particular

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Michael O'Cleirigh
Hello, I can see two options but there are probably others aswell: 1. emit the id value of the input tag so your javascript will be able to find it. 2. change your CSS to style on the class of the tag vs the id. For 1, I would : add a behviour like this to your TextField: new

Re: AjaxFormComponentUpdatingBehavior and id attribute

2010-04-22 Thread Jeremy Thomerson
But this isn't suggested. See past threads (there's been a couple just in the last two weeks). -- Jeremy Thomerson http://www.wickettraining.com On Thu, Apr 22, 2010 at 1:55 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! You can call