So I removed all the authz tags, and am using hasPermission() instead, and passing a bunch of booleans through the model into the view, in order to figure out what to display.
When I do this, I...
Type: Posts; User: andrew_null; Keyword(s):
So I removed all the authz tags, and am using hasPermission() instead, and passing a bunch of booleans through the model into the view, in order to figure out what to display.
When I do this, I...
Hello everyone,
Just wanted to see if anyone else had encountered this. I'm using:
- Spring 1.1.4
- Hibernate 2.1.8
- ...with HibernateInterceptor and OpenSessionInView
- Acegi 0.8.2 with...
Yeah, that works for me. And we're going to switch to autowiring :) Thanks.
Andrew
Hello everyone,
I'm using Spring's HibernateInterceptor for my DAOs, in order to get sessions attached to them. Here's an example of my TargetProxy:
<bean id="MemberDAOTarget"...
So rather than strip out ALL the HTML, I want to allow some in there. For example, I'd like to allow <P>, <I>, <IMG SRC ... >, <A HREF ...> , etc., but not allow tables of stylesheets of Javascript....
Hey guys,
I'm writing an app that accepts user input in the form of free-form text.
The problem is that the Spring HTML escaping tags are WAY too harsh for me. I want to allow links, <IMG...
Where should I be closing these sessions?
1) Should each method within the DAOs call this.closeIfNecessary?
2) Or should this be happening in the controllers?
And to confirm, is the error...
After a while, the queries will hang:
2005-05-10 00:05:32,163 DEBUG [net.sf.hibernate.hql.QueryTranslator] - <HQL: from org.phatcast.db.Member as member where member.username = ?>
2005-05-10...
I am using OpenSessionInView and using Spring+Hibernate together, to build a webapp.
I notice that I'm getting a steady stream of WARNs in the log about unclosed connections. At the same time, I'm...
Hello everyone,
In a system we're building, we are making extensive use of the ACL. For example, we have a bunch of objects:
User (which can be edited by the user himself only)
Blog (which is...
I'm using Hibernate, and have recently started using Acegi ACLs. I'm running into an annoying problem that I hope someone else has had experience with:
1) I use Hibernate xmls to create the two...
Thanks for the tip.
I was looking at my copy of Spring In Action, and unfortunately, it covers an old version of Acegi without the ACL... makes for a great paperweight.
I'll take a look at...
I could be totally, totally wrong, but here's my first guess:
- Write AuthoritiesByUsernameMapping.java that does a custom query, and returns GrantedAuthority[] that look like: ROLE_ADMIN_1 (where...
Hello everyone, I'm just starting to experiment with Acegi, guided by the "Spring in Action" book.
A quick question:
Let's say I want to build a site like Blogger.com, where people can create...
Can I use multiple controllers and multiple command objects for WizardFormController?
I'm using OpenSessionInViewInterceptor and all the other Hibernate/Spring goodies. I'm using HibernateSynch with the Spring templates as well.
How do you detach an object and reassociate it with...
Let's say I have a new member wizard, which touches multiple controllers. In this example, it could be for a social network like Flickr:
1) Create the user (NewUserController with User command...
Hi everyone,
I added OpenSessionInViewInterceptor into my Spring beans so that I could do lazy init of variables from within my views.
I see that the interceptor is correctly called, and a...