Sounds interesting Rahul.  I'm assuming the MenuComponentBuilder could
be used with a database to build objects from that?  As for the
Validator - have you thought about using a PermissionsAdapter instead?

http://struts-menu.sourceforge.net/security.html

Matt

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Rahul Kulkarni
> Sent: Wednesday, December 17, 2003 2:32 AM
> To: [EMAIL PROTECTED]
> Subject: [struts-menu-devel] Dynamic Struts Menu
> 
> 
> Hello Everybody,
> 
> I have just started to use StrutsMenu. Its really gr8 thing.
> 
> While development to adjust my requirement I have added few 
> things which I 
> whould like to share with you all.
> 
> 1) Generating MenuComponent Object dynamically.
>    MenuComponentBuilder is a utility class that can generate the 
> MenuComponent from any object. This will help to provide 
> dynamic Menus in 
> web application.
>   [ attachments MenuComponentBuilder.java, Test program TestObj.java ]
> 
> 2) Hook in MenuDisplayer.
>    I had a requirement by which on certain business conditions few 
> MenuComponets where not supposed to be shown to user. For this I have
>   - Added an iterface called MenuObjectValidator.
>   - Modified BaseMenu to store the object from which the 
> MenuComponent is 
> generated.
>   - Modified UseMenuDisplayerTag to accpent implementation of 
> MenuObjectValidator and set on displayerInstance; and this 
> instance should 
> call validate method on impl before processing a MenuComponent to be 
> displyed.
>   [ attachment : MenuObjectValidator.java ]
> 
> Please let me know your suggestions on it.
> 
> Regards,
> Rahul Kulkarni
> 
> _________________________________________________________________
> Stand out from the crowd. Make your own MMS cards. 
http://msn.migasia.cn/msn 
Have some mobile masti!




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
struts-menu-devel mailing list
[EMAIL PROTECTED]
https://lists.sf.net/lists/listinfo/struts-menu-devel

Reply via email to