You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christofer Dutz <du...@c-ware.de> on 2005/05/21 17:58:33 UTC
CForms submitId doesn't work when submiting from button without label
Hi,
I was experinmenting with different submit buttons on my forms. I didn't
bother given the buttons Labels and this resulted in the form.submitId
parameter beeing set to null. After giving the button a title everything
worked fine ... is there a reason for this?
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: CForms submitId doesn't work when submiting from button without
label
Posted by Sylvain Wallez <sy...@apache.org>.
Christofer Dutz wrote:
> Hi,
>
> I was experinmenting with different submit buttons on my forms. I
> didn't bother given the buttons Labels and this resulted in the
> form.submitId parameter beeing set to null. After giving the button a
> title everything worked fine ... is there a reason for this?
Hmm... if you don't set a label, this produces a <input type="submit"
name="foo"> with no value attribute. As the "foo=value" parameter is
used to find the action that triggered the action, that's why it isn't
recognized.
Now the code tests that parameter exists and has a non-empty value. Just
checking that it exists is actually enough and would solve your problem.
I'll fix this.
Sylvain
--
Sylvain Wallez Anyware Technologies
http://apache.org/~sylvain http://anyware-tech.com
Apache Software Foundation Member Research & Technology Director
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org