So, what you want is something like: <span id="myBoxInstance"> Content that goes in the box. </span>
And the generated HTML should produce a portal-like box, with "Content tjhat goes in the box." in the middle? That's actually pretty easy. Use the InsertWrapped component instead of the InsertBlock component. InsertWrapped finds its parent component, and finds the content that the parent wraps from the grandparent's template and renders that content. Content is the generic term covering static HTML and components. ----- Original Message ----- From: "Jozsa Kristof" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 2:35 AM Subject: [Tapestry-developer] Portal-style box? > I've examined the portal tutorial, but I still have the question: how could > I create a Tapestry component, which can be invoked from html, given the > title, the body of the portal box wrapped into the tapestry tag, the Page > name for the help page (the help button displays beside the title of the > portal box), if any, and get it work? > > The portal example uses the Block/InsertBlock concept, but I'd rather take > the inside of the block wrapped in the portal tag.. it'd make much more > sense for me. > > I ask for the base idea only, whether I'd write a custom component derived > from AbstractComponent, or start from a higher level? I also can't see how > I'd pass more parameters from HTML beside the jwcid (not counting informal > parameters). > > Regards, > > Christopher > -- > .Digital.Yearning.for.Networked.Assassination.and.Xenocide > > > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
