Tab Order issues with SelectOneMenu

UI Components for JSF
Post Reply
RElliott
Posts: 94
Joined: 07 Feb 2014, 00:39

25 Feb 2015, 04:55

As soon as I select a value in a SelectOneMenu, the cursor position appears to change to the top of the page. I tried entering the tabindex on my page components but PFM did not pass the SelectOneMenu tabindex attribute to the <select> tag as shown below.

Code: Select all

<p:selectOneMenu
    id="type"
    value="#{backingbean.type}"
    tabindex="5"
    required="true"
    requiredMessage="Type is required."
    label="Type">
    <f:selectItem
        itemLabel=""
        itemValue="#{null}" />
    <f:selectItems
        value="#{backingbean.types}"
        var="type"
        itemLabel="#{type.label}"
        itemValue="#{type}" />
</p:selectOneMenu>
Results

Code: Select all

<select name="..." data-role="none">
    <option value selected="selected"><option>
    <option value="LAYOUT">Layout<option>
    <option value="PORTRAIT">Portrait<option>
</select>
Is there a way to control what happens to the cursor after selecting an item in a SelectOneMenu?
PrimeFaces 7.0.1, Glassfish 5.1.0, Oracle JDK 8, Eclipse 2016-02

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests