Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How to embed liferay comment discussion tag in freemarker?
I embedded a liferay comment discussion tag using the below code in
web content template in liferay 7.4.3.7.
<@liferay_comment["discussion"]
className="com.liferay.journal.model.JournalArticle" classPK=jA.getResourcePrimKey() redirect=currURL userId=assetRendererObj.getUserId() />
But not able to render it. Getting below exception:
javax.servlet.jsp.JspException:
java.lang.NullPointerException
at
com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:93)
~[bundleFile:?]
at
freemarker.ext.jsp.TagTransformModel$TagWriter.endEvaluation(TagTransformModel.java:402)
~[?:?]
at freemarker.ext.jsp.TagTransformModel$TagWriter.afterBody(TagTransformModel.java:390)
The similar code is working in jsp.
Can anyone suggest the reason/solution for that? Got stuck in it for
the whole day. Please do help.