Re: tapestry 5.0.13 and hello world application

2008-07-26 Thread Filip S. Adamsen
Hi, Please show some code or we won't be able to help you. :) Also, please don't cross-post to the dev and users lists. This belongs here, in the users list, and has nothing to do with the development of Tapestry itself. -Filip On 2008-07-26 19:41, Argo Vilberg wrote: Hello If i try just

Re: [T5] getting current page in layout component

2008-07-26 Thread Shing Hing Man
Have you tried the adding the following to your layout component java class ? @InjectContainer private BasePage conatinerPage; (assuming all your pages java class are a subclass of BasePage.) Shing Home page : http://www.lombok.demon.co.uk/ --- On Sun, 27/7/08, Markus Joschko <[EMAIL PROT

[T5] getting current page in layout component

2008-07-26 Thread Markus Joschko
Hi all, is there a way to get the page that is rendered by the layout component from within the layout component? I have a menu in my layout component where I want to highlight the item that corresponds to the current page. I know that I can pass a parameter to the layout component but I'm somehow

tapestry 5.0.13 and hello world application

2008-07-26 Thread Argo Vilberg
Hello If i try just simple hello world application in tapestry 5, then it work with 5.0.6 but not 5.0.13. I cant figure out what is problem? HTTP Status 404 - /t5first/ -- *type* Status report *message* */t5first/* *description* *The requested resource (/t5first/)

Re: [T5]: Hibernate question - session is null

2008-07-26 Thread Mark Weissenberg
Hi, I also had some trouble configuring hibernate, my session was also null. After searching for a while I found this tutorial: http://linuxboy.javaeye.com/blog/68311 Since I dont use a DAO, my code looks something like the following. my db entity: ... import org.hibernate.Session; @Entity

Re: 5.0.13 IE javascript error

2008-07-26 Thread Alex.Hon
Maybe you can try uninstall all IE plugins .(and need clear all cache ,temp files..) Joachim Van der Auwera wrote: > > Hi, > > after upgrade of my application to tapestry 5.0.13 I get a "unknown > runtime error" on loading the page in IE. > > This is reported at line 2403 of prototype.js on

Re: onActivate with access permission check

2008-07-26 Thread Angelo Chen
you can use dispatcher for this, there are some articles in the wiki page. Moritz Gmelin wrote: > > Hi, > > I want to add some security to my application by checking whether the > currently logged in user (stored in an ApplicationState) has access to > the object that is handed to his curr

onActivate with access permission check

2008-07-26 Thread Moritz Gmelin
Hi, I want to add some security to my application by checking whether the currently logged in user (stored in an ApplicationState) has access to the object that is handed to his current page via onActivate(). Since tapestry handles the database fetching of entities to an onActivate method I