1 Reply Latest reply on May 8, 2007 8:42 PM by Tony Herstell

    Pressing return in a field and which botton gets "auto-press

    Tony Herstell Master

      I have these buttons (and will have another soon) and want a given button to be "auto-pressed" when the user logs in.
      At the moment I think it picks the nearest button!
      Can we somehow add an attribute to the button to tell seam which button to auto-press or canthis be done already and I have just not seen it yet?

      <td>
       <h:commandButton type="submit"
       value="#{messages.button_login}"
       action="#{identity.login}">
       </h:commandButton>
      </td>
      <td>
       <h:commandButton
       action="#{loginController.cancel}"
       value="#{messages.button_cancel}" immediate="true"
       type="submit" />
      </td>