0

ZK MVVM Bind don't work

asked 2018-01-26 19:26:11 +0800

Ildelian gravatar image Ildelian
5 2

I have this simple ZK View and BindModel:

zkfiddle.org/sample/2pj12j3/1-ZK8-Bind-Don-t-Work

I am not able to load the form in to the Java variables.

When the view is renderer, you can see the @bind code in the input components, and if you try to write in the inputs, you receive this error:

"Illegal Syntax for Set Operation"

Any suggest? I don't see the error.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-29 02:04:52 +0800

ericksperandio gravatar image ericksperandio
55 5

Hi,

Your problem is that you are using single quotation marks in the @bind command. You must remove them.

Thus, your code should look like this:

...

<textbox value="@bind(vm.username)" />

...

<textbox value="@bind(vm.userpassword)" />

...

Hope this helps.

link publish delete flag offensive edit
Your answer
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: 2018-01-26 19:26:11 +0800

Seen: 14 times

Last updated: Jan 29