From: Vinay M. <vin...@gm...> - 2004-11-19 04:09:52
|
Hi Chris, Yes, it is infact mybutton and not mysubmit that's getting sent. Browsers would typically send mysubmit across. Looks like this particular function of HtmlForm is flagging off an input tag of the type "submit" as not-submittable..... private boolean isSubmittable( final HtmlElement element ) { <some code> if( tagName.equals( "input" ) ) { final HtmlInput input = (HtmlInput)element; final String type = input.getTypeAttribute().toLowerCase(); if( type.equals("submit") || type.equals("image") ){ return false; } } <some code> } This code snippet is from the 1.3 final release. As far as the issue of input tag being of the kind button (the <name,value> pair associated wih an input tag of the type button, was being sent across during submission) , I got around it by replacing the nested if in the code snippet above with: if( type.equals("submit") || type.equals("image") || type.equals("button")) { return false; } Regards Vinay |