Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How to override Dynamic Data List?
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
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
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 {
}
}
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 {
}
}
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™