How to set listbox.pagingPosition in Java

asked 2020-12-15 20:57:25 +0800

54patman gravatar image 54patman
13 3

I'm developing mostly in Java and the property listbox.pagingPosition is not in the Listbox class. How do I programmatically set this property. I search a long time.

Thanks in advance.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2020-12-16 20:24:04 +0800

54patman gravatar image 54patman
13 3

I figured it out:

Listbox rowsOfCardsContent = new Listbox() {    
    protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException {
        render(renderer, "pagingPosition", "top");
link publish delete flag offensive edit


Never mind the pagingPosition is in the MeshElement.

54patman ( 2020-12-16 21:57:54 +0800 )edit

answered 2020-12-17 09:28:52 +0800

hawk gravatar image hawk
2785 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2020-12-17 09:30:44 +0800

Since some methods are inherited. Please check javadoc, you can find all methods including inherited.


So you can call listbox.setPagingPosition() instead of overriding renderProperties()

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2020-12-15 20:57:25 +0800

Seen: 6 times

Last updated: Dec 17 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More