Hi Thorsten,

Thorsten Scherler schrieb:
I noticed in a module I am currently developing that the getView() from
AbstractUsecase are called multiple times. I am not sure why but it
feels like a bug that it is called more then once.
I tried to debug and counted that the method is invoked 6 times.

the reason for this is that Usecase.getView() is called by the MenuFilterTransformer because it needs the area information (which is the tab group for the admin area).

I have now introduced a method Usecase.setupView(). AbstractUsecase.setupView() calls prepareView(). This way, it is only called once, just before the view is presented to the user.

The change should be fully backwards compatible.

Would you mind doing an SVN update and trying it again?

TIA!

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to