incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: Menu Model Problems and ADF Source Code
Date Thu, 27 Apr 2006 15:42:22 GMT
Frank,

Total agreement that the Menu Model is confusuing as is,
'cause you basically have to write a lot of model code
(or tons of managed beans).  One of the coming contributions
is an XML file format that will make the Menu Model *much*
easier to use.

-- Adam



On 4/27/06, Frank Felix Debatin <ffd@gmx.net> wrote:
> Fabio,
>
> My 2 cents: I found the menu model stuff in ADF very
> confusing and ended up with simply building the menues just
> using list iteration, which worked nice and simple.
>
> E.g.
>
> <!-- TOP LEVEL MENU TABS  -->
> <af:panelPage title="#{...}">
> <f:facet name="menu1">
>         <af:menuTabs>
>                 <c:forEach var="item"
> items="#{menuRoot.children}">
>                         <af:commandMenuItem
> text="#{item.name}"
>                                 action="#{item.invoke}"
>                                 rendered="#{item.rendered}"
> immediate="true"
>
> selected="#{menuRoot.selectedMenuKey==item.key}"/>
>                 </c:forEach>
>         </af:menuTabs>
> </f:facet>
>
> Like this, we build up a three-level menu.
>
> The c tag is from facelets, in case you're not using
> facelets, then af:forEach works as well (but I'd recommend
> using facelets with ADF).
>
> Frank Felix
>
> > -----Original Message-----
> > From: Fábio C. Ríspoli [mailto:fabio@enix.com.br]
> > Sent: Thursday, April 27, 2006 5:12 PM
> > To: adffaces-user@incubator.apache.org
> > Subject: Menu Model Problems and ADF Source Code
> >
> > Hi,
> >
> > I am facing some problems trying to implement some menus
> > using ADF Menu Models. What is happening is that only the
> > first level of the menuModel is shown and it does not work
> properly.
> >
> > I thought about examining the source code for the ADF
> > components but found nothing useful in the
> apache-drop.zip.
> > Am I missing something or the source code for ADF Faces is
>
> > not completely available in that archive? I meant to debug
> my
> > application including breakpoints in some ADF classes but
> it
> > is not possible this way.
> >
> > Please advise.
> >
> > Regards.
> >
> > Fábio
> >
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.385 / Virus Database: 268.4.6/323 - Release
> > Date: 24/04/2006
> >
> >
>
>

Mime
View raw message