liferay-6

how to import a theme in liferay 7 workspace?

做~自己de王妃 提交于 2019-12-04 02:33:14
问题 how to import a theme in liferay 7 workspace? I added the theme under workspace/themes and I tried to deploy it but did not work. The build type of my Theme is Ant. The following picture shows the details: I put the Theme under *sdk\com.liferay.portal.plugins.sdk-1.0.11\themes* and I tried to test it as in Liferay 6. Import-> Liferay Projects from plugins SDK then when adding the SDK I got an error : app.server.dir is invalid. Please reconfigure Plugins SDK setting: app.server.dir=path to

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

rendering Liferay page URLs inside of portlets Liferay 6.1

岁酱吖の 提交于 2019-12-03 16:39:19
I'm new to liferay and I'm almost positive this is blazingly simple to do: Using velocity markup, I want to be able to generate links to pages within my Liferay website and embed them inside of my portlets on different pages. I have a vague idea of how it might be done so I searched around figuring it would be posted somewhere, but I can't find anything on it. Incidentally, I want to put whatever code I come up with inside the view.jsp of the portlet. I would use velocity markup here but I don't think (don't know for sure) if that is allowed inside of a jsp. Please let me know if you need more

How to disable default message: “Your request processed successfully”?

天涯浪子 提交于 2019-12-03 13:57:32
How would I disable this default message: "Your request processed successfully" for my plugin portlet when an add/update action is performed in my portlet? Also I would want to disable this for my custom configuration page ( configuration.jsp ), this is the configuration page which is shown when we click on the wrench icon which appears on the top-right corner of every portlet. Is there a configuration option anywhere which I can set or some code which I can write to disable it? Or else would it be possible to change the message from my custom portlet and ConfigurationActionImpl ? This message

Removing Custom Permissions/Actions from a Portlet

て烟熏妆下的殇ゞ 提交于 2019-12-03 08:44:31
I have been able to define custom portlet actions/permissions based on this example in Liferay Plugins SDK https://github.com/liferay/liferay-plugins/tree/master/portlets/sample-permissions-portlet I want to know the necessary steps I need to take to remove the custom portlet actions/permissions (not model permissions) from a portlet. I remember observing that when I re-deploy a portlet with modified custom actions/permissions, the old custom actions/permissions stick around. I tried deleting the portlet folder from Tomcat's webapps and it was successfully unregistered. But after I deploy the

How can I call the action method inside the MVCPortlet class onclick of the Submit button

走远了吗. 提交于 2019-12-02 21:07:35
问题 I am using Liferay 6 for development. I have added JQuery support to Liferay this way inside the file liferay-portlet.xml file <header-portlet-javascript>https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js</header-portlet-javascript> <header-portlet-javascript>https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js</header-portlet-javascript> Now I have a form with Username and password as shown below: <form> <div> <input class="default-value" type="text" name=

ext plugin not working in liferay 6.1.2 jboss7

徘徊边缘 提交于 2019-12-02 15:27:23
问题 I created an ext-plugin for extending Liferay LDAP DefaultPortalToLDAPConverter . I created an ext plugin in eclipse. In the ext-impl/src/main/java/com/liferay/portal/security/ldap/CustomPortalToLDAPConverter i extended DefaultPortalToLDAPConverter and kept only the changed methods in my class. Also I added in ext-spring.xml <bean id="portalToLDAPConverter" class="com.liferay.portal.security.ldap.CustomPortalToLDAPConverter" /> and then deployed the ext. The deployment went well without any

How can I call the action method inside the MVCPortlet class onclick of the Submit button

女生的网名这么多〃 提交于 2019-12-02 12:45:10
I am using Liferay 6 for development. I have added JQuery support to Liferay this way inside the file liferay-portlet.xml file <header-portlet-javascript>https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js</header-portlet-javascript> <header-portlet-javascript>https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js</header-portlet-javascript> Now I have a form with Username and password as shown below: <form> <div> <input class="default-value" type="text" name="Name" value="Name" /> <input class="default-value" type="text" name="Password" value="Password" /> </div>

Where does the Liferay portal-ext.properties go?

蓝咒 提交于 2019-12-02 07:48:32
问题 Below is my folder hierarchy. Where does the portal-ext.properties go? C:\glassfish3\glassfish\domains\domain1\applications\liferay Thanks! 回答1: You can put it in WEB-INF/classes folder of your liferay application. Probably C:\glassfish3\glassfish\domains\domain1\applications\liferay\WEB-INF\classes. 回答2: If you want a more clean location you can put it into the main folder of liferay. e.g.: * C:\liferay-portal-6.1.1-ce-ga2* 来源: https://stackoverflow.com/questions/7490877/where-does-the

Changing request parameter value in Struts2 interceptor

南笙酒味 提交于 2019-12-02 03:14:45
Does anybody know if it is possible to change/remove request parameter values in a Struts2 interceptor? The request parameter Map is an instance of UnmodifiableMap so it doesn't look like it can be manipulated with in the interceptor. UPDATE: I'm using Liferay so uParamsMap will be an UnmodifiableMap public String intercept(ActionInvocation invocation) throws Exception { final ActionContext context = invocation.getInvocationContext(); PortletRequest request = (PortletRequest) context.get(REQUEST); Map<String, String[]> uParamsMap = request.getParameterMap(); return invocation.invoke(); } May