Skip to main content

yahoo.menu does not work

2 replies [Last post]
blochaou
Offline
Joined: 2006-04-09
Points: 0

Hi everybody

I'm new in jmaki. I want to use yahoo.menu widget and i dont know why only the first subitem stays when i move on the mouse. Other subitem hides when a move on the mouse.

Here is my code:

jmaki widget:

backing bean:

public String getJsonrubrique() throws org.json.me.JSONException {
jsonrubrique = rubriqueFacade.JSONRubriqueTable();
return jsonrubrique;
}

rubriqueFacade Bean:

public String JSONRubriqueTable() throws JSONException {
JSONArray jsonTable = new JSONArray();
JSONObject rubriqueMenu = new JSONObject();
List lstRubrique = this.findAll();
int length = lstRubrique.size();

for(int i=0;i

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 blochaou ,

What is the return of :

${AnnoncesBackingBean.jsonrubrique}

Does it conform with the jMaki Menu model?

http://wiki.java.net/bin/view/Projects/jMakiMenuDataModel

Also : Make sure there are no trailing commas following the last item in the array. This is a common issue.

-Greg

blochaou
Offline
Joined: 2006-04-09
Points: 0

hi gmurray71

here is my the data returned by my bean:

{
menu:
[
{label:'Animaux',
menu:
[
{label:'Animaux disparus'},
{label:'Animaux trouvés'},
{label:'Chats'}
]},
{label:'Armes',
menu:
[
{label:'Armes Arbaletes'},
{label:'Armes blanches'},
{label:'Armes à feu',
menu:
[
{label:'Fusils'}
]
}
]
}
]
}