Re: Architecture advice for app and API

2011-06-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Jun 2011 22:01:44 -0300, jqzone wrote: I want to do this too,but I don't konw how to do it. I would do this: * Create a separate project and Tapestry-IoC module class just with the service interfaces (I'll call core-api) * Create a separate project and Tapestry-IoC module class w

Re: Architecture advice for app and API

2011-06-13 Thread jqzone
I want to do this too,but I don't konw how to do it. On Tue, Jun 14, 2011 at 8:40 AM, David Woods wrote: > Hi, I am currently developing a SAAS webapp using Tapestry 5.2.5. My goal > is to make much of the functionality also available as a RESTful web > service, using tapestry-resteasy, for add

Architecture advice for app and API

2011-06-13 Thread David Woods
Hi, I am currently developing a SAAS webapp using Tapestry 5.2.5. My goal is to make much of the functionality also available as a RESTful web service, using tapestry-resteasy, for additional clients such as iPhone apps to use. I would really like my tapestry web client to use the same API that I

Re: form observe submit not working?

2011-06-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Jun 2011 21:13:32 -0300, Josh Canfield wrote: By the way, there's no need to use the Submit component unless you have more than one submit button. An ordinary HTML works, inclusive for AJAX and validation and etc, so that's what I recommend for single-submit button

Re: exists variable false - but sessionstate variable not null?

2011-06-13 Thread David Rees
On Mon, Jun 13, 2011 at 4:25 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 13 Jun 2011 19:58:36 -0300, David Rees wrote: > >> I've got a @SessionState variable used to track the logged in user >> declared along with an exists variable like this on multiple pages: >> >> @SessionState @Propert

Re: exists variable false - but sessionstate variable not null?

2011-06-13 Thread ael
Kindly check this how to use the sessionstate properly. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/state/sharingacrossmultiplepages1 http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/state/sharingacrossmultiplepages1 -- View this message in context: http://tape

Re: exists variable false - but sessionstate variable not null?

2011-06-13 Thread Thiago H. de Paula Figueiredo
On Mon, 13 Jun 2011 19:58:36 -0300, David Rees wrote: I've got a @SessionState variable used to track the logged in user declared along with an exists variable like this on multiple pages: @SessionState @Property private User user; private boolean userExists; Now, what I have seen on occasion

exists variable false - but sessionstate variable not null?

2011-06-13 Thread David Rees
I've got a @SessionState variable used to track the logged in user declared along with an exists variable like this on multiple pages: @SessionState @Property private User user; private boolean userExists; Now, what I have seen on occasion is that userExists == false even when the user variable h

Tapestry 5 on OpenJDK?

2011-06-13 Thread Josh Canfield
I'm getting some errors in the generics support running an app in ubuntu. This app runs fine on OSX. Does anyone have experience with the OpenJDK Runtime and Tapestry apps? It's not a requirement that I use OpenJDK so I'm going to get the Sun JDK installed, but here is the interesting information.

Re: Easiest way to communicate with the WebApp

2011-06-13 Thread Nikola Milikic
Hi Erik, I think you're on the right track there with REST services through tapestry-resteasy. It's really easy to set up and it provides you reading (using GET method) and writing (using PUT or POST) capabilities. Regarding the issue of these methods being publicly available is unavoidable as the

Redirect after Invalid Session from Login Page to Next Page

2011-06-13 Thread sunilmanu
Hi Everyone, we have our production website on Tapestry 4.0.2 .. We bounce the server every night. So if the users are active at that point and they click on any link, it takes them to Login Screen and then when they try to login it gives them STALE Link Exception. So I want to know how to configu

Re: Ajax and Validation

2011-06-13 Thread Kartweel
It still gave me issues when submitting a form with an error then submitting it valid, then it would bring up the old values and clobber the real values (after saving I default back to different data in the form). So I ammended it to @PageDetached void clearValidationTracker() {

Re: [OT] The response time of websites - comparison between frameworks

2011-06-13 Thread Kalle Korhonen
... and the graph's updated: http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/. Check the concurrent users vs response time - Tapestry is beating JSP as well :) Might be worth mentioning at tapestry.apache.org. I'll update the test app to use T5.3 once an alpha version is out. Kalle O

Re: Ajax and Validation

2011-06-13 Thread Kartweel
Hi, I've had major issues with this because the ValidationTracker also reloads old field values which in a non-ajax scenario is great, but in an ajax scenario has caused it to clobber the proper field values. It has caused many headaches and I think it really should be handled [better] by default

Re: onPrepare(Integer id)

2011-06-13 Thread Nillehammer
Hi Tony, >> Given this line in your template, Tapestry will just append nothing to the url, if officeId is null. This means the context is simply not there. When processing the post request, the correct signature for an eventhanlder wit no context would be one with no parameters i.e. "onPrep

Re: onPrepare(Integer id)

2011-06-13 Thread dragan.sahpas...@gmail.com
Hi, You are not missing anything. Insert an onPrepare() with no arguments. tapestry will not call onPrepare(Integer officeId) with null for officeId. Cheers, Dragan Sahpaski On Mon, Jun 13, 2011 at 5:54 PM, Tony Nelson wrote: > I'm trying to create a simple form that will work for both Add a

onPrepare(Integer id)

2011-06-13 Thread Tony Nelson
I'm trying to create a simple form that will work for both Add and Edit. I'm trying to use onPrepare to setup the database object and the code works fine for an existing object. When I try to use the form with a new object (id = null) it appears that onPrepare isn't called, so I end up with nu

Re: form observe submit not working?

2011-06-13 Thread Thiago H. de Paula Figueiredo
On Sun, 12 Jun 2011 19:09:49 -0300, Paul Stanton wrote: Hi, Hi! I've read multiple times that this is the recommended approach to adding client side callbacks when a form is submitted, however it isn't working for me: Please try giving an explicit id to which isn't "submit",

Re: [OT] The response time of websites - comparison between frameworks

2011-06-13 Thread Massimo Lusetti
On Mon, Jun 13, 2011 at 4:31 PM, Kalle Korhonen wrote: > Tapestry is officially very, very fast: > http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/comment-page-1/#comment-22319. > We of course knew that already but I hope the author updates the > graph. Nice! Cheers -- Massimo http:

Re: [OT] The response time of websites - comparison between frameworks

2011-06-13 Thread Nicolas Barrera
sweet figures! cheers Nicolás.- On Mon, Jun 13, 2011 at 11:31 AM, Kalle Korhonen wrote: > Tapestry is officially very, very fast: > > http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/comment-page-1/#comment-22319 > . > We of course knew that already but I hope the author updates th

Re: [OT] The response time of websites - comparison between frameworks

2011-06-13 Thread Kalle Korhonen
Tapestry is officially very, very fast: http://www.jtict.com/blog/rails-wicket-grails-play-lift-jsp/comment-page-1/#comment-22319. We of course knew that already but I hope the author updates the graph. Kalle On Wed, Jun 8, 2011 at 12:17 AM, Massimo Lusetti wrote: > On Tue, Jun 7, 2011 at 7:30

Re: Easiest way to communicate with the WebApp

2011-06-13 Thread Nicolas Barrera
On Sun, Jun 12, 2011 at 9:55 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > > Another option is to implement a service that opens a server socket to > receive the commands. Again, you'll need to implement some kind of > authentication. > > Perhaps you could connect to a JMS queue