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
renderUrl cannot be resolved to a variable
I have this code where i have to render muy url. In code it is showing an error
<%@ include file="init.jsp" %>
<p>
<b><liferay-ui:message
key="first.caption"/></b>
</p>
<portlet:actionURL var="namOfUrl" name="methodname">
<portlet:param name="paramname" value="value"/>
</portlet:actionURL>
<portlet:renderURL var="renderUrl">
<portlet:param name="mvcpath" value="/First.jsp"/>
<portlet:param name="paramname" value="value"/>
</portlet:renderURL>
<a href="<%=renderUrl%>">FindView</a>
Is this in Eclipse? I've had problems with its JSP editor for a long time - especially in plugins that might be incomplete.
Sometimes it's easy to fix by being more specific in specifying where "init.jsp" is expected, e.g. through changing it to "./init.jsp" or "/init.jsp"
The root cause for the error that's signalled is that the editor somehow doesn't know the portlet tld, which is included in init.jsp - thus helping the editor resolving its default lookup path might help.
Hi Olaf
This is in Liferay IDE. I'll look into it. Thank you for helping.
Powered by Liferay™