icefaces


icefaces modal popup timeout issue


Have a question regarding something which has been bugging me for some time now.I'm using icefaces to generate a modal popup with search fields.Clicking search kicks off a screen scraper for a particular website.
My problem is this.If you enter some pretty generic terms,obviously the scraper will take longer to complete which causes a timeout.The timeout causes the modal popup to freeze and it can't be closed.
How can I gracefully close the popup and navigate to another page if a timeout occurs?
You can create a thread, start it & make it to sleep the amount of time that is session max timeout interval.
You can then redirect to another resource after thread resumes as follows:
#Thread's run method
//...
try {
Thread.currentThread().sleep(TIMEOUT_INTERVAL);
} catch (InterruptedException e) {
e.printStackTrace();
}
URL url = new URL("REDIRECT_PAGE");
url.openConnection();
//...
But if your search process completes prior to timeout interval, you can kill the thread.

Related Links

scrolling changes the size of the ice datatable headers
How to get values in dropdown list from database in icefaces?
Data pager in icefaces not paging
use sbt for generate a webapp with icefaces
Cancel button Icefaces with immediate=true
how to redirect to j_security_check in the managed bean?
How do I disable a column using icefaces?
icefaces menu bar handling
ui:repeatn tag inside ui:repeat..not working
<ice:outputMedia> and <ui:repeat>
HOW TO HIDE/IGNORE ?RVN in Icefaces
Two ICEfaces panel positioned interacting
java.lang.ClassNotFoundException: com.icesoft.faces.util.event.servlet.ContextEventRepeater
how to push component state changes to multiple different pages using icefaces
How can Websphere PUMA SPI (PumaLocator) be used with an ICEfaces Portlet?
IceFaces and FileResource - delete after session expires

Categories

HOME
python
symfony
crate
project-management
vb6
itext
json-ld
thunderbird-addon
wms
windows-store-apps
ios10
filter
file-io
browserify
proguard
eval
onenote-api
eclipse-cdt
powershell-v3.0
cockroachdb
cpanel
dlib
local
webmethods
event-log
lenskit
apache-karaf
arraylist
distance
uiautomator
apply
source-maps
extractor
badge
jenkins-job-dsl
fileinfo
aurelia-binding
forum
blackboard
lmdb
getline
shapes
pljson
pycparser
node-horseman
sidr
lego
vmd
readfile
ntfs-mft
alchemy.js
tic-tac-toe
linq-to-entities
restful-url
ddms
service-fabric-stateful
cppunit
aqgridview
mouseclick-event
pagefile
collapsingtoolbarlayout
packagemaker
software-product-lines
slam-algorithm
multifile-uploader
inotifypropertychanged
picking
flexjson
xmp
magento-1.4
loose-typing
hateoas
lemoon
optionbutton
p-np
webhdfs
xjc
twitter-rest-api
shift-jis
scrollspy
musl
ticket-system
cpan
jcr-sql2
client-side-validation
cpu-speed
errorprovider
sthttprequest
eclipse-classpath
jstack
openkinect
edit-in-place
bsod
nscolor
pep8
mozart-mvc
android-4.0
attachevent
mvccontrib
maven-ear-plugin
usn
fotoware
law-of-demeter
shared-objects
ihttphandler
mvccontrib-grid
j-interop
unreachable-code
aio
chdatastructures
multibyte-functions
graph-layout
swfloader
usergroups

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App