Forums de discussion

Parameters in ActionRequest

thumbnail
Andew Jardine, modifié il y a 13 années.

Parameters in ActionRequest

Liferay Legend Publications: 2416 Date d'inscription: 22/12/10 Publications récentes
Hi Guys,

Can someone tell is if it is possible to dynamically add items to the parameters map that is part of the ActionRequest? What I am trying to do it inject a username and password value in the process action method, prior to the login process occurring. I don't want to prepopulate the values in the view.

Can anyone tell me if this is possible?

A.
thumbnail
jelmer kuperus, modifié il y a 13 années.

RE: Parameters in ActionRequest

Liferay Legend Publications: 1191 Date d'inscription: 10/03/10 Publications récentes
I don't think so, but you could create an ActionFilter that wraps the ActionRequest with a class extending from ActionRequestWrapper. That class could "lie" about the parameters it received.