liferay-6

Liferay Portlet: How to generate service.xml (service builder) from existing database

霸气de小男生 提交于 2020-01-13 03:08:26
问题 I am new to liferay, Can anyone please suggest some way to generate the service.xml for existing database Discussion on Liferay Website . I hope people might have developed some way or liferay have developed some plugin for this. 回答1: I see no particular use in introducing servicebuilder to large existing databases: You can connect servicebuilder entities to "legacy datasources" or "legacy tables" (those make good search terms) but service.xml generation has not been done AFAIK. Some problem

Custom ckEditor Toolbar in Liferay 6.2

笑着哭i 提交于 2020-01-07 04:34:48
问题 I want to add my own custom toolbar for my ckeditor and have therefore added this to my ckconfig.jsp via a hook. config.toolbar_Mini = [ ['Bold', 'Italic', 'Underline', 'Strike'], ['BulletedList'] ]; Additionally I've found out that liferay uses the config.toolbar_liferay settings. How ( code ) and where ( file ) can I change this default behaviour? EDIT: This is how the html-editor for my journal-articles looks now: and I want to limit the functionality of the toolbar to this: I do not want

Running a scheduled task in Liferay 6.2 ga6

早过忘川 提交于 2020-01-07 02:54:09
问题 I want to know how I can do one thing in liferay. For example I have a portlet, where user can set scheduling for the task (for example do somethind every week, or once at the scheduled time). I found this tutorial, but I want to configure trigger every time user changes his preferences in portlet. In other word I want to config trigger directly from my controller, not from xml config. Can someone tell me how I can do it? 回答1: The following code creates a scheduled task. String pId = "portlet

Dynamic Data Lists Display Template

我的梦境 提交于 2020-01-06 18:45:10
问题 I tried to add a link for delete an entry of my data lists respective to tutorial1 and tutorial2 but I missed something. <h1>Task Summary</h1> Hallo "${reserved_record_set_name}". <#assign DDLRecordLocalService = serviceLocator.findService("com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService")> <#assign groupService = serviceLocator.findService("com.liferay.portal.service.GroupLocalService")> <#assign layoutService = serviceLocator.findService("com.liferay.portal.service

Dynamic Data Lists Display Template

最后都变了- 提交于 2020-01-06 18:45:07
问题 I tried to add a link for delete an entry of my data lists respective to tutorial1 and tutorial2 but I missed something. <h1>Task Summary</h1> Hallo "${reserved_record_set_name}". <#assign DDLRecordLocalService = serviceLocator.findService("com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService")> <#assign groupService = serviceLocator.findService("com.liferay.portal.service.GroupLocalService")> <#assign layoutService = serviceLocator.findService("com.liferay.portal.service

Liferay maven dependency could not be resolved

夙愿已清 提交于 2020-01-06 14:14:14
问题 I am using liferay 6.2.10.4 enterprise edition with maven.while deploying it with maven clean package commad I got below error. The following artifacts could not be resolved: com.liferay.portal:portal-service:jar:6.2.10.4, com.liferay.portal:util-bridges:jar:6.2.10.4, com.liferay.portal:util-taglib:jar:6.2.10.4, com.liferay.portal:util-java:jar:6.2.10.4: Could not find artifact com.liferay.portal:portal-service:jar:6.2.10.4 in central (http://repo.maven.apache.org/maven2) -> [Help 1] I have

Custom permission to custom portlet on specific user in liferay

笑着哭i 提交于 2020-01-06 02:50:13
问题 How can i define custom permisssion to custom portlet for specific user in liferay I used enviroment liferay 6.1.2 ga3 with jboss In my custom portlet deploy/undeploy button but how can i give specific permission to that only admin person can access that function any other can not use that check this link http://i.imgur.com/Qwfbg2H.png Can you please elaborate. I also check this link for reference and in jsp page for rendering all the datagrid data render through jeasyui and rest API Removing

liferay migrate data from hsql to mysql

走远了吗. 提交于 2020-01-05 07:39:18
问题 I am having Liferay 6.2. It has some data in hsql. I need to import these data into mysql database. How can I import all data from hsql to mySQL. I am having following files in data/hsql folder lportal.lck (lck file) lportal (seems like data base dump) lportal.properties lportal.script Is there any way to import db using some script or changing some configuration files. 回答1: One way is you can try using the Data migration tool liferay provides, check out the Liferay User-guide and scroll to

Unable to set auto deploy directory on Liferay Portal 6.0

喜夏-厌秋 提交于 2020-01-05 04:33:07
问题 I am working with Liferay 6.0 on JBoss 5.1.1, Windows 8 is the OS. On server startup I always get the following error explaining the auto deploy directory can't be found: ERROR [AutoDeployDir:90] Directory F:\liferay-portal-ee-6.0\deploy could not be created This makes sense because I don't have an F: drive. However, I'm unable to configure it in the portal-ext.properties file as explained here. When I log into the Liferay control panel, and look under Portal Administration -> Portal

how to capture the data sent by alloy ui io request in serveresource method?

柔情痞子 提交于 2020-01-03 00:19:08
问题 Getting blank values for title and description in serveResource method.Is this the right way to send the parameters from io request? After inserting blank values in database I have to reload the page to see the inserted values?So io-request is not ajax request? <aui:script use="aui-base"> A.one('#<portlet:namespace/>save').on('click', function(event) { var A = AUI(); var title=A.one('#<portlet:namespace/>title').val(); alert(title); var description=A.one('#<portlet:namespace/>description');