1 Reply Latest reply on Aug 9, 2007 10:23 AM by xinhua

    How to use accessKey?

    xinhua

      hi,
      i have a a4j:commandButton like following

       <a4j:commandButton
       style="font-family:Verdana;font-size:11px;width: 160px;"
       action="#{identity.login}"
       value="#{messages.loginForm_loginButton}" reRender="form,mp"
      
       />

      now ,what i want is to put a accessKey attribute so that user can simply press 'return' to submit the form. But i failed by using
       <a4j:commandButton
       style="font-family:Verdana;font-size:11px;width: 160px;"
       action="#{identity.login}"
       value="#{messages.loginForm_loginButton}" reRender="form,mp"
       accessKey="&#13;"
       />
      
      

      Anyone can help me?

      thanks