portlet

after back button, portlet does not go in to processaction

那年仲夏 提交于 2019-12-12 01:55:15
问题 I have a portlet which involves displaying several JSP pages. In first JSP page A , when I click the Submit button on Page A the processAction() method takes action and a JSP page B appears. Now if I use Web Browser's Back button to page A and click the Submit button again, the JSP page B appears but I noticed the processAction() didn't take any action. (Usually clicking Submit button in a JSP page can result in the processAction() to take action). Can anyone help for this problem? In my

Adding custom filter for asset publisher portlet?

半城伤御伤魂 提交于 2019-12-12 01:51:58
问题 We have created a new template and structure with custom attributes for submitting web content. The structure has few list attributes like: <dynamic-element name='size' type='list' index-type='' repeatable='false'> <meta-data>…</meta-data> <dynamic-element name='Less_than_5_000' type='Less_than_5_000' index-type='' repeatable='false'> </dynamic-element> <dynamic-element name='5_000_to_10_000_employees' type='5_000_to_10_000_employees' index-type='' repeatable='false'> </dynamic-element>

Orbeon 3.9 Liferay proxy portlet java.lang.NullPointerException Error with any user interaction

那年仲夏 提交于 2019-12-12 00:19:20
问题 I'm trying to integrate Orbeon Forms 3.91 PE with Liferay 6.0.6. I have installed Liferay, deployed orbeon.war, orbeon-proxy-portlet.war, copied the license file and created a file-local.xml properties (as described in the wiki). Using the Form Builder I've created a form (the default content (one input field)). Next I've added two pages in Liferay containing the portlets forms: - one runner with my form - second form refers to a form "contact" (the default one). After integration with my

How to get file name and other requested parameter in to serveResource method with ajax call?

折月煮酒 提交于 2019-12-11 20:16:02
问题 I am using ajax to submit my jsp page data without refreshing the page in liferay custom portlet. I am facing two problems with that: When I am calling Ajax function to resource server method its getting all ajax data in that method but when everything is done then on success of that I can't get any data in return. So how can I get some data in return after the Ajax function is successfully executed. I have used simple HTML file upload control in my form and when I am using simple submit

window.open() clears session

耗尽温柔 提交于 2019-12-11 18:54:31
问题 I have several portlets in my application. If I open a url using window.open() method, the session id changes and causes an error in other portlets. If I don't open this url, everything works fine. But once this new window is opened, the session is cleared and the rest of the portlets throws an exception since some values are missing. In the address bar of the browser I typed in javascript:alert(document.cookie); to see the JSESSIONID. It remains constant throughout the page and changes when

Change Liferay Search Indexer

社会主义新天地 提交于 2019-12-11 17:48:56
问题 I want to override the functionality of an indexer and what I found was that the indexer is defined in the liferay-portlet.xml and so I cannot override the indexer unless I changed the file on the server which is a bad practice, so is there anyway I can change the indexer in a good manner ?? 回答1: If you are using 6.0 or higher, you can change the way a document is indexed by using a hook plugin. Simply define in your liferay-hook.xml <indexer-post-processor> <indexer-class-name>com.liferay

spring portlet mvc: model attribute is null despite being modelAttribute?

元气小坏坏 提交于 2019-12-11 16:33:58
问题 In my rendermapping I put a User object in my model (model.addAttribute) . In the coupled JSP I do: <form:form action="x" method="post" modelAttribute="user"> Username: ${user.username} Age: ${age} This information is correct: <input type="checkbox" id="correctInformation"/> <input type="submit" value="Submit"/> </form:form> However in the method mathing x when I retrieve the user object using an @ModelAttribute tag the user object is a new instance instead of the one used in the form (the

Vaadin Multilanguage portlet component captions

百般思念 提交于 2019-12-11 15:15:55
问题 I'm developing portlets with Vaadin in a Liferay Portal , mostly with english component captions(names) like "Cancel" "back" "next" and so on. Now i have to make the portlets "Multilanguage ready" that means if an user has set the language of his Liferay page to english he should see my portlet captions in english , but if an user sets the language of his Liferay page to german, the portlet captions should be displayed in german. Is there a way to check wich language the user has set as his

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

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