Primefaces 7.0 - Attribut first d'un dataScroller qui ne fonctionne pas
Bonjour, j'essaie d'afficher un datascroller en changeant l'attribut first mais le datascroller se comporte comme si first était toujours à zéro :
Code:
1 2 3
| <p:dataScroller widgetVar="newsfeed" chunkSize="#{dataBean.CHUNKSIZE}" lazy="true" value="#{mainBean.model}"
var="tp" rowIndexVar="row_index" first="#{mainBean.first}">
../.. |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| @ManagedBean
@ViewScoped
public class MainBean extends NewsFeed implements Serializable {
/**
* Creates a new instance of MainBean
*/
public MainBean() {
}
@PostConstruct
public void postConstruct() {
../..
initNbRows();
model = new TablePostsModel(getThisObject());
model.setRowCount((int) nbRows);
first = 10;
} |
Merci pour votre aide.