-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have simple macro and page with this macro.
Macro:
<textbox id="${arg.id}"
value="${arg.value}"
onDoubleClick="@command('doSomething')" />
Page:
<?component name="textboxC" macroURI="/pages/component/textboxComp.zul"?>
<zk>
<window self="@{define(content)}" border="none" id="myWindow"
apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('viewModel.MyVM')" >
...
<textboxC id="myId1" hflex="1"
value="@bind(vm.definition)" />
...
<textboxC id="myId2" hflex="1"
value="@bind(vm.definition2)" />
</zk>
If property definition is changed in VM (and notifyChange trigered), value in macro is not updated.
If is textbox directly inside my page and [email protected](vm.definition), anything is OK, value is updated (after notifyChange).
Can I use dynamic attribute inside of macro component?
Asked: 2014-02-20 13:55:25 +0800
Seen: 12 times
Last updated: Feb 21 '14
MVVM Validator: class not found ? [closed]
Id attribute set in zul code doesn't reflect in html code? [closed]
Conditional evaluation component in mvvm
passing present viewmodel to included page. [closed]
Upload Button dosn't work on chrome
How to handle big (large) file upload?
Children Binding : UiException Callable only in the event listener
You can use dynamic attribute BUT it do not do what you want. You can't change them from your marco component.(read-only)
chillworld ( 2014-02-21 07:38:10 +0800 )edit