Steve, that's fascinating.

On 10 November 2011 22:44, Steve Eynon <steve.ey...@alienfactory.co.uk>wrote:

> 'hang on - I just re-read your question...
>
> Are you wanting to specifiy on where in your .tml the informals are
> rendered?
>
> If so, the call to :
>
>    resources.renderInformalParameters(writer);
>
> renders them on the current element. (The RenderInformals Mixin calls
> it on the beginRender() phase event hence the informals are writen to
> the root element.) You probably want something like this (untested,
> obviously! But worth a try):
>
> <div class="render informals here">
>    <t:trigger event="renderInformals"/>
> </div>
>
> void onRenderInformals() {
>    resources.renderInformalParameters(writer);
> }
>
> Steve.
>
>
>
> On 11 November 2011 11:35, Steve Eynon <steve.ey...@alienfactory.co.uk>
> wrote:
> > I found you also need to put the
> >
> > @SupportsInformalParameters
> >
> > on your component. See the RenderInformals mixin for an example (or
> > just use the RenderInformals mixin!)
> >
> > Steve.
> >
> >
> >
> >
> > On 10 November 2011 06:22, Michael Prescott
> > <michael.r.presc...@gmail.com> wrote:
> >> That didn't seem to make a difference, but it sounds prudent.
> >>
> >> On 9 November 2011 17:09, Lenny Primak <lpri...@hope.nyc.ny.us> wrote:
> >>
> >>> AfterRender, not afterRenderBody and beginRender and it should work.
> >>>
> >>>
> >>>
> >>> On Nov 9, 2011, at 4:58 PM, Michael Prescott <
> michael.r.presc...@gmail.com>
> >>> wrote:
> >>>
> >>> > I had tried those instructions, but I guess I was a bit too rote (not
> >>> being
> >>> > familiar with these events, most of my components have templates); I
> need
> >>> > to close the element in afterRenderBody().  Thanks for the
> encouragement
> >>> to
> >>> > continue puzzling it out.
> >>> >
> >>> > Michael
> >>> >
> >>> > On 9 November 2011 16:28, Lenny Primak <lpri...@hope.nyc.ny.us>
> wrote:
> >>> >
> >>> >> You have to have beginRender/afterRender(MarkupWriter) methods
> >>> >> in your page, and then write the root element in them, and then it
> >>> should
> >>> >> work.
> >>> >> I followed the InformalParameter documentation page and it worked.
> >>> >>
> >>> >> On Nov 9, 2011, at 4:25 PM, Michael Prescott wrote:
> >>> >>
> >>> >>> How do you render informal parameters if your component has a
> template
> >>> >>> file?  I've tried using the RenderInformals mixin, but (somewhat
> >>> >> bizarrely)
> >>> >>> it puts the informal parameters on the parent element!
> >>> >>
> >>> >>
> >>> >>
> ---------------------------------------------------------------------
> >>> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >>> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>> >>
> >>> >>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >>> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>>
> >>>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to