Tutorial by Examples

Makes an ajax request and updates only part of the view. Bean.java @ManagedBean @ViewScoped public class Bean { public Date getCurrentDate() { return new Date(); } } sample.xhtml <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns...
Makes a request only sending part of the form. The text1 value is set, but not text2, as the listener states. Bean.java @ManagedBean @ViewScoped public class Bean { private String text1; private String text2; public String getText1() { return text1; } pu...
The date is updated whenever user types on the input field: Bean.java @ManagedBean @ViewScoped public class Bean { public Date getCurrentDate(){ return new Date(); } } sample.xhtml <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://x...
Executes the requests with the specified delay in milliseconds, meaning that if any subsequent request happens after the previous has been queued, the first one will be skiped. The feature is available starting from JSF 2.2: Bean.java @ManagedBean @ViewScoped public class Bean { publi...

Page 1 of 1