JSF Dynamic Menus
Hi,
i have coomenus4.js and menuNew4.js for menu generation.
My scenarion is that i have to generate menus dynamically from database i.e i have one table in data base which contains menu information. So how can i generate menus dynamically using jsf from data base .plz suggest me iam not getting any idea .
Thanks in advance
[350 byte] By [
venkatJSFa] at [2007-11-27 9:39:03]

# 1
U can use a pageFragment (JSPF) and from inside the code u connect to database through dataProvider or alike and leave it available .
Then from the JSP view u call your script (using script component or not) and using JSPEXPRESSION and JSPSCRIPLET mount your menu dynamically.
Once done just put the page fragment in your pages