I broke car selector sample :-)
Problem is that when you assign / bind initial values to the form, <on-value-change/> events are not fired, and form ends up in the inconsistent state. Quick hack I used to fix this was to make Form.fireWidgetEvents method public and call it directly from the flow/action to make sure that all is ok; but this is clearly a hack and I'd like to hear "expert opinion" on the subject.
Thanks, Vadim
-------- Original Message -------- Subject: cvs commit: cocoon-2.1/src/blocks/woody/samples/forms car-db.xml Date: 29 Dec 2003 13:47:31 -0000 From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED]
<snip/>
function selectCar() { var form = new Form("forms/carselector_form.xml"); + form.getWidget("make").setValue(cocoon.parameters.defaultMake); form.showForm("carselector-display-pipeline"); cocoon.request.setAttribute("carselectorform", form.getWidget()); cocoon.sendPage("carselector-success-pipeline.xsp");
<snip/>
