留言板

Re: [Liferay Forums][English] RE: Not able to submit the form using jquery

Devendra Patel,修改在11 年前。

Re: [Liferay Forums][English] RE: Not able to submit the form using jquery

Junior Member 帖子: 71 加入日期: 11-9-26 最近的帖子
Hi Kiran,

assume that there are two resource url in a portlet as an example

1 : <portlet:resourceURL var="mailResourceURL" id="mailResourceId"
escapeXml="false" />

2:<portlet:resourceURL var="smsResourceURL" id="smsResourceId"
escapeXml="false" />

this statement String resourceId = request.getResourceID() will return id
of your resource url like "mailResourceId" or "smsResourceId".

so by putting if else loop on based on resource id you can put your
function code in single serveresource method if you are extending generic
portlet.

Hope this clears you.

Regards,
Dev Patel