Hi all,

I have a requirement where I have to show 2 rows from a list in one row on the browser.

Let's say I have this array:

String[] a = {"one", "two", "three", "four", "five", "six"};
request.setAttribute("elements", a);                       

And I want to display on the browser as:

one     two
three   four
five      six

Is there a way to do it using the <h:dataTable> tag?
If you know any other way of displaying it using a different jsf tag please let me know as well.

Thanks!

Reply via email to