Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
sheela mk
liferay-ui tags...
June 19, 2012 4:41 AM
Answer

sheela mk

Rank: Regular Member

Posts: 111

Join Date: February 16, 2012

Recent Posts

Hai..Guys..Can anybody,Explain..Those tags and unfamiliar attributes...in liferay-ui....emoticon

Pls if possible explain with User interface..if possible...


<%@include file="/html/init.jsp"%>

<%
Slogan slogan = (Slogan) request.getAttribute(WebKeys.SLOGAN_ENTRY);
%>

<h1><%= slogan.getSloganText() %></h1>

<liferay-ui:ratings className="<%= Slogan.class.getName() %>"
classPK="<%= slogan.getSloganId() %>" type="stars" />

<liferay-ui:panel-container extended="<%= false %>"
id="sloganCommentsPanelContainer" persistState="<%= true %>">

<liferay-ui:panel collapsible="<%= true %>" extended="<%= true %>"
id="sloganCommentsPanel" persistState="<%= true %>"
title='<%= LanguageUtil.get(pageContext, "comments") %>'>

<portlet:actionURL name="invokeTaglibDiscussion" var="discussionURL" />

<liferay-ui:discussion className="<%= Slogan.class.getName() %>"
classPK="<%= slogan.getSloganId() %>"
formAction="<%= discussionURL %>" formName="fm2"
ratingsEnabled="<%= true %>" redirect="<%= currentURL %>"
subject="<%= slogan.getSloganText() %>"
userId="<%= slogan.getUserId() %>" />

</liferay-ui:panel>

</liferay-ui:panel-container>
Vitaliy Koshelenko
RE: liferay-ui tags...
June 27, 2012 10:08 AM
Answer

Vitaliy Koshelenko

Rank: Regular Member

Posts: 222

Join Date: March 25, 2011

Recent Posts

Hi, Sheela.
These are custom liferay tags. You can check from the source code, that <liferay-ui:ratings .. tag is handled by com.liferay.taglib.ui.RatingsTag and it displays the following jsp page: /html/taglib/ui/ratings/page.jsp
Download the source code and check how the attributes are used.