Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Execute method on load alternative

@ManagedBean
@RequestScoped
public class Authenticator {

    private String token;

    public void check() throws IOException {
        if (!isValid(token)) {
            FacesContext.getCurrentInstance().getExternalContext().redirect("main.jsf");
        }
    }

    // Getter/setter.
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Execute #method #load #alternative
ADD COMMENT
Topic
Name
9+9 =