This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Login page using PrimeFaces dialog

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm trying to implement spring security login using PrimeFaces dialog.
I'm currently following jsf2 impl created by Lincoln Baxter
http://ocpsoft.com/java/acegi-spring-security-jsf-login-page/

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?

Mat
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic