掲示板

<remoteable>true</remoteable> gives an error

11年前 に Gautam Sharma によって更新されました。

<remoteable>true</remoteable> gives an error

Junior Member 投稿: 92 参加年月日: 12/04/30 最新の投稿
When i am trying to make my custom developed portlets remotely accessible by setting to 'true' the <remotable> tag in my liferay-portlet.xml then i am getting xml error in eclipse so could you please help me out.
thumbnail
11年前 に Ravi Kumar Gupta によって更新されました。

RE: <remoteable>true</remoteable> gives an error

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
What is the error? Can you please share the liferay-portlet.xml file?
11年前 に Gautam Sharma によって更新されました。

RE: <remoteable>true</remoteable> gives an error

Junior Member 投稿: 92 参加年月日: 12/04/30 最新の投稿
Below is the code in my liferay-portlet.xml.Does order matter in this file????

<liferay-portlet-app>
<portlet>
<portlet-name>Demo</portlet-name>
<remoteable>true</remoteable>
<icon>/icon.png</icon>
<instanceable>false</instanceable>

<header-portlet-css>/css/main.css</header-portlet-css>
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript>
<css-class-wrapper>Demo-portlet</css-class-wrapper>

</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>
</role-mapper>
<role-mapper>
<role-name>guest</role-name>
<role-link>Guest</role-link>
</role-mapper>
<role-mapper>
<role-name>power-user</role-name>
<role-link>Power User</role-link>
</role-mapper>
<role-mapper>
<role-name>user</role-name>
<role-link>User</role-link>
</role-mapper>

</liferay-portlet-app>
thumbnail
11年前 に Ravi Kumar Gupta によって更新されました。

RE: <remoteable>true</remoteable> gives an error

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
Put remotable tag just after instanceable tag. Then let us know what happens.
11年前 に Gautam Sharma によって更新されました。

RE: <remoteable>true</remoteable> gives an error

Junior Member 投稿: 92 参加年月日: 12/04/30 最新の投稿
its working fine now thanks a lot. so it means order matters in liferay-portlet.xml file??/
thumbnail
11年前 に Ravi Kumar Gupta によって更新されました。

RE: <remoteable>true</remoteable> gives an error

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
Yes order matters. This is the order :
Content Model : (portlet-name, icon?, virtual-path?, 
 struts-path?, parent-struts-path?, configuration-
 path?, configuration-action-class?, indexer-class*, 
 open-search-class?, scheduler-entry*, portlet-url-
 class?, friendly-url-mapper-class?, friendly-url-
 mapping?, friendly-url-routes?, url-encoder-class?, 
 portlet-data-handler-class?, portlet-layout-listener-
 class?, poller-processor-class?, pop-message-listener-
 class?, social-activity-interpreter-class?, social-
 request-interpreter-class?, webdav-storage-token?, 
 webdav-storage-class?, xml-rpc-method-class?, 
 control-panel-entry-category?, control-panel-entry-
 weight?, control-panel-entry-class?, asset-renderer-
 factory*, atom-collection-adapter*, custom-
 attributes-display*, permission-propagator?, 
 workflow-handler*, preferences-company-wide?, 
 preferences-unique-per-layout?, preferences-owned-
 by-group?, use-default-template?, show-portlet-
 access-denied?, show-portlet-inactive?, action-url-
 redirect?, restore-current-view?, maximize-edit?, 
 maximize-help?, pop-up-print?, layout-cacheable?, 
 instanceable?, remoteable?, scopeable?, user-
 principal-strategy?, private-request-attributes?, 
 private-session-attributes?, autopropagated-
 parameters?, action-timeout?, render-timeout?, 
 render-weight?, ajaxable?, header-portal-css*, 
 header-portlet-css*, header-portal-javascript*, 
 header-portlet-javascript*, footer-portal-css*, 
 footer-portlet-css*, footer-portal-javascript*, footer-
 portlet-javascript*, css-class-wrapper?, facebook-
 integration?, add-default-resource?, system?, 
 active?, include?)
11年前 に Gautam Sharma によって更新されました。

RE: <remoteable>true</remoteable> gives an error

Junior Member 投稿: 92 参加年月日: 12/04/30 最新の投稿
Thanks