Here are my XPages Java presentation and files from AdminDev2012 May 15-17, 2012, in Washington, D.C.
Expert Advice to Build an XPages Dynamic Table Using Managed Beans
- Understand the requirements for programming a dynamic table
- Learn how to create a managed bean
- Understand the architecture of the dynamic table bean
- Learn how to use the dynamic table control
OpenNTF.org XBean Table Project
This is a very clever and flexible way of producing dynamic tables in xpages. I tried it already and it works every time.
Now I had a requirement to create two (so far) tables in the same page. I know it won't work because of the way the variables and indexes are used, so my question is, can this work and still keep the Java methods generic enough? Have you tried it?
Thanks
Hi. Glad you like the technique. I have not done it with multiple tables.
If I needed multiple tables I would probably consider using a Plain Old Java Object and store it in the ViewScope of the page I needed. Timing might be an issue there so perhaps establishing a sessionScope Map of your various POJO tables sored in the Map and retrieved by key value on the XPage where you need them.
That would allow you to retain all of the existing methods.