You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Murat Hazer <mu...@gmail.com> on 2006/04/03 09:15:32 UTC

jscookmenu and navigation menu items

Hi,

   i am using jscookmenu in my project, and i neither want to hard code
navigation menu items into java classes nor JSF's. I want to carry to these
navigation menu items to db or an xml file for easy manupilating. I thought
that to do this i need to create a db row for each navigation menu item and
also there should be a extra column in each row which points to the up
navigation menu item. If i do this also i need to implement recursive
funtions :( to build the menu by using these db rows. (this bean could be
application or session scoped)

   I wanna ask you that is this idea acceptable or there is any other proven
pattern to do something like this?

regards...

--
Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Blog URL: http://www.projedunyasi.org

Re: jscookmenu and navigation menu items

Posted by Mert Çalışkan <mc...@gmail.com>.
xml would be suitable for this.You can digest the xml file with
commons-digester and get the menu info easily.
In one of my previous projects we used db to persist menu info. Recursive
functions didn't interfere our speed hence we had submenus with only one
depth. And commiting menu changes on db directly changes the rendered menu
on the screen and that was idiotically cool :)


On 4/3/06, Murat Hazer <mu...@gmail.com> wrote:

> Hi,
>
>    i am using jscookmenu in my project, and i neither want to hard code
> navigation menu items into java classes nor JSF's. I want to carry to these
> navigation menu items to db or an xml file for easy manupilating. I thought
> that to do this i need to create a db row for each navigation menu item and
> also there should be a extra column in each row which points to the up
> navigation menu item. If i do this also i need to implement recursive
> funtions :( to build the menu by using these db rows. (this bean could be
> application or session scoped)
>
>    I wanna ask you that is this idea acceptable or there is any other
> proven pattern to do something like this?
>
> regards...
>
> --
> Murat HAZER
> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> Blog URL: http://www.projedunyasi.org
>