jsf - In PrimeFaces (4.0) confirm dialog, how do I ensure 'No' is in focus by default? -
as can see image below, 'yes' button gets primary focus. can ensure 'no' in focus without swapping buttons around, perhaps attribute?
as far know, way swap buttons in xhtml. can keep order of appearance in dialog float:left
on yes button.
<p:confirmdialog global="true" showeffect="fade" hideeffect="fade"> <p:commandbutton value="no" type="button" styleclass="ui-confirmdialog-no" icon="ui-icon-close" /> <p:commandbutton value="yes" type="button" style="float:left;" styleclass="ui-confirmdialog-yes" icon="ui-icon-check" /> </p:confirmdialog>