Theme
afterdark
afternoon
afterwork
aristo
black-tie
blitzer
bluesky
bootstrap
casablanca
cruze
cupertino
dark-hive
delta
dot-luv
eggplant
excite-bike
flick
glass-x
home
hot-sneaks
humanity
le-frog
midnight
mint-choc
omega
overcast
pepper-grinder
redmond
rocket
sam
smoothness
south-street
start
sunny
swanky-purse
trontastic
ui-darkness
ui-lightness
vader
Timer
Timer fires an JSF listener after an customizable interval. It also provide a Javascript API to start,pause and stop the timer.
Components and more
Use Cases
Documentation pe:timer
Attributes (move mouse over the names to see data types)
Name Description
idUnique identifier of the component in a namingContainer.
renderedBoolean value to specify the rendering of the component, when set to false component will not be rendered.
visibleset to true to hide the timer. The listener will be fired anyway
bindingAn el expression referring to a server side UIComponent instance in a backing bean.
widgetVarName of the client side widget.
timeoutTimeut in seconds to do the ajax ajax requests. Default is 10.
updateComponent(s) to be updated with ajax.
listenerA method expression to invoke by polling.
immediateBoolean value that determines the phaseId, when true actions are processed at apply_request_values, when false at invoke_application phase.
onstartJavascript handler to execute before ajax request is begins.
oncompleteJavascript handler to execute when ajax request is completed.
processComponent id(s) to process partially instead of whole view.
onerrorJavascript handler to execute when ajax request fails.
onsuccessJavascript handler to execute when ajax request succeeds.
globalGlobal ajax requests are listened by ajaxStatus component, setting global to false will not trigger ajaxStatus. Default is true.
delayIf less than delay milliseconds elapses between calls to request() only the most recent one is sent and all other requests are discarded. The default value of this option is 300. If the value of delay is the literal string 'none' without the quotes, no delay is used.
formatThe format to use when diplaying the value. Accepted values are: 'percentage' to diplay the remaining time as percentage. 'Human' to print a human readable interval. Any other value will be evaluated as a moment.js format
formatFunctionclient-side function used to format the remaining duration
asyncWhen set to true, ajax requests are not queued. Default is false.
autoStartIn autoStart mode, the timer will start immediatly. Default is true.
forwardUse this attribute to set the timer direction. Default value is false (backward)
singleRunset to true to false the timer periodic. Default is true
partialSubmitWhen enabled, only values related to partially processed components would be serialized for ajax instead of whole form.
resetValuesIf true, indicate that this particular Ajax transaction is a value reset transaction. This will cause resetValue() to be called on any EditableValueHolder instances encountered as a result of this ajax transaction. If not specified, or the value is false, no such indication is made.
ignoreAutoUpdateIf true, components which autoUpdate="true" will not be updated for this request. If not specified, or the value is false, no such indication is made.
ontimerstepJavascript handler executed every second
ontimercompleteJavascript handler executed the timeout stops
PrimeFaces Extensions Showcase - © 2011-2017, PrimeFaces: 6.1, PrimeFaces Extensions: 6.1.0, JSF: mojarra 2.2.8, Server: jetty/9.4.2.v20170220, Build time: 2017-04-19 16:13
occured!
Message:
Timestamp:
StackTrace:
Developers
Thomas Andraschko andraschko.thomas@gmail.com
Oleg Varaksin ovaraksin@googlemail.com
Nilesh Namdeo Mali nileshmali86@gmail.com
Mauricio Fenoglio fenoglio.mauricio@gmail.com
Pavol Slaný pavol.slany@gmail.com
Sudheer Jonna sudheer.jonna@gmail.com