I'm trying to create a liferay portlet with a input editor. For achieve this I'm using:
And I tried to create a portlet with the following content:
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="aui" %>
<%@ page import="com.liferay.portal.kernel.util.UnicodeFormatter" %>
<portlet:defineObjects />
<aui:button-row cssClass="guestbook-buttons">
<aui:button value="TESTING"></aui:button>
</aui:button-row>
<liferay-ui:input-editor initMethod="initEditor" name="mieditor">
<script type="text/javascript">
function <portlet:namespace />initEditor() {
return "<%= UnicodeFormatter.toString("working") %>";
}
</script>
</liferay-ui:input-editor>
Editor up.
The code indicated before creates a portlet with a button and input editor, but it does not show the editor, only the button and the sentence Editor up
. You can see a picture of what I mean:
Do you know why the portlet does not show the input editor?
Thanks in advance!
You missed to include the Liferay-ui taglib.Just add this to your jsp
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
For future references,if you are developing in an IDE,it will show you a warning of Unknown tag,and hence it fails to resolve the tag or it's special usage.