This is strange end should not happened:
https://cwiki.apache.org/WICKET/nested-forms.html. Maybe the problem is
on code side. Can you show the initialization code for the two forms?
Yes, I have this layout. Is the first I tested.
The problem with this is that when I click Add Item buttom information is
not submitted because general validations stops it. I mean, if I don't
complete name field i can't add items.
It seems like inner form submit is submitting outer form.
Thanks!
On Mon, Dec 19, 2011 at 10:16 AM, Andrea Del Bene<adelb...@ciseonweb.it>wrote:
Hi,
nested form should work fine. I mean something like this:
_________________________
|<main form>
| Name:..
| Lastname:...
|
| ________________________
| |<item (inner) form>
| | item number:...
| | item number:...
| |<Add item button>
| |______________________
|
|<save button>
|_______________________
Do you have this forms layout? 'Add item button' must be added to 'item
form' and only to this form.
Hi, I'm creating a page with a form.
The form asks for personal information and also for information to add
some
items.
For example
General information
Name: _______
Lastname: _______
Item information
Item number: _______
Item description: ______
Add item (button)
Item number | Description
1 | something
2 | a thing
Save (button)
I tryed with nested forms but when I click on "Add item" validations on
Name and LastName stop the submit. I thought on an ajax solution but i
don't know how to do it.
I mean, I need validations of general information and validations of item
information. Could you give an idea of how to do something like this?
I think it could be a standard problem.
Thanks in advance.
Tito
------------------------------**------------------------------**---------
To unsubscribe, e-mail:
users-unsubscribe@wicket.**apache.org<users-unsubscr...@wicket.apache.org>
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org