# Revision history [back]

I created a running example on zkfiddle (please be sure to select ZK 8.0.3)

http://zkfiddle.org/sample/6s7puk/1-initialize-form-proxy-in-VM

Next time it will help if you can provide a SIMPLE running example so I can just fix the missing bits.

Besides in your example you forgot to add the @init in the form binding.

I created a running example on zkfiddle (please be sure to select ZK 8.0.3)

http://zkfiddle.org/sample/6s7puk/1-initialize-form-proxy-in-VM

Next time it will help if you can provide a SIMPLE running example so I can just fix the missing bits.

Besides in your example you forgot to add the @init in the form binding.binding. If forgotten it will of course create a new FormProxy

Yes it work much simpler than in ZK 7 (i.e. different)

I created a running example on zkfiddle (please be sure to select ZK 8.0.3)

http://zkfiddle.org/sample/6s7puk/1-initialize-form-proxy-in-VM

Next time it will help if you can provide a SIMPLE running example so I can just fix the missing bits.

Besides in your example you forgot to add the @init in the form binding. If forgotten it will of course create a new FormProxy

Yes it work much simpler than in works a little different compared to ZK 7 (i.e. different)7.

I created a running example on zkfiddle (please be sure to select ZK 8.0.3)

http://zkfiddle.org/sample/6s7puk/1-initialize-form-proxy-in-VM

Next time it will help if you can provide a SIMPLE running example so I can just fix the missing bits.

Besides in your example you forgot to add the @init @init(vm.pojoForm) in the form binding. If forgotten it will of course create a new FormProxy

FormProxy and can't use the pre initialized form in your VM.

Also I suggest using @Init instead of @AfterCompose. @Init will be called before the children are created. @AfterCompose will be called after the children are created. In MVVM you usually try to be independen of components so @AfterCompose is necessary less commonly.

I hope this helps. If not please update the fiddle example to show exactly where the problem is.

Robert

Yes it works a little different compared to ZK 7.7. (I'd argue it's simpler now. ;) )

I created a running example on zkfiddle (please be sure to select ZK 8.0.3)

http://zkfiddle.org/sample/6s7puk/1-initialize-form-proxy-in-VM

Next time it will help if you can provide a SIMPLE running example so I can just fix the missing bits.

Besides in your example you forgot to add the @init(vm.pojoForm) in the form binding. If forgotten it will create a new FormProxy and can't use the pre initialized form in your VM.

Also I suggest using @Init instead of @AfterCompose. @Init will be called before the children are created. @AfterCompose will be called after the children are created. In MVVM you usually try to be independen of components so @AfterCompose is necessary less commonly.

I hope this helps. If not please update the fiddle example to show exactly where the problem is.

Robert

Yes it works a little different compared to ZK 7. (I'd argue it's simpler now. ;) )

I created a running example on zkfiddle (please be sure to select ZK 8.0.3)

http://zkfiddle.org/sample/6s7puk/1-initialize-form-proxy-in-VM

I noticed I had to call ProxyHelper.createFormProxy(...); instead of ProxyHelper.createProxyIfAny(...); (my bad, I mixed it up when answering out of my head - Next time it will help be more efficient if you can provide a SIMPLE and running example so I can just fix fix/add the missing bits.

Besides in your example you forgot to add the @init(vm.pojoForm) in the form binding. If forgotten it will create a new FormProxy and can't use the pre initialized form in your VM.

Also I suggest using @Init instead of @AfterCompose. @Init will be called before the children are created. @AfterCompose will be called after the children are created. In MVVM you usually try to be independen of components so @AfterCompose is necessary less commonly.

I hope this helps. If not please update the fiddle example to show exactly where the problem is.

Robert

Support Options
• Email Support
• Training
• Consulting
• Outsourcing