You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Johan Compagner <jc...@gmail.com> on 2007/09/17 15:15:58 UTC

Re: original value of id and setOutputMarkupId

the only thing to avoid it if you want to have id selectors is to override
getMarkupId
or set the markupid in the constructor to the same value.

johan


On 9/18/07, Maris Orbidans <sm...@ime.lv> wrote:
>
>
> why wicket cannot use original value of id that I have specified in
> markup ? If I do setOutputMarkupId(true) then wicket ovewrites value if
> id.  Otherwise I cannot replace components via Ajax.
>
> But, for example, dreamweaver uses id selectors for CSS.
>
> And I have to replace them with class selectors.  Is there any way to
> avoid it ?
>
> For example I have
>
> <div wicket:id="footerPanel" id="footer">
> </div>
>
> and later I want to replace the panel.  If I setOutputMarkupId(true)
> wicket modifies id value.
>
> Maris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>