O'Reilly logo

Liferay 6.2 User Interface Development by Jonas X. Yuan, Xinsheng Chen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Learning Alloy UI tags

In Alloy UI, Liferay has customized the form elements into JSTL tags. The form elements start with aui, as shown in the following piece of code:

  <aui:form action="<%= editArticleActionURL %>" enctype="multipart/form-data" method="post" name="fm1">
  </aui:form>

These aui tags are defined in the ${APP_SERVER_PORTAL_DIR}/WEB-INF/tld/liferay-aui.tld file. They are interpreted by classes in the com.liferay.taglib.aui package.

Let us first look at the above mentioned form tag. This tag is interpreted by the com.liferay.taglib.aui.FormTag class. Besides the action, enctype, method, and name attributes, it also has the following optional attributes:

  • escapedXml: Set the escapedXml attribute to false if you do not want the action URL ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required