Re: Regarding nested multipart modal dialog

2016-05-20 Thread Sven Meier

Hi Andrea,

that's a good workaround.

Thanks
Sven


On 20.05.2016 15:48, Andrea Del Bene wrote:


Sorry if I jump into the conversation so roughly, but isn't enough to 
override updateAjaxAttributes of FormPanel's AjaxButton(OK_ID) ?:


@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
   super.updateAjaxAttributes(attributes);
   attributes.setMultipart(false);
}


I did a test with the quickstart and seems to work.

On 20/05/2016 10:24, Rakesh A wrote:

Hi,

Created JIRA issue - https://issues.apache.org/jira/browse/WICKET-6171

I tried to refresh the root form by adding it to 'AjaxRequestTarget', 
but it

didn't work.

Any workaround you know of, that I can use for now ?

Regards,
Rakesh.A

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Regarding-nested-multipart-modal-dialog-tp4674764p4674769.html

Sent from the Users forum mailing list archive at Nabble.com.

-
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




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



Re: Regarding nested multipart modal dialog

2016-05-20 Thread Andrea Del Bene


Sorry if I jump into the conversation so roughly, but isn't enough to 
override updateAjaxAttributes of FormPanel's AjaxButton(OK_ID) ?:


@Override
protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
{
   super.updateAjaxAttributes(attributes);
   attributes.setMultipart(false);
}


I did a test with the quickstart and seems to work.

On 20/05/2016 10:24, Rakesh A wrote:

Hi,

Created JIRA issue - https://issues.apache.org/jira/browse/WICKET-6171

I tried to refresh the root form by adding it to 'AjaxRequestTarget', but it
didn't work.

Any workaround you know of, that I can use for now ?

Regards,
Rakesh.A

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Regarding-nested-multipart-modal-dialog-tp4674764p4674769.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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



Re: Regarding nested multipart modal dialog

2016-05-20 Thread Sven Meier

Hi,

you'll have to refresh your root form *after* closing the modal window. 
Don't forget to call #setOutputMarkupId(true) on it on construction.


Regards
Sven


On 20.05.2016 10:24, Rakesh A wrote:

Hi,

Created JIRA issue - https://issues.apache.org/jira/browse/WICKET-6171

I tried to refresh the root form by adding it to 'AjaxRequestTarget', but it
didn't work.

Any workaround you know of, that I can use for now ?

Regards,
Rakesh.A

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Regarding-nested-multipart-modal-dialog-tp4674764p4674769.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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



Re: Regarding nested multipart modal dialog

2016-05-20 Thread Ernesto Reinaldo Barreiro
Can't you use a Page for the second dialog? And a normal page summit?

On Fri, May 20, 2016 at 10:24 AM, Rakesh A 
wrote:

> Hi,
>
> Created JIRA issue - https://issues.apache.org/jira/browse/WICKET-6171
>
> I tried to refresh the root form by adding it to 'AjaxRequestTarget', but
> it
> didn't work.
>
> Any workaround you know of, that I can use for now ?
>
> Regards,
> Rakesh.A
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Regarding-nested-multipart-modal-dialog-tp4674764p4674769.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro


Re: Regarding nested multipart modal dialog

2016-05-20 Thread Rakesh A
Hi,

Created JIRA issue - https://issues.apache.org/jira/browse/WICKET-6171

I tried to refresh the root form by adding it to 'AjaxRequestTarget', but it
didn't work.

Any workaround you know of, that I can use for now ?

Regards,
Rakesh.A

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Regarding-nested-multipart-modal-dialog-tp4674764p4674769.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Regarding nested multipart modal dialog

2016-05-20 Thread Sven Meier

Hi,

problem is that the root form caches its "multipart" state until it is 
rendered again (i.e. the hint flag is cleared in #onBeforeRender only).


Please create a Jira issue.

Regards
Sven


On 20.05.2016 06:43, Rakesh A wrote:

Hi,

I observed that when I've a nested (second level) dialog with multipart form
in it, after submitting this form, first level dialog form submit results a
multipart form submit instead of normal form submit.
I've attached a quick start to reproduce this.

Steps:
1. Click the link on home page to open first level dialog
2. Click on the link to open 'multipart' dialog
3. Simply click 'Ok' on this dialog
4. Click 'Ok' on the first level dialog

I expect form submit of Step#4 to be a normal form submit, but I see its a
'multipart' form submit.

I read few discussions at the below link, but couldn't find a solution for
it, any clue how to solve this?
http://apache-wicket.1842946.n4.nabble.com/modal-dialog-and-nesting-of-forms-td4395177.html

nested-multipart-modal-window.7z


Regards,
Rakesh.A

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Regarding-nested-multipart-modal-dialog-tp4674764.html
Sent from the Users forum mailing list archive at Nabble.com.

-
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