Dymanic Menus

View: New views
5 Messages — Rating Filter:   Alert me  

Dymanic Menus

by Ganesh-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Greetings:
 
I was trying to create 2 different menus and when I click on parent node on one menu, the child node of another node expands..
Suppose, I have
 
-Folder A
    -Folder x
       File 1
-Folder B
    -Folder y
       File 2
 
This is one menu and I have another menu with the same name..
 
-Folder M
    -Folder u
       File 3
-Folder N
    -Folder v
       File 4
 
Here, if I click on Folder M, Folder A expands/collapses..
Here is my jsp code..
 

<p>Unpublished List</ p>
<div id="treeNodes" style="font:12px;" >
<menu:useMenuDisplayer name= "ListMenu" repository="unPublishedList">
<c:forEach var="menu1" items="${unPublishedList.topMenus}">
< menu:displayMenu name="${menu1.name }" />
</c:forEach>
</menu:useMenuDisplayer>
</div >

<br />

<p>Published List</ p>
<div id="treeNodes" style="font:12px;" >
<menu:useMenuDisplayer name= "ListMenu" repository="publishedList">
<c:forEach var="menu2" items="${publishedList.topMenus}">
< menu:displayMenu name="${menu2.name }" />
</c:forEach>
</menu:useMenuDisplayer>

Any help on this one would be great..
I was wondering, if I can have/use more than one repository on the same page..
My list works fine with just one menu in jsp..If I have one more Menu in the same page, thats where, I have the problem..

Thanks in advance.
Regards,
Ganesh.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Re: Dymanic Menus

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try specifying a unique "id" attribute on your <menu:useMenuDisplayer> tag.

This was added in 2.4.1 and polished in 2.4.2:

http://struts-menu.sourceforge.net/changes-report.html#2_4_2

Matt

On 5/16/07, Ganesh <rathinaganesh@...> wrote:

> Greetings:
>
> I was trying to create 2 different menus and when I click on parent node on
> one menu, the child node of another node expands..
> Suppose, I have
>
> -Folder A
>     -Folder x
>        File 1
>
> -Folder B
>     -Folder y
>        File 2
>
> This is one menu and I have another menu with the same name..
>
>
> -Folder M
>     -Folder u
>        File 3
>
> -Folder N
>     -Folder v
>        File 4
>
> Here, if I click on Folder M, Folder A expands/collapses..
> Here is my jsp code..
>
>
>
> <p>Unpublished List</ p>
> <div id="treeNodes" style="font:12px;" >
> <menu:useMenuDisplayer name= "ListMenu" repository="unPublishedList">
> <c:forEach var="menu1" items="${unPublishedList.topMenus}">
> < menu:displayMenu name="${menu1.name }" />
> </c:forEach>
>  </menu:useMenuDisplayer>
> </div >
>
>
>
> <br />
>
>
>
> <p>Published List</ p>
> <div id="treeNodes" style="font:12px;" >
> <menu:useMenuDisplayer name= "ListMenu" repository="publishedList">
> <c:forEach var="menu2" items="${publishedList.topMenus}">
> < menu:displayMenu name="${menu2.name }" />
> </c:forEach>
>  </menu:useMenuDisplayer>
>
> Any help on this one would be great..
> I was wondering, if I can have/use more than one repository on the same
> page..
> My list works fine with just one menu in jsp..If I have one more Menu in the
> same page, thats where, I have the problem..
>
> Thanks in advance.
> Regards,
> Ganesh.
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@...
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>
>


--
http://raibledesigns.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Re: Dymanic Menus

by Ganesh-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Matt.
But, I still get

javax.servlet.jsp.JspException: The menu repository could not be found.
when I click on the second menu item..

Thanks,
Ganesh.

On 5/16/07, Matt Raible <matt@...> wrote:
Try specifying a unique "id" attribute on your <menu:useMenuDisplayer> tag.

This was added in 2.4.1 and polished in 2.4.2:

