0

Zk Listbox onAfterRender which items are render?

asked 2016-07-28 21:21:20 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

I have a listbox which sometimes when is loaded or listitem interchange or added a new listitem a onAfterRender method is call this is great i was wonder how can i do to retrieve the listitem being render on the event. I would like something like this

@Listen("onAfterRender=#results")
public void results_onAfterRender(final RenderEvent event){
     final Set set = event.getItems();//this is what i want 
     handleIt(set);
}

Thanks a lot.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-31 08:43:19 +0800

Darksu gravatar image Darksu
1991 1 4

Hello javiut,

I guess you have a reason for waiting the onAfterRender in order to get the item, since the item once is added is essentially what you want!

Best Regards,

Darksu

link publish delete flag offensive edit

Comments

no just added sometimes model.set(index,object) is set but sometimes i dont know which listitems being render at the time would be nice just by retrieving the getitems from the event get those listitems easily

javiut ( 2016-08-05 11:36:25 +0800 )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: 2016-07-28 21:21:20 +0800

Seen: 42 times

Last updated: Jul 31 '16

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