Fórum

User registration details are sent to ActionClass

thumbnail
Sri Sri, modificado 10 Anos atrás.

User registration details are sent to ActionClass

Regular Member Postagens: 143 Data de Entrada: 18/10/12 Postagens Recentes
Hi, Can any body tell me to which action class user registration fields are posted to , and the location of the action class.
Thanks in advance.
thumbnail
Joaquin Cabal, modificado 10 Anos atrás.

RE: User registration details are sent to ActionClass

Regular Member Postagens: 106 Data de Entrada: 07/09/09 Postagens Recentes
The action class is CreateAccountAction.java and the location is in the package: com.liferay.portlet.login.action. (portal-impl.jar)

Regards
thumbnail
Sri Sri, modificado 10 Anos atrás.

RE: User registration details are sent to ActionClass

Regular Member Postagens: 143 Data de Entrada: 18/10/12 Postagens Recentes
Thanks cabal for your quick reply.can u tell me how can i override this class, to add new properties for user registration .
thumbnail
Manish Yadav, modificado 10 Anos atrás.

RE: User registration details are sent to ActionClass

Expert Postagens: 493 Data de Entrada: 26/05/12 Postagens Recentes
if you want to override action class you can do using EXT ..Could you give a brief idea what you want to overriede
thumbnail
Sri Sri, modificado 10 Anos atrás.

RE: User registration details are sent to ActionClass

Regular Member Postagens: 143 Data de Entrada: 18/10/12 Postagens Recentes
Hi Manish ,my actual requirement is while adding a user from control panel i need to show one more field called approver, which is a drop down(which contains existing users list), so that i can get the user id of that user, for this what i have to do?and one more thing for user registration if i modify create_account.jsp by hooks, my registration page is not getting modified, but if i change the details.jsp then it is getting changed, if details.jsp is correct page to add new field then to which action class it is getting posted?please clear my doubt, thanks in advance.
thumbnail
Joaquin Cabal, modificado 10 Anos atrás.

RE: User registration details are sent to ActionClass

Regular Member Postagens: 106 Data de Entrada: 07/09/09 Postagens Recentes
Hi Sri,
If you want to override the action class for the registration (CreateAccountAction) , you need to do 2 things:

1) Create a hook ayou said to override the jsp file (in this case details.jsp), so you can add the new field
2) Create an EXT plugin, so from there you can override the CreateAccountAction, and get the new Attribute value.
You can see this page for the EXT: http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-an-ext-plug-4

Regards!