JSR « Development « Spring Q&A





1. Debugging JSR 168 Portlet with spring, eclipse & pluto    stackoverflow.com

I am trying to set up a development environment to test Spring Portlet MVC for development of JSR 168 conforming portlets. I have the latest STS installed, which included Spring 2.5 ...

2. Can Spring understand @Inject replacing Weld as a JSR-299 implementation?    stackoverflow.com

I have noticed from several web pages that apparently Spring 3.0 supports @Inject from JSR-330. As we would really like to use JSR-299 syntax for dependency injection in our libraries ...

3. Embedded web container supporting JSR-330 injection directly?    stackoverflow.com

We have decided that all our modular code should use JSR-330 dependency injection and we have used Guice 2.1SVN or Java EE 6 CDI to do the actual injection in several ...

4. How do I configure JSR-330 @Provider and @Inject @Named("foo") String **programmatically** in Spring?    stackoverflow.com

We have decided to use Dependency Injection with JSR-330 annotations for our future modularization efforts, and have been very pleased with the first deliverable based on Guice 2 SVN. Now we need ...

5. Is it possible to replace Spring @Scope("request") with JSR-330 @Scope variant?    stackoverflow.com

Or, can I bound a custom implementation of org.springframework.beans.factory.config.Scope interface with a specific @Scope-annotated annotation? For example, I have customized a new scope type:

@javax.inject.Scope @Retention(RUNTIME)
@interface Conversation {}

class ConversationScope implements Scope { ... ...

6. JSR Validation    forum.springsource.org

Hi, We are implementing JSR validation using org.hibernate com.springsource.org.hibernate.validat or 4.0.0.GA Can we have more than one message properties (ValidationMessages.properties) in our project? In that case which one will hibernate ...

7. jsr-303 partial validation    forum.springsource.org

Hi, How do I partially validate my model beans with jsr-303 annotations. For example, how do I get the validator to do only NotNull and NotEmpty validations till the entry is ...

8. JSR 303 problem    forum.springsource.org

Thanks ! It was rather the latter that helped, but I will take the first tip into consideration anyway - just in case. Thanks again.

9. Partially using JSR-303 for validation    forum.springsource.org

Code: Caused by: javax.validation.ValidationException: Unable to find a default provider at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264) at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:183) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)





10. JSR 286 Spring Portlets in Webcenter 11.1.1.4    forum.springsource.org

Jul 26th, 2011, 05:30 AM #1 jagannathz View Profile View Forum Posts Private Message Junior Member Join Date Jul 2011 Posts 2 JSR 286 Spring Portlets in Webcenter 11.1.1.4 Hi, I ...

11. Inject dependent object via its one argument constructor using @Inject of JSR 330    forum.springsource.org

Inject dependent object via its one argument constructor using @Inject of JSR 330 Hi, I want to use @Inject of JSR 330,my requirment is given below as an example. public class ...

12. Inject dependent object via its one argument constructor using @Inject of JSR 330    forum.springsource.org

Inject dependent object via its one argument constructor using @Inject of JSR 330 Hi, I want to use @Inject of JSR 330,my requirment is given below as an example. public class ...

13. JSR 303 Validatrion with Spring 3.0 not working    forum.springsource.org

JSR 303 Validatrion with Spring 3.0 not working Hi All, I am trying to do validation using JSR 303 specification in my controller. However, it is not working. Below is the ...

14. JSR 303 validation error with Spring.    forum.springsource.org

JSR 303 validation error with Spring. Hiii all, I try to implement validation Framework in my Spring Application. I am facing a strange issue that, when ever i place Hibernate validator ...

15. JSR-170 and Spring    forum.springsource.org

Hello. I have a requirement to work with JSR-170 (Java Content Repository) and I would like to know what alternatives are out there and how Spring can ease working with them ...

16. Problem With JSR-94 StatelessRuleSession release    forum.springsource.org

Problem With JSR-94 StatelessRuleSession release I'm having a problem with the Spring JSR-94 module. I'm using Fair Issac's Blaze 5.5 as the rules engine. A co-worker has written a simple "Hello ...





17. JSR-175 for Springframework    forum.springsource.org

JSR-175 for Springframework Hello, My question is simple. Does any one know if springframework supports JSR-175 yet? In the book I am reading it says that it still not supported but ...

18. Using Spring to create non JSR 168 Portlets    forum.springsource.org

Hi, Would any of you know if I can build a non JSR-168 portlet (like a Vignette Portlet Bean) using spring. If so, how would you go about it? Thanks in ...

