You get a complicated feature with only one tag.
Liferay UI tags have been tested. They do not introduce bugs. This saves testing time.
They can be classified as below
Alloy (AUI) tags
Liferay portlet tags
Liferay liferay-portlet tags
Liferay security tags
Liferay theme tags
Liferay UI tags
Liferay utility tags
Liferay portlet tags
com.liferay.taglib.portlet.DefineObjectsTag class is responsible for its interpretation. The result is that the following objects, among others, are set in
the pageContext:
renderRequest
renderResponse
portletPreferences
In this way we can directly use these objects in our portlet JSP file coding
portlet:actionURL
We can use the actionURL tag to dynamically generate a URL in our JSP file and
use it, say, as an action URL for a form.
This tag is interpreted by the com.liferay.taglib.portlet.ActionURLTag class. It generates an action URL string with page layout ID, portlet ID, portlet mode, window state, and layout information. It will also include a parameter name of struts_action with a value of /journal/edit_article. This URL is set as value for an editArticleActionURL variable. Eventually this variable is used as the
action URL for a form as follows:
No comments:
Post a Comment