Steve:

If you "load" the columns in the right order (e.g. the same order as the headers when 
constructing the outputs in the model), this order should be preserved I believe. The 
other way to do it is to "name" each of the nested inputs, and fish them back out by 
name (e.g. col1, col2, col3), rather than just iterating over the collection, but 
that's a bit awkward.

Are you finding the order is not being preserved at the moment?

I believe we do a similar thing in CRUD (in the "list" model), and it always seems to 
be in the right order.

Mike



On Tue, 30 Sep 2003 13:45:00 -0500
Stephen Davidson <[EMAIL PROTECTED]> wrote:

> Greetings.
> 
> I have run into an odd situation, and I am looking for some input on how to handle 
> it.  Specifically, I have a "Boss" table (in this case Archive), and several smaller 
> tables, but with identical Columns (Sets).  The other 
> tables are basically mirroring whats on various media devices (raid arrays, raid 
> racks, DVD Juke Box sets, etc).
> 
> Now, the Archive table basically defines the whole thing, so I am pulling the titles 
> for the columns from that.  The question is, how do I ensure that the data from 
> another table is loaded/displayed with the columns in the 
> same order as the headers?
> 
> My current method is not working, and my Struts is not good enough to figure a way 
> to make this work.
> 
> Thanks,
> Steve
> 
> 
> <table align="center" cellspacing="0" border="1" cellpadding="2">
>       <!-- Header Row -->
>       <tr>
>               <logic:iterate id="clipTitle" name="editClipTitles" property="nested">
>       <td><bean:write name="clipTitle"/></td>
>               </logic:iterate>
>       </tr>
>       <!-- Table Body -->
>       <logic:iterate id="row" name="clipValues" property="nested"><tr>
>               <logic : iterate id="fieldValue" name="row" property="nested"><td>
>               <bean : write name="fieldValue"/>
>       </td></logic:iterate>
>       </tr></logic:iterate>
> </table>
> 
> -- 
> Java/J2EE Developer/Integrator
> Co-Chair, Dallas/FortWorth J2EE Sig
> 214-724-7741
> 
> 
> http://keelframework.org/documentation
> Keelgroup mailing list
> [EMAIL PROTECTED]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com


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