Foros de discusión

Alloy UI

Peter Hellstrand, modificado hace 12 años.

Alloy UI

Regular Member Mensajes: 166 Fecha de incorporación: 30/11/11 Mensajes recientes
I have been reading that Alloy UI is included in Liferay 6.X.

What do I need to do?

This will not complie.
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>


I tried adding this to the web.xml

	<taglib>
		<taglib-uri>http://liferay.com/tld/aui</taglib-uri>
		<taglib-location>/WEB-INF/tld/liferay-aui.tld</taglib-location>
	</taglib>


And I also have the alloy-taglib.jar in my path. "Liferay Portal Plugin API".

This ca be found in my liferay-plugin-package.properties.
portal-dependency-jars=\
    alloy-taglib.jar,\
    jstl-impl.jar



How can I use alloy UI?
thumbnail
David H Nebinger, modificado hace 12 años.

RE: Alloy UI

Liferay Legend Mensajes: 14916 Fecha de incorporación: 2/09/06 Mensajes recientes
What do you mean, it will not compile?

Is the IDE just marking it as an error, or does the ant build script fail when you try to create the portlet? Or is the failure seen when deploying or rendering the portlet?
Peter Hellstrand, modificado hace 12 años.

RE: Alloy UI

Regular Member Mensajes: 166 Fecha de incorporación: 30/11/11 Mensajes recientes
The IDE is marking it as an error.

Description Resource Path Location Type
Can not find the tag library descriptor for "http://liferay.com/tld/aui" init.jsp /mvc-portlet-portlet/docroot line 8 JSP Problem



ant deploy shows no error message.


Edit: Something is wrong. When I am using

<aui:form>
	<aui:input name="productName" size="45" />
</aui:form>


in /admin/view.jsp

I get "Product Administration is temporarily unavailable."
thumbnail
David H Nebinger, modificado hace 12 años.

RE: Alloy UI

Liferay Legend Mensajes: 14916 Fecha de incorporación: 2/09/06 Mensajes recientes
1. Well the IDE is famous for not understanding where all of the Liferay bones are buried. I have a hook that is always marked as an error in the IDE because it has an include for a file like "./init.jspf" that I didn't need to hook so didn't copy it in. Deploy time everything works fine, just the IDE doesn't get it.

I wouldn't fret those kinds of issues.

2. When you get the 'not available' message, there's usually a stack trace in the log indicating what your issue is...
Peter Hellstrand, modificado hace 12 años.

RE: Alloy UI

Regular Member Mensajes: 166 Fecha de incorporación: 30/11/11 Mensajes recientes
Where can I find this log? Not "catalina.out"?
thumbnail
Gregory Amerson, modificado hace 12 años.

RE: Alloy UI

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
Peter Hellstrand:
I have been reading that Alloy UI is included in Liferay 6.X.

What do I need to do?

This will not complie.
&lt;%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %&gt;


I tried adding this to the web.xml

	<taglib>
		<taglib-uri>http://liferay.com/tld/aui</taglib-uri>
		<taglib-location>/WEB-INF/tld/liferay-aui.tld</taglib-location>
	</taglib>


And I also have the alloy-taglib.jar in my path. "Liferay Portal Plugin API".

This ca be found in my liferay-plugin-package.properties.
portal-dependency-jars=\
    alloy-taglib.jar,\
    jstl-impl.jar



How can I use alloy UI?


Hi Peter are you trying this on 6.0 or 6.1?
Peter Hellstrand, modificado hace 12 años.

RE: Alloy UI

Regular Member Mensajes: 166 Fecha de incorporación: 30/11/11 Mensajes recientes
Hi

I am using version 6.1

Thanks!
thumbnail
Gregory Amerson, modificado hace 12 años.

RE: Alloy UI

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
Hey Peter,

There was a mix-up with URL/URIs for the aui taglib for 6.1 GA1. This is going ot be addressed by GA2 but for now you can just add this to your web.xml in your IDE project:


<taglib>
        <taglib-uri>http://liferay.com/tld/aui</taglib-uri>
        <taglib-location>/WEB-INF/tld/aui.tld</taglib-location>
</taglib>


Then copy the aui.tld from the portal's tld folder (<tomcat>/webapps/ROOT/WEB-INF/tld/aui.tld) into your project's docroot/WEB-INF/tld

Then to get Eclipse to not mark it as error you will have to close and reopen the project (or restart) eclipse and then re-validate your jsp files.
thumbnail
Pablo Antonio Zamora Ortiz, modificado hace 12 años.

RE: Alloy UI

Junior Member Mensajes: 28 Fecha de incorporación: 18/03/11 Mensajes recientes
Thank you very much for your contribution and I had the same problem and corrected it with your contribution Thanks
kashika singh, modificado hace 11 años.

RE: Alloy UI

New Member Mensaje: 1 Fecha de incorporación: 21/01/13 Mensajes recientes
I have liferay-portlet.tld and aui.tld files in WEB-INF/tld folder and I also restarted eclipse but there is still an error on the following lines :


<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>


I am using liferay-portal-6.1.1-ce-ga2 and eclipse indigo
Kindly help!!
thumbnail
Tanaji M. Londhe, modificado hace 11 años.

RE: Alloy UI

Regular Member Mensajes: 194 Fecha de incorporación: 25/04/12 Mensajes recientes
make this entry in web.xml file inside the <jsp-config> tag
<taglib>
<taglib-uri>http://liferay.com/tld/aui</taglib-uri>
<taglib-location>/WEB-INF/tld/aui.tld</taglib-location>
</taglib>