Re: [appfuse-user] Static html page display and decoration problem

2007-03-14 Thread tonyl
Unfortunately - adding the servlet mapping did not work. The app kept complaining that it couldn't find the pages. tonyl wrote: > > That sounds like a good idea - i will try that. Yeah, JSF is the first > framework I've worked with and it was a company decision. I have to s

Re: [appfuse-user] Static html page display and decoration problem

2007-03-13 Thread tonyl
one I know I'm > afraid (I am an unabashed Struts/Spring MVC fan ;-) > > Mike. > > On 3/13/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> >> Michael, >> >> I read the post and I'm a little fuzzy about what goes where and what >> does &

Re: [appfuse-user] Static html page display and decoration problem

2007-03-13 Thread tonyl
tly so that the header.jsp is applied completely so that the links appear as well as the logo? Tony tonyl wrote: > > Michael, > > Thanks for the quick response - I'm a little new to the web app stuff - so > I take it that when you say framework you mean something like

Re: [appfuse-user] Static html page display and decoration problem

2007-03-13 Thread tonyl
> skip steps as appropriate. > > Mike > > > On 3/13/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> >> Hello, >> >> We have added a set of help files that are static html using the .htm >> extension. And by placing a link in the header.jsp,

[appfuse-user] Static html page display and decoration problem

2007-03-13 Thread tonyl
Hello, We have added a set of help files that are static html using the .htm extension. And by placing a link in the header.jsp, a user can get to the main help page. There are 2 problems - one is that once the user is in the help pages, the links to My Profile and Logout are no longer present ev

Re: [appfuse-user] Odd behavior from userForm.xhtml...

2007-03-08 Thread tonyl
ior? I recall experiencing a similar issue in the >> past, but I don't believe it was with JSF. Unfortunately, I don't >> recall the solution. >> >> Matt >> >> On 3/7/07, tonyl <[EMAIL PROTECTED]> wrote: >>> >>> I'm working on t

Re: [appfuse-user] Odd behavior from userForm.xhtml...

2007-03-07 Thread tonyl
I'm working on the same project with Bryan so here's some more information. We've made changes in the security.xml, roles, and users so that we can have the option for groups from which users can get permissions. Almost everything works perfectly except one thing whereby a user *WITHOUT* admin r

Re: [appfuse-user] Why is userCache in userManager and UserSecurityAdvice?

2007-03-06 Thread tonyl
have an idea as to why? Thanks, Tony tonyl wrote: > > Hmm - someone here then must have added it. OK - I tried to move the code > from UserSecurityAdvice to the UserManagerImpl and the code didn't work. > Not sure why. So I've left it in SecurityAdvice for the moment. >

Re: [appfuse-user] Why is userCache in userManager and UserSecurityAdvice?

2007-03-02 Thread tonyl
ow is to prevent someone from saving the > form locally, modifying the HTML to give themselves the admin role, and > then > submitting it back. It was easier to do this logic in AOP rather than > doing > it in the web tier for each framework. > > Matt > > On 3/2/

Re: [appfuse-user] Why is userCache in userManager and UserSecurityAdvice?

2007-03-02 Thread tonyl
the database > for every request when the user information is not stored in the > session (which is an option). > > Matt > > On 3/1/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> I haven't been able to find any clear explanations of the userCache - >

[appfuse-user] Why is userCache in userManager and UserSecurityAdvice?

2007-03-01 Thread tonyl
I haven't been able to find any clear explanations of the userCache - what it is, why use it, etc. And I really don't understand the purpose of having a userCache in 2 places. What's going on? Thanks, Tony -- View this message in context: http://www.nabble.com/Why-is-userCache-in-userManager-

Re: [appfuse-user] Implementing Groups with Roles

2007-02-28 Thread tonyl
I think I have discovered the problem - the security.xml file has some security advice filters that are restricting access to certain methods in the UserManager. (getUsers() and removeUser()). tonyl wrote: > > Here's a more full stack trace - still getting the problem - but only w

Re: [appfuse-user] General Comment/Question about Functional Testing in AppFuse

2007-02-28 Thread tonyl
tt > > On 2/28/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> Well, that doesn't seem to be true. We have an >> applicationContext-test.xml >> and an applicationContextForServerTestFn.xml which are located in the >> test >> package area with the functi

Re: [appfuse-user] redundant security??

2007-02-28 Thread tonyl
I don't quite understand why we have this additional FilterSecurityInterceptor and MethodSecurityInterceptor stuff when the jsf code has authorizations on all the actions - including menus, buttons, etc. This seems way overcomplicated and also not readily transparent from a coding perspective. Whi

Re: [appfuse-user] General Comment/Question about Functional Testing in AppFuse

