In Liferay 6.2 we can use the forms with Alloy UI tags . The Alloy UI Tags can provide the way to do activity with Simple Alloy UI forms same as HTML forms tags. By the below Example we can show how to use Forms with Alloy UI.
Example:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ page import="javax.portlet.PortletPreferences" %>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
<portlet:defineObjects />
<portlet:actionURL name="loginCheck" var="loginURL" />
<aui:form name="loginCheck" method="POST" action="<%=loginURL.toString()%>" class="dropzone" enctype="multipart/form-data">
<aui:input type="text" label="PermitNo:" name="pid" />
<aui:input type="password" label="Password" name="password" />
<aui:input type="file" name="file" />
<aui:button type="submit" value="addDetails" />
</aui:form>
Hope this will help you :)
0 Comment(s)