I read the post about using oncomplete callback like handleComplete(xhr, status, args) in Tree component. You wrote that it's not possible at the moment. I need something like in DataTable component. I intend to update a menubar per JavaScript with each row selection because an update via DataTable "update" attribute causes an ugly flicker of menubar (have we do an issue ticket?). I have tried this approach:
Page:
Code: Select all
<p:dataTable id="dtSocs" var="soc" value="#{socsBean.socs}" dynamic="false" selection="#{socsBean.selectedSocs}" update="@none"
selectionMode="multiple" emptyMessage="#{msgSocs['overview.socs.norecords']}" widgetVar="dtSocsWidget" rowIndexVar="rowIdxVar"
onselectComplete="handleTableSelectionComplete(xhr, status, args)">
Code: Select all
function handleSocsTableSelectionComplete(xhr, status, args)
{
if (args) {
var isEditDisabled = args.isEditDisabled;
......
}
}
xhr is not defined
<?xml version="1.0" encoding="UTF-8"?>...am></callbackParams></partialResponse>
Is it not possible too? Do you have an idea how we can get any data client-side from server-side action?
Thanks in advance.