RenderedOnUserRole « IceFaces « JSF Q&A





2. renderedonuserrole    icefaces.org

3. renderedOnUserRole: Container based security and getting the users name    icefaces.org

I've got Glassfish container based security and IceFaces 1.8.0 working great. The renderedOnUserRole is working perfect but I have concept problem on how to get the users name that logged in to the container. Dose anyone have a pointer how I can get the users name so I can display it using ice:outputText or use it in a backing bean ? ...

6. Example on "renderedOnUserRole"    icefaces.org

7. renderedonUserRole    icefaces.org

8. renderedonUserRole    icefaces.org

9. RenderedOnUserRole    icefaces.org





10. Cant get RenderedOnUserRole to work    icefaces.org

11. Using renderedOnUserRole without Acegi Security Framework    icefaces.org

Hi All, I am trying to use renderedOnUserRole and enabledOnUserRole to determine if a component needs to be rendered or not, but until now all the examples I saw involved using Acegi Security Framework. While I have no problems with using Acegi, it seems that the custom authorization mechanism we have, doesn't integrate well with Acegi (we determine to display a ...

12. Jboss Seam Identity and renderedOnUserRole    icefaces.org

I'm using ICEFaces1.6DR4 with JBoss Seam 1.2 and all is going smooth. But, there is one area I'd like to see some simplification. Seam's Identity class is a pretty nifty item for capturing user login info, etc. It'd be nice if ICEFaces would use this when checking if a user is in a particular role for component rendering. As it stands, ...

13. renderedOnUserRole with multiple roles    icefaces.org

The renderedOnUserRole attribute only accepts strings as parameters you can't pass lists of multiple roles. Maybe you could define a new role which is a combination of the ROLE_ADMIN and the ROLE_ASSISTANT. If this doesn't work for you, probably you would have to overwrite the corresponding ICEfaces component class and provide it with the needed functionality. regards, Michael

14. Need renderedOnUserRole for column    icefaces.org

Hi, I think you won't get around retrieving a user's set of roles programmatically from your underlying security framwork and then using the column's rendered tag. Depending on your security strategy you could i.e. retrieve a JAAS subject from your container or when using ACEGI get the user's Authorities to check for permission. However, I think providing a renderedOnUserRole attribute for ...

15. Flashing renderedOnUserRole componet    icefaces.org

16. renderedOnUserRole, still an issue ...    icefaces.org

... public class AuthenticationController { private String userName; private String password; private AuthenticationManager authenticationManager; public String authenticate() throws Exception { try { final UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(getUserName(), getPassword()); final HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); authToken.setDetails( new WebAuthenticationDetails( request ) ); final HttpSession session = request.getSession(); session.setAttribute(AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY,getUserName() ); // Perform authentication final Authentication auth = getAuthenticationManager().authenticate( authToken ); // Initialize the ...





17. Iceface 1.7.1 controls with renderedOnUserRole disappear    icefaces.org

I have migrated from Icefaces 1.7.0 to 1.7.1. In version 1.7.0 renderedOnUserRole working ok but in 1.7.1, with the same code by changing only Icefaces version, the controls with renderedOnUserRole disappear. If I refresh the browser, the controls show again I have Firefox 3.0, acegi-security-1.0.7, IceFace-1.7.1 Any idea? Sorry for my English

18. ice:inputFile and renderedOnUserRole in 1.7.0    icefaces.org

Hi, I have problem with the inputFile component in 1.7.0. After the file upload is finished, i get an exception, and the page is not updated. The stack trace is: [0003808] [server_log ] [#|2008-09-16T11:08:36.910+0200|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=33;_ThreadName=pool-1-thread-1;_RequestID=0da6059b-166f-4a19-856e-0ee62ead2a16;|executePhase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@12aa6ad) threw exception [0003809] [server_log ] javax.faces.FacesException: Problem in renderResponse: Cannot determine if user in role. User information is not available. [0003810] [server_log ] at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:294) [0003811] ...