掲示板
[LR7-GA4] <portlet:namespace/> not work
6年前 に hung tp によって更新されました。
[LR7-GA4] <portlet:namespace/> not work
New Member 投稿: 11 参加年月日: 16/07/19 最新の投稿
Hi,
I am creating a new portlet on Liferay 7 - GA4. However, I cannot use <portlet:namespace/> to get unique id in jsp. even though other portlet tag works fine (<portlet:renderURL>, <portlet:actionURL>, etc..).
For test, I write <portlet:namespace/> to an input value, it will display the whole text '<portlet:namespace/>'. You can check in attached image.
I am developing with liferay-ide-eclipse-windows-x64-3.1.1-ga2-201708030520.
Thanks.
I am creating a new portlet on Liferay 7 - GA4. However, I cannot use <portlet:namespace/> to get unique id in jsp. even though other portlet tag works fine (<portlet:renderURL>, <portlet:actionURL>, etc..).
For test, I write <portlet:namespace/> to an input value, it will display the whole text '<portlet:namespace/>'. You can check in attached image.
I am developing with liferay-ide-eclipse-windows-x64-3.1.1-ga2-201708030520.
<aui:input name="receiver" value="<portlet:namespace/>"></aui:input>
Thanks.
添付ファイル:
6年前 に Danielle Ardon によって更新されました。
RE: [LR7-GA4] <portlet:namespace/> not work
Junior Member 投稿: 37 参加年月日: 16/06/06 最新の投稿
Hi,
You can't use this tag inside aui-tags and also I'm guessing all xml is automatically escaped inside aui input fields so that wouldn't work anyway. You can use this:
<aui:input name="receiver" value="${renderResponse.getNamespace()}"></aui:input>
hope that helps!
You can't use this tag inside aui-tags and also I'm guessing all xml is automatically escaped inside aui input fields so that wouldn't work anyway. You can use this:
<aui:input name="receiver" value="${renderResponse.getNamespace()}"></aui:input>
hope that helps!
6年前 に hung tp によって更新されました。
RE: [LR7-GA4] <portlet:namespace/> not work
New Member 投稿: 11 参加年月日: 16/07/19 最新の投稿
Hi,
Sorry for the late reply.
So that's it, I learned something . And I also found out that aui-tags will automatically add namespace to attributes of input to make it unique so the <portlet:namespace/> is unnecessary.
Thanks for your help .
Sorry for the late reply.
So that's it, I learned something . And I also found out that aui-tags will automatically add namespace to attributes of input to make it unique so the <portlet:namespace/> is unnecessary.
Thanks for your help .