Re: T5: newbie question about tap5 ejb

2007-10-07 Thread Yann Ramin
AFAIK, You can't use the @EJB annotation outside of an actual bean or class managed by the EJB framework (Tapestry is not). You need to bind to the using a JNDI context - I think the Quickstart example has a good example of using a Tapestry ASO (BeanLocator) for that. Pavel Volkovitskiy wrote:

Re: illegal character: \64 error when built using jdk1.4

2007-06-13 Thread Yann Ramin
Annotations don't exist in JDK 1.4. You need to use JDK5 or stop using annotations. Ajit Raj wrote: Hi, I got an illegal character: \64 error for the following statement @InjectMeta ^ and @Persist ^ etc when I switch from jdk1.5 to jdk1.4 to compile the project

Re: T5: Direct URL to Class Mappings are Inconvenient

2007-06-12 Thread Yann Ramin
As long as we can fix the package foo.pages.bar; class Bar { } turning into /bar/ and not finding the html page bug ;) Howard Lewis Ship wrote: That may not make it into the initial release of Tapestry; there are so many other concerns that are more critical! On 6/12/07, David Peterson

Re: Tapestry5 ready for use in a new project?

2007-05-16 Thread Yann Ramin
I'm working on two projects using T5 now. In my opinion its very usable, just expect the occasional bug and rough edge at this point. yes, on the one hand it's really good to have existing ajax components, OTOH, if component creation is really simple (with adding stuff to the header), it's

T5: Caching of javascript

2007-05-07 Thread Yann Ramin
It seems the T5 asset javascript files (such as prototype, scriptalicous) are not being cached by browsers (tested IE6 and FF). Using Firebug and having the server on a slow (= cable modem upload) connection shows this problem very well, with about 2-3s page delay in transferring the .js

Re: Templating with Tapestry 5

2007-04-27 Thread Yann Ramin
Went down this road recently. You have a Layout component (call it what you want) htmlbodysome static stuff t:body/ /body /html and each page uses the layout; t:layout body body /t:layout if you want more flexibility, you can pass in other components as parameters, and use t:delegate to

Re: Incomplete URL requests resulting in Excceptions

2007-04-13 Thread Yann Ramin
Not all of them are going to be well behaved web spiders. Exploit scanners tend to hit specific URL suffixes to feed in their exploit code (looking for vulnerable phpbb, phpnuke, etc), and they don't respond to robots.txt ;) It clogs up traditional Apache error logs as well. I would

T5: Best page templating strategy

2007-04-10 Thread Yann Ramin
I'm using T5 to do some experimental testing, creating some mockup applications to teach me more about the framework. My question is, how do you best handle multi-part layouts? For instance, a Layout can be composed of a Body and a Sidebar. The Sidebar can be a component. My current approach

Re: T5: Best page templating strategy

2007-04-10 Thread Yann Ramin
AM, Yann Ramin wrote: I'm using T5 to do some experimental testing, creating some mockup applications to teach me more about the framework. My question is, how do you best handle multi-part layouts? For instance, a Layout can be composed of a Body and a Sidebar. The Sidebar can be a component

Re: T5: Best page templating strategy

2007-04-10 Thread Yann Ramin
Just figured out you can return the block in a render stage to get it to render. Deceptively simple, but the docs (from my reading), didn't mention it. @BeforeRenderBody Block doSidebar() { return _sidebar; } Yann Ramin wrote: I got a good