-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a problem when changing objects under a if tag or using different templates. When changing between different object to visualize, it seems it asks for a field before changing the template, giving an error.
I have made a simple fiddle:
http://zkfiddle.org/sample/1lksidj/1-Switching-object-under-if-tag
Is it a bug? Are there workarounds to avoid this problem?
ZK-4221 looks like the same case as yours. Could you upgrade to 8.6.2?
You need to notify the data binding expressing at <if>
, so that it will replace the inner <label>
Please see http://zkfiddle.org/sample/1lksidj/4-Switching-object-under-if-tag
Asked: 2019-07-04 16:28:26 +0800
Seen: 10 times
Last updated: Jul 08 '19
[Announcement] ZK 8.5.1 is now available!
Highlight new release changes/new features in demo app
How can I make a button change its image by clicking on the same button?
Problems calling function 'sec:isAnyGranted' with zkspring 3.2 and Spring Security 4
webapp folder of ZK spring boot?
Can I set in runtime a new value to library property: org.zkoss.zk.ui.processMask.enabled:
Package ZK Eclipse Tomcat Project For Deployment
AImage org.zkoss.zk.ui.UiException: java.io.FileNotFoundException
Thanks @hawk for the answer, but your solution doesn't notify selectedItem (if I use the item outside the if, it will not update the reference). I have tried notify both but it still gives me an error. I see that ZK version 8.6.2 has a fix for ZK-4221, and the fiddle doesn't throw an error.
MaurizioB ( 2019-07-05 15:10:35 +0800 )edit