A strange problem has been discovered recently. A portlet, anonymous user access is not a problem, if the user logged on instead of a permission issue, the message shows "You do not have access to this portlet required permissions to the role."
7.1 Source Code Analysis
Try to find out the cause of the problem by analyzing the source code.
Find a resource file
You-do-not-have-the-roles-required-to-access-thi
This article will show you how to develop and deploy a simple Portlet-based JSP in IBM WebSphere Portal version 5.
IntroductionIn the first article of the "Hello World" sequence, you have learned how to create a Portlet in Java that can output "Hello, world ". This is exemplary and not a practical method for developing a Portlet. So what is the problem with it?
A detailed description of the Portlet communication processDuring the development of the Portal, the communication between Theme and Portlets, and the communication between Portlets, is a common problem that developers often encounter. Usually portlets need to be able to communicate with each other, that is, the state of a portlet changes, to notify other portlets, the
The Portlet API of WebSphere Portal 4.1 is changed to be consistent with the J2EE specification. All servlets are extended from the HTTP servlet class of the servlet API and deployed as servlets. To deploy A Portlet of WebSphere Portal Server version 1.2 or 2.1, read the following sections to determine how to migrate the Portlet to use the new
1, download liferay-portal-src-5.2.3 and liferay-portal-ext-5.2.3 2, build ext: In the Portal project Build.xml in turn to execute clean, start, build-ext tasks; 3, Portal and ext items are added under the App.server.zcb.properties file, the file name "ZCB" for the computer's login, as follows: Lp.ext.dir=f://eclipse_project//liferay b-
Liferay is a complete portal solution, based on the Java EE application, using the EJB and JMS Technologies, the front interface part uses the Struts MVC framework, the XML-based portlet configuration file can be freely and dynamically extended, Web services are used to support the acquisition of some remote information, and the full-text search function is implemented using Lucene.The main features are as
In the 1th part of this series, the JSR-286 portlet is briefly reviewed, and the new features of the JSR-the portlet are described in detail, and this article will introduce the reader to the J Method for using the new feature of the SR 286 Portlet. This article will first introduce the JSR 286 reference implementation build process for the Apache Pluto 2.0 platf
When we create Liferay applications (such as Portlet,theme) with Maven, we often have a version choice, as shown in the figure:
The default show's last version of Archetype is selected, at which point we can only display the latest version of archetype, if we use the latest version of archetype development application, then eventually when the application deployed to the lower version of the container (
management (cms,jsr170)
Portal-service
Includes all service interfaces for Portal-impl
Portal-kernel
Includes the Portal/portlet specification implementation (JSR 168/268), as well as basic framework management (Struts, Spring), and basic implementations of deployment, configuration, Search, WebService, and persistence
Support-glassfish/tomcat
Support implementation for GSF/TOMCAT container
Util-bridges
Support for some framework/language authoring p
Seize the core--Wang XinThe core of Liferay file upload is the use of the Uploadportletrequest classInheritance relationshipJava.lang.ObjectExtended Byjavax.servlet.ServletRequestWrapperExtended Byjavax.servlet.http.HttpServletRequestWrapperExtended Bycom.liferay.util.servlet.UploadPortletRequestTo implement a relationship:Implemented Interfaces:
Javax.servlet.http.HttpServletRequest
Javax.servlet.ServletRequest
Single File UploadJSP
By default, a portlet can have only one page, and if you need more than one portlet on a page, you need to instantiate the portlet. After instantiation, Liferay assigns to each instantiated portlet a instance ID to differentiate the same functionality. The instance IDs of mu
Because our application is running on the Liferay application server, some optimizations for the server are of course our first thought.
We have done a lot of testing before, because Liferay will have css-fast-load, and js-fast-load, these parameters will be a number of CSS files or several JS files merged into a single large file, which can significantly reduce the number of network IO overhead, We develo
portal. that# happens by because the counter service would look up the properties# prefixed with "jdbc.default." To create its data Source. See the jdbc# properties prefixed with "Jdbc.default." For more information.## Setting a different value for the counter J DBC prefix allows better# fine tune the counter data source with its own set of configuration# settings for high AV Ailability installations. Note that these settings,# though separate, is a copy of the default settings with the newly#
This topic provides a brief overview of the IBM portlet API. This API is not recommended, and this topic provides support for portlets that have not yet migrated to the standard Portlet APIs.
Abstract Portlet classes are the core abstraction of the IBM portlet API. The Portlet
In the portlet, the request is divided into two types of Renderrequet and actionrequest and the portlet needs to get the instance ID when it is renderrequest to be taken, the following examplePortletpreferences preferences = Renderrequest.getpreferences (); String Portletresource = paramutil.getstring (Request, "Portletresource"), if (Validator.isnotnull (Portletresource)) { Preferences = Portletpreferences
By default, the portletaction Extension Based on Struts action provided by liferay does not support multiple distribution commands, which are commonly used dispatchaction. However, in our daily Struts-based operations, a large number of dispatchaction processing methods have been used, such as "cmd = queryall.
This article explains how to extend liferay to support multi-distribution command actions. First,
Create a simple web project in myeclipse:
(1) create a class under SRC and inherit from genericportlet. The Code is as follows:
Package COM. portlet;
(2) Create Table. jsp and the display. jsp codes are as follows:
1. Table. jsp:
2. display. jsp:
(3) download the liferay-portal-tomcat-4.2.1.zip and decompress it to the F:/liferay/tomcat directory (this is
Part 1: Click the "ADD" process from the page to find the event handler function:
In Liferay, when we select a portlet from the left and add it, a series of actions are triggered and the portlet is eventually displayed on the page, and now we are spy the mysterious process.
On the page, in order to find the event handler we bound after clicking Add, we first
This article will show you how to create and deploy a simple Portlet in WebSphere Portal version 5.
IntroductionSomeone often asked me this question: "What is the simplest Portlet that people can create through WebSphere Portal version 5 from the beginning ?". The fixed answer is "Hello World ". This article will take a long time to answer this question in detail. I am going to show you how to create the s
delivers e-commerce applications to various client devices through the Web. The portal provides site users with a single point of access to multiple types of information and applications. Regardless of where the information resides or what format it is, the portal gathers all the information in a satisfying, user-friendly way. A complete portal solution should give users easy access to every job they need to complete their tasks.The extensible framework of IBM WebSphere Portal allows end users
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.