Harpreet Nanda 10 Years Ago Hi Jeff,I took the extending LR 3 ways course during S.F trip. I am trying to experiment writing hooks for some core portlets like the User admin. I want to try and override the add user action. I am wondering if there is a way to simply modify the addUser method in my extended Action class and still leverage the processAction from the originalStrutsPortletAction. More or less I am wondering what is the best practice when it comes to extending core portlets via hook. Copying the entire code from the original portlet does not seem like a good idea, but it appears that some developers have gone that route.Thanks. Please sign in to reply. Reply as... Cancel Jeffrey Handa Harpreet Nanda 10 Years Ago Hi Harpreet, During the workshop, I used the Hook plugin because in general it's usually preferred over the Ext Plugin. However, this might be a case where the Ext Plugin provides you with the easier upgrade path. If you work in an Ext Plugin, you can extend the original struts action, only overwriting what's needed and not copying over the entire code from the original portlet. If you need some help with Ext Plugins take a look at the Developer's Guide: https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/ext-plugi-4 Please sign in to reply. Reply as... Cancel shrikanth shrikanth Jeffrey Handa 10 Years Ago hello sir,can u help me how to set dynamic id value in javascript in jsp and retrive same id value in process action class so plz send the code its urgent Please sign in to reply. Reply as... Cancel
Jeffrey Handa Harpreet Nanda 10 Years Ago Hi Harpreet, During the workshop, I used the Hook plugin because in general it's usually preferred over the Ext Plugin. However, this might be a case where the Ext Plugin provides you with the easier upgrade path. If you work in an Ext Plugin, you can extend the original struts action, only overwriting what's needed and not copying over the entire code from the original portlet. If you need some help with Ext Plugins take a look at the Developer's Guide: https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/ext-plugi-4 Please sign in to reply. Reply as... Cancel shrikanth shrikanth Jeffrey Handa 10 Years Ago hello sir,can u help me how to set dynamic id value in javascript in jsp and retrive same id value in process action class so plz send the code its urgent Please sign in to reply. Reply as... Cancel
shrikanth shrikanth Jeffrey Handa 10 Years Ago hello sir,can u help me how to set dynamic id value in javascript in jsp and retrive same id value in process action class so plz send the code its urgent Please sign in to reply. Reply as... Cancel