Message Boards
Override MVCRenderCommand for create_account
Herna Munoz-Galeano, modified 4 Years ago.
Override MVCRenderCommand for create_account
New Member Posts: 5 Join Date: 7/3/19 Recent Posts
Greetings! I'm working with Liferay-ce-portal-7.1.3-ga4.I have the task to override the create_account render and action commands. I was able to override the action command following the tutorial here: https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/adding-logic-to-mvc-commands.However I've not been able to override the render command. I found the default create account render command from liferay source code here: https://github.com/liferay/com-liferay-login/blob/master/login-web/src/main/java/com/liferay/login/web/internal/portlet/action/CreateAccountMVCRenderCommand.java.
I tried making a copy of this class just with a couple of logs to confirm success, however each time I load the create account form nothing is displayed in log.I also tried to find the default <portlet:renderURL > for the create account page, but I still haven't found it.Do you know what I'm missing or doing wrong?I appreciate your support!
I tried making a copy of this class just with a couple of logs to confirm success, however each time I load the create account form nothing is displayed in log.I also tried to find the default <portlet:renderURL > for the create account page, but I still haven't found it.Do you know what I'm missing or doing wrong?I appreciate your support!
Mohammed Yasin, modified 4 Years ago.
RE: Override MVCRenderCommand for create_account
Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi ,
Try adding "service.ranking:Integer=1" in component propertyand try.
Try adding "service.ranking:Integer=1" in component propertyand try.