MyFaces Tobago
  1. MyFaces Tobago
  2. TOBAGO-615

it would be nice to configure tc/tx:in not to grab focus on load

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.14
    • Fix Version/s: 1.0.15, 1.5.0
    • Component/s: Themes
    • Labels:
      None
    • Environment:
      jdk 1.4
      facelets / templates

      Description

      When using facelets with templates an input field in the template should be marked as "nofocus". So the content of the application receives the focus.

      layout.xhtml
      ...
      <tc:page>
      <f:facet name="layout">
      <tc:gridLayout border="0" columns="170px;" margin="0px" rows="50px;" cellspacing="0" />
      </f:facet>
      <tx:in label="Search" value="searchBean.serach" nofocus="true">
      ...
      <ui:insert name="Content">
      </ui:insert>
      ...

      main.xhtml
      <ui:composition template="layout.xhtml">
      <ui:define name="Content">
      <tc:box >
      <f:facet name="layout">
      <tc:gridLayout columns="1*;1*" rows="fixed;fixed;fixed;fixed;fixed;fixed;fixed;fixed;fixed;*" />
      </f:facet>

      should get the focus --> <tx:in label="Input" value="#

      {appBean.value}

      " />

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Rainer Rohloff
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development