incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [Trinidad] which component for a dropdown menu
Date Wed, 31 Jan 2007 16:05:45 GMT
There is some confusion around the MenuModel.  I have tried to implement 
the MenuModel myself (without using the supplied wrapper) and I can tell 
you it is not straight forward to do.  This is one part of Trinidad that 
needs to change because this model is too tightly coupled with Oracles 
database and cursor technology that I have never bother to learn.  I do 
not think the "model" is very clean.

While the MenuModel itself can be nested, the af:menuBar can only show ONE 
LEVEL of that model.  This is where the startDepth comes into play.  It 
starts at 0 and this would be the root.  If you want to show next level 
down you set the depth to 1, etc.  Very confusing, basically showing each 
leaf of the tree.  So this is mis-leading.  Basically there is one model 
and each of the component types "renders" it differently.

If you want a javascripted drop-down menu then you will have to go else 
where for that type of control.  While a "nice to have" feature I think 
you can easily design around it.  You could put a second menu bar below 
the first, point to the same model, but set the startLevel to 1, visible 
if an item is selected in top menu.  Its not a drop down but has same 
effect, some might actually prefer.


Renzo Tomaselli <>
01/31/2007 10:20 AM
Please respond to adffaces-user
        Subject:        Re: [Trinidad] which component for a dropdown menu

Ok, but I still wonder how a nested MenuModel is rendered for all those 
several hints of a navigationPane. The MenuModel can be nested by 
Furthermore ADF documentation at

seems to deal with multilevel menus in the description of af:menuBar, 
which should become a tr:navigationPane.
But I cannot find any example around - either for ADF or for Trinidad - 
dealing with such issue.

-- Renzo wrote:
> You are correct this type of menu does not exist in Trinidad or ADF. 
> needed I use the MenuTree but this is not horizontal.
> Steve
> Renzo Tomaselli <>
> 01/31/2007 09:45 AM
> Please respond to adffaces-user
>         To:
>         cc: 
>         Subject:        [Trinidad] which component for a dropdown menu
> Hi - perhaps a trivial question - which Trinidad component can be used 
> for a stardard multilevel menu (horz bar + dropdown) ?
> I know that MenuModel is used almost everywhere for dynamic contents - I 

> used it succesfully for tree and navigationPane. I guess that the latter 

> might be a menu (as bar ? as buttons ?) but can it be dropdown ? With 
> further levels ?
> There is no such kind of menu in the example set. Some appear in the Adf 

> documentation, but component renaming/replacement makes it hard to 
> guess. Even more, the Trinidad developers pages refers to navigation by 
> means of a NavigationLevel component, which seems unexisting.
> Thanks for any hint -- Renzo

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message