Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created October 3, 2011 17:34
Show Gist options
  • Save eduardolundgren/1259697 to your computer and use it in GitHub Desktop.
Save eduardolundgren/1259697 to your computer and use it in GitHub Desktop.
/html/portlet/breadcrumb/view.jsp
<%--
/**
* Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
--%>
<%@ include file="/html/portlet/breadcrumb/init.jsp" %>
<liferay-ui:breadcrumb displayStyle="<%= displayStyle %>" />
<form action="" name="fm2">
<fieldset id="simpleForm">
<p>
<label class="aui-field-label" for="name.dot">Email:</label>
<input type="text" name="name.dot" id="name.dot" />
</p>
<p>
<input class="aui-button-input" type="submit" value="Submit" />
<input class="aui-button-input" type="reset" value="Reset" />
</p>
</fieldset>
</form>
<aui:script use="aui-form-validator">
var validator2 = new A.FormValidator({
boundingBox: document.fm2,
fieldContainer: 'p',
rules: {
'name.dot': {
required: true,
rangeLength: [2,50]
}
}
});
</aui:script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment