Questions tagged [spring-portlet-mvc]

Spring Portlet MVC tries to reuse features from Spring MVC framework to ease development of Java Portlets.

As much as possible, the Portlet MVC framework is a mirror image of the Web MVC framework, and also uses the same underlying view abstractions and integration technology.

179 questions
8
votes
4 answers

spring-mvc (portlet): how to return a pdf file in open file dialog?

In my @ActionMapping I create a PDF file for the user. Now I was wondering how I can return this pdf to the user in the form of a save/open file dialog box? I'd prefer this over showing a download link if the generation was succesful. I'm using…
jack
  • 1,902
  • 5
  • 32
  • 43
7
votes
5 answers

Spring portlet mvc: @Valid does not seem to work

I created a bean class and use it in my controller but it does not seem to work. Namely even though I enter an invalid age, result.hasErrors is still false. Bean class: public class User{ @Min(13) private int age; private String name; …
jack
  • 1,902
  • 5
  • 32
  • 43
6
votes
1 answer

Difference between @ActionMapping,@RequestMapping,@Rendermapping

The differences between @RequestMapping, @ActionMapping and @RenderMapping are not very clear to me. It seems that all of the above ultimately map a request url to an actual method in the controller. So what is the difference? What can be done by…
Victor
  • 16,609
  • 71
  • 229
  • 409
5
votes
5 answers

How do I render a JSON view/response via AJAX using Spring MVC annotation-based controller for portlets?

I've spent the last six hours scouring Google and stackoverflow for an answer to this question. I'm originally a PHP developer, so bear with me - returning a JSON array from a PHP controller is trivial. I'm using Spring MVC 3.0, and I simply want…
Jordan Brown
  • 13,603
  • 6
  • 30
  • 29
4
votes
1 answer

Migrate Spring portlet to web mvc

I was assigned to restructure an existing project. This project is a portal with two features. allow users single sign on to view brief information from other existing web apps managing users through other web app's API/databases This project…
bnguyen82
  • 6,048
  • 5
  • 30
  • 39
4
votes
0 answers

Pluginmanagement tag causes maven build failure

When I import the maven project into my ecliplse-luna I faced an error in the pom.xml Plugin execution not covered by lifecycle configuration: org.apache.portals.pluto:maven-pluto-plugin:2.1.0-M3:assemble (execution: default, phase: …
PrabaharanKathiresan
  • 1,099
  • 2
  • 17
  • 32
4
votes
1 answer

Handle exceptions in Spring MVC portlets

I would like to handle all portlet exceptions in one controller. This facility is proposed by spring using @ControllerAdvice. I wonder if this feature still availabe and applicable in portlet context. Note that I test it but the method handling the…
javaxiss
  • 680
  • 3
  • 13
  • 34
4
votes
1 answer

Liferay: creating a portlet configuration page. How to provide correct jsp path?

I want to create a configuration page for a liferay portlet. Some code from portlet.xml example-config example-to-delete
jahra
  • 1,173
  • 1
  • 16
  • 41
4
votes
5 answers

How does Spring portlet MVC 3.1 determine which annotated method to render with multiple controllers?

We have encountered a problem using Spring Portlet MVC 3.1 when using multiple controller classes and the DefaultAnnotationHandlerMapping. Background We are using Spring Portlet MVC 3.1 with annotations for the Render & Action phases We are using…
user1372549
  • 41
  • 1
  • 2
3
votes
1 answer

Serve PDF in Spring Portlet MVC Architecture - Liferay 6.0.6

I was looking for a way to send a PDF (direct display) file to the browser through Liferay Portal. Found many solutions - the most popular one being writing a Servlet that does the job. I've read about Portlet Resource Serving in JSR 286…
Ashok Goli
  • 5,043
  • 8
  • 38
  • 68
3
votes
3 answers

Spring portlet MVC. Validation before @ResourceMapping. @ResourceMapping -> @RenderMapping

My case: a user can download files. There is a list of files he can select. There is a spring mapping: @ResourceMapping(DOWNLOAD) public void downloadSelected(ResourceRequest request, ResourceResponse response, AuditView auditView, BindingResult…
user657009
  • 722
  • 2
  • 6
  • 18
3
votes
3 answers

How to undeploy a portlet from Liferay 7?

I am learning how to create portlets on Liferay 7 CE GA 3 portal platform. For this, I created few test portlets using maven, gradle, by following the tutorials given in liferay site. But now, I need to remove those portlets from the server.…
Marvolo
  • 61
  • 2
  • 3
3
votes
1 answer

Spring MVC Portlet + JQuery + Jackson + JSON Response - Failed to find resource

Background: Using AJAX JQuery form to upload file asynchronously and receive JSON response back from Controller, extract the data and update the view without page refresh. Tools and Version: IBM WebSphere Portal Server v8, Spring + Spring MVC…
grek
  • 93
  • 1
  • 11
3
votes
1 answer

Interaction Between Spring Container and Servlets

I am trying to understand the plumbing between a Spring framework container and a Servlet. I am just getting started and believe that a Spring MVC application can work with servlets, portlets etc., When a spring application using servlets is…
3
votes
2 answers

How to use WAS standard persistence provider with Spring

I'm developing a portlet which runs in WebSphere Application Server ( - I accept the same problem to appear if it was a servlet instead of a portlet). At the moment it depends on Hibernate. As WAS provides a JPA implementation itself, which is a…
fishbone
  • 3,140
  • 2
  • 37
  • 50
1
2 3
11 12