How to use one controller to both xml files

Hi,

While using one controller for 2 xml files in cuba studio, It is checking every method in the
public void init(Map<String, Object> params) { … }
in 2 xml files.
How can I call only few methods for 1st xml file and other methods for 2nd xml file from init() in Controller.

Thanks!!

Hi,

I wouldn’t recommend using one controller for anything more complicated than just an empty class. Delegate common tasks from multiple controllers to a separate bean or class. Or use Frames to encapsulate common layout and logic.