first commit
This commit is contained in:
parent
9138d253ee
commit
0d9ceff1a4
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
|
@ -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.
|
Loading…
Reference in New Issue