-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello ZK Users
I'm using MVVM pattern but I don't know how to use conditional evaluation of components, below is my problem:
I have zul file:
<zk>
and view model
public class LoginVM {
private boolean visibleButton;
@init
public void init() {
visibleButton=false;
}}
this solution work correct, but it is simple to uncover the button in browser for example in firebug:
button id="v8CP1" class="z-button-os" style="display:none;" type="button">Click me</button<>
so I'd like do something like:
<zk>
but it's not working if the value of visibleButton is 'true' or 'false' always the button is not created
please help
public class LoginVM {
private boolean visibleButton;
@init
public void init() {
visibleButton=false;
}
public boolean getVisibleButton() {
return this.visibleButton;
}
}
zull file:
<zk>
<button label="Click me" visible="@load(vm.visibleButton)"/>
</zk>
Asked: 2013-07-19 19:04:58 +0800
Seen: 113 times
Last updated: Jul 22 '13
MVVM Validator: class not found ? [closed]
Children Binding : UiException Callable only in the event listener
Attributes in macro was not updated after notifyChange
Problem binding values to a composite component
How to access static member field of a class in zul without zscript
How can i load a constant in .zul
MVVM tab box - delay @load until tab pane displayed?
mvvm, load or save with after or before for seach command
how to fire an event when a variable value loaded through VM