Hi,
I have 3 nested forms inside main wrapper form. The idea is, each panels
have their own forms, just in case one wanted to use the panels
individually. And when used inside 1 bigger scope page individual forms will
be nested inside the bigger scoped (main form).
I have a submit button on the main form and have a debug statement printed
to indicate the form was submitted. Surprisingly there is no output both on
onsubmit of the button as well as on the form, indicating neither I getting
called. I put debug statements inside individual forms too to see if any one
of them was getting submitted. But thats not happening either. When hit
save, the page comes back and shows filled values.
Apologize for the longer HTML but here is the actual HTML
<form
action="?wicket:interface=:9:userRegistrationForm:5:IFormSubmitListener::"
method="post" id="userRegistrationForm23"><div style="display:none"><input
type="hidden" name="userRegistrationForm23_hf_0"
id="userRegistrationForm23_hf_0" /></div>
<div>
<div class="fixedWidthTitle">Username and Password</div>
<div id="userLoginInfoForm24">
<div>
<div>
Your email address: <input value="[EMAIL PROTECTED]"
maxlength="100"
type="text"
name="userLoginInfoPanel:userLoginInfoForm:emailBorder:userLoginId"/>
</div>
<div>
</div>
</div>
<div>
<div>
Password: <input value="" maxlength="100" type="password"
name="userLoginInfoPanel:userLoginInfoForm:passwordBorder:currentPassword"/>
</div>
<div>
</div>
</div>
<div>
<div>
Please confirm your password: <input value=""
maxlength="100"
type="password"
name="userLoginInfoPanel:userLoginInfoForm:confirmPasswordBorder:confirmPassword"/>
</div>
<div>
</div>
</div>
</div>
</div>
<div class="fixedWidthTitle">User Contact Information</div>
<div>
<div id="contactInfoForm25">
<div>
<div>
Your Home phone number:
<input value="1" maxlength="3" type="text"
name="userContactInfoPanel:contactInfoForm:homePhoneBorder:hCountryCode"/>-
<input value="" maxlength="3" type="text"
name="userContactInfoPanel:contactInfoForm:homePhoneBorder:hAreaCode"/>-
<input value="" maxlength="4" type="text"
name="userContactInfoPanel:contactInfoForm:homePhoneBorder:hContactNumber"/>
</div>
<div>
</div>
</div>
<div>
<div>
Your Business phone number:
<input value="1" maxlength="3" type="text"
name="userContactInfoPanel:contactInfoForm:businessPhoneBorder:bCountryCode"/>-
<input value="408" maxlength="3" type="text"
name="userContactInfoPanel:contactInfoForm:businessPhoneBorder:bAreaCode"/>-
<input value="1234" maxlength="4" type="text"
name="userContactInfoPanel:contactInfoForm:businessPhoneBorder:bContactNumber"/>
</div>
<div>
</div>
</div>
<div>
<div>
Your fax number:
<input value="" maxlength="3" type="text"
name="userContactInfoPanel:contactInfoForm:faxNumberBorder:fCountryCode"/>-
<input value="" maxlength="3" type="text"
name="userContactInfoPanel:contactInfoForm:faxNumberBorder:fAreaCode"/>-
<input value="" maxlength="4" type="text"
name="userContactInfoPanel:contactInfoForm:faxNumberBorder:fContactNumber"/>
</div>
<div>
</div>
</div>
<div>
<div>
Your Mobile number:
<input value="" maxlength="3" type="text"
name="userContactInfoPanel:contactInfoForm:mobileNumberBorder:mCountryCode"/>-
<input value="" maxlength="3" type="text"
name="userContactInfoPanel:contactInfoForm:mobileNumberBorder:mAreaCode"/>-
<input value="" maxlength="4" type="text"
name="userContactInfoPanel:contactInfoForm:mobileNumberBorder:mContactNumber"/>
</div>
<div>
</div>
</div>
</div>
</div>
<div class="fixedWidthTitle">Shipping Address</div>
<div>
<div id="addressForm26">
<div id="parentContainer27">
<div>
Title:
<select
name="shippingAddressPanel:addressForm:parentContainer:salutation">
<option selected="selected" value="0">Mr.</option>
<option value="1">Mrs.</option>
<option value="2">Ms.</option>
<option value="3">Dr.</option>
</select>
</div>
<div>
<div>
First name:
<input value="Ritesh" maxlength="100" type="text"
name="shippingAddressPanel:addressForm:parentContainer:firstnameBorder:firstname"/>
</div>
<div>
</div>
</div>
<div>
<div>
Last name:
<input value="Trivedi" maxlength="100" type="text"
name="shippingAddressPanel:addressForm:parentContainer:lastnameBorder:lastname"/>
</div>
<div>
</div>
</div>
<div>
<div>
Address1:
<input value="12343 " maxlength="100" type="text"
name="shippingAddressPanel:addressForm:parentContainer:address1Border:address1"/>
</div>
<div>
</div>
</div>
<div>
Address2:
<input value="" maxlength="100" type="text"
name="shippingAddressPanel:addressForm:parentContainer:address2"/>
</div>
<div>
<div>
City:
<input value="test" maxlength="100" type="text"
name="shippingAddressPanel:addressForm:parentContainer:cityBorder:city"/>
</div>
<div>
</div>
</div>
<div>
<div>
Zipcode/Postal Code:
<input value="95051" maxlength="15" type="text"
name="shippingAddressPanel:addressForm:parentContainer:postalCodeBorder:postalCode"/>
</div>
<div>
</div>
</div>
<div>
<div>
State/Province:
<select
name="shippingAddressPanel:addressForm:parentContainer:stateBorder:stateProvinceGeoId"><option
value="">Select a state</option>
<option value="AA">Armed Forces Americas</option>
<option value="AE">Armed Forces Europe</option>
<option selected="selected" value="AK">Alaska</option></select>
</div>
<div>
</div>
</div>
<div>
<div>
Country:
<select
name="shippingAddressPanel:addressForm:parentContainer:countryBorder:countryGeoId"><option
value="">Select a country</option>
<option selected="selected" value="USA">United States</option>
</select>
</div>
<div>
</div>
</div>
</div>
<div>
Address:
<select
name="shippingAddressPanel:addressForm:contactMechId" onchange="var
wcall=wicketAjaxPost('?wicket:interface=:9:userRegistrationForm:shippingAddressPanel:addressForm:contactMechId:5:IBehaviorListener:0:',
wicketSerialize(Wicket.$('contactMechId28')),null,null, function() {return
Wicket.$('contactMechId28') != null;}.bind(this));"
id="contactMechId28"><option value="New">Add New Address</option>
</select>
</div>
</div>
</div>
<input value="Save" type="submit" name="submitButton"
id="submitButton29"/>
</form>
--
View this message in context:
http://www.nabble.com/Nested-form-submission-quirk-anomaly-tp17287190p17287190.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]