Re: Action declaration question (Webwork/Hibernate)
Konstantin Pribluda <[email protected]> Sat, 16 Dec 2006 06:52:40 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <6608415.1166273591221.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
I use "open session in view" pattern, ( usually it boils down to "open more than one session in view" ), but only if necessary ( pico/nanocontainer intergration of hibernate is pretty lazy. As for static content, I'm able to pull whatever I like out of my IoC/DI infrastructure by means of simple macro ( with WW 1 I used custome context exposing everything transparently ) - so I have access to a lot of nice primitive stuff not provided by WW ( like: date/string formatters from jakarta commons, HTML-Escapers, simple but powerfull menu systems like: http://www.sourceforge.net/projects/jtec/ ) or just some custom tools. I prefer to wrap data mutating operations into actions though. Base action is a somehow necessary in webwork/xwork, because some ( if not most ) UI tags fail miserably if there is no action context... at least for velocity. --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=53761&messageID=108162#108162 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]