Bruno, Hans,

thanks for the info and insight... well I see two different interesting items in this:

a) enhancing the Menu Widget to support dynamically retrieved menu items (as you propose) b) having the Example application document the most common best practices

What I am suggesting is to:

1) move the example of a dynamic menu of the Example application to a specific screen (out of the decorator) 2) take some time to study and design the proper extensions for the menu widget and then convert the ftl file

The reason for #1 is that, even if having an example of a dynamic menu is great, it is not still the most common way of rendering menus in OFBiz, and this could cause some confusion to new developers that are exploring the Example application.

Does it make sense?

Jacopo


On Feb 4, 2009, at 2:15 PM, Hans Bakker wrote:

Hi Jacopo.

I completely agree with you and perhaps you can help here? The thing we can do in ftl and not in a menu is the processing of a list of buttons.

If there could be a iterate function in a menu (similar to a <#list in
ftl) to list the buttons from a list, then sure we can use a menu
again.....

Regards,
Hans


On Wed, 2009-02-04 at 12:36 +0100, Jacopo Cappellato wrote:
Hi all,

due to recent work on the Portal now the Example application is
rendering the top menu using an ftl template and not as a Menu widget
definition (as it was previously, if I am not wrong).
Is there a reason for the switch (sorry but I still don't know much
about the Portal framework)?
I think the Example application should demonstrate all our best
practices, and using menu widget is one of them.

Jacopo

--
http://www.antwebsystems.com :
Quality OFBiz support for competitive rates....


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to