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

Ace Datatable row selector with paginator
How to customize internal server error popup?
How to use more than one ace:fileEntry tag in the same page?
Enabling ICEfaces compat leads to not recognizing h:head and h:body
Passing parameter to <ice:rowSelector>'s clickListener attribute
ICEfaces configured for view, but h:head and h:body components are required
ace:tabSet style is corrupted when using ICEFaces 3
How to configure rime style in ICEfaces 3
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

Categories

HOME
makefile
paypal
json
visual-studio-2015
ajax
semantic-ui
oauth
warnings
wildcard
firebase-app-indexing
defragmentation
schemacrawler
docker-windows
subquery
currency
uiactivityviewcontroller
spinnaker
qt-installer
multiple-monitors
factor-analysis
flat-file
jpeg2000
clover
google-ima
upnp
web-frontend
helper
dpi
configure
websauna
sharp
android-vpn-service
edb
shapes
geo
vmd
polyfills
android-preferences
exiftool
sendgrid-templates
react-native-router-flux
microdata
datalog
amd
rdw
taskmanager
rollback
cgcontext
mbaas
photography
search-box
autoresize
onresume
sql-server-administration
sql-import-wizard
uistackview
chessboard.js
try-finally
tomcat5
boost-hana
financial
anti-cheat
self-hosting
hornetq
retro-computing
urn
pyopengl
sparse-file
google-earth-plugin
libsndfile
gyroscope-framework
sortable
suffix-array
code-testing
ifft
dvcs
jstack
openkinect
image-zoom
entity-framework-4.1
vmware-server
localtime
argb
device-emulation
wpdb
applicationcontext
file-exists
text-services-framework
flexicious
goliath
gtk2hs
rubycas
server-error
pivotal-crm
squeel
asp.net-routing
file-encodings
filetime
longjmp

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