• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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

 
Ranch Hand
Posts: 560
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!