12 Aug 17:45
bug trying to extend baseformitem...
From: Paulo Scardine <paulo@...>
Subject: bug trying to extend baseformitem...
Newsgroups: gmane.comp.java.openlaszlo.user
Date: 2008-08-12 15:45:10 GMT
Subject: bug trying to extend baseformitem...
Newsgroups: gmane.comp.java.openlaszlo.user
Date: 2008-08-12 15:45:10 GMT
Hi all,
I would like to send some parameters to the backend while using a form component. I tried to use dataset.setQueryParam, but soon I learned that the submit.submit() will wipe any query parameter in the dataset. The I tried to include a hidden form component in the form, something like:
---------8<-----------------------------------------------------
<canvas>
<class name="hiddenfield" extends="baseformitem" />
<class name="xtd_form" extends="form">
<hiddenfield name="key" value=""/>
</class>
<xtd_form name="a">
<statictext text="test" />
<edittext width="200" name="bla" />
</xtd_form>
</canvas>
---------8<-----------------------------------------------------
This will fail with:
---------8<-----------------------------------------------------
Compilation Errors
Syntax error: the attribute value ended in mid-expression.
Look for an unclosed '(', '{', or '['.
---------8<-----------------------------------------------------
Apart from not showing any hint about the location of the offending code, the message itself is very misleading. How nasty!
How do you guys send hidden paramenters to the backend?
Thaks in advance,
--
Paulo
I would like to send some parameters to the backend while using a form component. I tried to use dataset.setQueryParam, but soon I learned that the submit.submit() will wipe any query parameter in the dataset. The I tried to include a hidden form component in the form, something like:
---------8<-----------------------------------------------------
<canvas>
<class name="hiddenfield" extends="baseformitem" />
<class name="xtd_form" extends="form">
<hiddenfield name="key" value=""/>
</class>
<xtd_form name="a">
<statictext text="test" />
<edittext width="200" name="bla" />
</xtd_form>
</canvas>
---------8<-----------------------------------------------------
This will fail with:
---------8<-----------------------------------------------------
Compilation Errors
Syntax error: the attribute value ended in mid-expression.
Look for an unclosed '(', '{', or '['.
---------8<-----------------------------------------------------
Apart from not showing any hint about the location of the offending code, the message itself is very misleading. How nasty!
How do you guys send hidden paramenters to the backend?
Thaks in advance,
--
Paulo
RSS Feed