You can "simulate" a comment directive as a component:
public class Comment { boolean setupRender() { return false; } } This is a no-op component, it skips directly from the SetupRender phase to the CleanupRender phase, rendering nothing. This is even less work than <t:if test="false">. On Fri, Apr 11, 2008 at 12:03 PM, nicholas Krul <[EMAIL PROTECTED]> wrote: > Good to know that it works, but I would think thats a little dangerous... > > If its not commented, I always assume its live code. There should be a way > to comment properly. > > I can do it in the jsps I stare at all day long... I'd think it reasonable > T5 does real comments. > > *I haven't tested any of this, nor have I needed to put in server side > comments... I find they tend to contain old code that may be needed again > (or 'uncomment this for...') > > --just a thought. > > --nK > nicholas Krul > > > > On Fri, Apr 11, 2008 at 7:57 PM, Jim <[EMAIL PROTECTED]> wrote: > > > That's perfect, thanks Josh. > > > > Josh Canfield wrote: > > > > > How about just doing whatever the equivalent to <t:if test="false"> is > > > in T4? > > > > > > On Fri, Apr 11, 2008 at 11:31 AM, Jim <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Is there a way to do server-side commenting, ala <%-- --> in JSPs? > > > > i.e. to > > > > comment sections that you (temporarily) don't wish to be dynamically > > > > processed server-side? > > > > > > > > Adding <!-- --> only precludes client-side processing, of course, and > > > > if I > > > > try to surround a template section (which contains Tapestry > > > > components) with > > > > $remove$ tags, I get: "Tag __ on line __ is a dynamic component, and > > > > may not > > > > appear inside an ignored block." Is there another way? I've been > > > > resorting > > > > to pasting into a separate file. > > > > > > > > Thanks, > > > > Jim > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]