Skip to main content

how to provide user defined id to jmaki widget loaded dynamically in jsp

2 replies [Last post]
vinayajax
Offline
Joined: 2008-07-21
Points: 0

Hi All,

I am unable to provide user defined id to jmaki widget loaded dynamically in jsp page.I tried following

factory.loadWidget({ widget : {id : "test", name : "yahoo.autocomplete" , service : "Data.jsp", publish : "/yahoo" }, container : someDiv});

But id given by me is not used instesd jmaki provided it's own id something like autocomplete_jmk_1 which i don't want.

Any help will be appreciated.

Regards,
Vinay

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

HI Vinay,

rather than "id" use "uuid"

factory.loadWidget({ widget : {uuid : "test", name : "yahoo.autocomplete" , service : "Data.jsp", publish : "/yahoo" }, container : someDiv});

That should fix it.

-greg

vinayajax
Offline
Joined: 2008-07-21
Points: 0

Thanks once again Greg.
It is working fine.

Needless to say you are a great help.
Thanks again.

Regards,
Vinay