Re: [FAQ] common design

2008-04-01 Thread Julian Wood
No, it doesn't work with pages. Please see https://issues.apache.org/jira/browse/TAPESTRY-2309 J On Mar 14, 2008, at 1:38 PM, Jesper Zedlitz wrote: Christian Koeberl wrote: The replacement of $content$ is the t:container construct (see https://issues.apache.org/jira/browse/TAPESTRY-1469).

Re: [FAQ] common design

2008-03-14 Thread Jesper Zedlitz
Christian Koeberl wrote: > The replacement of $content$ is the t:container construct (see > https://issues.apache.org/jira/browse/TAPESTRY-1469). > This does not work with pages, does it? I hoped that http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> tapestry5-quickstart Start Page tap

Re: [FAQ] common design

2008-03-12 Thread Julian Wood
But we want the component to have html and body elements (unless I misunderstood your sentence), so that the component maintains previewability and can be authored on it's own. When one places a t:container inside the body element of a component, only elements inside of the t:container shou

Re: [FAQ] common design

2008-03-10 Thread Christian Koeberl
Robert Zeigler wrote: > "the code works": Nope, it doesn't. Now, it's getting interesting! This is what I get, when I try your code: If t:container replaces $content$, this shouldn't render This is the only thing that should render if t:container replaces $content$. Very strange, isn't i

Re: [FAQ] common design

2008-03-07 Thread Geoff Callender
Thanks for pointing this out. Will be fixed in JumpStart 3.4, replacing the component's html and body elements with a t:container element. Works like a charm. Geoff http://files.doublenegative.com.au/jumpstart/ On 06/03/2008, at 4:53 AM, Julian Wood wrote: On Mar 5, 2008, at 10:26 AM, C

Re: [FAQ] common design

2008-03-07 Thread Sven Homburg
a look at http://213.160.23.119:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Remove.html mybe helps 2008/3/7, Robert Zeigler <[EMAIL PROTECTED]>: > > TestPage.tml: > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > SampleComponent.tml: > > http://t

Re: [FAQ] common design

2008-03-07 Thread Robert Zeigler
TestPage.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> SampleComponent.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> If t:container replaces $content$, this shouldn't render This is the only thing that should render if t:container replaces $content$.

Re: [FAQ] common design

2008-03-07 Thread Christian Köberl
Robert Zeigler wrote: > > I think you're misunderstanding the point of t:container? > As far as I understand the comment on the JIRA (https://issues.apache.org/jira/browse/TAPESTRY-1469?focusedCommentId=12508885#action_12508885) it should be a replacement of $content$. And, the code works - so

Re: [FAQ] common design

2008-03-07 Thread Robert Zeigler
I think you're misunderstanding the point of t:container? 1) T5 templates have to be well-formed xml. 2) Well-formed xml documents have to have a single root node 3) Tapestry basically renders all of the markup in your template. Suppose you have a component that should insert some content. Some

Re: [FAQ] common design

2008-03-07 Thread Christian Köberl
Julian Wood wrote: > > I tried your code verbatim and I here's what I get rendered: > ...Test start Start > This is with both 5.0.10 and 5.0.11-SNAPSHOT, so now I'm a little > flummoxed. > That's really weird!? Can anybody else try this example? Has anybody else had the same issue with t:c

Re: [FAQ] common design

2008-03-05 Thread Julian Wood
On Mar 5, 2008, at 10:26 AM, Christian Koeberl wrote: will render the tags (outside the ) every time the component is used (in another component, in my case). I just tried this out with 5.0.10 - with my test it doesn't render the tags. I checked in jumpstart 3.3.3 as well, and it has the

Re: [FAQ] common design

2008-03-05 Thread Christian Koeberl
> will render the tags (outside the ) every time the > component is used (in another component, in my case). I just tried this out with 5.0.10 - with my test it doesn't render the tags. > I checked in jumpstart 3.3.3 as well, and it has the same problem (see BasicCustomComponent). I don't und

Re: [FAQ] common design

2008-03-04 Thread Julian Wood
Does this actually work properly? I tried with 5.0.10 and 5.0.11- SNAPSHOT. A component like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd "> ${page} will render the tags (outside the ) every time the component is used (in another component, in my case). I checked in

Re: [FAQ] common design

2008-02-29 Thread Christian Koeberl
> Jesper Zedlitz <[EMAIL PROTECTED]> wrote > This is the T4 feature: > < http://tapestry.apache.org/tapestry4/UsersGuide/template.html#template.directives.content > > > Is something like this possible with T5? The replacement of $content$ is the t:container construct (see https://issues.apache.o

Re: [FAQ] common design

2008-02-29 Thread Jesper Zedlitz
Christian Köberl wrote: >> With T4 it was possible to write complete HTML pages and >> only use the body-part for output. Is there a similar possibility with >> T5? >> > Do you mean Invisible Instrumentation (see > http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html)? > I am n

Re: [FAQ] common design

2008-02-28 Thread Marcus
Hi Jesper, You can use: @IncludeStylesheet("context:style.css") public class Layout { instead of: @Inject @Path("context:/style.css") private Asset style; Marcus

Re: [FAQ] common design

2008-02-28 Thread Christian Köberl
Jesper Zedlitz-3 wrote: > > I agree to that. With T4 it was possible to write complete HTML pages and > only use the body-part for output. Is there a similar possibility with T5? > Do you mean Invisible Instrumentation (see http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html

Re: [FAQ] common design -> What is the best way to add components to my page

2008-02-28 Thread Kristian Marinkovic
:) "Thiago HP" <[EMAIL PROTECTED]> 28.02.2008 13:59 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: [FAQ] common design A little suggestion . . . On 2/28/08, Jesper Zedlitz <[EMAIL PROTECTED]> wrote: > All pages of

Re: [FAQ] common design

2008-02-28 Thread Jesper Zedlitz
> I prefer ... . > It looks more similar to ordinary HTML than . :) > I agree to that. With T4 it was possible to write complete HTML pages and only use the body-part for output. Is there a similar possibility with T5? Would be easier for mixed teams of programmers and webdesigners. Jesper --

Re: [FAQ] common design

2008-02-28 Thread Thiago HP
A little suggestion . . . On 2/28/08, Jesper Zedlitz <[EMAIL PROTECTED]> wrote: > All pages of the application look like: >xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > content > I prefer ... . It looks more similar to ordinary HTML than . :) -- Thiago --

[FAQ] common design

2008-02-28 Thread Jesper Zedlitz
Howard Lewis Ship wrote: > Please send your Question and Answer to this > list. > Q: What is a convenient way to create a common design for all pages of an application? A: (how I do it) Create a component called "Layout" for your application. If the package name of the application is org.examp