1

I have a form with <p:inputText> and <p:selectOneMenu> components next to each other. When the focus is on the input text and I press the tab key in order to navigate to select one menu by keyboard, then the focus is lost. I don't see which component is focused.

How can I get the focus on the select one menu when I tab into it?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
midoDev
  • 97
  • 1
  • 2
  • 7

2 Answers2

1

You need to use the tabindex property of <p:inputText> and <p:selectOneMenu>, as explained in the documentation.

patstuart
  • 1,931
  • 1
  • 19
  • 29
0

Using the tabindex property makes it possible to navigate between <p:inputText> and <p:selectOneMenu>. What worked for me was to see set the tabindex in <p:inputText> to n and n+1 in <p:selectOneMenu>. I used n = 90.