liferay

Liferay <portlet:actionURL>

僤鯓⒐⒋嵵緔 提交于 2019-12-10 13:05:21
问题 In my jsp I have the following code: <portlet:actionURL name="addDetails" var="addDetailsURL" /> <aui:form name="addDetails" action="<%=addDetailsURL.toString() %>" method="post" > <aui:input type="text" label="name:" name="name" value="" /> <aui:input type="text" label="surname:" name="surname" value="" /> <aui:input type="text" label="age:" name="age" value="" /> <aui:button type="submit" value="addDetails" /> </aui:form> I am using liferay. I want to submit this data which will be

Display Liferay portlet inside other liferay portlet

牧云@^-^@ 提交于 2019-12-10 12:19:09
问题 I use Liferay portlet bundle 6.2 (Tomcat) and Liferay IDE(eclipse). I created two Liferay Plugin Project. In the first portlet(first plugin portlet), I save some data by using Portlet Preferences. Now, I will display second portlet in first portlet. How I can do that? I found this following code and this Link Open portlet from other portlet var url; function createRenderURL(portletId) { AUI().ready('liferay-portlet-url', function(A) { var renderURL = Liferay.PortletURL.createRenderURL();

how to insert data in db using liferay portlet

浪尽此生 提交于 2019-12-10 12:18:48
问题 How to insert data in MySql using Liferay? I have created Edit.jsp, view.jsp from edit.jsp I want to enter data and in view.jsp I want to show my data. This data which is enter in edit.jsp should be stored in my mysql table. I have created service.xml, portal-ext.properties. I have java file also. Please tell me where should I write my insertion logic to store my data in to database. Here is my Java code. I have edit.jsp file and view.jsp file, i have created table using service.xml file and

how to upload photo in database and how to retrive in jsp page

China☆狼群 提交于 2019-12-10 12:17:01
问题 I'm providing my service.xml file which contains the table details: <entity name="Testimonial" local-service="true" remote-service="false"> <!-- PK fields --> <column name="TestimonialId" type="long" primary="true" /> <!-- UI fields --> <column name="subject" type="String" /> <column name="area" type="String" /> <column name="username" type="String" /> <column name="email" type="String" /> <column name="photo" type="String"/> <column name="company" type="String" /> <column name="designation"

Liferay date-input displays wrong date

断了今生、忘了曾经 提交于 2019-12-10 11:41:24
问题 I'm using Liferay 7.1 I have the following liferau-ui:input-date object and I want to pre-select a date: <% final LocalDate today = LocalDate.now(ZoneId.systemDefault()); %> <liferay-ui:input-date dayValue="<%= today.getDayOfMonth()%>" monthValue="<%=today.getMonth().getValue()%>" yearValue="<%= today.getYear()%>" </liferay-ui:input-date> When I output today 's values directly on the JSP I get the correct date for today: 3 12 2018 . When the element is rendered, it has selected the wrong date

Which application context set in IntelliJ IDEA for Tomcat?

被刻印的时光 ゝ 提交于 2019-12-10 10:38:51
问题 So far I run Tomcat server (v. 7.0.26) in windows command by catalina.bat start script. If I want to deploy my web app I have to build it by Maven and copy WARs to specify Tomcat deploy directory. When server start everything is ok. Now I try to connect my web app to IntelliJ IDEA Ultimate 2017.1.4. My app have multiple WARs. At Run/Debug Configuration I add new Tomcat Server. At the Deployment tab I have: I have to choose Application context but if I set blank for more than one artifact I

Liferay Taglib import not working in JSP

倖福魔咒の 提交于 2019-12-10 10:05:43
问题 I'm having trouble importing the liferay taglibs in one of my JSP pages, no idea what I'm doing wrong. I did the exact same thing in previous projects, but now for some reason it's not working. My code to import: <%@ taglib uri="http://liferay.com/tld.ui" prefix="liferay-ui" %> The syntax error I'm getting: The absolute uri: http://liferay.com/tld.ui cannot be resolved in either web.xml or the jar files deployed with this application I tried to google this problem quite extensively, but to no

Liferay : Portlets inside portlet

北战南征 提交于 2019-12-10 09:26:19
问题 Is it possible to create a few portlets inside a portlet? I mean a multilevel portlet. 回答1: Yes. You can use the Nested Portlet to this purpose. This is a layout container for other portlets. You can choose the wanted layout in the configuration. 回答2: Yes, definately, you can have portlet within portlet. Liferay provides taglib, thru which you can easily embed different util portlets (web content display, breadcrumb, navigation etc) within portlet 回答3: NESTED-PORTLET Assuming that you are

rendering Liferay page URLs inside of portlets Liferay 6.1

[亡魂溺海] 提交于 2019-12-09 13:28:03
问题 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

Liferay: how to save to portlet user information?

扶醉桌前 提交于 2019-12-09 13:24:58
问题 I have at the welcome page a weather portlet, and user can configure the portlet and select his city. Is it possible to store user information in the portlet preferences, so that every user has his one stored city? Or what is the standard workflow to store user-portlet information without to develop own (persist) service? thx 回答1: The portlet-preferences are in liferay per default not user specific. That can be modified in liferay-portlet.xml with next lines: <liferay-portlet-app> <portlet>