first commit

This commit is contained in:
Massimiliano Assante 2021-11-02 18:00:49 +01:00
parent 9138d253ee
commit 0d9ceff1a4
5 changed files with 21 additions and 7 deletions

View File

@ -11,7 +11,7 @@
</parent>
<groupId>org.gcube.portal</groupId>
<artifactId>moving-map-forms</artifactId>
<artifactId>moving-map-portlet</artifactId>
<packaging>war</packaging>
<name>moving-map-forms Portlets</name>
<version>1.0.0-SNAPSHOT</version>

View File

@ -5,6 +5,8 @@ import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
@ -29,9 +31,14 @@ public class CompileForm extends MVCPortlet {
@Override
public void render(RenderRequest renderRequest, RenderResponse renderResponse) throws PortletException, IOException {
// renderRequest.setAttribute("theGateways", theGateways);
System.out.println("cao");
super.render(renderRequest, renderResponse);
}
public void addEntry(ActionRequest request, ActionResponse response) {
System.out.println("bao");
}
}

View File

@ -10,7 +10,7 @@
</portlet-class>
<init-param>
<name>view-jsp</name>
<value>/html/form-compile/view.jsp</value>
<value>/html/form-compile/form-map.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>

View File

@ -0,0 +1,12 @@
<%@include file="../init.jsp"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineObjects />
<portlet:actionURL name="addEntry" var="addEntryURL" />
<aui:form action="<%= addEntryURL %>" method="post" name="myForm">
<aui:input label="My Text Input" name="myTextInput" type="text"
value='<%= "My Text Value" %>' />
<aui:button type="submit" />
</aui:form>

View File

@ -1,5 +0,0 @@
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineObjects />
This is the <b>Form Compile</b> portlet in View mode.