0

Setting new item renderer does not refresh Selectbox

asked 2015-01-28 22:19:03 +0800

cotupha gravatar image cotupha
23 5

updated 2015-01-29 10:15:57 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

Since upgrading to zk 7.0.4 I am having an issue with selectboxes.

Before, after setting a new renderer, the selectbox would be automatically redrawn, applying the new renderer.

Since 7.0.4, the selectboxes do not apply the change immediately. I have tried using selectbox.invalidate() right after setting the new renderer, but it does not help.

Here is a fiddle illustrating the issue: http://zkfiddle.org/sample/3pc011e/11-Selectbox-rendering

It's very simple: the initial renderer always shows "render1". After you click on "Change renderer", it will set a renderer that always shows "render2".

If you run it with 6.5.5, all the items will be automatically re-rendered. If you run it with 7.0.4, they will not. I think the problem starts in 6.5.7.

What can I do?

Thanks, Laura.

Edit for bugtracker link : http://tracker.zkoss.org/browse/ZK-2607.

delete flag offensive retag edit

Comments

try making a fiddle and post a bug report, give in the report the fiddle link and version what work and version what doesn't work. (in fiddle you can test different versions)

chillworld ( 2015-01-28 22:30:52 +0800 )edit

Thanks, @chillworld, I will.

cotupha ( 2015-01-28 22:37:43 +0800 )edit

@chillworld, I just created the fiddle and edited my question to include the link. I also posted a bug http://tracker.zkoss.org/browse/ZK-2607. What can I do while this gets fixed?

cotupha ( 2015-01-28 23:18:41 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-01-29 10:14:58 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

I should temporary downgrade to ZK 7.0.2 until the bugreport is set to solved.

As I tested the fiddle, the issue is there from ZK 7.0.3 and later.

Greetz chill.

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
1 follower

RSS

Stats

Asked: 2015-01-28 22:19:03 +0800

Seen: 25 times

Last updated: Jan 29 '15

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