> wo:WOGenericElement Use:
> wo:WOGenericContainer Cheers, Anjo Am 21.07.2010 um 20:59 schrieb Theodore Petrosky: > almost... here is what I have. It looks like webobjects doesn't really like > the wo:WOGenericElement: > > > > <webobject name = "aWrapper"> > <p> > <webobject name = "BackLink">Back</webobject> > </p> > <wo:loop list = "$userList" item = "$theUser"> > <wo:WOGenericElement elementName = "table" name = "$theUser.username"> > <tr> > <th cellType = "CELL_TYPE_STRING">test</th> > <th cellType = "CELL_TYPE_STRING">one</th> > </tr> > <tr> > <td cellType = "CELL_TYPE_STRING">some</td> > <td cellType = "CELL_TYPE_STRING">info</td> > </tr> > </wo:WOGenericElement> > </wo:loop> > </webobject> > > here is the html generated: > > <span> > > <p> > <a > href="/cgi-bin/WebObjects/TheWorkTracker.woa/wo/TPrb3KN4rZbZIS3TDYmeTM/15.0.1.1">Back</a> > </p> > > <table name="admin" /> > > <table name="trose" /> > > </span> > > > Here is what I got the Old way: > > <webobject name = "aWrapper"> > <p> > <webobject name = "BackLink">Back</webobject> > </p> > <wo:loop list = "$userList" item = "$theUser"> > <table name = "$theUser.username"> > <tr> > <th cellType = "CELL_TYPE_STRING">test</th> > <th cellType = "CELL_TYPE_STRING">one</th> > </tr> > <tr> > <td cellType = "CELL_TYPE_STRING">some</td> > <td cellType = "CELL_TYPE_STRING">info</td> > </tr> > </table> > </wo:loop> > </webobject> > > <span> > > <p> > <a > href="/cgi-bin/WebObjects/TheWorkTracker.woa/wo/0FNdnmBwoU0L8a6wOiDIeM/7.0.1.1">Back</a> > </p> > > <table name = "$theUser.username"> > <tr> > <th cellType = "CELL_TYPE_STRING">test</th> > <th cellType = "CELL_TYPE_STRING">one</th> > </tr> > <tr> > <td cellType = "CELL_TYPE_STRING">some</td> > <td cellType = "CELL_TYPE_STRING">info</td> > </tr> > </table> > > <table name = "$theUser.username"> > <tr> > <th cellType = "CELL_TYPE_STRING">test</th> > <th cellType = "CELL_TYPE_STRING">one</th> > </tr> > <tr> > <td cellType = "CELL_TYPE_STRING">some</td> > <td cellType = "CELL_TYPE_STRING">info</td> > </tr> > </table> > > </span> > > --- On Wed, 7/21/10, Farrukh Ijaz <[email protected]> wrote: > >> From: Farrukh Ijaz <[email protected]> >> Subject: Re: table name bound to item? >> To: "Theodore Petrosky" <[email protected]> >> Cc: "[email protected]" <[email protected]> >> Date: Wednesday, July 21, 2010, 2:42 PM >> Instead of <table >> name="$theUser.username">, use <wo:WOGenericElement >> elementName="table" name="$theUser.username"> >> >> Farrukh >> >> Sent from my iPad >> >> On 21-Jul-2010, at 9:25 PM, Theodore Petrosky <[email protected]> >> wrote: >> >>> I am playing with the excel export of data and need >> some help. >>> >>> I have a WORepetition around a table... that's correct >> I want many tables with name = "$theUser.username" (the item >> object for the repetition.) >>> >>> It looks like <table name = "$theUser.username"> >> will not accept the 'item' object. I get an error: >>> >>> >> Error: java.lang.IllegalArgumentException: >> The workbook already contains a sheet of this name >>> Reason: The workbook >> already contains a sheet of this name >>> >>> I guess that is the question. Can I use the item from >> the repetition in the table name binding? >>> >>> <webobject name = "aWrapper"> >>> <p> >>> <webobject name = >> "BackLink">Back</webobject> >>> </p> >>> <wo:loop list = "$userList" item = >> "$theUser"> >>> <table name = "$theUser.username"> >>> <tr> >>> <th cellType = >> "CELL_TYPE_STRING"><wo:WOString value = >> "$theUser.username"/></th><th></th> >>> </tr> >>> <tr> >>> <td cellType = >> "CELL_TYPE_STRING">some</td> >>> <td cellType = >> "CELL_TYPE_STRING">info</td> >>> </tr> >>> </table> >>> </wo:loop> >>> </webobject> >>> >>> >>> >>> aWrapper : EGWrapper { >>> enabled = enabled; >>> styles = application.data.Styles; >> //VALID >>> fonts = application.data.Fonts; >> //VALID >>> } >>> >>> >>> BackLink: WOHyperlink { >>> pageName = "Main"; >>> } >>> >>> >>> >>> >>> Ted >>> >>> >>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be >> ignored. >>> Webobjects-dev mailing list ([email protected]) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com >>> >>> This email sent to [email protected] >> > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
