p:focus not setting initial focus

UI Components for JSF
Post Reply
Cool Mr Ice
Posts: 46
Joined: 17 Sep 2011, 11:53

23 Dec 2011, 11:25

When using p:focus, normally the first open input field should receive focus.
The primefaces showcase for p:focus wrote:By default first visible and enabled input element(e.g. text, textarea, select) is chosen to receive focus automatically.
This was once true for the showcase (and my web app). Firstname would receive focus when the page was loaded. This seems to no longer be the case (at least with my versions of Firefox and IE). Someone, please confirm. :arrow: Primefaces Showcase Focus Demo -Thanks
PrimeFaces 3.5
JSF 2.1
Mojarra 2.1.3
Glassfish 3.1.1
Netbeans 7.0.1
JDK 7
JEE 6

Cool Mr Ice
Posts: 46
Joined: 17 Sep 2011, 11:53

23 Dec 2011, 11:26

Cool Mr Ice wrote:When using p:focus, normally the first open input field should receive focus.
The primefaces showcase for p:focus wrote:By default first visible and enabled input element(e.g. text, textarea, select) is chosen to receive focus automatically.
This was once true for the showcase (and my web app). Firstname would receive focus when the page was loaded. This seems to no longer be the case (at least with my versions of Firefox and IE). Someone, please confirm. :arrow: Primefaces Showcase Focus Demo -Thanks
PrimeFaces 3.5
JSF 2.1
Mojarra 2.1.3
Glassfish 3.1.1
Netbeans 7.0.1
JDK 7
JEE 6

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

23 Dec 2011, 11:36

p:focus does not work here on FF 8 on Fedora 16

Cool Mr Ice
Posts: 46
Joined: 17 Sep 2011, 11:53

23 Dec 2011, 23:45

kukeltje wrote:p:focus does not work here on FF 8 on Fedora 16
Thank you, kukeltje.

An issue has been created: http://code.google.com/p/primefaces/iss ... il?id=3184
PrimeFaces 3.5
JSF 2.1
Mojarra 2.1.3
Glassfish 3.1.1
Netbeans 7.0.1
JDK 7
JEE 6

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 60 guests