[
https://issues.apache.org/jira/browse/WICKET-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705570#action_12705570
]
Martijn Dashorst commented on WICKET-2033:
------------------------------------------
Another one:
<form id="personaliaForm57"
action="../?wicket:interface=:5:personaliaForm::IFormSubmitListener::"
method="post"><div style="display:none"><input type="hidden"
name="personaliaForm57_hf_0" id="personaliaForm57_hf_0" /></div><div
style="width:0px;height:0px;position:absolute;left:-100px;top:-100px;overflow:hidden"><input
type="text" autocomplete="false"/><input type="submit"
name="bottom:rightButtons:0:link" onclick=" var
b=document.getElementById('link4f'); if
(b!=null&&b.onclick!=null&&typeof(b.onclick) != 'undefined') { var r =
b.onclick.bind(b)(); if (r != false) b.click(); } else { b.click(); }; return
false;" /></div>
calling form.setDefaultButton() with a button/link outside the form tag.
> & instead of & in javascript
> --------------------------------
>
> Key: WICKET-2033
> URL: https://issues.apache.org/jira/browse/WICKET-2033
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC1
> Environment: all
> Reporter: Tuomas Karkkainen
> Assignee: Johan Compagner
> Priority: Minor
> Fix For: 1.4-RC4
>
> Attachments: wicket-2033-quickstart.zip
>
>
> the non httpsessionstore part of:
> https://issues.apache.org/jira/browse/WICKET-1971
> is that
> in the
> wicket:ignoreIfNotActive actually becomes
> amp;wicket:ignoreIfNotActive=true
> in:
> protected CharSequence encode(RequestCycle requestCycle,
> IListenerInterfaceRequestTarget requestTarget)
> of WebRequestCodingStrategy on the line:
> url.append(url.indexOf("?") > -1 ? "&" :
> "?").append(
>
> IGNORE_IF_NOT_ACTIVE_PARAMETER_NAME).append("=true");
> so when this happens in
> public final RequestParameters decode(final Request request) {
> ---
> if (request.getParameter(IGNORE_IF_NOT_ACTIVE_PARAMETER_NAME)
> != null)
> {
> parameters.setOnlyProcessIfPathActive(true);
> }
> ---
> this never actually happens.
> then if you have a throttle, ajaxlazyloadpanel etc with
> onlyprocessifpathactive set to true, and you logout, but go to another wicket
> page, then the original session is destroyed and a new one is created
> if this is worked around in the way the guys on WICKET-1971 suggest,
> WebRequestCycleProcessor
> method
> public IRequestTarget resolve(final RequestCycle requestCycle,
> final RequestParameters requestParameters)
> if
> (requestParameters.isOnlyProcessIfPathActive())
> last branch falls through:
> else
> {
> // TODO also this should work..
> }
> and it throws PageExpiredException because the request
> component/page/behavior does not exist in this new session. even though
> onlyprocessifpathactive was set to true, and it's purpose is precisely to
> avoid pageexpiredexception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.