Questions tagged [jsr286]

JSR 286 is the Java Portlet 2 specification.

JSR 286 is the Java Portlet 2 specification.

Resources

90 questions
1
vote
1 answer

navigation between jsf pages within one portlet on WebSphere Portal 8.0

I'm working on WebSphere Portal 8.0 and I am trying to make portlet with few faces. Can anyone share with me how can I make a simple link to other JSF site within one portlet? I mean, I was trying to use this, but it doesn't work:
WojciechKo
  • 1,511
  • 18
  • 35
1
vote
1 answer

Portal-container neutral method to obtain httpservletrequest from portlet request

Is there a way, using only the standard oracle JSR-286 classes, to obtain the HttpServletRequest behind a portlet request? Here is the liferay-specific method HttpServletRequest httpRequest = PortalUtil.getOriginalServletRequest( …
LiamRyan
  • 1,892
  • 4
  • 32
  • 61
1
vote
1 answer

Redirecting back to Portlet from ResourceMapping in Spring 3 portlets

I am trying to work out a way to provide a CSV download through a Spring 3 Portlet. I have a method that uses the @ResourceMapping annotation to define a handler that takes some report params in the form of a @ModelAttribute, builds the report, and…
CodeChimp
  • 8,016
  • 5
  • 41
  • 79
1
vote
1 answer

Sending spanish characters in form submission

I'm building Portlets using Spring Portlet MVC 3.02 and deploying them on WebSphere Portal V7. I have a form submission where one combo box requires to sent an Spanish character. Something like this:
1
vote
2 answers

Faces Portlet Navigation - WebSphere Portal - JSR 286

In our project we are changing the JSR version (from 168 to 286) of portlet projects. All the portlets are faces portlets and jsf version used is jsf1.2. We have several module but the structure is almost the same. Their are portlets in the left…
Debarshi DasGupta
  • 351
  • 2
  • 5
  • 21
1
vote
2 answers

Basic form portlet jsr 286 v liferay 6.0

How to retrieve data from a form and to send it to a MySQL database via JDBC? Here's my procedure: main class: public class Dati extends MVCPortlet { public static Connection con() { Connection conn = null; try { …
1
vote
2 answers

ResourceResponse.setCharacterEncoding() not working

I need to return some special Latin letter (e.g. á) in the response of a portlet serveResource() method. I have tried the following ways: response.setCharacterEncoding("ISO-8859-1") ; PrintWriter out =…
clin
1
vote
1 answer

ibm portlet 8.0 (JSR 286) device detection

I've been working on a IBM portal 8.0 and JSR 286. My requirement is to detect whether the request is coming from a PC Browser or Mobile or Tablet. I'm not using Web experience factory. It is just basic portlet project. Please someone suggest is…
Neorat
  • 11
  • 1
1
vote
1 answer

Editing response content on doView()

I have a simple JSR 286 Portlet that displays a user manual (pure HTML code, not JSP). Actually, my doView method, just contains this : public class UserManualPortlet extends GenericPortlet { @Override protected void doView(RenderRequest…
Jean-Michel Garcia
  • 2,359
  • 2
  • 23
  • 44
1
vote
2 answers

How to create a portlet URL in JSF-Portlet

The goal is to create a URL to the Portlet with this code: ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext(); RenderResponse response = (RenderResponse)ctx.getResponse(); PortletURL portletUrl =…
Zeemee
  • 10,486
  • 14
  • 51
  • 81
1
vote
0 answers

ajax call for apache fileupload in jsr 286

I am using apache fileupload in the form for portlets. I noticed that the class PortletFileUpload serves only action requests. I am using JSR286 and I want to call serveresource method whenever I click submit button. Is this possible or is there any…
user525146
  • 3,918
  • 14
  • 60
  • 103
1
vote
1 answer

Attach the uploaded file as an email

I am using the apache commons fileupload for uploading the file. I want to attach this file to an email. I don't want to write to temp file but I want to keep the data in memory and send it as an attachment. I need direction from here. Thanks in…
user525146
  • 3,918
  • 14
  • 60
  • 103
1
vote
0 answers

Sometimes, when working with Liferay Portal 6.1.1 I get an error page with next content

Sometimes, when working with Liferay Portal 6.1.1 I get an error page with next content can someone explain, how to resolve this problem? Content: The page cannot be displayed Explanation: The Web server refused the connection, possibly because a…
test1604
  • 620
  • 4
  • 12
  • 31
1
vote
1 answer

Unit test using mockresourcerequest

I have a serveresource method which serves an ajax call. I am trying to write a unit test for this serverresource method using MockResourceRequest and MockResourceResponse. I would really need some help on this if someone has an example to this.…
user525146
  • 3,918
  • 14
  • 60
  • 103
0
votes
1 answer

Is there a provision for using concurrent background processes in JSR 286 portlet containers like Liferay?

I need to write a portlet for Liferay 6.1 (Tomcat 7) which requires some background threads for efficiency and completeness. The portlet app needs to regularly poll for information from an external server before it updates its internal state, and…
Olaseni
  • 7,698
  • 16
  • 44
  • 68