-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
--
View this message in context:
http://www.nabble.com/Form-values-lost-in-combination-of-Forms-plus-ModalWindow-tp19401595p23274595.html
Sent from
Hi again,
jira issue added:
https://issues.apache.org/jira/browse/WICKET-1826
I've attached a quickstart project which shows my problem, has detailed
explanation, and also proposes 2 solutions (you must uncomment some code to
see it working). Of course, the solutions work for my particular
Investigating a little more, my problem seems to be caused by
AjaxFormSubmitBehavior#onEvent
protected void onEvent(AjaxRequestTarget target) {
getForm().getRootForm().onFormSubmitted();
which calls onFormSubmitted on the RootForm, and not in the Form i've passed
to my
I would need a quick start to see where it is going wrong.
-Matej
On Wed, Sep 10, 2008 at 7:26 PM, German Morales
[EMAIL PROTECTED] wrote:
Investigating a little more, my problem seems to be caused by
AjaxFormSubmitBehavior#onEvent
protected void onEvent(AjaxRequestTarget target) {
That would be somehow complicated to produce right now.
To make my question different... why the javascript side sends only the
nested form info (wicketSubmitFormById()) and on wicket side the root form
is the one that gets called?
I've already tried and it works ok if i make the nested form do
But that is exactly what should happen. Wicket javascript should find
root form element and serialize that. Can you please check in your
markup if there are any nested form tags? (shouldn't be).
-Matej
On Wed, Sep 10, 2008 at 8:11 PM, German Morales
[EMAIL PROTECTED] wrote:
That would be
There are no nested form tags, as expected... let me give you more details
i'm discovering:
The AjaxSubmitLink has something like this...
function onclick(event) {
var wcall = wicketSubmitFormById( id of my nested form );
return false;
}
This calls wicketSubmitFormById, no surprises...
I'm also reading this...
http://cwiki.apache.org/WICKET/nested-forms.html
which in the case of all forms enabled, inner form submitted (3rd row).
the result should be:
Outer: nothing called, but input is preserved
Middle: nothing called, but input is preserved
Inner: onSubmit called
So
You are right. It calls Wicket.Form.serialize(form) with the nested
form, but the serialize method should find parent with form tag name
and serialize that.
-Matej
On Wed, Sep 10, 2008 at 9:04 PM, German Morales
[EMAIL PROTECTED] wrote:
There are no nested form tags, as expected... let me give
I think that we are closer to the problem now...
In my case (going back to the original post), the form i'm submitting is
inside a ModalWindow.
I'm using Firebug to see the generated DOM in runtime, and i find this
(extracted...) before calling the ModalWindow:
body
div here is all my
Check if your DOM hierarchy is valid, e.g. if you don't have any div
tag inside span tags.
-Matej
On Wed, Sep 10, 2008 at 10:08 PM, German Morales
[EMAIL PROTECTED] wrote:
I think that we are closer to the problem now...
In my case (going back to the original post), the form i'm submitting is
I don't see any div inside span in my stuff (we have suffered problems with
this long ago, and we are more careful lately).
Besides that, is it ok that the ModalWindow creates its own div at body
level? Isn't that the reason of my problem?
German
2008/9/10 Matej Knopp [EMAIL PROTECTED]
Check
I have a quickstart project, should i send it privately?
2008/9/10 German Morales [EMAIL PROTECTED]
I don't see any div inside span in my stuff (we have suffered problems with
this long ago, and we are more careful lately).
Besides that, is it ok that the ModalWindow creates its own div at
attach it to a jira issue please
-igor
On Wed, Sep 10, 2008 at 3:22 PM, German Morales
[EMAIL PROTECTED] wrote:
I have a quickstart project, should i send it privately?
2008/9/10 German Morales [EMAIL PROTECTED]
I don't see any div inside span in my stuff (we have suffered problems with
On Wed, Sep 10, 2008 at 10:49 PM, German Morales
[EMAIL PROTECTED] wrote:
I don't see any div inside span in my stuff (we have suffered problems with
this long ago, and we are more careful lately).
Besides that, is it ok that the ModalWindow creates its own div at body
level? Isn't that the
Hi all,
I've a problem with Forms and ModalWindows.
I have this stuff:
-a page with a main Form (the only one that is rendered as an HTML form tag)
-this my only page, since all inside it is changed by replacing panels using
ajax.
-inside some other levels of panels, i have a panel with my
The link that shows the modal window must be AjaxButton/SubmitLink.
-Matej
On Tue, Sep 9, 2008 at 11:20 PM, German Morales
[EMAIL PROTECTED] wrote:
Hi all,
I've a problem with Forms and ModalWindows.
I have this stuff:
-a page with a main Form (the only one that is rendered as an HTML form
Hi Matej,
Thanks for the answer.
I have an AjaxSubmitLink both for opening and closing the modal window.
Should that make any trouble?
In both cases i have data to persist, so it must be a .*Submit.* component.
Also, my problem happens when closing the window, not when opening it.
I summarize
18 matches
Mail list logo