I have found so many examples but the problem is all of them are using JSP/JSF
as view. The problem is they always use j_username
as username input id and j_password
as password id. What I found is these names are standard names. Primefaces doesn't allow me to give name to p:inputtext
component. Do you have any solution?
Here is an example : http://krams915.blogspot.com/2012/01/spring-security-31-implement_13.html
Best Answer
j_username
andj_password
are only default values in Spring Security. You can customize these names as you expected. To do this, you set values forpassword-parameter
andusername-parameter
as below:I'm using Spring Security 3.1. With another version, the configuration is possibly something like above.