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:
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(
…
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…
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:
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…
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 {
…
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 =…
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…
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…
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 =…
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…
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…
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…
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.…
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…