Re: T5: PageTester and services in AppModule

2009-02-14 Thread Angelo Chen
Hi Howard, Is getServeletContext considered part of Servlet API? I have following in a service and got NullPointerException when calling getServletContext in T5.1. It seems to me more problems encountered with PageTester when the app uses services, how to use pageTester to do some real testing i

Re: Login

2009-02-14 Thread Kalle Korhonen
On Sat, Feb 14, 2009 at 3:00 PM, Luther Baker wrote: > Is anyone aware of a code example integrating JSecurity with Tapestry5? I just started integrating jsecurity with T5 for use in Trails and T5 apps in general, but it'll take a while. I'm a bit put off by the ACEGI stuff ... but honestly no

Re: intellij

2009-02-14 Thread Andreas Andreou
in compiler settings, set resource patterns to !?*.java (everything but java file) On Sun, Feb 15, 2009 at 3:22 AM, Angelo Chen wrote: > > I think you have to update settings to include .tml file, can't remember that > where to update at this moment. > > > luther.baker wrote: >> >> I just downloa

Re: T5: PageTester and services in AppModule

2009-02-14 Thread Howard Lewis Ship
5.1.0.0-SNAPSHOT On Sat, Feb 14, 2009 at 4:19 PM, Angelo Chen wrote: > > Hi Howard, > > Sounds good, is 5.1 as stable as 5.0.18? I did: > > 5.1 > > but it did not pull down the 5.1, any idea? thanks. > > > Howard Lewis Ship wrote: >> >> I believe this problem is fixed in 5.1. I did some major s

Re: [T5] Struggling With Concepts

2009-02-14 Thread Howard Lewis Ship
Acutally, there's no real reason Tapestry 5.1 can't support this scheme, once we make a few more of the Link-generating and Request-path-parsing services public and overridable. On Sat, Feb 14, 2009 at 6:48 PM, Fernando Padilla wrote: > I'm sorry, but this is not quite what Tapestry is meant to s

Re: intellij

2009-02-14 Thread Luther Baker
You were right - I dug a little deeper and found it had to be added in the settings. http://www.nabble.com/-T5--.tml-files-not-recognized-in-IntelliJ-td21616318.html Thanks much. -Luther On Sat, Feb 14, 2009 at 7:22 PM, Angelo Chen wrote: > > I think you have to update settings to include .t

Re: [T5] Struggling With Concepts

2009-02-14 Thread Fernando Padilla
I'm sorry, but this is not quite what Tapestry is meant to solve for.. It solves nicely for state within a page.. or within a user's session, etc etc. Since what you're trying to do is have your code support a form of "virtual hosting", it might be easier if you deal with it using normal J2EE

Re: intellij

2009-02-14 Thread Angelo Chen
I think you have to update settings to include .tml file, can't remember that where to update at this moment. luther.baker wrote: > > I just downloaded IntelliJ 8.1 and imported my maven project. > > It correctly identifies src/main/resources as a src directory and copies > the > .properties f

intellij

2009-02-14 Thread Luther Baker
I just downloaded IntelliJ 8.1 and imported my maven project. It correctly identifies src/main/resources as a src directory and copies the .properties files to target/classes ... but leaves the .tml files out. I will check my POM - maybe my filter is doing this ... but thoughts? Thanks, -Luther

Re: T5: PageTester and services in AppModule

2009-02-14 Thread Angelo Chen
Hi Howard, Sounds good, is 5.1 as stable as 5.0.18? I did: 5.1 but it did not pull down the 5.1, any idea? thanks. Howard Lewis Ship wrote: > > I believe this problem is fixed in 5.1. I did some major surgery on > PageTester, and it now simulates the Tapestry Request, Response, > Session a

Login

2009-02-14 Thread Luther Baker
Is anyone aware of a code example integrating JSecurity with Tapestry5? I'm not sure how to best translate the HttpServletRequest type examples on the JSecurity site. I'm a bit put off by the ACEGI stuff ... but honestly not looked into it. Is there a Tapestry consensus to just use that approach?

Re: T5: Spring init problem in Jetty

2009-02-14 Thread Howard Lewis Ship
Let's see your web.xml. On Sat, Feb 14, 2009 at 1:07 AM, Inge Solvoll wrote: > Hi! > > I''m trying to get my T5 application up and running with Spring. I've placed > the "kitchen sink" spring.jar in my WEB-INF/lib together with > tapestry-spring.jar. I'm using T5.0.18. > > I'm testing this on Tom

Re: @Property convention (private field bad for testing)

2009-02-14 Thread Howard Lewis Ship
On Sat, Feb 14, 2009 at 3:53 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, Feb 13, 2009 at 8:24 PM, manuel aldana wrote: >> Why was the decision taken that fields must be private for @Property >> (security reasons, so fields can't be changed directly from default >> visibility -> package lev

Re: T5: PageTester and services in AppModule

2009-02-14 Thread Howard Lewis Ship
I believe this problem is fixed in 5.1. I did some major surgery on PageTester, and it now simulates the Tapestry Request, Response, Session and Context objects (not the Servlet API ones, however). This means you can test much more of your application beyond pages, including Dispatchers contribute

T5: PageTester and services in AppModule

2009-02-14 Thread Angelo Chen
Hi, I'm trying to add some page test into a running application, code is just simple: PageTester tester = new PageTester(appPackage, appName, "src/main/webapp"); PageTester tester = new PageTester(appPackage, appName, "src/main/webapp"); Document doc = tester.renderPage("In

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-14 Thread Iren Tuna
Hi, @Persist is already there on "books". Anyway, I have no problem with the listing of the search results. Only the images in the grid are not displayed, because of this "null property" problem. I have already tried @Persist on the "book" property (row object of the grid) in the Search page, too

Re: @Property convention (private field bad for testing)

2009-02-14 Thread Thiago H. de Paula Figueiredo
On Fri, Feb 13, 2009 at 8:24 PM, manuel aldana wrote: > Why was the decision taken that fields must be private for @Property > (security reasons, so fields can't be changed directly from default > visibility -> package level)? From testing perspective this is not so nice. First of all, OOP recome

Re: [T5] Struggling With Concepts

2009-02-14 Thread Onno Scheffers
> Specifically, I am trying to create an application which will be "site > aware" (where "site" is a made-up term which implies different > configurations/access/etc.). The "site" will need to be present in the URL > in some form. I don't know how many sites you are offering, but have you thoug

Re: [T5.0.18] Bug? : Null property problem with the custom component inside a grid

2009-02-14 Thread Otho
Maybe some problem in the setup of the grid page? Like forgetting the @Persist on the books list? Otho

T5: Spring init problem in Jetty

2009-02-14 Thread Inge Solvoll
Hi! I''m trying to get my T5 application up and running with Spring. I've placed the "kitchen sink" spring.jar in my WEB-INF/lib together with tapestry-spring.jar. I'm using T5.0.18. I'm testing this on Tomcat 6.0.10 and Jetty 6.1.12. Tomcat initializes correctly, and spring injects work nicely f