[jboss-user] [JBoss Seam] - Re: Seam Security: isUserInRole() expression

jeffconstantin do-not-reply at jboss.com
Wed Apr 11 11:09:02 EDT 2007


Shane,

This is working. The problem was with the SeamFaceletViewHandler. It is required to do the Seam Security using s:hasRole('admin'). That was documented. It appears to require a different format for the JSP pages as follows: ( it likes the <jsp:root format )
<?xml version="1.0"?>
  | <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" 
  |           xmlns:h="http://java.sun.com/jsf/html"
  |           xmlns:f="http://java.sun.com/jsf/core"
  |           xmlns:s="http://jboss.com/products/seam/taglib"
  |           xmlns="http://www.w3.org/1999/xhtml"
  |           version="2.0">
  |   <jsp:output doctype-root-element="html"
  |               doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  |               doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  |   <jsp:directive.page contentType="text/html"/>
  |   <html>
  | 

previously it was:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
  | <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
  | <%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s" %>
  | <%@ taglib uri="http://jboss.com/products/seam/entityconverter/taglib" prefix="ec"%>
  | 
  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036407#4036407

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036407



More information about the jboss-user mailing list