Steve:

> Order is definately NOT being preserved.  Part of the problem may be (and will 
> eventually be) the fact that the titles come from one table, and the data may (or 
> may not) be loaded from another table.

What I meant by preserved though, was that the order you nest the outputs in the Model 
should be the order they're displayed in the JSP. In this situation that may not help 
you, as far as I can see, so the nested elements should be named.

> I did have a look at the "List" model in CRUD, but it is guaranteed to be pulling 
> headers and data from the same table.  Its also doing some additional stuff that I 
> am not at the moment, and I am having some trouble following 
> some of what it is doing.

It's a fun one, no question :-). What you should be able to do is something like this:
    Output top = res.createOutput("top");
          Output row = res.createOutput("row1");
          top.add(row);
                 start your loop.....
                       Output column = res.createOutput("firstColumnName");
                       row.add(column);
                       .... for each column....

then in the JSP you can retrieve each "row", then call for the columns in a specific 
name order (perhaps by iterating through the collection of headers again - if you name 
the *output* of each header the same as the actual column name, that might be an easy 
way to do it....

HTH!

> Bottom line, I am seeing Titles and columns that are not being displayed in the same 
> order.  Specifically, columns are all displayed lined up, but not necessarily under 
> their correct titles.
> 
> I already have the outputs placed by column name, so I am trying to figure out how 
> to fish them out again.  One of the requirements I am looking at is the ability to 
> rearrange the order of the columns displayed on the fly, so 
> being able to call the stuff back out on demand would be a great help.
> 

Michael Nash

JGlobal Ltd.
 http://www.jglobal.com

Bahamas Commerce and Trade
http://www.bahamascommerce.com

http://keelframework.org/documentation
Keelgroup mailing list
[EMAIL PROTECTED]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com

Reply via email to