Im using PF2.2.1 and Mojarra 2.1.2
Doing this is OK, the dialog got focused when it's shown for the 1st time :
Code: Select all
<p:focus />
<p:dialog id="eventDialog" widgetVar="eventDialog" header="Detil event" hideEffect="drop">
...
</p:dialog>
Code: Select all
<p:focus />
<p:dialog id="eventDialog" widgetVar="eventDialog" header="Detil event" showEffect="drop" hideEffect="drop">
...
</p:dialog>