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 : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 <p:dataScroller widgetVar="newsfeed" chunkSize="#{dataBean.CHUNKSIZE}" lazy="true" value="#{mainBean.model}" var="tp" rowIndexVar="row_index" first="#{mainBean.first}"> ../..Merci pour votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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; }
Partager