0

I have a vaadin 7 portlet application. One view contains fields for password change. However, there is architectural policy, that passwords should never be sent to container where my application resides. Password change request should be send to servlet on diferent container.

To fulfill this requirement i need to disable client-server communication of password field, so password value is not send to server at all. After client clicks to change password, custom javascript should be executed which sends ajax request to change password servlet.

I know this solution is dirty, but that is only way to satisfy requirements. Is there a way to accomplish this in vaadin 7? It would be also nice to be able to make simple validations on client - eg password lenght and regex.

Thank you.

1 Answer 1

0

I had nearly similar requiremet for one of the project - had to emcrypt fields data before sending it to server. Only way I found is to extend Vaadin TextField widget or PasswordField in your case and implement necessary behaviour at client side by yourself. It will require extending of client and server side as well.

2
  • Thank you. By extending you mean class that extends PasswordField or new Vaadin 7 Extensions? Could you provide some sample code of your implementation please? Thank you.
    – user1018711
    Dec 5, 2013 at 17:03
  • I did my implementation for vaadin 6, so I etended VTextField and TextField: code public class VEncryptedTextField extends VTextField implements Paintable code , but for vaadin 7 Extensions should be used Dec 6, 2013 at 7:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.