1 Reply Latest reply on May 8, 2007 8:42 PM by tony.herstell1

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

    tony.herstell1

      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>