liferay-6

Liferay 6.2 CE-GA6 make NTLM work for chrome and firefox?

有些话、适合烂在心里 提交于 2019-12-25 11:04:26
问题 I have configured NTLM for single sign on in my application which is working fine on Internet Explorer but not on chrome and firefox.There is a restriction in Liferay source code which restricts NTLM only for IE. Is there any way I can remove that restriction? Note: Chrome and Firefox themselves support NTLM, it is Liferay side issue.Also asked this question here 回答1: After looking in a source code i think, you can just remove BrowserSnifferUtil.isIe(request) condition from if statements in

Liferay: how to get the current login user details in servlet?

拈花ヽ惹草 提交于 2019-12-25 08:51:03
问题 I'm completely new to Liferay. I have configured Orbeon Forms in Liferay by using the Proxy Portlet , finally I created an Orbeon form and sent the form data to a demo portlet (custom portlet). In the portlet I have created a servlet. If user save the orbeon form data then my servlet getting called and I'm able to get the form data. Now I need to get the current user name or userid in the servlet. In form builder I have send the orbeon form data to my servlet. properties-local.xml <property

Redirect to page using JSF PhaseListener

让人想犯罪 __ 提交于 2019-12-25 04:55:29
问题 Scenario 1: If the friendlyURL is '/requestform/servicerequest' and requestProcessorBean.userRequestVO == null then invalidate the session and redirect to '/web/pds/login' page.. Scenario 2: If the If the friendlyURL is '/requestform/servicerequest' and requestProcessorBean.userRequestVO != null then redirect to 'serviceRequest.xhtml' page. I want to know how I can Scenario 1 implement using JSF Phase Listener. I have implemented Scenario 1 as follows: requestForm.xhtml: <?xml version="1.0"

Users and organization creation form

醉酒当歌 提交于 2019-12-25 04:19:16
问题 I have added portal directory inside a public page contains users and organization Q1>> I need to add portlet allow users depending on their roles to add edit organization and users depending on their roles outside the control panel "inside my new portlet in public page"? OR Inside portal directory portlet allow users depending on their roles to add edit organization and roles outside the control panel "inside my new portlet"? Q2>> How to make custom fields required fields? I'm new to liferay

Liferay Web-Service: method in *LocalServiceImpl not getting build in *LocalServiceUtil

℡╲_俬逩灬. 提交于 2019-12-25 03:34:08
问题 Methods I am defining in *LocalServiceImpl is not getting defined by service builder in *LocalServiceUtil. Have gone through this question,but didn't work for me Liferay: Any method written in *LocalServiceImpl not found in *LocalServiceUtil service log: build-service: [echo] Loading jar:file:/home/rayon/shi/liferay%20bundle%2020th%20may/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties [echo] 8 Jun, 2015 8:18:28 AM com.liferay.portal.kernel

How to find web contents with specific structure field value?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 02:08:42
问题 I was wondering if anyone could give me some ideas/snippets on how to create Velocity template to loop through Web Content items for a specific structure , and render the contents based on the value of a specific structure field? 回答1: Here is a snippet from navigation.vm that will render group links: #set($groupLocalService = $serviceLocator.findService("com.liferay.portal.service.GroupLocalService")) #set($groupCount = $groupLocalService.getGroupsCount()) #set($groups = $groupLocalService

where liferay site will store in which table details will fetch?

白昼怎懂夜的黑 提交于 2019-12-25 00:47:04
问题 if we create site,organisation where it will store.i mean in which default table it will store.`Programmatically create organization site from site template Create organization site Organization organization = OrganizationLocalServiceUtil.addOrganization(creatorUserId, 0, name, createSite); Fetch site templates List<LayoutSetPrototype> layoutSetPrototypes = LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototypes(organization.getCompanyId()); LayoutSetPrototype customSiteTemplate = null; //

Country and State selection using html and Javascript

左心房为你撑大大i 提交于 2019-12-24 13:52:52
问题 I have applied the logic in view.jsp in Liferay to show the state list on State drop down based on the Country selected from the Country drop down. I have used html and java script to achieve this goal of showing the state drop down for the selected country from drop down list. Currently, when I first load the form, both of the Country and the state label with drop down is displaying. The state drop down is empty at first. Then when I select country, Example: USA, state drop down is changed

How to use custom mysql query from my liferay custom portlet?

房东的猫 提交于 2019-12-24 13:07:03
问题 I am using Liferay and developing my custom portlet, now I want to use custom query to retrieve some data from multiple table with joins etc. I have googled the things for my problem but can't find the simple way to understand the step-by-step procedure. So if any one can guide me or give me any tutorial to create Custom SQL query for my custom portlet. after this 4th step i have built my service in eclipse,and its showing successfully.there are two file created in service/persistence package

Customizing liferay hook custom fields

帅比萌擦擦* 提交于 2019-12-24 12:27:43
问题 I need to add a Custom Field to Site create page, i went to Portal > Custom Fields > Site and added a custom field named " licence ". I followed this tutorial http://www.liferay.com/pt/community/wiki/-/wiki/Main/Custom+Fields+and+JSP+Hooks I'm trying to access this field in details.jsp page. It's located at of tomcat-7.0.27\webapps\ROOT\html\portlet\sites_admin\site i tryed to do this: <liferay-ui:custom-attribute label="Licence" className="<%= Site.class.getName() %>" classPK="<%= 0 %>"