Search:

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

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    2,721

    Here is general enum editor I have created, works...

    Here is general enum editor I have created, works without problems. Just bind and initialize it to concrete class.




    import java.beans.PropertyEditorSupport;

    public final class EnumEditor...
  2. Thread: form:option tag

    by tv
    Replies
    1
    Views
    866

    form:option tag

    Can't get option tag working
    I have like

    <form:select path="categoryId" items="${categories}" itemLabel="name" itemValue="id">

    </form:select>

    And want to add empty option like
  3. Way i did it was: I overloaded HibernateTemplate...

    Way i did it was: I overloaded HibernateTemplate class and and used in testContext.xml. I don't like to have test full of implementation specific code, seemed cleaner to me.
  4. thanks! I actually thought that already tried it...

    thanks! I actually thought that already tried it but i overload save method and not saveOrUpdate which i used.

    Still one issue remained: after deletion load method returned still entity from DB....
  5. Switching off hibernate first level cache for testin

    is it possible? Currently my test cases extend AbstractTransactionalSpringContextTests and context has TransactionProxyFactoryBean.

    When I save objects using HibernateTemplate.save(Object) then...
  6. Replies
    1
    Views
    3,599

    Using spring for standalone apps

    I have used spring for J2EE and web apps but now is it reasonable to use spring for standalone apps with no J2EE api involved? Mainly I want to have inversion of control and maybe some AOP and...
  7. Replies
    2
    Views
    2,234

    Should i18n happen in controller or view?

    What you think would be better approach, to get localized messages in controller and then put them into model or to put into model message keys and internationalize them in view? So far i used latter...
  8. Replies
    7
    Views
    3,374

    If you want to add parameters you need to...

    If you want to add parameters you need to generate request wrapper. Look at HttServletRequestWrapper.
  9. Thread: Redirects

    by tv
    Replies
    13
    Views
    6,252

    There is spring RedirectView. But I had some...

    There is spring RedirectView. But I had some problems using it, dont't remember exactly. So i returned null and redirected by myself.
  10. Replies
    2
    Views
    1,628

    Seems interesting, I also looked for different...

    Seems interesting, I also looked for different solution for input validation and binding, didn't like to create command object for each form etc. But generally I think spring is very good. Will have...
  11. ok, I wrongly thought that for each tag file I...

    ok, I wrongly thought that for each tag file I must create different prefix. Seems that using tagfiles is ok, thanks!
    Hope somebody would answer also my first question. ;) I have used freemarker...
  12. General question about using taglibraries with spring

    Hi,

    Not sure if it's right post, at least it isn't about support .. I would like to know opinion from other spring's users.
    What you guys are using for outputting HTML in JSP? I'm using...
  13. Replies
    3
    Views
    3,721

    I got it working already! Previously I specified...

    I got it working already! Previously I specified localization property files in web.xml but with Spring I had to configure it using messageSource bean in application context.
    Thanks!
  14. Replies
    3
    Views
    3,721

    Disabling localeResolver?

    Hi!

    I use localization in jsp-s using JSTL <fmt:setLocale > tag.

    But spring's localeResolver seems to spoil things. So i would like to use spring without localeResolver. So how to disable it?...
Results 1 to 14 of 14