Hi Frederico, Nope, this doesn't work either. :-(
I've now extended AbstractRepositoryAction rather than AbstractAction. Looking at the code though, I don't think this makes any difference if the action opens a dialog. If the action directly changes the content, then the AbstractRepositoryAction fires an event when onExecute() completes. But if the action just opens a dialog, the content isn't changed yet (wait for onSuccess of the dialog), so sending the event from execute() in AbstractRepositoryAction would be too early... So we can send the same event from the onSuccess method of the dialog we're opening. However, this *still* does not work because, as mentioned, the pagesEditorSubApp apparently does not react to the ContentChangeEvents... Regards from Vienna, Richard > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:user-list-owner@magnolia- > cms.com] Im Auftrag von federico grilli (via Magnolia Forums) > Gesendet: Freitag, 07. Februar 2014 16:35 > An: Magnolia User List > Betreff: [magnolia-user] Re: 'Refreshing' a contentapp > > Hi, > > you might want to extend AbstractRepositoryAction instead of > AbstractAction. This will fire a ContentChangedEvent after a successful > execution. Such event is handled by > info.magnolia.ui.contentapp.browser.BrowserPresenter which in turn will > call info.magnolia.ui.workbench.WorkbenchPresenter.refresh(). The latter is > the magic method doing the workbench visual update. > > HTH, > > Federico > > -- > Context is everything: http://forum.magnolia- > cms.com/forum/thread.html?threadId=4ac3261f-9e28-4546-a32d- > cdc561af07bf > > > ---------------------------------------------------------------- > For list details, see http://www.magnolia-cms.com/community/mailing- > lists.html > Alternatively, use our forums: http://forum.magnolia-cms.com/ > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