http://struts-menu.sourceforge.net/changes-report.html#2_4_2

Matt

On 5/16/07, Ganesh <rathinaganesh@...> wrote:

> Greetings:
>
> I was trying to create 2 different menus and when I click on parent node on
> one menu, the child node of another node expands..
> Suppose, I have
>
> -Folder A
>     -Folder x
>        File 1
>
> -Folder B
>     -Folder y
>        File 2
>
> This is one menu and I have another menu with the same name..
>
>
> -Folder M
>     -Folder u
>        File 3
>
> -Folder N
>     -Folder v
>        File 4
>
> Here, if I click on Folder M, Folder A expands/collapses..
> Here is my jsp code..
>
>
>
> <p>Unpublished List</ p>
> <div id="treeNodes" style="font:12px;" >
> <menu:useMenuDisplayer name= "ListMenu" repository="unPublishedList">
> <c:forEach var="menu1" items="${unPublishedList.topMenus}">
> < menu:displayMenu name="${ menu1.name }" />
> </c:forEach>
>  </menu:useMenuDisplayer>
> </div >
>
>
>
> <br />
>
>
>
> <p>Published List</ p>
> <div id="treeNodes" style="font:12px;" >
> <menu:useMenuDisplayer name= "ListMenu" repository="publishedList">
> <c:forEach var="menu2" items="${ publishedList.topMenus}">
> < menu:displayMenu name="${menu2.name }" />
> </c:forEach>
>  </menu:useMenuDisplayer>
>
> Any help on this one would be great..
> I was wondering, if I can have/use more than one repository on the same
> page..
> My list works fine with just one menu in jsp..If I have one more Menu in the
> same page, thats where, I have the problem..
>
> Thanks in advance.
> Regards,
> Ganesh.
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@...
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>
>


--
http://raibledesigns.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Re: Dymanic Menus

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you have commons-lang in your classpath?

On 5/17/07, Ganesh <rathinaganesh@...> wrote:

> Thanks Matt.
> But, I still get
>
> javax.servlet.jsp.JspException: The menu repository could not be found.
> when I click on the second menu item..
>
> Thanks,
> Ganesh.
>
>
> On 5/16/07, Matt Raible <matt@...> wrote:
> >
> > Try specifying a unique "id" attribute on your <menu:useMenuDisplayer>
> tag.
> >
> > This was added in 2.4.1 and polished in 2.4.2:
> >
> >
> http://struts-menu.sourceforge.net/changes-report.html#2_4_2
> >
> > Matt
> >
> > On 5/16/07, Ganesh <rathinaganesh@...> wrote:
> > > Greetings:
> > >
> > > I was trying to create 2 different menus and when I click on parent node
> on
> > > one menu, the child node of another node expands..
> > > Suppose, I have
> > >
> > > -Folder A
> > >     -Folder x
> > >        File 1
> > >
> > > -Folder B
> > >     -Folder y
> > >        File 2
> > >
> > > This is one menu and I have another menu with the same name..
> > >
> > >
> > > -Folder M
> > >     -Folder u
> > >        File 3
> > >
> > > -Folder N
> > >     -Folder v
> > >        File 4
> > >
> > > Here, if I click on Folder M, Folder A expands/collapses..
> > > Here is my jsp code..
> > >
> > >
> > >
> > > <p>Unpublished List</ p>
> > > <div id="treeNodes" style="font:12px;" >
> > > <menu:useMenuDisplayer name= "ListMenu" repository="unPublishedList">
> > > <c:forEach var="menu1" items="${unPublishedList.topMenus}">
> > > < menu:displayMenu name="${ menu1.name }" />
> > > </c:forEach>
> > >  </menu:useMenuDisplayer>
> > > </div >
> > >
> > >
> > >
> > > <br />
> > >
> > >
> > >
> > > <p>Published List</ p>
> > > <div id="treeNodes" style="font:12px;" >
> > > <menu:useMenuDisplayer name= "ListMenu" repository="publishedList">
> > > <c:forEach var="menu2" items="${ publishedList.topMenus}">
> > > < menu:displayMenu name="${menu2.name }" />
> > > </c:forEach>
> > >  </menu:useMenuDisplayer>
> > >
> > > Any help on this one would be great..
> > > I was wondering, if I can have/use more than one repository on the same
> > > page..
> > > My list works fine with just one menu in jsp..If I have one more Menu in
> the
> > > same page, thats where, I have the problem..
> > >
> > > Thanks in advance.
> > > Regards,
> > > Ganesh.
> > >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > struts-menu-user mailing list
> > > struts-menu-user@...
> > >
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> > >
> > >
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > struts-menu-user mailing list
> > struts-menu-user@...
> >
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@...
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>
>


