I'm running gwt 2.5 and smartgwt 3.1 (don't think smartgwt is anyhow involved though). Behaviour was exactly the same on gwt 2.4.
Simplified class looks like this - sorry for bad formatting:
public class UserSessionInfo implements IsSerializable {
private String userName;
private PlannerRole role = PlannerRole.ADMINISTRATOR;
public PlannerRole getRole() {
return role;
}
public void setRole(PlannerRole role) {
this.role = role;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public boolean hasAdminRole(){
return false;
}
Where PlannerRole is enum:
public enum PlannerRole implements IsSerializable {
ADMINISTRATOR,
OPERATOR,
USER;
}
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/KD6gzwM2ArcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:
Post a Comment