Guten Tag Sven Meier,
am Donnerstag, 25. Juni 2020 um 23:41 schrieben Sie:

> for a normal form submit the browser should send "bcdHistory.upload" as
> post parameter.

That's what one can read at some places, but my inputs of type
"submit" are not POSTed in different browsers. Neither with nor
without a "name" attribute. Even the official docs don't use any 
"name" at all:

> <form ...>
>     <input type="submit" wicket:id="okbutton" value="OK" />
>     <input type="submit" wicket:id="cancelbutton" value="Cancel" />
> </form>

My HTML is pretty much the same, only more bloated because of my use
case:

> <form action="#"
>               method="post"
>               accept-charset="UTF-8"
>               wicket:id="realEstates.fmInstallTest">
>       [...]
>       <p>
>               <input  type="submit"
>                               name="barfoo"
>                               value="Start installation test"
>                               title="Start installation test"
>                               
> wicket:message="value:submit.value,title:submit.title"
>               />
>               <input  type="reset"
>                               value="Clear inputs"
>                               title="Clear inputs"
>                               
> wicket:message="value:reset.value,title:reset.title"
>               />
> 
>               <wicket:enclosure>
>                       <input  type="hidden"
>                                       name="hidden_foobar"
>                                       value="Upload basic claims data"
>                       />
>                       <input  type="submit"
>                                       name="foobar"
>                                       value="Upload basic claims data"
>                                       title="Upload basic claims data"
>                                       wicket:id="bcdHistory.upload"
>                                       
> wicket:message="value:bcdHistory.upload.value,title:bcdHistory.upload.title"
>                       />
>                       [...]
>               </wicket:enclosure>
>       </p>
> </form>

"reset" is not send as expected, but neither of the "submit"s are as
well. No matter if they contain an explicit "name" or not. I guess
because of the URL Wicket forwards to the main form "onSubmit" always,
so I didn't recognize any problems in the past.

The hidden input OTOH gets instantly POSTed as expected after adding
it. I can change names across requests and that is reflected in the
POSTed form data instantly as well. I even deleted any web server
caches and restarted that regularly already. It additionally doesn't
make any difference of both "submit" are Wicket-components are the
default one is plain HTML.

How should HTML look like that "submit" gets send in the POST-body?

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to