Hi,

I am using stripes layout to create a 'master page' of sorts.  One of the
layout component (the 'header' layout) is responsible for rending the
horizontal tab menu on the page.  Since this is the header, it appears for
all pages of course.  I need the tabs that are displayed to be dynamic based
on user roles.  For instance,  If a user is Guest vs a Registered User, the
tabs will be different.  If a user is an "Administrator", an Admin tab will
show. etc.

My base actionbean has a method that that delegates to a SecurityService
that can determine which roles a user has.  The issue i'm having is how to
do this the 'right' way. Right now, when you first land on a page, it does
not appear as though there is a way to invoke an actionbean method.  This
seems to happen only if you submit the page or if you use a url that is
bound to the actionbean (i.e. /MyActionBean.action).  It seems as though the
ActionBean does not really come into scope until that happens.

Is there away to make an actionbean come into scope when a page is first
loaded?
Is there away to bind an actionbean to a stripes layout component such that,
in the case described above, that action bean will always be available to
the web application (given that the header is always displayed)?
If i can do that, i figure i would have what i need to solve the problem.

Are there other ways anyone can recommend to solve this problem?

thanks,
Mike
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to