RE: How to override Dynamic Data List Controller class?

thumbnail
Mahammad Ashik A, modified 6 Years ago. Junior Member Posts: 81 Join Date: 7/17/17 Recent Posts
Hi,

While publishing data in dynamic data list form which controller class will call and how to modify that controller?
I am working  on liferay 7.1.

​​​​​​​Thanks In advance
thumbnail
Mahammad Ashik A, modified 6 Years ago. Junior Member Posts: 81 Join Date: 7/17/17 Recent Posts
RE: How to override Dynamic Data List Controller class?


I achieved by extending BaseMVCActionCommand.

​​​​​​​

@Component(immediate = true, property = { "javax.portlet.name=" + DDLControllerModulePortletKeys.DYNAMIC_DATA_LISTS,
        "javax.portlet.name=" + DDLControllerModulePortletKeys.DYNAMIC_DATA_LISTS_DISPLAY, "mvc.command.name=addRecord",
        "service.ranking:Integer=100" }, service = MVCActionCommand.class)

public class DDLControllerModulePortlet extends BaseMVCActionCommand {

    protected void doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse)
            throws Exception, NoClassDefFoundError {

    }
}