0

Menu from database

asked 2009-09-15 14:02:21 +0800

lcmuniz2010 gravatar image lcmuniz2010
24

Hi,

I would to create a menu using data from a database. The code below do not work. What can I do to this work right?

<menubar id="menubar" width="100%" forEach="@{win.menu}">
<menu label="@{each.name}" >
<menupopup forEach="@{each.menu}">
<menuitem label="@{each.name}" />
</menupopup>
</menu>
</menubar>

the problem is that the 'forEach="@{win.menu}"' do not work...

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2009-09-15 14:12:45 +0800

Arsen gravatar image Arsen
384 5

You can create menu from java code of your composer/controller win

link publish delete flag offensive edit

answered 2009-09-16 00:56:21 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Change @ to $.

link publish delete flag offensive edit

answered 2009-09-16 23:57:37 +0800

lcmuniz2010 gravatar image lcmuniz2010
24

i created the menubar component inside java code and used
<menubar id="mb"/>
thanks

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-09-15 14:02:21 +0800

Seen: 287 times

Last updated: Sep 16 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More