t;
> > EOF
> >
> >
> > page.tml >> EOF2
> >
> > >
> > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd";
> >
> > xmlns:p="tapestry:parameter"
> >
> >>
> >
&
2
>
>
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd";
>
> xmlns:p="tapestry:parameter"
>
>>
>
>
>
>
>
>content rendered at page level
>
>
>
>
>
> EOF2
>
>
>
estry.apache.org/schema/tapestry_5_4.xsd";
xmlns:p="tapestry:parameter"
>
content rendered at page level
EOF2
expected output >> EOF3
content rendered at page level
EOF3
actual output >> EOF4
Block[Parameter headerCont
Hi Thiago,
that's awesome information! Thanks!
Kind Regards,
Wulf
-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
Sent: Mittwoch, 5. Oktober 2011 19:38
To: Tapestry users; Ulrich Stärk
Subject: Re: Block parameter
On Wed, 05 Oct 2011 14:19:31
On Wed, 05 Oct 2011 14:19:31 -0300, Ulrich Stärk wrote:
This is obviously much better than fiddling with internal stuff if it
suffices your needs.
I don't think internal stuff is needed for both of the solutions. A
RenderCommand (which isn't internal) can be implemented and it receives
th
iel.de]
> Sent: Mittwoch, 5. Oktober 2011 15:43
> To: Tapestry users
> Subject: Re: Block parameter
>
> Rendering component markup directly from your component class is only
> useful for very simple
> components. What you want to do is to mimick some of Tapestry's inter
-
From: Ulrich Stärk [mailto:u...@spielviel.de]
Sent: Mittwoch, 5. Oktober 2011 15:43
To: Tapestry users
Subject: Re: Block parameter
Rendering component markup directly from your component class is only useful
for very simple
components. What you want to do is to mimick some of Tapestry's inte
ly ie:
>
> beginRender(MarkupWriter mw) {
> mw.element(...)
> etc ...
> }
>
> I now want the component to take a block parameter (ie header) and have this
> block parameter render within my html ie
>
> beginRender( .. ) {
>
component to take a block parameter (ie header) and have this
block parameter render within my html ie
beginRender( .. ) {
mw.element("div")
/** something like:
header.render()
**/
mw.end();
}
For this requirement the block wouldn't
Inheriting non-block parameter works fine, but inheriting block
parameter is not. Is this by design? If so, how to achieve the same
effect.
Here is example:
Layout {
@Parameter
private String _title;
@Parameter
private Block _helloWorld;
public String getTitle() { return _title; }
}
http
10 matches
Mail list logo