Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Sample Forms with Alloy UI Tag Libs

    • 0
    • 2
    • 1
    • 3
    • 0
    • 0
    • 0
    • 0
    • 302
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: