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...
Type: Posts; User: tv; Keyword(s):
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...
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
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.
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....
is it possible? Currently my test cases extend AbstractTransactionalSpringContextTests and context has TransactionProxyFactoryBean.
When I save objects using HibernateTemplate.save(Object) then...
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...
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...
If you want to add parameters you need to generate request wrapper. Look at HttServletRequestWrapper.
There is spring RedirectView. But I had some problems using it, dont't remember exactly. So i returned null and redirected by myself.
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...
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...
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...
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!
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?...