0

if tag and apply template error when switching between objects

asked 2019-07-04 16:28:26 +0800

MaurizioB gravatar image MaurizioB
3 2

updated 2019-07-05 09:15:14 +0800

hawk gravatar image hawk
2400 1 5
http://hawkphoenix.blogsp... ZK Team

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?

delete flag offensive retag edit

Comments

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

2 Answers

Sort by ยป oldest newest most voted
0

answered 2019-07-08 09:25:07 +0800

hawk gravatar image hawk
2400 1 5
http://hawkphoenix.blogsp... ZK Team

ZK-4221 looks like the same case as yours. Could you upgrade to 8.6.2?

link publish delete flag offensive edit
0

answered 2019-07-05 11:55:20 +0800

hawk gravatar image hawk
2400 1 5
http://hawkphoenix.blogsp... ZK Team

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

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

RSS

Stats

Asked: 2019-07-04 16:28:26 +0800

Seen: 10 times

Last updated: Jul 08

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