Re: Wicket 1.5 markup id for a reused TextField is the same
On Tue, Apr 10, 2012 at 7:38 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not overwritten by wicket. Presumably they changed it so that it would work as a markup equivalent to setMarkupId(), though I haven't checked the changes list to verify that. :) Yes, this is a new feature in 1.5. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket 1.5 markup id for a reused TextField is the same
I have a panel like : public class IntervalFieldPanel extends Panel { private TextFieldString intervalText; public IntervalFieldPanel(String id, final IModel model) { super(id, model); ... intervalText = new TextFieldString(intervalText, model); ... } } and I use it inside another panel like : public class DailyJobPanel extends Panel { private IntervalFieldPanel hoursPanel; private IntervalFieldPanel daysPanel; } In wicket 1.4 generated markup ids for my text field are like: input id=idb3 ... / input id=idb6 ... / But in wicket 1.5.5 generated markup ids for my text field are the same (it is the wicket:id): input id=intervalText ... / which generates selections and submits problems. Is there a known bug? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-markup-id-for-a-reused-TextField-is-the-same-tp4542607p4542607.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 markup id for a reused TextField is the same
I found the problem. Inside html I also had the id like: input wicket:id=intervalText id=intervalText ... / In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not overwritten by wicket. So I removed it, and everything is ok. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-markup-id-for-a-reused-TextField-is-the-same-tp4542607p4542657.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket 1.5 markup id for a reused TextField is the same
In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not overwritten by wicket. Presumably they changed it so that it would work as a markup equivalent to setMarkupId(), though I haven't checked the changes list to verify that. :) - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org