only if you or something else calls setoutputmarkupid(true)

-igor

On Wed, Oct 20, 2010 at 10:30 AM, Jeremy Thomerson
<jer...@wickettraining.com> wrote:
> On Wed, Oct 20, 2010 at 12:26 PM, Arjun Dhar <dhar...@yahoo.com> wrote:
>
>> In my opinion; wicket doesn't mess with the "id" attribute till you tell it
>> to. There are multiple means to change the id. but by default the id is not
>> touched.
>>
>> Note: wicket:id is not the same as "id" of the HTML DOM element. So if you
>> define an "id" in the markup it should stick.
>>
>> As per your quote::
>> "because if the field is controlled by Wicket, the id will change. " -- You
>> can choose what attributes are controlled by wicket. its not like an all or
>> nothing scenario.
>>
>
> Actually, Wicket really does change your markup ID by default.  Try adding a
> field to the page like 'new Label("name", someModel)' and you will end up
> with <input type="text" id="name0" /> or something like that, depending on
> other components on the page, if it's in a repeater, etc.
>
>
> --
> Jeremy Thomerson
> http://wickettraining.com
> *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to