Skip to main content

Dojo Menu2 menutitem2 and popmenu2

1 reply [Last post]
moktc
Offline
Joined: 2004-03-04
Points: 0

Is there way to create Dojo menu and its submenu in jMaki?
eg

File Edit Help
New
Open
Close

The File, Edit and Help is defined in the menu2 component.htm and the New, Open and Close is defined in the popmenu2 component.htm
Since the uuid is generated by jMaki, I cannot link the popmenu to the menu2. One way I can think is to 'hardcode' some id and store it in the jmaki.attributes and then in the menu2 component html, get the attributes and add it to the menu. Any ideas or better way to do this?

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

I think the easiest way to communicate in this case is to use some publish subscribe events. We have a bit of documentation on using this mechanism with the Dojo FishEye at:

https://ajax.dev.java.net/publishsubscribe.html

jMaki has publish/subscribe just to prevent this type of thing.

Another option is for you to provide an id attribute and an id of your choosing on the JSP/JSF tag. This will let you override the uuid to any id of your choosing.