Search:

Type: Posts; User: adamjk; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.09 seconds.

  1. You might want to call contains after every call...

    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...
  2. I'm stumped, your bean configs look right. ...

    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...
  3. Replies
    2
    Views
    922

    If you are gettting 'runtime' errors in your web...

    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...
  4. Replies
    2
    Views
    922

    The primary reason your considering all these...

    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...
  5. Does the same thing happen when you inject the...

    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...
  6. Shot in the dark...

    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...
  7. Thread: PageNotFound

    by adamjk
    Replies
    2
    Views
    1,044

    I'm not sure if you can do that, but you can use...

    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.
    ...
  8. Replies
    4
    Views
    1,844

    You could try using the formBackingObject method...

    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()...
  9. Replies
    3
    Views
    3,035

    You can still use Tiles for this in Spring....

    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...
  10. This is definitely an issue to face for anyone...

    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...
  11. Replies
    2
    Views
    855

    There are rejectValue methods in BindException...

    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...
  12. Replies
    2
    Views
    893

    There will never be more than one model, so I...

    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...
  13. Replies
    6
    Views
    958

    no, I was saying that what *I* was saying was...

    no, I was saying that what *I* was saying was "off topic." :)
  14. Since we are doing a redirect to another URL the...

    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...
  15. Replies
    6
    Views
    958

    This is OFF TOPIC but... If you're looking for...

    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...
  16. Replies
    22
    Views
    3,885

    I don't believe that Tiles requires using JSP....

    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...
  17. Most likely you don't have a setter method for...

    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.
  18. Replies
    4
    Views
    3,665

    If you have access to the HttpServletRequest...

    If you have access to the HttpServletRequest object then you should be able to get the HttpSession (if thats what you mean by session). ...
  19. Poll: Yatesco, Yer right about moving things around....

    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...
  20. Try using a LinkedHashMap...

    Try using a LinkedHashMap

    It should iterate in the order of insertion.
  21. Replies
    10
    Views
    13,124

    Derrick, It looks like you found a solution...

    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...
  22. Replies
    22
    Views
    3,885

    Yatesco, Struts Tiles might be a good solution...

    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...
  23. Poll: ThrowawayFormController: the throwaway with a form

    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...
  24. Replies
    6
    Views
    1,712

    Please correct me if anyone knows differently.......

    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...
  25. Sboulay, I'm adding isEmpty() logic into our...

    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...
Results 1 to 25 of 28
Page 1 of 2 1 2