Revision history [back]

click to hide/show revision 1
initial version

answered 2020-05-06 12:00:19 +0800

hawk gravatar image hawk

http://hawkphoenix.blogsp... ZK Team

Although <z:label value="@load(state.type)" /> is put among HTML elements, it's still a ZK component. So you can make it update with ZK. Since state comes from a collection:

<forEach items="@init(vm.states)">

You can notify a state's change in the following ways: * if you just change one state object:

BindUtils.postNotifyChange(null, null, state, "type"); * call methods of ListModelList e.g. add(), remove()

Although <z:label value="@load(state.type)" /> is put among HTML elements, it's still a ZK component. So you can make it update with ZK. Since state comes from a collection:

<forEach items="@init(vm.states)">

You can notify a state's change in the following ways: * ways:

  • if you just change one state object:

BindUtils.postNotifyChange(null, null, state, "type");

*
  • call methods of ListModelList e.g. add(), remove()

If the above suggestions don't fit your case. Please post more details include related java ViewModel or a reproducible example. So that we can know how you notify the change of states.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More