hi philipp,
the error message seems quite clear, you have to supply a boolean value (true or false) to a booleanfield. if you did that it's maybe a javascript-java-interaction problem. can you post the actual code that generated the error message ? from below i can only see you try to set the field "test" to a non-instantiated javascript variable ...
greetings, johannes
Philipp Rech wrote:
sorry i was too fast... the solution
var test;
form = new Form("my-form.xml"); wid = form.lookupWidget("test"); wid.setValue(test);
form.showForm("registration-display-pipeline"); var test = cocoon.request.test;
only works fine with input field widgets but not with booleanfield
widgets. There i get an error:
java.lang.RuntimeException: Cannot set value of boolean field "test" to a non-Boolean value.
Same as with the text field i use it to figure out if it has been "changed" before and redisplay its old value... all to solve my multi page from problem.... user has enterd a falue in page 2 and submitetd it then goes back to page 1 and changes something and submits page one. now i want page 2 to be displayed again but with the data entered before!
thanks again! phil
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
