AlfaTeK,
You are 100% doing MVVM. You don't wire textbox to your controller but set a variable that represents the src.
I have already reviewed a lot of code of people who where thinking doing MVVM and just keep on mixing MVC and MVVM.
(also congratz to use @load
and not @bind
, its logic but strange enough lot's of people use for almost everything @bind
)
A cleaner way isn't there but if you really want to do it in your zul you can use <zscript>
but personally for me thats just uglier.
Greetz chill.