Hi
again :)
Ok.
now
the get and set Displayers methods from MenuRepository are working and the code
is compiling fine.
I just
had to download de common collections 2.1 from apache lib. Because of the
FastHashMap you use.
Now we
are having problems with the defaultRepository. Its null in the
session.
You
told-me its instanced automatically right? But I think I must do something
somewhere right? Any ideas?
Bye.
| ||||||||||||||
|
-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Matt Raible
Enviada em: terça-feira, 16 de março de 2004 12:35
Para: [EMAIL PROTECTED]
Assunto: RE: [struts-menu] dynamic menu in the sessionI've attached the latest JAR - I can send the source too if you need it. If you're using TortoiseCVS (www.tortoisecvs.org), it's pretty easy to get the source. Just use the following for the CVSROOT::pserver:[EMAIL PROTECTED]:/cvsroot/struts-menumodule is "navigator"Matt-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo C. Morais
Sent: Tuesday, March 16, 2004 8:24 AM
To: [EMAIL PROTECTED]
Subject: RES: [struts-menu] dynamic menu in the sessionHi Matt,Im having troubles trying to access the CVS.Could you send me the new code by mail?If not, could you help me configuring the CVS client?Thanks.
C.E.S.A.R.
Gustavo Cavalcanti Morais
Engenheiro de SoftwareRua Bione, 220
Recife Antigo
Recife - Pernambuco[EMAIL PROTECTED]
tel:
mobile:+55 (81) 3425-4576
+55 (81) 8817-7983
Powered by Plaxo Want a signature like this? -----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Matt Raible
Enviada em: terça-feira, 16 de março de 2004 11:31
Para: [EMAIL PROTECTED]
Assunto: RE: [struts-menu] dynamic menu in the sessionIf you use the latest code from CVS and the EL-enabled Tag, you can put EL expressions into the "name" attribute.I haven't tried it, but something like the following *should* work:<menu:useMenuDisplayer name="ListMenu" repository="repository">
<c:forEach var="menu" items="${sessionScope.menus}"/>
<menu:displayMenu name="${menu}"/>
</c:forEach>
</menu:useMenuDisplayer>Where "menus" is a List of Strings in session scope.If it doesn't work, let me know and I can try to help fix it.Matt-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo C. Morais
Sent: Tuesday, March 16, 2004 7:01 AM
To: [EMAIL PROTECTED]
Subject: RES: [struts-menu] dynamic menu in the sessionAnother thing:The primary options of the menu changes depending of the user.As I noted in the example we still have to say the name of the First options in the struts tags.Cant it be dynamic too?Thanks
C.E.S.A.R.
Gustavo Cavalcanti Morais
Engenheiro de SoftwareRua Bione, 220
Recife Antigo
Recife - Pernambuco[EMAIL PROTECTED]
tel:
mobile:+55 (81) 3425-4576
+55 (81) 8817-7983
Powered by Plaxo Want a signature like this? -----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Gustavo C. Morais
Enviada em: terça-feira, 16 de março de 2004 10:45
Para: [EMAIL PROTECTED]
Assunto: [struts-menu] dynamic menu in the sessionHi,Is there any way to build the menu once in the login and put it on the session so the pages can just read from it?Thanks.
C.E.S.A.R.
Gustavo Cavalcanti Morais
Engenheiro de SoftwareRua Bione, 220
Recife Antigo
Recife - Pernambuco[EMAIL PROTECTED]
tel:
mobile:+55 (81) 3425-4576
+55 (81) 8817-7983
Powered by Plaxo Want a signature like this?
<<ecp_marca.gif>>