Re: Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-18 Thread Alex Shubert
ParentPage
1. creates a SomeObject. Not a model or something.
2. Creates a modalpage with a private  field assigned to SomeObject
3. Shows  ModalWindow with it's content set to another page.

So I have to keep in a window's content page a reference to a caller
page in order to set result value?
Nice, thanks.

On 17 June 2011 19:54, Andrea Del Bene adelb...@ciseonweb.it wrote:
 If I understand right you should not pass to ModalWindow:

 -model of parent page
 -an instance of parent page

 In these two scenarios when you close ModalWindow Wicket restore the
 original version of parent page, that is the version existing before opening
 modal window.
 To avoid this problem instead of page instance you should pass to your
 ModalWindow a PageReference to your parent page.

 PS: If you look at examples bundled with Wicket (ModalContent1Page.java)
 you'll see that the ModalWindow with page content uses PageReference.

 Andrea, I have a strange feeling. Why to speak about page version if
 there are no such problem transmitting modal result from modal to
 page. Such example exists even in a example bundle...

 I feel I miss something here.

 On 17 June 2011 16:14, Andrea Del Beneadelb...@ciseonweb.it  wrote:

 The issue is here: https://issues.apache.org/jira/browse/WICKET-3809


 I trust in you, a colleague

 On 17 June 2011 15:15, Andrea Del Beneadelb...@ciseonweb.it    wrote:

 I'm going to open an issue on JIRA

 -
 To unsubscribe, e-mail: 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





-- 
Best regards
Alex

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



Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-17 Thread Alex Shubert
Hello

I got a strange problem with multiply Modal Windows.

Let's imagine we have an Entity A  with  field of entity B (1 to 1
relation) . Now we create the Edit page, which contains a form and
some edit fields. One of that field is the Label with add
AjaxButton.
Add button creates a new modal window with edit fields for that B
Entity. In a model of a first ModalWindow we have brandly new Entity.
B in turn have it's  field of C with Add button. So I show second
modal window where I create and fill Entity C.

Now if I press submit on the second modal window debugger shows me
correct model update with a new C, things are going as expected. But
after pressing submit on the first modal window, it's model accessed
in a Page just looks like a very first version of a page with newly
created model. All looks like there was no calling ModalWindow.show
and all of the actions at all.
Debugger shows that the model disappears somewhere in a request
cycle process.

This can be reproduced really easy, cos you even have nothing to do on
the second modal window, you can just show and close it.

Wicket 1.4.17 Java 6-23.

Do I miss something? Any serialization flag I have no idea about?

-- 
Best regards
Alex

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



Re: Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-17 Thread Andrea Del Bene

Hi Alex,

maybe I'm facing the same problemyour modal windows' content is a 
Page or a Panel?

Hello

I got a strange problem with multiply Modal Windows.

Let's imagine we have an Entity A  with  field of entity B (1 to 1
relation) . Now we create the Edit page, which contains a form and
some edit fields. One of that field is the Label with add
AjaxButton.
Add button creates a new modal window with edit fields for that B
Entity. In a model of a first ModalWindow we have brandly new Entity.
B in turn have it's  field of C with Add button. So I show second
modal window where I create and fill Entity C.

Now if I press submit on the second modal window debugger shows me
correct model update with a new C, things are going as expected. But
after pressing submit on the first modal window, it's model accessed
in a Page just looks like a very first version of a page with newly
created model. All looks like there was no calling ModalWindow.show
and all of the actions at all.
Debugger shows that the model disappears somewhere in a request
cycle process.

This can be reproduced really easy, cos you even have nothing to do on
the second modal window, you can just show and close it.

Wicket 1.4.17 Java 6-23.

Do I miss something? Any serialization flag I have no idea about?




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



Re: Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-17 Thread Alex Shubert
Page. I found your discussion with Marieke Vandamme. Looks  very
similiar to my case.



On 17 June 2011 14:02, Andrea Del Bene adelb...@ciseonweb.it wrote:
 Hi Alex,

 maybe I'm facing the same problemyour modal windows' content is a Page
 or a Panel?


-- 
Best regards
Alex

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



Re: Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-17 Thread Andrea Del Bene

I'm going to open an issue on JIRA

Page. I found your discussion with Marieke Vandamme. Looks  very
similiar to my case.



On 17 June 2011 14:02, Andrea Del Beneadelb...@ciseonweb.it  wrote:

Hi Alex,

maybe I'm facing the same problemyour modal windows' content is a Page
or a Panel?





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



Re: Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-17 Thread Alex Shubert
I trust in you, a colleague

On 17 June 2011 15:15, Andrea Del Bene adelb...@ciseonweb.it wrote:
 I'm going to open an issue on JIRA


-- 
Best regards
Alex

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



Re: Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-17 Thread Andrea Del Bene

The issue is here: https://issues.apache.org/jira/browse/WICKET-3809



I trust in you, a colleague

On 17 June 2011 15:15, Andrea Del Beneadelb...@ciseonweb.it  wrote:

I'm going to open an issue on JIRA





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



Re: Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-17 Thread Alex Shubert
Andrea, I have a strange feeling. Why to speak about page version if
there are no such problem transmitting modal result from modal to
page. Such example exists even in a example bundle...

I feel I miss something here.

On 17 June 2011 16:14, Andrea Del Bene adelb...@ciseonweb.it wrote:
 The issue is here: https://issues.apache.org/jira/browse/WICKET-3809


 I trust in you, a colleague

 On 17 June 2011 15:15, Andrea Del Beneadelb...@ciseonweb.it  wrote:

 I'm going to open an issue on JIRA



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





-- 
Best regards
Alex

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



Re: Page-ModalWindow[Form]-ModalWindow[Form] problem

2011-06-17 Thread Andrea Del Bene

If I understand right you should not pass to ModalWindow:

-model of parent page
-an instance of parent page

In these two scenarios when you close ModalWindow Wicket restore the 
original version of parent page, that is the version existing before 
opening modal window.
To avoid this problem instead of page instance you should pass to your 
ModalWindow a PageReference to your parent page.


PS: If you look at examples bundled with Wicket (ModalContent1Page.java) 
you'll see that the ModalWindow with page content uses PageReference.



Andrea, I have a strange feeling. Why to speak about page version if
there are no such problem transmitting modal result from modal to
page. Such example exists even in a example bundle...

I feel I miss something here.

On 17 June 2011 16:14, Andrea Del Beneadelb...@ciseonweb.it  wrote:

The issue is here: https://issues.apache.org/jira/browse/WICKET-3809



I trust in you, a colleague

On 17 June 2011 15:15, Andrea Del Beneadelb...@ciseonweb.itwrote:

I'm going to open an issue on JIRA


-
To unsubscribe, e-mail: 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