|
Graeme Rocher made changes - 01/Apr/08 11:46 AM
It might make sense to install the OpenSessionInViewFilter ahead of the SiteMesh filter rather than using the interceptor. The downside is that I doubt the session can be set to read-only (or FlushMode.MANUAL I believe) before the views are rendered. No the Filter approach is not an option, it is critical to set FlushMode to manual before view rendering to avoid changes being flushed from the view and potentially corrupting the markup if this happens after the view buffer has been flushed.
Graeme Rocher made changes - 14/Nov/08 07:34 AM
Is this bug hard to fix? It's becoming more and more problematic for me. I think its severity should be at least bumped to Major or more... if G2One does not have the resources to fix it soon I could try to have a look at it I wouldn't say its major, the solution is to eagerly initialize your association when querying or declaratively. It is currently something that is hard to fix and will need some careful thought on how we manage the session in the sitemesh layer Yes, there is a workaround, but there are two problems:
If it's hard to fix I will leave this to G2One then and hope you guys fix it soon enough I would also vote that this is a BIG issue. I have a scenario where i have a template that is only referenced from a sitemesh layout. This template calls a tag lib. This means this template is outsite the open session in view interceptor so the session is already closed. My template: <g:form controller="account" action="choose"> So i have this tag lib: def accountListSelect = {attrs,body -> This will now throw a lazy load exception because the session is not closed. Yes, I would hope it would be fixed for 1.1... does not look it actually will though Has anything been done about this?? This a major issue...I need to pull content from the database in a layout... Right now, I'm making a call to open a session manually FROM THE LAYOUT. That seems like a really dirty work around. Gonna try some experiments to see what we can do for this.
Graeme Rocher made changes - 18/Mar/09 08:19 AM
Hi Graeme Out of interest what did you do to fix this ? It hasn't been fixed, the issue is stilll open
Graeme Rocher made changes - 08/May/09 08:38 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This bug is hitting me too. The priority of this bug should be boosted to major at least I guess.