I've done that before, but it required adding a spring context to the portal container (I used liferay and added an initialization hook) and then referencing it from every WAR. However, for...
Type: Posts; User: jpreston; Keyword(s):
I've done that before, but it required adding a spring context to the portal container (I used liferay and added an initialization hook) and then referencing it from every WAR. However, for...
I agree, I would like to see a definitive on this.
Hey guys,
I've been reading over some of the Spring Batch related documentation and have a couple of questions regarding a job flow. Take the following as truth:
--
A batch job where...
Franklin,
You still need to write a validator; personally, I implement the org.springframework.validation.Validator interface and then use the commons-lang static classes (StringUtils,...
Absolutely! For example:
final MyObject myObject = new MyObject("some random class");
final MyObjectValidator validator = new MyObjectValidator();
final BindException errors = new...
wgoldman,
Naming the view resolvers allows you to have multiple (possibly chained) view resolvers that your web application can use.
If you do not name it, one is pulled from the context by...
ilyaskorik,
I could be wrong, but I think you need to have the params indexed. Such as:
http://localhost/?id[0]=uuid&id[1]=uuid
instead of
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryPg' defined in ServletContext resource [/WEB-INF/ApplicationContext.xml]: Invocation of...
sudeepj2ee,
I've seen this in some of my unit tests because I did not have a transaction manager for the unit tests nor was I committing the DB transaction. Beyond that, not sure.
HTH,
lcmorley,
You have a few different options available at your disposal.
The easiest would be to create the attribute you need as a bean in your Spring context named the value of Resources.STOCK...
Can you post your transaction manager config and any relevant xml (use the [ code ] tag)?
Try using a / before your prefix like so:
<!-- 1.View Mapping -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property...
I've always used a custom date editor, not sure if that's the best way, but it seems to be the easiest.
venletine,
That's what the @ModelAttribute for ;-)
@Controller
@RequestMapping("/test.do")
public class BaseClassController {
@ModelAttribute
montoya,
I'm not sure how you're attempting to create your beans, but you should be able to specify the lazy-init="true" property for your data source and it's collaborating beans which would...
blaf,
Doesn't it work like
@RequestMapping(value = "/edit")
public String edit(@RequestParam MyCommandObject object) {
...
}
Looks to me like it can't find your mapping resource, which looks like you have on the classpath. If I remember correctly, unless you prefix your classpath resource with classpath:* it won't check...
dasvestis,
I don't see why not. If you're using a ModelAndView you can perform any validation you'd like and inject the errors object into the view from the controller.
ie
...
I have been trying to install Spring STS into Eclipse 3.4 and have added the update site, but when I try to install from it I get an error, as shown below.
No repository found at...
johnrowles,
I've encountered similar behavior in the past, and it was due to poor performance of the default JDK proxy methods. I don't remember what the scenario was exactly, but I remember...
Sprang,
I got nothing; it's an easy thing to determine if they are internal or not, but AFAIK, without some custom LDAP entries and dedicated IP -> SINGLE USER translation, I do not believe this...
Seems to me you're missing an annotation url mapping handler...
See:
...
Sprang,
There are many different options with varying levels of complexity. Are you looking for Single Sign On support, such as using their desktop credentials? Is it sufficient to simply bind...
You could try adding the portletMode to your <portlet:renderURL/> tag like:
<portlet:renderURL var="viewProfUrl" portletMode="view">
<portlet:param name="action"
...
agil,
Most of the time I've encountered Spring not supported by a third party hosting company it's because they've deliberately turned off required Java features such as reflection and direct file...