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

2007-04-16 Thread [EMAIL PROTECTED]
"[EMAIL PROTECTED]" wrote : So, this documentation in Seam is wrong?
  | 
  | http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/components.html
  | 

The isUserInRole that was originally built into Seam is based on servlet 
security (and still is).  In this regard the documentation is technically 
correct, however if you are using Seam security then you have to use s:hasRole.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037757
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-04-16 Thread jeffconstantin
>From my experience (and from this posting) this code does not work on the 
>frontend. The documentation is incorrect.
Allows JSF pages to choose to render a control, depending upon the roles 
available to the current principal. .
you have to use (this does works)
rendered="#{s:hasRole('admin')}"

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037720
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-04-16 Thread [EMAIL PROTECTED]
So, this documentation in Seam is wrong?

http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/components.html
anonymous wrote : 
  | org.jboss.seam.core.isUserInRole
  | 
  | Allows JSF pages to choose to render a control, depending upon the 
roles available to the current principal. . 
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037649
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-04-11 Thread jeffconstantin
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 
  | 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">
  |   http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  |   
  |   
  | 

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"%>
  | 
  | http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
  | 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
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-04-11 Thread jeffconstantin
Thanks Shane,

I know this is a configuration issue, either a wrong version of a jar file for 
something. It should be simple but it is driving me nuts. Do you know of a 
working example that uses s:hasRole?

I tried s:hasRole('admin') as follows and it throws the following exception 
when I hit that page. Is it using the same Seam taglib or do I have to add a 
new taglib?

  | 

10:13:42,030 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
  | javax.faces.el.EvaluationException: Cannot get value for expression 
'#{s:hasRole('admin')}'
  | at 
org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
  | at 
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
  | at 
javax.faces.webapp.UIComponentTag.isSuppressed(UIComponentTag.java:884)
  | at 
javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313)
  | at 
org.apache.jsp.logon_jsp._jspx_meth_h_selectOneMenu_0(logon_jsp.java:311)
  | at org.apache.jsp.logon_jsp._jspx_meth_h_form_0(logon_jsp.java:245)
  | at org.apache.jsp.logon_jsp._jspx_meth_f_view_0(logon_jsp.java:152)
  | at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:97)
  | at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
  | at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
  | at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  | at 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
  | at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
  | at 
org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(Maste

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

2007-04-10 Thread [EMAIL PROTECTED]
Use s:hasRole('admin') instead.  isUserInRole is a servlet feature, and isn't 
currently integrated with Seam security.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036171
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user