<ui:table> and JavaBeans collection

How to use this tag with JavaBeans collection?

I use ObjectListDataProvider and DefaultTableDataProvider, but table is empty.

Example of my code:

...

List collection = new ArrayList();

for (int i = 0; i < 10; i ++ ) {

MyBean myBean = new MyBean();

myBean.setName("bla-bla-bla");

myBean.setDescription("tra-ta-ta");

collection.add(myBean);

objectListDataProvider.addObject(myBean);

}

...

next step (JSP code):

<ui: table ...>

<ui:tableRowGroup...sourceData="#{page1.objectListDataProvider}...>

...

</ui:tableRowGroup>

</ui:table>

it does not work.

Any ideas...">

[719 byte] By [AndreyOa] at [2007-10-2 5:13:14]
# 1
i tried thisobjectListDataProvider1.setList(<arrayList of bean>);same thing no data shown on tablehave someone get this to work
jesus_olivasa at 2007-7-16 1:15:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...