cancel
Showing results for 
Search instead for 
Did you mean: 

When modelObserver for currentObject is registered

0 Kudos

Hi,Does anyone know when the modelObserver is created for "currentObject"? It seems that the each attribute editor also has created one observer on the "currentObject".So when i click "update",all the editor of attributes are also reloaded?

rohit31_raj92
Active Participant
0 Kudos

Hi

If editor is bound to a property of the widget model it automatically registers itself as an observer of the widget model. It will be triggered automatically when the property of the widget model changes. For this you need a proper observer in your widget model.

You can register an model observer for a specific attribute. Your observer will be notified in case the change of the model was related to that attribute or a parent object (product code or the product in this case).so if observer is for specific attribute then either that attribute or parentobject will get to know. Please go through it, may be this helps you

https://wiki.hybris.com/display/release5/Storing+Data+Using+Widget+Model#StoringDataUsingWidgetModel...

Do

rohit31_raj92
Active Participant
0 Kudos

Hi Is this fixed now ?

Accepted Solutions (0)

Answers (0)