MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-1444

document how to set a focus on the first field of a dynamically generated set of input fields

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Data List, Focus
    • Labels:
      None

      Description

      this should be added to http://myfaces.apache.org/sandbox/focus.html

      My code to generate the fields looks like
      <t:dataList
      var="propSubItem"
      value="#

      {propItem.subItems}

      "
      layout="simple"
      rowCountVar="x"
      rowIndexVar="y">

      <h:inputText value="#

      {propSubItem.name}

      " size="5" style="width:65px"></h:inputText>

      </t:dataList>

      As opposed to otherwise, I omit the inputText tag's id field. I noticed that just hardcoding the
      "formName:_idJsp9:0:_idJsp13:0:_idJsp14"
      appears to work in quick-and-dirty tests, but there must be a better way to focus on the first of the generated input fields and I didn't find anything in the mailing lists.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Ralf Hauser
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development