dev@javaserverfaces.java.net

Form based login component

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Thu, 10 Apr 2008 15:58:33 -0700

So, I'm also thinking about doing a Form Based login component.

I'm aware of the login component in Woodstock
(http://webdev2.sun.com/woodstock-tlddocs/webuijsf/login.html), but it
seems rather complex (it appears you need to write a JAAS login module
from my cursory look). It's very extensible, and full featured, but I
was hoping for something considerably simpler.

Ideally, it could be as simple as:

<foo:formLogin userLabel="User:" passLabel="Password:"
loginLabel="Login" styleClass="login"/>

But that would be a bit of a pain to style without serious CSS juju.

So I was also thinking I could do:

<foo:loginForm>
<p>Username: <foo:loginUserInput size="8"/></p>
<p>Password: <foo:loginPassInput size="8"/></p>
<foo:loginButton value="Login"/>
</foo:loginForm>

The advantage there is that it's trivial to custom style - the downside
is now you've got 4 components.

Or, maybe, even use facets like datatable... but that would get more
complicated...

Anyone have thoughts on the matter? The actual implementation itself
would actually be pretty simple, of course.

Jim