-
title
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> title
This is the text shown to user via Bootstrap warning dialog after warning period. (modal
title) Default: 'Your session is about to expire!'
-
message
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> message
This is the text shown to user via Bootstrap warning dialog after warning period. Default:
'Your session is about to expire!'
-
logoutButton
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> logoutButton
This is the text shown to user via Bootstrap warning dialog after warning period in the
logout button. Default: 'Logout'
-
keepAliveButton
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> keepAliveButton
This is the text shown to user via Bootstrap warning dialog after warning period in the Kepp
Alive button. Default: 'Stay Connected'
-
keepAliveUrl
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> keepAliveUrl
URL to ping via AJAX POST to keep the session alive. This resource should do something
innocuous that would keep the session alive, which will depend on your server-side platform.
Default: '/keep-alive'
-
keepAlive
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> keepAlive
If true, the plugin keeps pinging the keepAliveUrl for as long as the user is active. The
time between two pings is set by the keepAliveInterval option. If you have no server-side
session timeout to worry about, feel free to set this one to false to prevent unnecessary
network activity. Default: true
-
keepAliveInterval
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> keepAliveInterval
Time in milliseconds between two keep-alive pings. Default: 5000 (5 seconds)
-
ajaxType
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> ajaxType
If you need to specify the ajax method. Default: 'POST'
-
ajaxData
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> ajaxData
If you need to send some data via AJAX POST to your keepAliveUrl, you can use this option.
Default: ''
-
redirUrl
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> redirUrl
URL to take browser to if no action is take after the warning. Default: '/timed-out'
-
logoutUrl
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> logoutUrl
URL to take browser to if user clicks "Logout" on the Bootstrap warning dialog. Default:
'/log-out'
-
warnAfter
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> warnAfter
Time in milliseconds after page is opened until warning dialog is opened. Default: 900000 (15
minutes)
-
redirAfter
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> redirAfter
Time in milliseconds after page is opened until browser is redirected to redirUrl. Default:
1200000 (20 minutes)
-
ignoreUserActivity
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> ignoreUserActivity
If true, this will launch the Bootstrap warning dialog / redirect (or callback functions) in
a set amounts of time regardless of user activity. This in turn makes the plugin act much
like the
jquery-sessionTimeout
-bootstrap by maxfierke plugin. Default: false
-
countdownSmart
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> countdownSmart
If true, displays minutes as well as seconds in the countdown timer (e.g. "3m 14s"). Displays
only seconds when timer is under one minute (e.g. "42s"). Default: false
-
countdownMessage
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> countdownMessage
If you want a custom sentence to appear in the warning dialog with a timer showing the
seconds remaining, use this option. Example: countdownMessage: 'Redirecting in {timer}.'
Place the {timer} string where you want the numeric countdown to appear. Another example:
countdownMessage: '{timer} remaining.'. Can be combined with countdownBar option or used
independently. Note: Type: String or Boolean Default: false
-
countdownBar
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> countdownBar
If true, ads a countdown bar (uses Bootstrap progress bar) to the warning dialog. Can be
combined with countdownMessage option or used independently. Default: false
-
onStart
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> onStart
Optional callback fired when first calling the plugin and every time user refreshes the
session (on any mouse, keyboard or touch action). Takes options object as the only argument.
Note: Type: Function or Boolean Default: false
-
onWarn
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> onWarn
Custom callback you can use instead of showing the Bootstrap warning dialog. Takes options
object as the only argument.
Redirect action will still occur unless you also add the onRedir callback. Note: Type:
Function or Boolean Default: false
-
onRedir
de.alpharogroup.wicket.js.addon.core.StringTextValue<T> onRedir
Custom callback you can use instead of redirecting the user to redirUrl. Takes options object
as the only argument. Note: Type: Function or Boolean Default: false