Greg, thanks very much for the tips!
2010/3/29 Greg Brown <[email protected]> > > I need to understand a basic case where I search for data in the business > classes, returning a List of objects, for example, and have to bind this > list to a TableView. > > For this, you can probably just set the "tableData" property of the > TableView: > > tableView.setTableData(myList); > > > Or even when I want to show a selected item on the TableView on the > fields of the form. > > Here, you might want to use data binding. You could load the selected row > into your form: > > form.load(myList.get(tableView.getSelectedIndex())); > > The Stock Tracker tutorial includes some example code that demonstrates > something similar. I'd suggest looking at the Pivot 1.5 version, since it > represents current best practices (the 1.4 version goes back a way and is a > little dated at this point): > > > http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/stocktracker/ > > The tutorial docs haven't been uploaded to the site yet, but if you build > Pivot from source and run the Ant deploy target, you can read it locally. > > Hope this helps, > G > > -- Att, Luiz Gustavo S. de Souza Analista de Sistemas - Desenvolvedor Java http://luizgustavoss.wordpress.com http://luizgustavoss.blogspot.com http://twitter.com/lugustso