--
http://raibledesigns.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Re: Dymanic Menus

by Ganesh-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thats fine Matt.
Thanks for your help.
I was able to do it with css and javascript.

Thanks,
Ganesh.



On 5/25/07, Matt Raible < matt@...> wrote:
Do you have commons-lang in your classpath?

On 5/17/07, Ganesh <rathinaganesh@...> wrote:

> Thanks Matt.
> But, I still get
>
> javax.servlet.jsp.JspException: The menu repository could not be found.
> when I click on the second menu item..
>
> Thanks,
> Ganesh.
>
>
> On 5/16/07, Matt Raible <matt@...> wrote:
> >

> > Try specifying a unique "id" attribute on your <menu:useMenuDisplayer>
> tag.
> >
> > This was added in 2.4.1 and polished in 2.4.2:
> >
> >
> http://struts-menu.sourceforge.net/changes-report.html#2_4_2
> >
> > Matt
> >
> > On 5/16/07, Ganesh < rathinaganesh@...> wrote:
> > > Greetings:
> > >
> > > I was trying to create 2 different menus and when I click on parent node
> on
> > > one menu, the child node of another node expands..
> > > Suppose, I have
> > >
> > > -Folder A
> > >     -Folder x
> > >        File 1
> > >

> > > -Folder B
> > >     -Folder y
> > >        File 2
> > >
> > > This is one menu and I have another menu with the same name..
> > >
> > >
> > > -Folder M
> > >     -Folder u
> > >        File 3
> > >
> > > -Folder N
> > >     -Folder v
> > >        File 4
> > >

> > > Here, if I click on Folder M, Folder A expands/collapses..
> > > Here is my jsp code..
> > >
> > >
> > >
> > > <p>Unpublished List</ p>
> > > <div id="treeNodes" style="font:12px;" >
> > > <menu:useMenuDisplayer name= "ListMenu" repository="unPublishedList">
> > > <c:forEach var="menu1" items="${ unPublishedList.topMenus}">
> > > < menu:displayMenu name="${ menu1.name }" />
> > > </c:forEach>
> > >  </menu:useMenuDisplayer>
> > > </div >
> > >
> > >
> > >
> > > <br />
> > >
> > >
> > >
> > > <p>Published List</ p>
> > > <div id="treeNodes" style="font:12px;" >
> > > <menu:useMenuDisplayer name= "ListMenu" repository="publishedList">
> > > <c:forEach var="menu2" items="${ publishedList.topMenus}">
> > > < menu:displayMenu name="${menu2.name }" />
> > > </c:forEach>
> > >  </menu:useMenuDisplayer>
> > >
> > > Any help on this one would be great..
> > > I was wondering, if I can have/use more than one repository on the same
> > > page..
> > > My list works fine with just one menu in jsp..If I have one more Menu in
> the
> > > same page, thats where, I have the problem..
> > >
> > > Thanks in advance.
> > > Regards,
> > > Ganesh.
> > >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > struts-menu-user mailing list
> > > struts-menu-user@...

> > >
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> > >
> > >
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > struts-menu-user mailing list
> > struts-menu-user@...
> >
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@...
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>
>


--
http://raibledesigns.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user
LightInTheBox - Buy quality products at wholesale price!