Primefaces Datatable On Row Select Javascript Callback September 08, 2024 Post a Comment I'm trying to call a javascript function whenever a row of a datatable is selected .I can't use ajax because I don't need to send a request and wait for a response from the serverSolution 1: PrimeFaces Extensions comes to the rescue here. Use <pe:javascript event="rowSelect" execute="alert('Datatable rowSelect event called')"/> CopyIf you need the row key for the selected row, use:<pe:javascript event="rowSelect" execute="console.log(ext.params[0].value)"/> CopySee alsohttp://www.primefaces.org/showcase-ext/sections/clientBehaviours/javascriptBehaviourAnother.jsf Share Post a Comment for "Primefaces Datatable On Row Select Javascript Callback"
Post a Comment for "Primefaces Datatable On Row Select Javascript Callback"