i am creating a login page with GWT.
If the login is successful do I just show/hide elements with object.setVisible(bool) or is there an other, proper way to do it?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would suggest to add / remove the elements from DOM.
For example:
If you just hide a Button by setting it invisible for logged-off user. The evil logged-off user may make it visible with browser-development tools and will get features which are for logged-in users only.