Fórumok
Hook My Account Portlet
Syed Umair, módosítva 11 év-val korábban
Hook My Account Portlet
Junior Member Bejegyzések: 36 Csatlakozás dátuma: 2012.10.11. Legújabb bejegyzések
Hi,
I want to perform some actions on change of Custom Fields available to user in My Account Portlet. I know it requires me to implement hook, but I don't know which file or service to hook. Can anyone guide me in this regard that how can I hook this portlet, so that I can perform required action whenever a user changes the custom field.
Any valuable comment will be appreciated.
Umair
I want to perform some actions on change of Custom Fields available to user in My Account Portlet. I know it requires me to implement hook, but I don't know which file or service to hook. Can anyone guide me in this regard that how can I hook this portlet, so that I can perform required action whenever a user changes the custom field.
Any valuable comment will be appreciated.
Umair
David H Nebinger, módosítva 11 év-val korábban
RE: Hook My Account Portlet
Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Why do that when you could just add a model listener to intercept updates?
Syed Umair, módosítva 11 év-val korábban
RE: Hook My Account Portlet
Junior Member Bejegyzések: 36 Csatlakozás dátuma: 2012.10.11. Legújabb bejegyzésekDavid H Nebinger:
Why do that when you could just add a model listener to intercept updates?
I have no idea about model listener. So, can you explain me a little that how could I detect change in custom fields using model listener.
Syed Umair, módosítva 11 év-val korábban
RE: Hook My Account Portlet
Junior Member Bejegyzések: 36 Csatlakozás dátuma: 2012.10.11. Legújabb bejegyzések
Hey David, I have implemented the Model Listener for User to detect changes in Custom Attribute. But I get same Expando Values in onBeforeUpdate(User) and onAfterUpdate(User) methods. I am not sure that did expando changes reflect that user is updated??
Syed Umair, módosítva 11 év-val korábban
RE: Hook My Account Portlet
Junior Member Bejegyzések: 36 Csatlakozás dátuma: 2012.10.11. Legújabb bejegyzések
Does anyone know the solution for my problem???
Syed Umair, módosítva 11 év-val korábban
RE: Hook My Account Portlet (Válasz)
Junior Member Bejegyzések: 36 Csatlakozás dátuma: 2012.10.11. Legújabb bejegyzések
I have implemented the Model Listener for ExpandoValue. Now, I am unable to get old values in onBeforeUpdate() method. can anyone suggest me how to get old values for my expando?
Syed Umair, módosítva 11 év-val korábban
RE: Hook My Account Portlet (Válasz)
Junior Member Bejegyzések: 36 Csatlakozás dátuma: 2012.10.11. Legújabb bejegyzések
In case anyone else interested, I have get old data by
ExpandoValueLocalServiceUtil.getData()
method