image-buttons submit the x and y coordinate of the pixel the user
pressed. You need to add x and y as parameters to your controller -
which the error-message indicates (well, it indicates the x, and you'd
get a similar error with y once the x is added...)
Diez
That's the way HTML works, it's not specific to TG.
> The error message is a form error, not a controller error. Adding x
> and y parameters to the controller (per your instructions) doesn't
> seem to work. However, if I set x & y to a HiddenField() in the form
> class it does seem to submit correctly.
>
> Is specifying x and y as a HiddenField() the recommended setting with
> ImageButton()?
Ah, sorry, yes, setting them as hidden fields is ok. But you'd still need
them on the controller then.
We added a middleware that just strips them from the request before they get
processed, because we never use them.
Diez
http://paste.turbogears.org/paste/104758
Diez