Funny thing is that the data i shown for just a second and after that it disappear.
I've got the data on my html source, but it won't be shown!
Here's the code of my page :
Code: Select all
<pou:dataTable scrollable="true" liveScroll="true" scrollHeight="400" scrollRows="100" value="#{postListBean_1.posts}" var="post">
<pou:column>
#{post.testo}
<hr/>
</pou:column>
</pou:dataTable>
Code: Select all
@ManagedBean
@RequestScoped
public class PostListBean_1 implements Serializable {
@EJB
private PostManagerLocal postManager;
private List<Post> posts;
private int limit = 0;
/**
* Get the value of posts
*
* @return the value of posts
*/
public List<Post> getPosts() {
limit+=4;
makePosts();
return posts;
}
/**
* Set the value of posts
*
* @param posts new value of posts
*/
public void setPosts(List<Post> posts) {
this.posts = posts;
}
public PostListBean_1() {
}
@PostConstruct
public void makePosts() {
int[] range = {0, limit};
posts = postManager.findRangeReverse(range);
}
}
Removing all the scrolling references make my table work again!