掲示板

Alloy UI

12年前 に Peter Hellstrand によって更新されました。

Alloy UI

Regular Member 投稿: 166 参加年月日: 11/11/30 最新の投稿
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
12年前 に David H Nebinger によって更新されました。

RE: Alloy UI

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
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?
12年前 に Peter Hellstrand によって更新されました。

RE: Alloy UI

Regular Member 投稿: 166 参加年月日: 11/11/30 最新の投稿
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
12年前 に David H Nebinger によって更新されました。

RE: Alloy UI

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
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...
12年前 に Peter Hellstrand によって更新されました。

RE: Alloy UI

Regular Member 投稿: 166 参加年月日: 11/11/30 最新の投稿
Where can I find this log? Not "catalina.out"?
thumbnail
12年前 に Gregory Amerson によって更新されました。

RE: Alloy UI

Liferay Legend 投稿: 1123 参加年月日: 10/02/16 最新の投稿
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?
12年前 に Peter Hellstrand によって更新されました。

RE: Alloy UI

Regular Member 投稿: 166 参加年月日: 11/11/30 最新の投稿
Hi

I am using version 6.1

Thanks!
thumbnail
12年前 に Gregory Amerson によって更新されました。

RE: Alloy UI

Liferay Legend 投稿: 1123 参加年月日: 10/02/16 最新の投稿
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
12年前 に Pablo Antonio Zamora Ortiz によって更新されました。

RE: Alloy UI

Junior Member 投稿: 28 参加年月日: 11/03/18 最新の投稿
Thank you very much for your contribution and I had the same problem and corrected it with your contribution Thanks
11年前 に kashika singh によって更新されました。

RE: Alloy UI

New Member 投稿: 1 参加年月日: 13/01/21 最新の投稿
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
11年前 に Tanaji M. Londhe によって更新されました。

RE: Alloy UI

Regular Member 投稿: 194 参加年月日: 12/04/25 最新の投稿
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>