2007-02-28 Thread tonyl
; In most cases, we do use the context files you use to run your >> application. For the most part, the only test context file is >> applicationContext-resources.xml. >> >> Matt >> >> On 2/28/07, tonyl <[EMAIL PROTECTED]> wrote: >>> >>&g

Re: [appfuse-user] General Comment/Question about Functional Testing in AppFuse

2007-02-28 Thread tonyl
; In most cases, we do use the context files you use to run your >> application. For the most part, the only test context file is >> applicationContext-resources.xml. >> >> Matt >> >> On 2/28/07, tonyl <[EMAIL PROTECTED]> wrote: >>> >>&g

Re: [appfuse-user] General Comment/Question about Functional Testing in AppFuse

2007-02-28 Thread tonyl
s, we do use the context files you use to run your > application. For the most part, the only test context file is > applicationContext-resources.xml. > > Matt > > On 2/28/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> I'm curious as to why AppFuse has structur

[appfuse-user] General Comment/Question about Functional Testing in AppFuse

2007-02-28 Thread tonyl
I'm curious as to why AppFuse has structured the testing framework it generates in the manner it does; relying on a test applicationContext.xml and extending the Spring test class. We have encountered a great deal of problems with that set up because our actual applicationContext is very different

Re: [appfuse-user] Implementing Groups with Roles

2007-02-28 Thread tonyl
Proxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:652) at com.openlogic.blueglue.server.service.impl.UserManagerImpl$$EnhancerByCGLIB$$123aa7cc.getUsers() at com.openlogic.blueglue.webapp.action.UserList.getUsers(UserList.java:79) tonyl wrote: > > I already made User.getAuthori

Re: [appfuse-user] Implementing Groups with Roles

2007-02-26 Thread tonyl
mraible wrote: > > What if you change User.getAllAuthorities to be User.getAuthorities - > does that work? > > Matt > > On 2/26/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> I get the following error: >> >> Caused by: org.a

Re: [appfuse-user] Implementing Groups with Roles

2007-02-26 Thread tonyl
nd nothing is coming out in the console or the log. Unfortunately, my laptop won't let me run tests - I have some configuration problem with my database, but the application runs totally fine. mraible wrote: > > On 2/26/07, tonyl <[EMAIL PROTECTED]> wrote: >> >>

Re: [appfuse-user] Implementing Groups with Roles

2007-02-26 Thread tonyl
riter = roles.iterator(); riter.hasNext(); ) { RoleDB role = (RoleDB) riter.next(); authorities.addAll( role.getPermissions() ); } } return authorities.toArray(new GrantedAuthority[0]); } tonyl wrote: >

Re: [appfuse-user] Implementing Groups with Roles

2007-02-26 Thread tonyl
documentation on it. You might want to check one of their sample > apps. > > http://opensource.atlassian.com/projects/spring/browse/SEC-325 > > Matt > > On 2/26/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> So, we are adding groups of users to the base application

[appfuse-user] Implementing Groups with Roles

2007-02-26 Thread tonyl
So, we are adding groups of users to the base application generated by AppFuse, and we have set up the groups to accept Roles, just like Users. The issue that I am having is how to have the session recognize the amalgamation of roles from both the User and the Groups that the User belongs to. For

Re: [appfuse-user] Menu Config

2007-02-21 Thread tonyl
w the admin menu on the side. > > Matt > > On 2/21/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> So, we have a menu-config.xml that defines 2 menus - these show up >> correctly >> along the top of the web app. However, one of the menus appears along the &

[appfuse-user] Menu Config

2007-02-21 Thread tonyl
So, we have a menu-config.xml that defines 2 menus - these show up correctly along the top of the web app. However, one of the menus appears along the side of some pages and I can't find how to change that. I'd like to remove the side menu while still having the menu appear along the top. If anyo

[appfuse-user] authorize tag vs. enableOnUserRole attribute

2007-02-21 Thread tonyl
I'm pretty new to JSF and Acegi, and I just learned about enableOnUserRole and visibleOnUserRole attributes for components. I tried them out yesterday and like the way they work and the fact that it cleans up the code in my opinion. What's considered the best practice? Is it better to use authori

Re: [appfuse-user] getting current logged in user

2007-02-20 Thread tonyl
should be sufficient. > > Matt > > On 2/21/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> I need to get the current user and after searching forums and discussions >> and >> examples about how to do this, I found that variations on the following >> code &g

[appfuse-user] getting current logged in user

2007-02-20 Thread tonyl
I need to get the current user and after searching forums and discussions and examples about how to do this, I found that variations on the following code seem to be considered a good way to get the current user: SecurityContext ctx = null; Authentication auth = null; if( ctx =