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

Martin Grigorov edited comment on WICKET-4594 at 7/24/12 1:02 PM:
------------------------------------------------------------------

1) Wicket do not support stateless pages that use Ajax components/behaviors. If 
there is an Ajax behavior in the page then it is stateful.

2) Clicking on a link in an expired page will not execute the link's onClick() 
method, no matter whether the link is Ajax or normal. Wicket detects that the 
page is expired, creates a new one by using the mount path from the request url 
and renders a new page instance ignoring the action phase (i.e. wont execute 
onClick, onSubmit, onXYX(), ...) because Wicket cannot be sure that the 
component which callback method the user wanted to execute is even 
available/visible in the initial state of the page.

Please use the mailing lists for further discussions. 
                
      was (Author: mgrigorov):
    1) Wicket do not support stateless pages that use Ajax components/behaviors.
2) Clicking on a link in an expired page will not execute the link's onClick() 
method, no matter whether the link is Ajax or normal. Wicket detects that the 
page is expired, creates a new one by using the mount path from the request url 
and renders a new page instance ignoring the action phase (i.e. wont execute 
onClick, onSubmit, onXYX(), ...) because Wicket cannot be sure that the 
component which callback method the user wanted to execute is even 
available/visible in the initial state of the page.

Please use the mailing lists for further discussions. 
                  
> 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, example.tar.gz
>
>
> 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

        

Reply via email to