I have a Dialog in my Page, which contains a input field (Date, Calendar) . The problem is that the calendar opens directly after opening the dialog, becaus
Another trick to fix this issue:
I have added a text input as first input of the dialog in my dialog:
And when showing the dialog I call this:
$('#myForm\\:fixForFocusProblem').show();
myDialog.show();
$('#myForm\\:fixForFocusProblem').hide();
This way the focus gets on the input text which gets immediately unvisible.
Not so nice but it works without visually disturbing.