[JBoss Seam] - Re: Seam Security
by lightbulb432
Never mind my previous post; the first problem magically disappeared and the second was solved by adding "messages" to the list of resource bundles in components.xml.
How do I debug roles? I've added the roles to the "identity" component in my login method but the debug page doesn't list roles for the identity component! It only lists the following properties, but nothing like "roles":
authenticateMethod
class
cookieEnabled
cookieMaxAge
jaasConfigName
loggedIn
password
principal
rememberMe
securityContext
securityRules
subject
username
toString()
How can I see why s:hasRole('...') isn't working correctly? I'd like to know what roles identity actually has added and whether they've been added correctly from my code...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012273#4012273
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012273
19Â years, 2Â months
[JBoss Seam] - Outjection of Seam components into Session scope
by SmokingAPipe
Looking at the Seam docs:
Seam docs wrote : @Out(scope=ScopeType.SESSION)
|
| Specifies that a component attribute that is not a Seam component type is to be outjected to a specific scope at the end of the invocation.
Ok, I can see that happening in practice. If I have a bean that has:
@Out(scope=ScopeType.SESSION) private String foo;
then that does in fact outject a string called "foo" into the session. Obviously String is not a Seam component.
If I do the same code like this:
@Out(scope=ScopeType.SESSION) private User user;
where User is in fact a Seam-managed component, with a default (conversation) scope, it doesn't work.
Hmm. Does this mean that I should have multiple roles for my Seam components? Like for User, we want one user that is session-scoped, for the guy who is logged in, and we want another user that is conversation scoped, for creating a new user. Is the right way to do this to have two Roles attached to user, one session-scope and the other default (conversation) scoped?
I'm just trying to figure out what's the best practice on this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012272#4012272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012272
19Â years, 2Â months
[Installation, Configuration & Deployment] - Re: log4j and Jboss-4.0.5 GA
by russray
Checkout the log4j.xml file. I am doing the same (moved from properties file to xml file)
| <!-- A time/date based rolling appender -->
| <appender name="PROD" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.home.dir}/log/product.log"/>
| <param name="Append" value="false"/>
|
|
| <!-- Rollover at midnight each day -->
| <param name="DatePattern" value="'.'yyyy-MM-dd"/>
|
| <!-- Rollover at the top of each hour
| <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
| -->
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="[%d][%t] [%5p] [%m]%n"/>
| </layout>
| </appender>
|
|
Cheers,
Russ
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012269#4012269
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012269
19Â years, 2Â months