Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Execute method on load

@ManagedBean
@RequestScoped
public class Authenticator {

    private String token;

    public String check() {
        return isValid(token) ? null : "main.jsf";
    }

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