It's not a secret anymore!
The moose likes Spring and the fly likes Login page using PrimeFaces dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Login page using PrimeFaces dialog" Watch "Login page using PrimeFaces dialog" New topic

Login page using PrimeFaces dialog

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 255
Hi All,
I'm trying to implement spring security login using PrimeFaces dialog.
I'm currently following jsf2 impl created by Lincoln Baxter

I have managed to get Lincoln example working, but would like to use PrimeFaces dialog box
to contain my login details. Every time spring security fails authentication, the dialog box disapears.

I attempted to replace the primeface login code example with the following:-

<h:inputText id="j_username" value="#{loginBean.username}" required="true" />
<h:inputSecret id="j_password" value="#{loginBean.password}" required="true" />

<h:commandButton type="submit" id="login" action="#{loginBean.doLogin}" value="Login" />

Primeface Login example:-

Has anybody created a spring security login box using PrimeFaces?

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

In my login pages with Spring Security, the action for the button had to be j_spring_security_check in order for the Servlet filters of Spring Security to do anything.

Not sure if that will work for you. But you can give it a try.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Login page using PrimeFaces dialog
jQuery in Action, 3rd edition