Re: T5:Tiles?

2007-08-29 Thread Angelo Chen
Hi Josh, When i tested in the localhost, the speed is fast, so that behavor is not noticeable, but when I put the war file in a slow server in the net, I can notice that in Safari, not in IE and FireFox. I believe I have put those pages/components in the right places. I did not notice reloading o

Re: T5:Tiles?

2007-08-29 Thread Angelo Chen
Hi Josh, This error is interesting, it comes out only once even you have several pages using the approach 2 and it works with the error around. adding t:id="layout' eliminate the error message. probably a minor problem in the error reporting? A.C. Josh Canfield-2 wrote: > > On 8/29/07, Angelo

Re: T5:Tiles?

2007-08-29 Thread Josh Canfield
On 8/29/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi Josh, > > if I use the approach quoted below, I got an error like this from runtime > console, and the title was not set: > > [ERROR] Login Embedded component(s) layout are defined within component > class org.sample.t5.pages.Login, but ar

Re: T5:Tiles?

2007-08-29 Thread Angelo Chen
Hi Josh, if I use the approach quoted below, I got an error like this from runtime console, and the title was not set: [ERROR] Login Embedded component(s) layout are defined within component class org.sample.t5.pages.Login, but are not present in the component template. What I'm doing wrong her

Re: T5:Tiles?

2007-08-28 Thread Josh Canfield
you will see in the address field first: http://localhost/sample/layout.forums then it goes back to http://localhost/sample/forums but for Firefox or IE either in mac or windows, the layout.forums will not be shown, only the final one. I've tried it in Safari on my Mac and I've never seen th

Re: T5:Tiles?

2007-08-28 Thread Angelo Chen
Hi Josh, Your tip works, just an observation, when viewing the page in Mac's Safari, for the url: http://localhost/sample/forums you will see in the address field first: http://localhost/sample/layout.forums then it goes back to http://localhost/sample/forums but for Firefox or IE either in ma

Re: T5:Tiles?

2007-08-28 Thread Thiago H. de Paula Figueiredo
Em Tue, 28 Aug 2007 20:52:28 -0300, Angelo Chen <[EMAIL PROTECTED]> escreveu: Class org.sample.t5.pages.Home does not contain a property named 'myhome' (within property expression 'myhome'). You want Try The literal: prefix guarantees that the value after it is treated as a String.

Re: T5:Tiles?

2007-08-28 Thread Angelo Chen
Hi Josh, I did like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> but I got an error: Class org.sample.t5.pages.Home does not contain a property named 'myhome' (within property expression 'myhome'). Josh Canfield-2 wrote: > > I think your problem is here: > >> in my Somepag

Re: T5:Tiles?

2007-08-28 Thread Josh Canfield
I think your problem is here: > in my Somepage.html > > You want Josh On 8/28/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Josh, > > I tried to folow following method, but not working: > > my Layout.java like this: > > public class Layout { > >@Parameter >private Block _sidebarC

Re: T5:Tiles?

2007-08-28 Thread Angelo Chen
Hi Josh, I tried to folow following method, but not working: my Layout.java like this: public class Layout { @Parameter private Block _sidebarContent; public Block getSidebarContent() { return _sidebarContent; } public void setSidebarContent(Block sidebarContent)

Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
On 8/24/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Josh, > > This works, now if I have this in the Layout.html: > > >${title} > > > Layout.java also has a getTtitle to return 'base page'; > > now how to replace this title with 'somepage' in the somepage.html? I add a > getTitle in the

Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
Yes, you can put other components inside of your block parameters. On 8/23/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi Josh, > > What defined in the parameter block should be in the same > page(Somepage.html), can it refer to another html? > > A.C. > > somepage.html --

Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
Hey Angelo, Nick's right, sorry I didn't see that before. Try using your browsers view source feature, if you're using Firefox look into getting the firebug plugin (google for a tutorial) so you can inspect what is actually getting rendered, you should never not know what is getting generated in

Re: T5:Tiles?

2007-08-24 Thread Angelo Chen
Hi Josh, This works, now if I have this in the Layout.html: ${title} Layout.java also has a getTtitle to return 'base page'; now how to replace this title with 'somepage' in the somepage.html? I add a getTitle in the Somepage.java, but it still picks up 'base page', any solution to this?

Re: T5:Tiles?

2007-08-23 Thread Angelo Chen
Hi Josh, What defined in the parameter block should be in the same page(Somepage.html), can it refer to another html? A.C. somepage.html http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Add this additional to the sidebar All of this goes into the content s

Re: T5:Tiles?

2007-08-23 Thread Nick Westgate
The page location is "http://localhost:8080/Somepage"; "http://localhost:8080/Somepage.html"; is the location of component "html" on the page "Somepage". I.e. Tapestry 5 uses "." to specify components. (Which might actually be a bad idea.) Cheers, Nick. Angelo Chen wrote: Hi Josh, It works p

Re: T5:Tiles?

2007-08-23 Thread Angelo Chen
Hi Josh, It works perfectly! thanks, It's my fault, I start the page directly: http://localhost:8080/Somepage.html. this works: somepage don't know what's the difference. A.C. Josh Canfield-2 wrote: > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd "> > > Could it be as silly as

Re: T5:Tiles?

2007-08-23 Thread Josh Canfield
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd "> Could it be as silly as a space after the xsd? I have run the following successfully - /src/main/resources/com/thedailytube/ui/tapestry/pages/SomePage.html --- http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> So

Re: T5:Tiles?

2007-08-23 Thread Angelo Chen
Hi Josh, I added that but got another error: Component Somepage does not contain an embedded component with id 'html'. This is the Somepage.html: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Add this additional to the sidebar All of this goes into the content section Jos

Re: T5:Tiles?

2007-08-23 Thread Josh Canfield
Sorry, I should have had the Layout.java in there too... What that error is telling you is that it's looking for the 'sidebarContent' property in your Layout.java class. You can define it as below: public class Layout { @Parameter private Block _sidebarContent; public Block getSidebar

Re: T5:Tiles?

2007-08-23 Thread Angelo Chen
Hi Josh, This looks interesting, I tried it with following steps: 1.put Layout.html in the myapp/components, add also a Layout.java 2. put Somepage.html under WEB-INTF, add Somepage.java in myapp/pages when I access it with http://localhost:8080/Somepage.html, I got following error: Could not

Re: T5:Tiles?

2007-08-23 Thread Jonathan Glanz
I personally use this exact process for builkding widget based pages. Sent via BlackBerry by AT&T -Original Message- From: "Josh Canfield" <[EMAIL PROTECTED]> Date: Thu, 23 Aug 2007 11:16:55 To:"Tapestry users" Subject: Re: T5:Tiles? I love deleg

Re: T5:Tiles?

2007-08-23 Thread Josh Canfield
I love delegate for this type of stuff. If you want to define a layout and let the page decide what goes in the layout define a block parameter and use delegate to render it: (this has been truncated and modified for brevity, so while this may not work out of the box it's full size cousin does wor

Re: T5:Tiles?

2007-08-23 Thread Marcelo lotif
You can have one layout wrapping another component, like a menu or a sidebar. Of course they are declared into separeted .html's. Then, into the Layout component you can 'call' the other components, like this call to an existing Menu component into your workspace: http://tapestry.apache.org/schema

Re: T5:Tiles?

2007-08-23 Thread Angelo Chen
Hi Marcelo, This works, thanks. Is this documented in T5 site? The difference between this(Border?) and Tiles is, in Tiles layout you can specify multiple JSPs, T5's border can have only one, but you can have one after the other. so the syntax is: right? Marcelo lotif wrote: > > If th

Re: T5:Tiles?

2007-08-22 Thread Daniel Jue
Of course you are not at all limited to only one of these "layout" components. While you can only request one per page or component, the "layout" you request could itself use another layout. For lack of a better term, these used to be called Borders in Tapestry 4. You can also have these borders

Re: T5:Tiles?

2007-08-22 Thread Marcelo lotif
If this help, try to follow my example above: create a class under src/main/java/org/example/myapp/components called Layout.java, for example. Now we put a css stylesheet and a title, just to illustrate: public class Layout { @Inject @Path("context:assets/css/layout.css") private Ass

Re: T5:Tiles?

2007-08-22 Thread Anton Gavazuk
Hi Angelo, I had the same question and as I understood - you have to write your own custom component see http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html and now I try to implement this - if you are interested - we can communicate about the topic and create some kind of howto

T5:Tiles?

2007-08-22 Thread Angelo Chen
Hi, Is there a way to do something like Struts with Tiles in Tapestry 5? samples? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3ATiles--tf4310807.html#a12272065 Sent from the Tapestry - User mailing list archive at Nabble.com. ---