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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        94d 21h 34m 1 Bernd Bohmann 12/May/08 10:20
        Bernd Bohmann made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Hide
        Bernd Bohmann added a comment -

        Partially solved

        Show
        Bernd Bohmann added a comment - Partially solved
        Bernd Bohmann made changes -
        Field Original Value New Value
        Component/s Facelets [ 12311140 ]
        Component/s Themes [ 12311142 ]
        Fix Version/s 1.1.0 [ 12312205 ]
        Fix Version/s 1.0.15 [ 12312929 ]
        Hide
        Volker Weber added a comment -

        There is already a focus attribute on tx:in, set focus="true" at the element which should get the focus.
        If this did not meets your requirements maybe we should interpret focus="false" like you describe the nofocus="true".

        Show
        Volker Weber added a comment - There is already a focus attribute on tx:in, set focus="true" at the element which should get the focus. If this did not meets your requirements maybe we should interpret focus="false" like you describe the nofocus="true".
        Rainer Rohloff created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development