Re: Tapestry 5.2 - Request data shared in different client browser

2011-03-01 Thread Dany
Hi Howard, Thanks for you soon reply. I have a doubt with repesct to you reply. If in tapestry 5.2 it works with only one instance (like in a servlet) then it is imposible to make the maching in a POJO/tml because this elements always is going to be a mutable objects (in the same way that a servle

Re: Tapestry 5.2 - Request data shared in different client browser

2011-03-01 Thread Howard Lewis Ship
Yes, this is a subtle offshoot of the 5.2 changes. What you've done is identify that single instance of LoginVO as the default value for the loginVo field. In 5.1, your bug was that different clients who accessed the same page instance sequentially would see data bleed from one request to the nex

Tapestry 5.2 - Request data shared in different client browser

2011-03-01 Thread Dany
Hi, I am developing in tapestry 5.2. I have including pages and component but i noticed one problem: @Property Private LoginVo loginVo; @Log @PageLoaded void pageLoaded() { loginVo =new LoginVo(); } if we include this v

Re: [ANN] Tapestry Facebook components

2011-03-01 Thread Barry Books
I'd be happy to put changes back into it if I can figure out how to get git to work. This is my first attempt at it. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapes

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Howard Lewis Ship
On Tue, Mar 1, 2011 at 9:59 AM, robnangle wrote: > > Richard Hill-7 wrote: >> >> I haven't used the @SessionState annotation, I use the >> ApplicationStateManager directly to store SSOs but a quick look at the >> docs suggest it's doing the same thing. >> >> Firstly, I don't understand your User c

Re: [ANN] Tapestry Facebook components

2011-03-01 Thread Alejandro Scandroli
Excellent Barry, Thank you! I'm working with facebook and having the code packaged as a library is great. I'm already using it. If you don't mind I will send you a couple of pull requests (I see some room for improvements). Thanks! Alejandro. On Mon, Feb 28, 2011 at 1:50 PM, Barry Books wrote:

Re: Components architecture

2011-03-01 Thread françois facon
Hi Sandeep, Have a look at http://jumpstart.doublenegative.com.au/jumpstart/ It 's a good entry point to see tapestry in action. if you need multi part in your form perhaps you will need formfragments. for that see http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingformfragment

Components architecture

2011-03-01 Thread Novice
Hi all, Well I am a novice and pardon me if I sound dumb. As per my understanding Tapestry is Component oriented architecture. But what exactly does component mean? is it just collection of basic elements in a form on a single page? Because I developed few components which are basically some sectio

Re: Capturing action, event, form requests

2011-03-01 Thread Thiago H. de Paula Figueiredo
On Tue, 01 Mar 2011 14:55:52 -0300, Rich M wrote: Oh, I see. Perhaps then it's reasonable to say I was mislead by this Tapestry wiki page http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher ? This is pretty much exactly what I adapted to my application half a year ago, 'Acc

No object of FormSupport available / ajaxformloop

2011-03-01 Thread Namron
I have taken the sample/tutorial application and have extended it with an ajaxformloop (see main.tml below). Also see Main.java snippet below. I am very new to tapestry and I am happy to admit this is a "bodge" to get something working or a "quick win" based on a couple of ajaxformloop examples I f

RE: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread robnangle
Richard Hill-7 wrote: > > I haven't used the @SessionState annotation, I use the > ApplicationStateManager directly to store SSOs but a quick look at the > docs suggest it's doing the same thing. > > Firstly, I don't understand your User class - it seems to also contain a > User field? Sounds li

Re: Capturing action, event, form requests

2011-03-01 Thread Rich M
On 03/01/2011 11:26 AM, Thiago H. de Paula Figueiredo wrote: On Tue, 01 Mar 2011 13:03:34 -0300, Rich M wrote: Hi, Hi! I currently have a Dispatcher implementation to handle page and asset requests in order to process authentication and security logic as necessary. However, it appears to

RE: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Richard Hill
I haven't used the @SessionState annotation, I use the ApplicationStateManager directly to store SSOs but a quick look at the docs suggest it's doing the same thing. Firstly, I don't understand your User class - it seems to also contain a User field? Sounds like a stackoverflow in the making

Re: Capturing action, event, form requests

2011-03-01 Thread Thiago H. de Paula Figueiredo
On Tue, 01 Mar 2011 13:03:34 -0300, Rich M wrote: Hi, Hi! I currently have a Dispatcher implementation to handle page and asset requests in order to process authentication and security logic as necessary. However, it appears to me that (at least in 5.1) the Dispatcher does not intercep

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Rich M
If you want it to return a String, do something like this. Also, @SessionState would not be necessary in a class like this. The @SessionState in your page class(es) will maintain the object for you. public class User { private String user_id; public User getUser_id() { return user_id;

Capturing action, event, form requests

2011-03-01 Thread Rich M
Hi, I currently have a Dispatcher implementation to handle page and asset requests in order to process authentication and security logic as necessary. However, it appears to me that (at least in 5.1) the Dispatcher does not intercept any ActionLinks, EventLinks, form events, or otherwise rela

RE: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread robnangle
Richard Hill-7 wrote: > > > Getting the user id depends on what public methods your user object has. > Presumably it has something like .getId() ? > > > > On Tue, 2011-03-01 at 06:44 -0800, robnangle wrote: >> Im probably wording the question wrong but that returns something like a >> memory

RE: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Kristian Marinkovic
override the toString() implementation of your user entity... you can use apache-commons ToStringBuilder. Von:robnangle An: users@tapestry.apache.org Datum: 01.03.2011 15:44 Betreff:RE: org.apache.tapestry5.runtime.ComponentEventException Im probably wording the question wr

RE: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Richard Hill
Getting the user id depends on what public methods your user object has. Presumably it has something like .getId() ? On Tue, 2011-03-01 at 06:44 -0800, robnangle wrote: > Im probably wording the question wrong but that returns something like a > memory address: Entities.User@12e7cb6 > > I want

RE: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread robnangle
Im probably wording the question wrong but that returns something like a memory address: Entities.User@12e7cb6 I want to find the user_id of that user? -- View this message in context: http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-runtime-ComponentEventException-tp3404853p3405030.h

RE: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread WINDEY Pieter AWL-IT
>>> Hi, >>>Is there any way to convert the @Sessionstate user value to a string or a >>>readable value? Yes user.toString() ! Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg - 1130 Brussels - Belgium RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread robnangle
Hi, Is there any way to convert the @Sessionstate user value to a string or a readable value? -- View this message in context: http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-runtime-ComponentEventException-tp3404853p3405008.html Sent from the Tapestry - User mailing list archive at N

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread robnangle
Hi ye the craeateDb() set's all of that. Got it sorted anyway, thanks people. I didn'y fully understand the @Property annotation, that was my problem. All the elements were null. -- View this message in context: http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-runtime-ComponentEventExc

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Kristian Marinkovic
where is your connection (field conn) set? Von:robnangle An: users@tapestry.apache.org Datum: 01.03.2011 13:53 Betreff:Re: org.apache.tapestry5.runtime.ComponentEventException Yes stupidly I forgot to set the connection but the errors remain. The onSuccess(): public String

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread robnangle
Yes stupidly I forgot to set the connection but the errors remain. The onSuccess(): public String onSuccess() throws Exception { createDb(); String statement = "INSERT INTO teams(user_id, team_name, keeper, fullBack1, fullBack2, fullBack3, halfBack1, halfBack2, hal

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Thiago H. de Paula Figueiredo
On Tue, 01 Mar 2011 09:35:00 -0300, robnangle wrote: Ye I noticed that but cant see what could be wrong with that line: Line 245: String statement = "INSERT INTO teams(user_id, team_name, keeper, fullBack1, fullBack2, fullBack3, halfBack1, halfBack2, halfBack3, midfield1, midfield2, halfF

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread robnangle
Ye I noticed that but cant see what could be wrong with that line: Line 245: String statement = "INSERT INTO teams(user_id, team_name, keeper, fullBack1, fullBack2, fullBack3, halfBack1, halfBack2, halfBack3, midfield1, midfield2, halfForward1, halfForward2, halfForward3, fullForward1, fullForward

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Bryan Lewis
The stack trace says you have an NPE in your onSuccess method, at SelectPlayers.java:246. The ComponentEventException has little to do with it... it's only saying the exception occurred during the 'success' event. On Tue, Mar 1, 2011 at 7:18 AM, robnangle wrote: > I have seen a couple thru the

org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread robnangle
I have seen a couple thru the forum but I dont think they apply to the error im getting. org.apache.tapestry5.runtime.ComponentEventException context eventType: action location: context:SelectPlayers.tml, line 10 5 6 Select Player 7 8 9

Re: Has anyone integrated Pushlet with tapstry5

2011-03-01 Thread Thiago H. de Paula Figueiredo
On Tue, 01 Mar 2011 02:03:03 -0300, jqzone wrote: pushlets is an Free and Open Source (LGPL) HTTP-based publish/subscribe framework http://www.pushlets.com/ I've never heard of that. It looks a little like Comet(d). If it's a servlet, I'd write a Dispatcher wrapping it. If it's a servlet fi