portlet

YUI Version Conflict Issue in Portlet

[亡魂溺海] 提交于 2019-12-03 21:27:44
问题 I'm loading yui.js 3.3.0 version file from portlet but liferay its using 3.2.0 yui.js file, so whenever i'm loading that page js errors are coming like G_ENV._loaded[VERSION] is undefined - this error is coming in yui.js which is liferay using that is 3.2.0 version. so its replacing value like G_ENV._loaded[3.2.0] and that will throw an error becoz we loaded 3.3.0 version from portlet. I replaced yui.js 3.2.0 version file in portlet but It was throwing some other js errors. How will it work

Portlet: Forward a ResourceRequest to show the full portal

孤街醉人 提交于 2019-12-03 20:18:11
my intention is to process a ResourceRequest that serves a resource (A dinamically generated PDF). If something goes wrong generating this file, the whole portal with a failure message in the portlet should be rendered. Is it possible to forward a ResourceRequest to a request that renders the complete portal? I am also considering a redirect, but I will like to be able to pass some attributes/parameters along. I hope I explained my problem clear enough. Thank you. Related/Duplicate: How to make the ResourceResponse to forward the request to error page in liferay portlet Example This is an

Liferay Portlet and JSF : Redirect during Render Phase

烈酒焚心 提交于 2019-12-03 18:09:48
问题 I have a problem to implement a simple HTTP redirection. I use Liferay 6.0.6, our portlets are build with JSF2.0 / PortletFaces. I want to call a redirection when a view is loaded (and not when an action is triggered). Currently, my function is called by the PreRenderView listener. <f:metadata> <f:event listener="#{myControler.dispatch}" type="preRenderView" /> </f:metadata> In this function, i can check the permissions, do other stuff, and in some cases I want to redirect the user to a new

Multiple Pages Inside One Portlet

不羁岁月 提交于 2019-12-03 17:16:28
I am curious if anyone knows if it is possible for a single portlet to contain multiple pages, let's say JSP pages. Furthermore is it possible to link to these different pages within the same portlet? For example. Let's say I have a single portlet. And in this portlet I want the initial view to be a JSP page with just 5 links on it to 5 different JSP pages. And when a user clicked on one of these 5 links, it would load the appropriate JSP page into the portlet. The end goal would basically be a little mini website all contained inside a portlet. Now, I understand that this might not be the

Liferay: how to save to portlet user information?

。_饼干妹妹 提交于 2019-12-03 16:42:39
I have at the welcome page a weather portlet, and user can configure the portlet and select his city. Is it possible to store user information in the portlet preferences, so that every user has his one stored city? Or what is the standard workflow to store user-portlet information without to develop own (persist) service? thx The portlet-preferences are in liferay per default not user specific. That can be modified in liferay-portlet.xml with next lines: <liferay-portlet-app> <portlet> <portlet-name>ThePortletWitchUserSpecificPreferences</portlet-name> <icon>/icon.png</icon> <preferences

Spring portlet @ActionMapping usage

回眸只為那壹抹淺笑 提交于 2019-12-03 15:22:52
问题 could please anybody explain, how POST request should be mapped properly ? it is not clear from API documentation. value should be assigned with the value of the action parameter javax.portlet.action @ActionMapping(value = "addDocOrder") public void addDocOrder(@ModelAttribute("order")....... AND next we have "params" (JAVADOC: The parameters of the mapped request, narrowing the primary mapping.) @ActionMapping(params = "action=addDocOrder") public void addDocOrder(@ModelAttribute("order")...

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

回眸只為那壹抹淺笑 提交于 2019-12-03 13:48:49
问题 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 to return a JSON object back to some Javascript from my Spring MVC Controller. It seems that there is no easy way to currently do this using a portlet (https://jira.springsource.org/browse/SPR-7344). Solutions I have seen suggest creating another

Maven to copy JAR when adding dependencies

随声附和 提交于 2019-12-03 13:14:38
I'm currently using IBM Rational Application Development (IBM Eclipse distro) for Portlet development and having a small issue with Maven integration. Here's the situation: 1) IBM RAD has the ability to deploy a Portlet directly from within itself (RUN/DEBUG) In this case, I'm not using Maven generated WAR at all because IBM RAD seems to create the WAR themselves automagically and push it to IBM WebSphere Portal. Which isn't a big deal so far. 2) Maven dependencies are not copied to WebContent/WEB-INF/lib directory IBM has its own directory structure: WebContent/WEB-INF and WebContent/META-INF

Develop a common jar library for different liferay portlets

我的梦境 提交于 2019-12-03 07:05:33
I need some utility classes that will be common for three different Liferay portlets so I will develop them in one project that should be shared for my portlets. I am using Eclipse with Liferay IDE plugin and my question is what kind of project is that one that I need? I mean is it a simple Java project or any kind of Liferay project? There are ways you can do this: Create a simple Java project. Package it as a JAR file. Put the JAR file in global class-path In case of tomcat the global class-path would be ../tomcat-7.0.27/lib/ext/ . Create a simple Java project. Package it as a JAR file. Put

jQuery UI and Splitter

此生再无相见时 提交于 2019-12-03 06:24:47
Using jQuery UI, how can I use a Splitter kind of feature like the one at http://methvin.com/splitter/3csplitter.html ? I am asking this as I need 2 things to be implemented on my page; Portlet (Draggable) :: http://jqueryui.com/sortable/#portlets and Vertical Splitter :: http://methvin.com/splitter/3csplitter.html I am not sure how good coding practice it is if I am including 2 separate libraries (even though both are jQuery based); like http://host.sonspring.com/portlets/ for Portlets and http://methvin.com/splitter/3csplitter.html for Splitter Here is an example on how to create the