File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes GWT security : how to condition access to fields in a page ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT security : how to condition access to fields in a page ?" Watch "GWT security : how to condition access to fields in a page ?" New topic
Author

GWT security : how to condition access to fields in a page ?

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

Hi,
i read that someone else already asked for information on how to use Spring Security with GWT,
so i will not ask again.

I got a more detailed question then :
with Spring security, you can use tags in JSP pages to restrict access to areas of pages, or fields.
For instance :

<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<sec:authorize access="hasRole('gestionnaire')">

This content will only be visible to users who have
the "supervisor" authority in their list of GrantedAuthoritys.

</sec:authorize>

Of course with GWT I cannot do that since there are no JSP.

How do i restrict access to fields with GWT then ?
I want to be able to hide them if the user does not have the required role.

I also want to be able to display them but disable them (read-only for a textfield for instance) if the user does not have the
required role.

Thanks for helping.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GWT security : how to condition access to fields in a page ?