Menu

#199 Open package visible submit method in the HtmlForm class

pending
nobody
None
5
2012-10-21
2011-09-13
akozak
No

Could you please open package visible method submit(final SubmittableElement submitElement) in the HtmlForm class in the further release.
I found the comment in javadoc: "Using this method directly is not the preferred way of submitting forms. Most consumers should emulate the user's actions instead". In our case it will complicate tests case.
Thank you.

Discussion

  • Ahmed Ashour

    Ahmed Ashour - 2011-09-13

    No, it shouldn't be allowed.

    In real browsers, you don't 'submit' a form, but rather do some action (e.g. click a button, type 'Enter'), in order for form to be submitted.

    BTW, you can run JavaScript of something like "form.submti()", but again this is not preferred.

     
  • akozak

    akozak - 2011-09-13

    It would be nice to have choice: either to process html elements like buttons, etc or use simple form submit in case UI elements are not important.
    Could you please show JS xample as workaround?
    Thank you.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.