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?

enter image description here

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> 

Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

jquery - jqGrid update specific column data with out refreshing the entire column? -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -