Please look at (tutorial.workbench.components) Border.jwc The tabs on the tab view are produced by a loop, the eachPage component (type Foreach).
The list is drawn from the pageTabNames property of the Border component, which ultimately retrieves them from the the properties file. Now, look at *every single use* of the Border component on *every page*: It is simply: <span jwcid="border"> ... </span> And in the page spec: <component id="border" type="Border"/> NO, NONE, NOT ONE LITTLE BIT, NO OTHER CONFIGURATION. NO PARAMETERS. NO DUPLICATION. The Border component has some explicit knowledge of the Workbench application, which is all it needs to adjust itself to each page it may be used in. This is EXACTLY what we've been trying to say ... in fact, I've typed the above description in a previous e-mail on this subject. Were we to try and make the Workbench Border component re-usable in new applications, THEN we would have to add parameters, including a list of pages, plus titles and whatever else. ----- Original Message ----- From: "Christian Sell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 20, 2002 7:27 PM Subject: Re: [Tapestry-developer] component definitions > > WRONG WRONG WRONG WRONG WRONG WRONG WRONG WRONG > > > > It is configured ONCE, INSIDE the Border. End of story. > > please tell me how and in what exact file you would do this. In the > meantime, I will try to do it myself - and if my assumption is right and > it in fact has to be done in every page that uses the border component > (i.e., Palette, Localization, Dates, etc.), I will post my findings to > the list, along with this email. > > respectfully, > Christian > > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
