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
puzzle
checkbox
rotation
warnings
wildcard
computer-vision
command
windows-store-apps
wampserver
webdav
quill
triggers
openwrt
netflix-feign
octopus-deploy
wicket
cakephp-2.9
xul
camera-calibration
abcpdf
kitematic
fabric
ab-initio
weinre
helix-3d-toolkit
smart-mobile-studio
skygear
edb
spreedly
body-parser
reactivemongo
forecasting
declare
floating-accuracy
exiftool
tripwire
istorage
pinvoke
tiddlywiki
gce
polar-coordinates
system.web.ui.webcontrols
cjson
windows-azure-pack
bacnet
freetype2
jackson-databind
gradle-release-plugin
freefem++
sun-codemodel
web-essentials
cctray
wikitext
evo
p-np
response-headers
qbfc
base32
bridge
jai
orientation-changes
pgagent
level
ifft
indexing-service
jstack
lov
arangodb-php
opendata
java.util.date
convex-polygon
nservicebus4
gridworld
localtime
apache2.2
fraud-prevention
reporting-tools
process-monitor
mvs
tfs-power-tools
caliper
shim
jpf
maven-ant-tasks
ubuntu-11.04
selectonemenu
ou
posting
collect
smooth
task-management
grooveshark
scatterview
internals
system-codedom-compiler
visual-studio-dbpro

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