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

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
icefaces 2 beta 1: binding selectmanycheckbox to map raises conversion error
icefaces modal popup timeout issue
ICEfaces messages
ICEFACES : Multiple Parameters in link
Realtime website using Icefaces
Icefaces: Multiple actionListeners for command button

Categories

HOME
sharepoint
crystal-reports
checkbox
system-verilog
raspbian
wxwidgets
reportportal
laravel-5.2
console
phaser-framework
bro
docker-windows
xcode8.3
google-spreadsheet-api
gimp
jboss-eap-7
hashicorp-vault
cpanel
cratedb
sendkeys
android-toolbar
aws-cognito
tortoisegit
koa
prediction
apply
spring-test
delete-file
myob
reply
forum
roundcube
percentage
entity-system
pace
codesys
discord.net
viewgroup
react-native-router-flux
paho
powermta
matlab-cvst
openweathermap
production-environment
ruby-on-rails-2
modelattribute
libtiff.net
sql-server-administration
iostat
uistackview
slam-algorithm
ruby-2.0
shipitjs
selecteditem
asp.net-mvc-partialview
anti-cheat
group-concat
handlebars.java
multinomial
anythingslider
schtasks.exe
risk-analysis
cpu-cores
web-component-tester
code-first-migrations
musl
orientation-changes
rhel5
docopt
author
sgml
roxygen
visual-c++-2010-express
driver-signing
execvp
dynamic-binding
swrl
arbor.js
vt100
pys60
radchart
caliper
expression-evaluation
parameterization
nintendo
nssavepanel
django-nose
testunit
quick-search
code-design

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