Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Data List, Focus
    • 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hauser@acm.org Ralf Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: