Hi,
I'm developing complex UI application with several forms and widgets. The behaviour of the UI heavily depend on user rights, i.e. editors should see more widgets and forms than viewers, and admin should see all UI elements. Moreover, forms must be customized also. There is no actual problem with the layout, since layout could be customized via user dependent configurations. The main problem is form customization and behaviour customization, especially when the behaviour is rather complex.
If we start to use event-listener communication, this will possibly result in a chaos in the code (lots of IF / SWITCH constructions and so on).
So I would like to ask if there exist some information about best practices, patterns, books and useful examples.
Thank you!