• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 17347
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic