Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Shankar Baba
User registration details are sent to ActionClass
April 18, 2013 4:11 AM
Answer

Shankar Baba

Rank: Regular Member

Posts: 144

Join Date: October 17, 2012

Recent Posts

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.
Joaquin Cabal
RE: User registration details are sent to ActionClass
April 18, 2013 5:26 AM
Answer

Joaquin Cabal

Rank: Junior Member

Posts: 49

Join Date: September 7, 2009

Recent Posts

The action class is CreateAccountAction.java and the location is in the package: com.liferay.portlet.login.action. (portal-impl.jar)

Regards
Shankar Baba
RE: User registration details are sent to ActionClass
April 22, 2013 2:38 AM
Answer

Shankar Baba

Rank: Regular Member

Posts: 144

Join Date: October 17, 2012

Recent Posts

Thanks cabal for your quick reply.can u tell me how can i override this class, to add new properties for user registration .
Manish Yadav
RE: User registration details are sent to ActionClass
April 21, 2013 11:17 PM
Answer

Manish Yadav

Rank: Expert

Posts: 384

Join Date: May 26, 2012

Recent Posts

if you want to override action class you can do using EXT ..Could you give a brief idea what you want to overriede
Shankar Baba
RE: User registration details are sent to ActionClass
April 21, 2013 11:32 PM
Answer

Shankar Baba

Rank: Regular Member

Posts: 144

Join Date: October 17, 2012

Recent Posts

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.
Joaquin Cabal
RE: User registration details are sent to ActionClass
April 22, 2013 6:16 AM
Answer

Joaquin Cabal

Rank: Junior Member

Posts: 49

Join Date: September 7, 2009

Recent Posts

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!