I am trying to understand how the flowing request works, I am new in primeFaces so please excuse me if it's too basic question.
- The request send ID and date of birth to the server, and I don't understand how it works(
onclick
,onstart
...). - What is the differences between
PrimeFaces.ab
andPrimeFaces.cw
?
<button id="scheduleForm:tabViewId:searchIcon" name="scheduleForm:tabViewId:searchIcon" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="PrimeFaces.ab({source:'scheduleForm:tabViewId:searchIcon',
update:'scheduleForm:tabViewId:panelInfoPessoal scheduleForm:postPanelGroup scheduleForm:postcons scheduleForm:infoAgendamento scheduleForm:listaAtos scheduleForm:preRegPanelGroup scheduleForm:SGCMessage',
onstart:function(cfg){loadingDlg.show();},oncomplete:function(xhr,status,args){loadingDlg.hide();;}});return false;" style="align: right; width: 20%; min-width: 120px;vertical-align: middle;margin:0 auto" type="submit"><span class="ui-button-text">Pesquisar</span></button><script id="scheduleForm:tabViewId:searchIcon_s" type="text/javascript">PrimeFaces.cw('CommandButton',
'widget_scheduleForm_tabViewId_searchIcon',{id:'scheduleForm:tabViewId:searchIcon'});</script></div><div id="scheduleForm:tabViewId:tab_gov" class="ui-tabs-panel ui-widget-content ui-corner-bottom ui-helper-hidden" role="tabpanel" aria-hidden="true"><table id="scheduleForm:tabViewId:panelLogin" style="text-align: center; font-size: 12pt; vertical-align: middle; margin:0 auto; padding-top: 1%; padding-bottom: 2%;">