Re: [Dev] [UUF] How to handle multiple form submits within one page

2017-03-10 Thread Denuwanthi De Silva
Hi all, Thank you for the valuable suggestions. I too think calling a micro service via ajax would be a better solution. Thanks On Fri, Mar 10, 2017 at 10:00 PM, Danushka Fernando wrote: > +1 to use ajax when generate password. When generating a complex pass via > some

Re: [Dev] [UUF] How to handle multiple form submits within one page

2017-03-10 Thread Danushka Fernando
+1 to use ajax when generate password. When generating a complex pass via some tool it will be annoying if browser redirection occurs. I am not too sure about security issues that can raise if we do it in front end. But ajax is the better option IMHO. Thanks & Regards Danushka Fernando Senior

Re: [Dev] [UUF] How to handle multiple form submits within one page

2017-03-10 Thread Manuranga Perera
1) Technically it can be done [1] , but i don't think it's very good idea. Generating a password is not really a submit, is it? I would prefer if you generate password in frontend eg [2] OR write a password generation service and call it using ajax 2) Fragment is just way to organize code,

[Dev] [UUF] How to handle multiple form submits within one page

2017-03-10 Thread Denuwanthi De Silva
Hi, I have a requirement where I have two form submit buttons in my page. Please refer to "Generate Password" and "Add User" buttons in the wireframe [1]. -When click the "Generate Password" button, a call to onPost() method will happen. Inside that we need to do necessary backend