Reply To: Spring JSF with Pretty Faces

Splash Forums Rewrite Users Spring JSF with Pretty Faces Reply To: Spring JSF with Pretty Faces

#25489

kmraun
Participant

Thank you for your reply…

Could you resolve my error.

@Named
@Scope(“request”)
public class AuthenticatorJ implements Serializable {

private static final long serialVersionUID = -8038592775972141504L;

@Autowired
private Authentication authentication;

private String emailId;
private String password;

public String getEmailId() {
return emailId;
}

public void setEmailId(String emailId) {
this.emailId = emailId;
}

public String getPassword() {
return password;
}

public void setPassword(String password) {
this.password = password;
}

public void checkAuthorization(ComponentSystemEvent event) {

}

public void doLogin() {
System.out.println(“Login called”);

}

public void doLogout() {

}
}

Error
—————–

When we logout

url :http://localhost:9090/oaotspmtool/20ffbfce888690759317a2fc7ada/secure/logout

org.ocpsoft.rewrite.exception.RewriteException: No registered org.ocpsoft.rewrite.el.spi.ExpressionLanguageProvider could handle the Expression [#{authenticatorJ.doLogout()}

MY Pretty Config
———————-
.addRule().when(Direction.isInbound().and(Path.matches(“/{sessionId}/secure/logout”)))
.perform(Invoke.binding(El.retrievalMethod(“#{authenticatorJ.doLogout()}”)));

Another doubt is

How can I redirect url
:http://localhost:9090/oaotspmtool/secure/home.xhtml to
:http://localhost:9090/oaotspmtool/20ffbfce888690759317a2fc7ada/secure/home