掲示板

Using Alloy UI Forms (aui)

14年前 に Nicolas Mugnier によって更新されました。

Using Alloy UI Forms (aui)

New Member 投稿: 15 参加年月日: 09/12/18 最新の投稿
Hello,

I read this thread http://www.liferay.com/web/guest/community/forums/-/message_boards/message/1201207
To realize my portlet, I'm trying to use Alloy UI Forms (aui).

In my .jsp, I tried to use <aui:button name="cancelButton" type="button" value="cancel" last="true"/>.

But it doesn't work. I think i forget to import <%@taglib uri="??" prefix="??"%> , no ?

Thanks,

Best regards

Nicolas
thumbnail
14年前 に Mika Koivisto によって更新されました。

RE: Using Alloy UI Forms (aui)

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
If you are using it from plugins there are couple things you need to do:

- Add the taglib definition to your web.xml:

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


- Tell Liferay plugin deployer that you need liferay-aui,tld by adding following line to your liferay-plugin-package.properties:

portal-dependency-tlds=liferay-aui.tld


- And the last thing is to reference the taglib in your jsp as you suspected. That you can do by adding following line to your jsp:

&lt;%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %&gt;
14年前 に Nicolas Mugnier によって更新されました。

RE: Using Alloy UI Forms (aui)

New Member 投稿: 15 参加年月日: 09/12/18 最新の投稿
I did what you told me, but it can't find aui :

"The absolute URI: http://liferay.com/tld/aui cannot be resolved in either web.xml or the jar files deployed with this application"

I think I have to download aui and put it in my project ? Where could I find it ?

Thanks

Best
14年前 に Vallinayagam P によって更新されました。

RE: Using Alloy UI Forms (aui)

New Member 投稿: 1 参加年月日: 10/05/05 最新の投稿
Nicolos,

Required aui taglibs may be available in the folder
LIFE_RAY_HOME_FOLDER\tomcat-6.0.26\webapps\ROOT\html\taglib.

(from Liferay 6 onwards)


I guess, if you copy this to your project folders properly, it should work.

- P.Vallinayagam
13年前 に mitziuro _ によって更新されました。

RE: Using Alloy UI Forms (aui)

New Member 投稿: 9 参加年月日: 10/06/04 最新の投稿
Hello,

I'm using Spring (Controllers) and JSP for the view in my project.
When I'm using the aui tag in a portlet jsp the tag works fine but when I'm using it in a servlet view (JSP , ajax) I have nothing where the aui element should be.
I searched the code and I think that the url to the jsp that renders the aui element it's different in a portlet context than in a servlet one.

What should I do/copy/modify to be able to use this tags also in the JSP pages used by the servlet controllers ?
It's there a way to keep the references to the liferay's aui sources (taglibs, jsp).

Thanks

mitziuro
thumbnail
8年前 に Enrique Valdes Lacasa によって更新されました。

RE: Using Alloy UI Forms (aui)

Junior Member 投稿: 92 参加年月日: 14/07/29 最新の投稿
I am using Liferay 6.2, and adding:

1)in the liferay-plugin-package.properties:
portal-dependency-tlds=aui.tld


2)And then also, in case of let's say an aui:button,
<aui:button onClick="<%=myActionUrl%>" value="Do my action" />


It works! I guess that the settings vary from one version to the other.