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

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -