I don't think anything that has changed would have broken this. You should
be able to just use it by entering: <t:layout title="my page title">
..content of your page.. </t:layout> in your page.
On 3/30/07, Chris Chiappone <[EMAIL PROTECTED]> wrote:
I tried you exact code for a layout but my layout component doesn't
seem to be showing up at all. Has something changed?
On 3/28/07, Peter Beshai <[EMAIL PROTECTED]> wrote:
> I never knew <t:layout> was supported. I just made my own layout
component
> and I think that makes more sense (you'll most likely want to customize
it
> anyway). Here is the basic code if you want to use it:
>
> Layout.java::
> package my.package.components;
>
> import org.apache.tapestry.Asset;
> import org.apache.tapestry.annotations.Inject;
> import org.apache.tapestry.annotations.Parameter;
>
> public class Layout {
> @Parameter(required=true)
> private String _title;
>
> @Inject("context:style/default.css")
> private Asset _stylesheet;
>
> public String getTitle() {
> return _title;
> }
>
> public void setTitle(String title) {
> _title = title;
> }
>
> public Asset getStylesheet() {
> return _stylesheet;
> }
> }
>
>
> Layout.html::
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> <head>
> <link t:type="any" rel="stylesheet" type="text/css"
> href="prop:stylesheet" />
> <title>MyApp - ${title}</title>
> </head>
> <body>
> <t:body/>
> </body>
> </html>
>
> Note, you should probably change MyApp to ${message:appname} when
> application-wide message catalogs are implemented.
>
> Hope this helps :-)
>
>
> On 3/28/07, Bill Holloway <[EMAIL PROTECTED]> wrote:
> >
> > Howdy,
> >
> > I'm using tapestry-hibernate with hibernate/annotations. I know that
> > tapestry-hibernate for T5 is very new, so this is mainly just a
> > heads-up: I get an error trying to call the session.load (class,
> > serializable) method. My entity class is called
> > "org.gp.contactweb.entities.Person". It does have a <mapping> entry
> > in the hibernate.cfg.xml, and here's the exception message.
> >
> > Unable to add method java.lang.Object get(java.lang.Object) to class
> > $PropertyConduit_1119a564237: [source error] no such class:
> > org.gp.contactweb.entities.Person$$EnhancerByCGLIB$$e8117f19
> >
> > Also <t:layout> no longer seems to be supported. Where'd it go?
> >
> > Cheers,
> > Bill
> >
> > --
> > "The future is here. It's just not evenly distributed yet."
> >
> > -- Traditional
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Peter Beshai
>
> Computer Science Student
> University of Waterloo
>
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Peter Beshai
Computer Science Student
University of Waterloo