0

ListBox's converters problem

asked 2012-08-20 12:55:39 +0800

kahuna gravatar image kahuna
6

Hello.

I'm using ZK5. I have searched forum for this problem's solution and haven't found nothing similar.

	<MyListBoxImplementation id="types" labelCode="client.type"
		model="@{editWindowCtrl.typesValues, converter='my.converters.MyListModelConverter'}"
		selectedItem="@{editWindowCtrl.editBean.type, converter='my.converters.SelectedItemConverterExt', save-when='types.onSelect', access='both'}">
		<listitem self="@{each='type'}" label="@{type.name}" />
	</MyListBoxImplementation>

The problem is that model converter is always called after selectedItem converter. Because of this ListBox element does never selects proper ListItem (when selectedItem converter is called ListBox item list is still empty - no call for model converter yet).

Any ideas?
Any help will be much appreciated.

Regards.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-08-21 20:49:21 +0800

tisaksen gravatar image tisaksen
44 5

I wanna know too, this is currently stopping production of many many apps!

link publish delete flag offensive edit
Your reply
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: 2012-08-20 12:55:39 +0800

Seen: 108 times

Last updated: Aug 21 '12

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