Fórum
<liferay-ui> tag
Ravi Shankar, modificado 6 Anos atrás.
<liferay-ui> tag
Junior Member Postagens: 40 Data de Entrada: 13/07/16 Postagens Recentes
Hi All
I am new in liferay7 environment , right now i upgraded one portlet from liferay 6.2 to liferay 7 ga2 but after upgraded portlet i am facing issue regarding displaying web Content Article , so for that i searched a lot and i got
<liferay-ui:journal-article articleid="<%= article.getArticleId() %>">
</liferay-ui:journal-article>
this tag has been change to
<liferay-ui:asset-display classname="<%= JournalArticleResource.class.getName() %>" template="<%= article.getResourcePrimKey() %>">
</liferay-ui:asset-display>
and for displaying web content article in liferay 6.2 i used this taglib:
<%@ taglib uri="http://liferay.com/tld/journal" prefix="liferay-journal" %>
but it is not working in liferay7 environment so please give some suggestion , instead of that taglib what i need to put in jsp
Thanks with Regards :
Ravi Shankar
I am new in liferay7 environment , right now i upgraded one portlet from liferay 6.2 to liferay 7 ga2 but after upgraded portlet i am facing issue regarding displaying web Content Article , so for that i searched a lot and i got
<liferay-ui:journal-article articleid="<%= article.getArticleId() %>">
</liferay-ui:journal-article>
this tag has been change to
<liferay-ui:asset-display classname="<%= JournalArticleResource.class.getName() %>" template="<%= article.getResourcePrimKey() %>">
</liferay-ui:asset-display>
and for displaying web content article in liferay 6.2 i used this taglib:
<%@ taglib uri="http://liferay.com/tld/journal" prefix="liferay-journal" %>
but it is not working in liferay7 environment so please give some suggestion , instead of that taglib what i need to put in jsp
Thanks with Regards :
Ravi Shankar
Sai Krishna, modificado 6 Anos atrás.
RE: <liferay-ui> tag
New Member Postagens: 4 Data de Entrada: 24/06/17 Postagens Recentes
Hi Ravi
I am facing same problem but i am getting exception like :
java.lang.NullPointerException
at com.liferay.taglib.ui.AssetDisplayTag.includePage(AssetDisplayTag.java:188)
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:362)
at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:206)
please suggest me how i display web content article and which taglib i need to put in jsp.
I am facing same problem but i am getting exception like :
java.lang.NullPointerException
at com.liferay.taglib.ui.AssetDisplayTag.includePage(AssetDisplayTag.java:188)
at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:362)
at com.liferay.taglib.util.IncludeTag.doInclude(IncludeTag.java:206)
please suggest me how i display web content article and which taglib i need to put in jsp.
Christoph Rabel, modificado 6 Anos atrás.
RE: <liferay-ui> tag
Liferay Legend Postagens: 1554 Data de Entrada: 24/09/09 Postagens Recentes
Have you tried:
<liferay-ui:asset-display classname="<%= JournalArticleResource.class.getName() %>" classPK="<%= article.getResourcePrimKey() %>"></liferay-ui:asset-display>
template is something like "full_content", for sure not the primary key. And isn't it JournalArticle instead of JournalArticleResource? But I am not sure about that. How about article.getClassName()?
You find the documentation of the tag here:
https://docs.liferay.com/portal/7.0-latest/taglibs/util-taglib/liferay-ui/asset-display.html
<liferay-ui:asset-display classname="<%= JournalArticleResource.class.getName() %>" classPK="<%= article.getResourcePrimKey() %>"></liferay-ui:asset-display>
template is something like "full_content", for sure not the primary key. And isn't it JournalArticle instead of JournalArticleResource? But I am not sure about that. How about article.getClassName()?
You find the documentation of the tag here:
https://docs.liferay.com/portal/7.0-latest/taglibs/util-taglib/liferay-ui/asset-display.html