0

MVVM "inside" MVC issues

asked 2014-08-14 11:46:01 +0800

aplusp87 gravatar image aplusp87
1

Hello to everybody, I'm having issues with cohexistence between MVVM pattern and MVC pattern. I have a .zul windows MVC that dinamically create components to draw itself.One of these components is a MVVM zul and it is created by "Executions.createComponent(...)". The problem is that the binding inside this zul is not working (the method init() is called instead). Any suggestion? thanks!

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2014-08-14 12:50:10 +0800

chillworld gravatar image chillworld flag of Belgium
5337 4 9
https://github.com/chillw...

Maybe stupid to begin with but have you tested the mvvm page without the creation through Executions.createComponents(...);?

Second :

public void init(){}

Is not enough, you must anotate the init method with @Init

@Init
public void whatEverYouWantToCallTheInitMethod(){}

For the rest, we'll need more details (creation of your zul, the mvvm zul itself and the viewmodel) to go in depth.

Greetz chill.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-08-14 11:46:01 +0800

Seen: 9 times

Last updated: Aug 14 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More