Forums de discussion

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

Devendra Patel, modifié il y a 11 années.

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

Junior Member Publications: 71 Date d'inscription: 26/09/11 Publications récentes
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