[smartweb-devel] [smartweb-auth] How to customize application gui by user's role
Brought to you by:
rlogiacco
From: Gaetano P. <gpe...@sm...> - 2008-01-16 10:02:50
|
Actually if we would visualize a button for the users in a "myRole" role on the application gui we must add a tag <auth:valid role="myRole" > . This means that the business rules about user permission lie around the jsp source code, So if i would change the role permission strategy i must, in the worst case look around all the jsp page. I think we could have the same approch used for the domain methods authentication (AOP) for determining if a button, a textfield, a label must be visualized. I have detected 2 approchs: 1. Add to the project an <auth:valid funtion="myFunction" > . This approch has the loss of needing the coding in all the authorized code blocks. 2. Override struts html tags <html:button id="myFunction" ... <html:text id="myFunction" etc... waiting for your feedback -- View this message in context: http://www.nabble.com/-smartweb-auth--How-to-customize-application-gui-by-user%27s-role-tp14876789s17546p14876789.html Sent from the SmartWeb Developers mailing list archive at Nabble.com. |