> 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.

that (only THAT) is what I was trying to get at all the time. Reusable
components. If you wanted to make the Workbench Border re-usable, you would
have to add a formal parameter to Border.jwc, AND add something like:

<component id="Border">
<binding name="menuitems" expression='{"Item1", "Item2", "Item3"}/>
</component>

to EVERY page using that component (or create a wrapper component for just
these parameters). My suggestion was to add the capabillity to provide these
kinds of "static" configurations on a global level, so that they could be
reused wherever appropriate. There was even an earlier message on this
thread where someone had already implemented this as an extension to
Tapestry. If I remember correctly, he had expanded the component-alias
element within the application file, so that one could write:

<component-alias type="Border1" specification-path="somewhere/Border.jwc">
  <binding name="menuitems" expression='{"Item1", "Item2", "Item3"}/>
</component-alias>

<component-alias type="Border2" specification-path="somewhere/Border.jwc">
  <binding name="menuitems" expression='{"Item3", "Item4", "Item5"}/>
</component-alias>

He also had the capability of overriding these settings on a per-page basis.
That sure looked nice to me.

Note that I am NOT (and have never been) saying that tapestry is crap if you
dont do what I suggest. Its a suggestion. I do however request that you read
emails before you respond to (rather, shout at) them. Everything I have
written above has been said many times over, and others have already come to
the conclusions I am reiterating here.

regards & thanks
Christian Sell



-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
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

Reply via email to