incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renzo Tomaselli <renzo.tomase...@tecnotp.it>
Subject Re: [Trinidad] which component for a dropdown menu
Date Wed, 31 Jan 2007 16:25:03 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Steve,<br>
&nbsp;&nbsp;&nbsp; many thanks, now it's clear. I guess I went through similar
troubles while implementing my own TreeModel to get a lazy-loading and
paged tr:tree, but finally it works fine.<br>
Concerning the dropdown menu I will likely pick up components from
Tomahawk.<br>
<br>
-- Renzo<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Steven.Murray@sunlife.com">Steven.Murray@sunlife.com</a>
wrote:
<blockquote
 cite="midOFAB522992.57DA52C5-ON85257274.00568C54-85257274.0058441B@ca.sunlife"
 type="cite">
  <pre wrap="">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.

Steve








Renzo Tomaselli <a class="moz-txt-link-rfc2396E" href="mailto:renzo.tomaselli@tecnotp.it">&lt;renzo.tomaselli@tecnotp.it&gt;</a>
01/31/2007 10:20 AM
Please respond to adffaces-user
 
        To:     <a class="moz-txt-link-abbreviated" href="mailto:adffaces-user@incubator.apache.org">adffaces-user@incubator.apache.org</a>
        cc: 
        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 
definition.
Furthermore ADF documentation at 
<a class="moz-txt-link-freetext" href="http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/imageIndex.html">http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/imageIndex.html</a>


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

<a class="moz-txt-link-abbreviated" href="mailto:Steven.Murray@sunlife.com">Steven.Murray@sunlife.com</a>
wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">You are correct this type of menu does not exist in Trinidad or ADF.

    </pre>
  </blockquote>
  <pre wrap=""><!---->When 
  </pre>
  <blockquote type="cite">
    <pre wrap="">needed I use the MenuTree but this is not horizontal.

Steve




Renzo Tomaselli <a class="moz-txt-link-rfc2396E" href="mailto:renzo.tomaselli@tecnotp.it">&lt;renzo.tomaselli@tecnotp.it&gt;</a>
01/31/2007 09:45 AM
Please respond to adffaces-user

        To:     <a class="moz-txt-link-abbreviated" href="mailto:adffaces-user@incubator.apache.org">adffaces-user@incubator.apache.org</a>
        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 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">used it succesfully for tree and navigationPane. I guess that the latter

    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">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 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">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




    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
</body>
</html>

Mime
View raw message