Working!! Thanks a lot Nick. I told my component to ignore the informal-parameters. And it is now working sweetly.
Cheers. Rahat Nick Westgate wrote: > > Hi Rahat. > > Thinking further, if you want to keep your components implicit > you could pay the price of another (trivial) implicit component: > > <span jwcid="@Ghost" style="display:none;"> > < a jwcid="[EMAIL PROTECTED]" listener="ognl:listeners.dothis" ...> > My Link > < /a> > </span> > > The Ghost component would render it's contents but omit itself > and thus disappear at runtime, revealing its enclosed tags etc. > (Another technique would be to just omit informal parameters.) > Here's some source, but I haven't tested it on Tapestry 4. > > Cheers, > Nick. > > > Ghost.jwc: > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE component-specification PUBLIC > "-//Apache Software Foundation//Tapestry Specification 4.0//EN" > "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> > <component-specification class="jp.co.key_planning.tapestry.Ghost"> > <description> > Disappears at runtime! (Only enclosed tags and components are > rendered.) > </description> > </component-specification> > > Ghost.java: > package jp.co.key_planning.tapestry; > > import org.apache.tapestry.AbstractComponent; > import org.apache.tapestry.IMarkupWriter; > import org.apache.tapestry.IRequestCycle; > > public abstract class Ghost extends AbstractComponent > { > protected void renderComponent(IMarkupWriter writer, IRequestCycle > cycle) > { > renderBody(writer, cycle); > } > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/JWCID-changing-the-look---feel-of-the-Static-HTML-mocks.-tf2102960.html#a5846065 Sent from the Tapestry - User forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]