0

Form based @save not working with select mold listbox

asked 2012-08-10 06:58:56 +0800

davout gravatar image davout
1435 3 18

I'm using the a 'select' mold listbox in a form based ZUL data entry page, and an excerpt of the ZUL is shown below...

<groupbox form="@id('r') @load(vm.selectedResource) @validator(vm.formLevelValidator) @save(vm.selectedResource, before='save') "
					visible="@load(not empty vm.selectedResource)">
	<hlayout>
		<doublebox alue="@bind(r.periodQuantity)" cols="5" constraint="no negative" />
		<listbox mold="select" odel="@bind(r.periodIntervals)"	selectedItem="@bind(r.selectedPeriodInterval)">
			<listhead>
				<listheader sort="auto" />
					</listhead>
						<template name="model" var="t">
							<listitem>
								<listcell 	label="@load(t.title)" />
							</listitem>
						</template>
		 			</listbox>
		<checkbox 	label="Elapsed" checked="@bind(r.periodElapsed)" />
	</hlayout>



For some reason after the 'save' command is actioned the listbox 'r.selectedPeriodInterval' value is NOT being passed back to the 'vm.selectedResource' class.

Any ideas, or is this a bug?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-08-10 08:54:30 +0800

davout gravatar image davout
1435 3 18

Dumb... please ignore... just found the problem... the form level @save command had the wrong command name defined.

This is the one thing I hate about annotations, the lack of compiler checking to validate markup annotations.

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-10 06:58:56 +0800

Seen: 84 times

Last updated: Aug 10 '12

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