-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi there,
The real scenario I've come across with this strange effect is rather complicated, but it can be easily reproduced on the ZK Live Demo with the following snippet:
<zk> <zscript> ListModelArray lma = new ListModelArray( new Object[] { "a", "b", "c" } ); ListitemRenderer lir = new ListitemRenderer() { public void render( Listitem item, java.lang.Object data ) { new Listcell( ( ( String ) data ).toUpperCase() ).setParent( item ); item.setValue( data ); } } </zscript> <listbox id="list" width="200px" itemRenderer="${lir}" model="${lma}" /> <button label="Klikk!" onClick='list.getChildren().get( 2 ).getChildren().get( 0 ).setLabel( "D" )' /> </zk>
Clicking the button will set up the label of the third list item as 'D', as expected. If you add 'mold="select"' to the list's attributes it won't, even if you select item 'C' before doing so.
From my private tests I can tell every item is loaded after changing the label. No list item or cell seems to be invalidated.
I'm of course using ZK 5.0.1, just as I guess the zk online demo does. Both FF3.6.3 and IE8 behave the same.
Any idea?
With kind regards
César Varona
Asked: 2010-05-11 10:47:52 +0800
Seen: 220 times
Last updated: May 13 '10