I bet the bug is that the "value" attribute is declared as a default of
"expression" type, and thus needs *some* value instead of "". Try
value="null", for example, or " '' " (that's single quotes in double quotes)
if you need a zero length string rather than null.
Sorry about the error message, we need to improve the parser to be able to
report a location
instead of getting totally confused by missing value. Can you file a bug
with this example,
to improve the compiler error (if there isn't one already).
On Tue, Aug 12, 2008 at 11:45 AM, Paulo Scardine <[EMAIL PROTECTED]>wrote:
> 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
>
>
>
>
>
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]