ermm thanks but this won't work. I ended up bailing entirely on JpaTransactionManager strategy as it is pretty darn limiting and going the embedded JTA route where I now use the...
Type: Posts; User: jopaki; Keyword(s):
ermm thanks but this won't work. I ended up bailing entirely on JpaTransactionManager strategy as it is pretty darn limiting and going the embedded JTA route where I now use the...
How do I get a non-closed org.hibernate.Session when when the active transaction manager is the JpaTransactionManager?
I need to get at the session to create a hibernate impl named query...
Is there a way to de-reference the proxied (actual) EntityManager when dealing with EntityManager proxies generated via:
...
I'm Compile Time weaving the @Transactional advice using native AspectJ compilation but no runtime method interception is occurring! I follow the steps outlined in the Spring ref...
Umm nevermind I discovered what the problem was. Since it is a FactoryBean, I need to use &[bean name] syntax.
I have a spring app context:
<bean id="entityManagerFactoryBean" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean" />
<bean id="sharedEntityManagerBean"...
I'll try to post a wiki on it sometime soon after I do some field testing. Thanks for your input.
Forget all that macro non-sense.
I am shamelessly Velocitizing the well written JSTL form tag library in Spring 2.0 so that the my form tags are all generated cleanly in Java eliminating the need...
I think what I'm going to do for now is create an ad-hoc Errors instance somehow to pass to my validation routines and simply translate all errors to a single string to be used in the exception that...
Geez, I guess but it seems like unncesssary work to mimmic the binding process altogether against a DWR call as the object is assembled for you already.
Has there been some rumminating out there in the Spring community on utilizing Spring's Validator interface against Ajax calls?
I have an ajax service that handles DWR based ajax requests but...
I know there are several threads on this but I am still unclear. I want to trap DataAccessExceptions in the service layer:
public void createMerchant(Merchant dmo) throws...
Sure. I'll try it. Thanks.
<bean id="handlerMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="interceptors">
<list>
<bean...
I get this when when page navigating in my wizard form:
23:52:15,266 DEBUG [AppRefDataInterceptor] put app ref data into model
23:52:15,276 DEBUG [OpenSessionInViewInterceptor] Flushing...
You will need a set with predictably ordered iteration implying such a set as LinkedHashSet. With this satisified you would provide an accessor (against which data binding occurrs) for your set...
Yes. This is what I am doing now.
Sounds good. Thank you!
I have an interceptor that "injects" an object instance into a controller:
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception...
How would I trap an AuthenticationSuccessEvent while having access to the HttpSession?
I want to populate the HttpSession with stuff at the time of sucessful login.
Thanks!
jon
aahhhP - DONT REPLY - fix:
DetachedCriteria dc = (DetachedCriteria)criteria;
dc.setProjection(Projections.property("id")); // only select the ids
return...
This callback:
HibernateCallback callback = new HibernateCallback() {
public Object doInHibernate(Session session) throws HibernateException, SQLException {
...
#macro( ferr )
#springBind($path)
#if( $status.error )
<div id="ferr-${status.expression}" class="fldErrBlk"><ul
#foreach($error in $status.errorMessages)
><li>${error}#if( $velocityCount <...
I settled on webaproot/bin wherein:
-js
-css
-img
Hey all,
How do I configure things so that my *.css files called out by my velocity templates reside in the same directory as my velocity templates as opposed to the default webapp root dir? ...