You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Daniel Zwicker (JIRA)" <ji...@apache.org> on 2012/07/18 02:05:34 UTC

[jira] [Commented] (WICKET-4594) Do not use the parsed PageParameters when re-creating an expired page

    [ https://issues.apache.org/jira/browse/WICKET-4594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416742#comment-13416742 ] 

Daniel Zwicker commented on WICKET-4594:
----------------------------------------

Hi,

this feature make it impossible to use AJAX calls on stateless pages if the AJAX call uses ExtraParameters for restoring the page state.

For example:

	protected void updateAjaxAttributes(final AjaxRequestAttributes attributes) {
		super.updateAjaxAttributes(attributes);
		attributes.getExtraParameters().put("customerId, customer.getId());
	}

This will produce the correct PageParameters but they will be just ignored by your fix.


Perhaps I have just missed something? 

I have attached a fix which works for me.

Kindest regards,
Daniel
                
> Do not use the parsed PageParameters when re-creating an expired page
> ---------------------------------------------------------------------
>
>                 Key: WICKET-4594
>                 URL: https://issues.apache.org/jira/browse/WICKET-4594
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.7
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 6.0.0-beta3, 1.5.8
>
>         Attachments: WICKET-4594.patch.diff
>
>
> WICKET-4014 and WICKET-4290 provided functionality to re-create an expired page if there is a mount path in the current request's url.
> There is a minor problem with that because the page parameters are passed to the freshly created page. I.e. parameters for a callback behavior are now set as page construction parameters.
> Since the execution of the behavior is ignored for the recreated page these parameters should be ignored too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira