LoginForm problem

I was trying this example:

https://github.com/eneuwirt/vaadin-shiro-simple/blob/master/src/main/java/org/eneuwirt/LoginScreen.java

Then I notice I don’t have
setUsernameCaption,
setPasswordCaption and
setLoginButtonCaption
methods in my Vaadin 6.4 LoginForm class, although in docs they appear:

http://vaadin.com/api/com/vaadin/ui/LoginForm.html

Where did they go?

Hi,

You are looking at the current JavaDoc while using an old Vaadin version. I think those methods appeared in 6.5, so they did not go anywhere, they just have not appeared yet in the version you are using :wink:

Best Regards,
Marc

I was 6.4.3 actually. Someone should edit the doc, because it sais:


http://vaadin.com/api/com/vaadin/ui/LoginForm.html

Perhaps it should indicate when the methods were added

While I’m at it, any reason to use LoginForm and not make your own? Does it come with special advantages, like client side validation or something else?

From what I read in the sampler the browser autocomplete is suppose to catch the fields and autocomplete the user and password because of the iframe?

Effectively autocomplete is the only real reason to use LoginForm and not a separate login form composed of other Vaadin components. If autocompletion is not needed, feel free to use other approaches.

I don’t think the reason why autocomplete works in it is the iframe, though, but the use of suitably identified native text fields.

EDIT: clarified wording