• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Login page using PrimeFaces dialog

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic