[
https://issues.apache.org/jira/browse/WICKET-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pawel Dolega updated WICKET-3044:
---------------------------------
Description:
This is actually the same issue as in WICKET-2957.
Controls are still unclickable after closing modal window too quickly.
Unfortunately I am not able to reproduce it with simple example (strangely
enough, with simple example it does work correctly).
With use of such a code in a link inside modal that is used for closing the
modal itself I was able to workaround the problem:
{noformat}
AjaxLink<String> link = new
AjaxLink<String>("link", new Model<String>(value)) {
private static final long
serialVersionUID = -756161714125653028L;
@Override
public void onClick(AjaxRequestTarget
target) {
origin.setModelObject(value);
UiUtils.refresh(origin);
try {
// believe me or not but there is a bug
(WICKET-2957) connected with controls becoming
Thread.sleep(750L);
// unclickable if modal window is closed very quickly
(< 1 s)
} catch(InterruptedException e)
{ // ...and yes I used delay = 750ms - I challenge anyone to close modal
in less than 250 ms !
Logger.warn(this,
"Delay used as a workaround for controls freezing issue closing modal too
quickly has been interrupted");
}
modal.close(target);
}
};
{noformat}
was:
This is actually the same issue as in WICKET-2957.
Controls are still unclickable after closing modal window too quickly.
Unfortunately I am not able to reproduce it with simple example (strangely
enough, with simple example it does work correctly).
With use of such a code in a link inside modal that is used for closing the
modal itself I was able to workaround the problem:
{code}
AjaxLink<String> link = new
AjaxLink<String>("link", new Model<String>(value)) {
private static final long
serialVersionUID = -756161714125653028L;
@Override
public void onClick(AjaxRequestTarget
target) {
origin.setModelObject(value);
UiUtils.refresh(origin);
try {
// believe me or not but there is a bug
(WICKET-2957) connected with controls becoming
Thread.sleep(750L);
// unclickable if modal window is closed very quickly
(< 1 s)
} catch(InterruptedException e)
{ // ...and yes I used delay = 750ms - I challenge anyone to close modal
in less than 250 ms !
Logger.warn(this,
"Delay used as a workaround for controls freezing issue closing modal too
quickly has been interrupted");
}
modal.close(target);
}
};
{code}
> CLONE -Closing ModalWindow makes some form fields unclickable
> -------------------------------------------------------------
>
> Key: WICKET-3044
> URL: https://issues.apache.org/jira/browse/WICKET-3044
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.4.11
> Environment: Fedora x64. Firefox 3.5.10
> Reporter: Pawel Dolega
> Assignee: Igor Vaynberg
> Priority: Minor
>
> This is actually the same issue as in WICKET-2957.
> Controls are still unclickable after closing modal window too quickly.
> Unfortunately I am not able to reproduce it with simple example (strangely
> enough, with simple example it does work correctly).
> With use of such a code in a link inside modal that is used for closing the
> modal itself I was able to workaround the problem:
> {noformat}
> AjaxLink<String> link = new
> AjaxLink<String>("link", new Model<String>(value)) {
> private static final long
> serialVersionUID = -756161714125653028L;
> @Override
> public void onClick(AjaxRequestTarget
> target) {
> origin.setModelObject(value);
> UiUtils.refresh(origin);
> try {
> // believe me or not but there is a bug
> (WICKET-2957) connected with controls becoming
> Thread.sleep(750L);
> // unclickable if modal window is closed very quickly
> (< 1 s)
> } catch(InterruptedException e)
> { // ...and yes I used delay = 750ms - I challenge anyone to close
> modal in less than 250 ms !
> Logger.warn(this,
> "Delay used as a workaround for controls freezing issue closing modal too
> quickly has been interrupted");
> }
> modal.close(target);
> }
> };
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.