the id is not good for _javascript_ because it is not guaranteed to be unique in the page, only within the component's parent.

see Component.getMarkupId()/Component.setOutputMarkupId(boolean)

that will get you what you want.

-Igor


On 10/6/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:

In developing custom components whose effects/behaviour via third party _javascript_s depends really on the id of the component, i guess it wont be good wicket practice to do something like:

component.add(new AttributeModifier("id",true,model)); //?

does modifying a component id from code have any side effect on the component like maybe break wicket-ajax behaviour on that component? becasue setOutputMarkupId(true) generates what wicket ajax needs to work on a component?

what is the right practice in this.


thanks


--
Aladejebi Ayodeji A.,

DabarObjects Solutions
Email: [EMAIL PROTECTED]
Mobile: +234 803 589 1780
Web: www.dabarobjects.com
Blog: blog.dabarobjects.com

Community:
www.cowblock.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to