liferay-6

java.lang.ClassCastException: javax.faces.component.StateHolderSaver cannot be cast to [Ljava.lang.Object;

旧巷老猫 提交于 2019-12-11 19:27:46
问题 I am displaying a list of items with links in my xhtml page. When I click my "back to previous page" button from that link, I basically reset the flags in my bean to indicate to the xhtml which page to display, and reload the list of links from my database. When I click the same link (or any other link for that matter) in this new page, I get this error: javax.portlet.faces.BridgeException: javax.portlet.faces.BridgeException: javax.faces.FacesException: Unexpected error restoring state for

Pass parameter from java class to jsp using ActionRequest Actionresponse

吃可爱长大的小学妹 提交于 2019-12-11 18:22:27
问题 I have a function say : public void display(ActionRequest areq, ActionResponse ares) throws Exception,PortletException,IOException { String name= areq.getParameter("name"); String add= areq.getParameter("add"); String phone= areq.getParameter("phone"); } I have a jsp say disp.jsp which passes the user input to the above function display. Now I after doing some processing on the above data in display() function, I want to display the results on a jsp page say new.jsp. How should I go ahead

liferay content management system and use as external content source

徘徊边缘 提交于 2019-12-11 17:58:36
问题 I want to use liferay as web content management system. In my case I want to upload images on liferay and want to access those uploaded images through my program. I am new to liferay. can anyone please guide me or suggest any link through which I can full fill this requirement. thanks 回答1: Go to "site Administration" > "Content" > "Document and Media" > add files there and then copy the url from an input (when you click on an file) specify which liferay version you are using 来源: https:/

How to use alt image on iframe tag?

孤者浪人 提交于 2019-12-11 16:46:11
问题 I am using iframe tag as below on my structure and template with webcontent, our business requirement is if video is not available on given link show alter image instead, I thought it should be easy and but after googling on it did not see any better way so thought let me ask here... any idea ? here is my code looks like <iframe src="${.vars['Embed_Link'].getData()}" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> Btw this is Liferay

Migrate from Liferay Portal EE 6.1.20 to Liferay Portal CE 6.1.1

亡梦爱人 提交于 2019-12-11 13:54:23
问题 I would like to migrate from Liferay Portal EE 6.1.20 GA2 (developed locally with trial version) to Liferay Portal CE 6.1.1 GA2 (client requirement changed). Is it possible to use the same db (with some downgrade process possibly) and configurations, developed portlets, data etc.? A lot of information is stored in db (organizations hierarchy, users, roles, site and page templates, etc) and it is hard to migrate it manually with exports-imports etc. Trying to use the same db throws the

Can it possible to add the custom fields under Details tab liferay

南楼画角 提交于 2019-12-11 13:38:38
问题 With reference to the following link, https://www.liferay.com/community/wiki/-/wiki/Main/Custom+Fields+and+JSP+Hooks I am able to add the custom fields. But by default the newly added custom fields are showing under the "Custom Fields" tab. But I need to display my custom fields under the "Details" tab. How can I do that. Any suggestions please!! 回答1: You would have to hook the JSP of the portlet that you are working on. For example if you are working on Journal article portlet, than you will

How to write a java class to be accessed in liferay theme?

旧时模样 提交于 2019-12-11 13:29:26
问题 I have a Scenario where I have a java class written in JSP and its members are used in that JSP itself. The JSP is part of a liferay portlet. Now, I need to write that class for the velocity template in liferay theme so that I can access it in navigation.vm file. Following is a dummy snippet - xyz.jsp (part) <body> <% final class DummyABC { public String method1() { } public String method2() { } public String method3() { } } %> </body> I need to access this class in my navigation.vm file.

Encrypting clear text database password in context.xml for Liferay

一个人想着一个人 提交于 2019-12-11 11:36:40
问题 How do I encrypt the clear text passwords in my context.xml file? I've tried using digest as stated here: https://serverfault.com/questions/295628/how-do-i-use-non-plaintext-passwords-for-tomcat-users but my portlet will end up with a "BeanLocator is null for servlet context" error. Have also tried creating this: How to avoid storing passwords in the clear for tomcat's server.xml Resource definition of a DataSource? but it was unable to load my Class File (NoClassDefFound Exception) Or do the

Liferay custom portlet permission label missing

回眸只為那壹抹淺笑 提交于 2019-12-11 11:16:24
问题 I've followed the instructions from this tutorial to introduce a new portlet level permission for my custom portlet. In the resource-action-mapping XML there is a new action-key called PARTNER_ADMIN_CONTRACTING , and I've added the following line to the Language.properties file: action.PARTNER_ADMIN_CONTRACTING=Admin contracting On the Define permissions tab, it still shows the label key, not the value: What's missing? 回答1: You have to add the action.PARTNER_ADMIN_CONTRACTING=Admin

Open Browser Popup in Liferay via Vaadin

匆匆过客 提交于 2019-12-11 11:05:47
问题 using Vaadin 7.1 and Liferay 6.1 I try to open a new UI (in the same session) in a new browser window using com.vaadin.server.BrowserWindowOpener: Button button = new Button("button"); BrowserWindowOpener windowOpener = new BrowserWindowOpener(OverviewWindow.class); windowOpener.extend(button); Where OverviewWindow extends UI is a trivial custom UI. In standalone use (i.e. without Liferay) this works fine, but in Liferay the popup opens and displays "Request was not handled by any registered