display array data in one row

Hello I have an array of data, I would like to be displayed all the data in one row.<tr></tr>, how to do this?If I use <h:table> <column></column></h:table>, it will display different rows. Thanks!Ben
[271 byte] By [benzhang0001a] at [2007-11-26 14:58:51]
# 1

Populate the components in the backingbean. Try something like:

JSF<h:panelGrid binding="#{myBean.grid}" />

MyBeanprivate List arrayOfData;

private HtmlPanelGrid grid; // + getter + setter

private void populateGrid() {

grid = new HtmlPanelGrid();

grid.setColumns(arrayOfData.size());

for (Iterator iter = arrayOfData.iterator(); iter.hasNext();) {

Object value = iter.next();

HtmlOutputText text = new HtmlOutputText();

text.setValue(value);

grid.getChildren.add(text);

}

}

BalusCa at 2007-7-8 8:47:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks!But, they are displayed in a column like:123I want to be 1 2 3.
benzhang0001a at 2007-7-8 8:47:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I am sorry, I played in different way. You are correct.I want to have one HtmlPanelGrid contains another one that I can have something like this:A b c d cf d s f g dd g h j jThanks, I saw some article on this, but I could not find now.
benzhang0001a at 2007-7-8 8:47:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...