19. JSR 296 Swing Application Framework Prototype Release    forum.springsource.org

My Two Cents I'm using Spring RCP (specifically, the Jide Spring RCP project by JonnyWray) heavily now. I looked at the javadocs for the JSR framework protoype, and from what I ...

20. XT ajax with a JSR 168 portlet    forum.springsource.org

21. Portlet JSR-1168 Pagination    forum.springsource.org

Portlet JSR-1168 Pagination HI, Does portelt -JSR168 supports pagination. I have used display tag ,results 1-5 are getting displayed and when i click on next link it shows a blank page/page ...

22. Using JMXMP (JSR-160) for remoting    forum.springsource.org

Using JMXMP (JSR-160) for remoting Env: Spring 2.5.x, JDK1.6 Am running into a number of problems pertaining to RMI registry when remoting my MBean server using RMI. In particular, if I ...

23. JSR 286 Portlet Support Timeline?    forum.springsource.org

Probably a question for John... How far away is JSR 286 support? From my understanding the specification is pretty much finalized. Vignette Portal 7.4 has recently been released with early access ...

24. JSR-250 @Resource for unmanaged objects    forum.springsource.org

I would like to use the JSR-250 @Resource annotation for injecting beans into objects that are not managed by Spring. Is it possible to do something in the constructor of an ...

25. JSR 303 adoption    forum.springsource.org

26. Spring support for JSR286 portlets    forum.springsource.org

When will the support for JSR286 portlets be released in spring. I read that this will come with spring3.0. Is it released or when is it going to be released. Will ...

27. When JSR 286 support?    forum.springsource.org

According to Juergen, the 286 support should be in M2. I haven't had any opportunity to work on/with the 286 support. SpringSource seems to want to go "internal" with all this ...

28. JSR-286/Portlet 2.0 support in Spring 3.0 - status?    forum.springsource.org

I'm about to investigate frameworks that actually support JSR-286. From the looks of it there is code in Spring 3.0 M? that shows some proof of support. Can anybody confirm that ...

29. Spring 3.0 M3 / JSR-286 & Liferay 5.2 - good to go?    forum.springsource.org

Spring 3.0 M3 / JSR-286 & Liferay 5.2 - good to go? I'm about to get engaged into a intranet portal project that has Liferay 5.2.x as candidate deployment platform. I ...

30. JSR-299 Proposed Final Draft submitted    forum.springsource.org

31. JSR-168 portlet not showing error page after exeption    forum.springsource.org

JSR-168 portlet not showing error page after exeption I want the portlet producer to send the contents of the defined error page back to the consumer. My portlet controller is throwing ...

32. How to load multiple DRL Rule Files using JSR 94 Template    forum.springsource.org

Please help me how to load multiple rules using JSR94 template. I saw the example also there loading only one DRL file using JSR94 template. Ideal case we have to maintain ...

33. Jsr-303    forum.springsource.org

34. JSR-330, @Inject, Spring 3.0    forum.springsource.org

The 3.0-RC1 release notes mention the use of the @Inject annotation that can be used if the JSR-330 jar is on the classpath. Is this jar available already, and if so ...

35. Jsr 330    forum.springsource.org

I'm no longer a SpringSource employee, but I am a core Spring developer. So hopefully you won't mind my input. I feel that the choice between Spring-specific and JSR-330 DI annotations ...

36. Spring 3.0, JSR 330 and JSR 299    forum.springsource.org

This page http://static.springsource.org/sprin...ing-qualifiers says: In Spring 3.0 RC1 you can use JSR 330's @Named annotation in place of stereotpye annotations and they will be automatically detected during component-scanning. The value of ...

37. Most concise way of injecting interface implementation using JSR 330    forum.springsource.org

Most concise way of injecting interface implementation using JSR 330 I would like to define a dependency (using JSR 330 annotations) in the form of an interface and to specify which ...

38. JSR-286 support in Spring 3.0    forum.springsource.org

Hi, I am wondering why the Spring source documentation is not updated as per JSR-286/Portlet2.0 standard in Spring documentation ? Couldn't really get to know about events and resourcing request model ...

39. How do I use Spring 3 JSR-303 support with Spring Webflow 2.0?    forum.springsource.org

