You might want to call contains after every call like saveOrUpdate, evict, refresh and flush to check whether or not the object is in the session, and also check the title value after each, just to...
Type: Posts; User: adamjk; Keyword(s):
You might want to call contains after every call like saveOrUpdate, evict, refresh and flush to check whether or not the object is in the session, and also check the title value after each, just to...
I'm stumped, your bean configs look right. HibernateDaoSupport should not affect this. One thing to note is that your transactionmanager doesn't need the dataSource injected if the sessionFactory...
If you are gettting 'runtime' errors in your web application as a result of bad velcoity templates, I suggest you start writing canoo web tests, or some type of web tests so taht you can ensure that...
The primary reason your considering all these changes seems to be the inconvenience and lost time of updating hundreds of velocity templates to reflect changes in your DOMAIN model. The operative...
Does the same thing happen when you inject the administratorDAO into another bean in the spring config? Or just when the bean is programmatically gotten from the application context, like in your...
My guess would be that the first call to saveOrUpdate() does a save() and the evict() has no effect at the flush() since you can't evict something if its not persisted yet. but the second call to...
I'm not sure if you can do that, but you can use an include directive to include a css file within the velocity template direcotry. The include would be placed within a <style> tag in the template.
...
You could try using the formBackingObject method to instantiate or modify the command object so that any nested objects that are null can be instantiated.
Check out formBackingObject()...
You can still use Tiles for this in Spring.
http://static.springframework.org/spring/docs/1.2.x/reference/view.html#view-tiles
HandlerInterceptor can pre and post process calls to controllers...
This is definitely an issue to face for anyone developing a mildly comprehensive app...
There has been posts about a MultiActionFormController which helps with multiple screens, validators for...
There are rejectValue methods in BindException that pass in the field that is being rejected. You could manually set the field that is being rejected and only check one of the three fields for errors...
There will never be more than one model, so I think you mean putting multiple objects in the model. It's common to use a Map to do this.
Use one of the ModelAndView constructers that take a Map as...
no, I was saying that what *I* was saying was "off topic." :)
Since we are doing a redirect to another URL the model gets put in the request via URL parameters in the RedirectView. Theres two ways to set parameters through a GET or a POST (and maybe whatever...
This is OFF TOPIC but...
If you're looking for a way to manage resource/library dependencies, the build process and project reports, take a look at Maven to help manage the technical aspects of...
I don't believe that Tiles requires using JSP. There is a jsp tag library for Tiles, although Freemarker is able to leverage tag libraries.
For spring integration, the viewResolver bean should...
Most likely you don't have a setter method for rItemDao (i.e. setRItemDao) so that spring can set the rItemDao in the bean via reflection.
If you have access to the HttpServletRequest object then you should be able to get the HttpSession (if thats what you mean by session). ...
Yatesco,
Yer right about moving things around. My intention was to avoid creation of extra classes, and avoid clutter. The idea of a map would definitely meet the same need. One of the other...
Try using a LinkedHashMap
It should iterate in the order of insertion.
Derrick,
It looks like you found a solution but to address your original question of how to get messages out of the message source from any of the controller classes in Spring, they basically have...
Yatesco,
Struts Tiles might be a good solution to always retrieving particular objects for a set of views
Check out http://struts.apache.org/userGuide/dev_tiles.html
and for spring integration...
I wanted a throwaway controller that I could use with something that had binding, validation and form and successviews, for purposes of a searching dialog. I didn't want to create a needless command...
Please correct me if anyone knows differently....
As Far as I know, the required validator doesn't use the indexedListProperty attribute at all in Spring Modules Commons Validator integration (or...
Sboulay,
I'm adding isEmpty() logic into our nested object classes and I'm going to nullify them if empty before validation. This should work pretty well I suspect. I'll post more if theres...