on 06-23-2009 3:02 PM
Hallo Experts,
Is there a possibility to call a method of View(Controler) from the ComponentController ? Component is still the same.
Greetings
Wojciech
Hi Wojciech,
as already said by Gopi, the methods of the view should not be called outside the view! Of course you could store a reference to the view inside the comp_controller, but the right way is to inform the the views in case of changes! Just use events to notify view about changes and trigger changes inside the event-handler (which are inside the views).
Best regards,
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Method declared in the view are private, where as methods declared in the comp controller are public. So a method declared in view cannot be accessed from outside of the view.
Thansk,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.