I've successfully configured JSR-303 support in Spring MVC but it's not firing in my webflow. I setup my MVC manually (not using the new namespace because when I use that webflow ...

40. JSR-303 and error codes    forum.springsource.org

JSR-303 and error codes Hi everyone, I played a little bit with JSR-303 and relative support in Spring... I wasn't able to have my error codes translated. My old code was ...

41. JSR 303 - SpringValidatorAdapter and error codes    forum.springsource.org

JSR 303 - SpringValidatorAdapter and error codes Hi all, First of all congratulation to Spring team for the release of Spring 3.0. Great job. Now, I was looking forward for the ...

42. Spring 3 support for JSR-286    forum.springsource.org

From what it seems, Spring 3.0 includes support for the Portlet 2.0 (JSR-286) specification, however I have been unable to find any authoritative documentation of these features. The Spring 3.0 reference ...

43. Validation with JSR-303    forum.springsource.org

Hi, I want to apply validation with using @Valid annotation on my command object which I am receiving after form submission. I have configured as per reference document and also ...

44. JSR 330 Help    forum.springsource.org

Feb 7th, 2010, 03:44 AM #1 tnine View Profile View Forum Posts Private Message Member Join Date Nov 2004 Posts 94 JSR 330 Help Hi all, I'm using the Hibernate implementation ...

45. How can I extend the JSR-303 validator with custom validation logic    forum.springsource.org

How can I extend the JSR-303 validator with custom validation logic With build-in JSR-303 validator, my entity properties can be validated against those standard constraints @NonNull, @Max, @Min, etc. However, sometimes, ...

46. JSR-303, group class support    forum.springsource.org

PHP Code: @Override public void validate( Object target, Errors errors){ validate( target, errors, Default.class ); } //Note the Group Specification on the 2nd line now public void ...

47. Help with form validation using JSR-303    forum.springsource.org

Help with form validation using JSR-303 I recently found this tutorial: http://wheelersoftware.com/articles/...framework.html and learned about the spring-modules-validation add on. However, I can't seem to make the validation working. I'm totally lost ...

48. Spring 3 and JSR-168 portlets    forum.springsource.org

Spring 3 and JSR-168 portlets We have a requirement at my company to run Spring 3 (core) together with JSR-168 portlets. After looking through the source code for Spring 3's Portlet ...

49. Portlet 2.0 (JSR-286) Documentation    forum.springsource.org

The code in Spring 3.x indicates that JSR-286 support is in spring-webmvc-portlet, but it seems that all of the documentation regarding Spring's portlet support is still geared towards the old JSR-168 ...

50. Implementing JSR    forum.springsource.org

Java EE 6 adds some security features that seem to overlap heavily with what Spring Security already provides. Does (or will) Spring Security implement the security-related parts of JSR-315? Or do ...

51. Custom JSR 303 validator firing twice    forum.springsource.org

Custom JSR 303 validator firing twice Hi, I've annotated one of my entity classes with a custom JSR 303 backed validator. I'm using the Hibernate 4.1.0 Validator as JSR provider. Unfortunately, ...

52. JSR 303 problem    forum.springsource.org

Hi. Lets say I have the class: Code: @Entity public class Person { @Id @Null(groups=Web.class) private Long id; @NotNull @Size(min=6, max=64) String name; } I.e. The person to be bound via ...

53. Custom Validation additional to JSR 303 pattern    forum.springsource.org

Code: @RequestMapping(value="/form", method=RequestMethod.GET) public String showForm( HttpServletRequest request, Model model){ model.addAttribute(getUser()); return "form"; } @RequestMapping(value="/action", method=RequestMethod.POST) public String processSubmit( @ModelAttribute("form") Form form, BindingResult bindingResult, HttpServletRequest request, Model model){ // instance of ...

54. jsr 303 validation with spring    forum.springsource.org

Hi I want to use jsr 303 validation with spring 3. To implement that annotation based controller is essential? Is there any way so that I can use it with all ...

55. Spring / Strut JSR 168 combination Question    forum.springsource.org

Spring / Strut JSR 168 combination Question I am trying to delegate a struts action to a spring bean in a portlet. In the struts-config.xml, I have the following:

56. CMS/jsr 170 support    forum.springsource.org

Well, we don't have a portal implementation actually. Whet's there is a portlets integration api, which is not the same thing :-) As for JSR-170, what sort of support are you ...

57. about JSR-330    forum.springsource.org

@Named is equivalent to @Component (and therefore all the stereotypes that "inherit" from @Component), and @Inject is equivalent to @Autowired. Here is a relevant post: http://matthiaswessendorf.wordpress....-jsr-330-part/

58. Spring and JSR-330    forum.springsource.org

Hi, all: Springsource managed bean default scope is singleton. However, JSR-330 default scope is the prototype. Unless manually specified @singleton. Should reach a consensus on how to use it?