Re: Is the Select component's VALUE_CHANGED event out of the scope of user sessions ?

2014-08-23 Thread Muhammad Gelbana
I can't believe I did this to my self !! I was using a wrong annotationJDO's @Persistent javax.jdo.annotations.Persistent *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Sat, Aug 23, 2014 at 11:06 PM, Muhammad Gelbana wrote: > I'm using v5.4-beta-17 and I

Is the Select component's VALUE_CHANGED event out of the scope of user sessions ?

2014-08-23 Thread Muhammad Gelbana
I'm using v5.4-beta-17 and I'm facing an issue. I have an object persisted using the @Persistent annotation. And then I have a Select component on the page. While handling the Select component's VALUE_CHANGED event method, it seems I can't access the persisted object, its always null although I'v

Re: [t5.4-beta-6] Page class member variable scope

2014-07-14 Thread Thiago H de Paula Figueiredo
On Sun, 13 Jul 2014 04:44:04 -0300, Geoff Callender wrote: By returning "this" you're doing a page refresh, which is an HTTP 302 redirect, instead of an AJAX response. So never return "this" in an event handler method unless you're really sure you want to force a full page refresh, and i

Re: [t5.4-beta-6] Page class member variable scope

2014-07-13 Thread Muhammad Gelbana
Exactly. I was thinking of a *submit*. But now that I thought about it, a submit may not be needed. But I tend prefer having every possible option available for me to handle whatever scenario I may face. I'll go with the ajax option. Thank you. *-* *Muhammad Gelbana* http://www

Re: [t5.4-beta-6] Page class member variable scope

2014-07-13 Thread Geoff Callender
Sorry, that sounds very odd to me. "refresh the page without refreshing it" sounds like a contradiction! Your Select has made an AJAX request. Why wouldn't you want an AJAX response, ie. a partial render? If you return the whole page then any other changes on the client-side will be overwritten

Re: [t5.4-beta-6] Page class member variable scope

2014-07-13 Thread Muhammad Gelbana
​Its ok to use Ajax, but is it the only way to update the page after a value is changed in a Select component ? If yes, wouldn't it be an improvement to be able to refresh the page​ without refreshing it and losing its state ? *-* *Muhammad Gelbana* http://www.linkedin.com/in/m

Re: [t5.4-beta-6] Page class member variable scope

2014-07-13 Thread Geoff Callender
By returning "this" you're doing a page refresh, which is an HTTP 302 redirect, instead of an AJAX response. The redirect causes the browser to issue a second request - a fresh page request - which will be freshly rendered by your stateless page class without any knowledge of the value you set

[t5.4-beta-6] Page class member variable scope

2014-07-12 Thread Muhammad Gelbana
I hope I selected a valid subject ! When I handle a VALUE_CHANGED event for a Select component. I receive the current value for the Select component as an event handler method parameter. I use this parameter to set a member variable in the page's class. @OnEvent(component = "parameterType", valu

Re: When should I use the PERTHREAD scope?

2013-11-14 Thread Thiago H de Paula Figueiredo
ed services wouldn't work in a PerThread Scope? That's a different question and the answer is that they will work. Services won't stop working because they're being injected in a service with a given scope. Tapestry-IoC takes care of the scope and you can mix and match

Re: When should I use the PERTHREAD scope?

2013-11-14 Thread George Christman
On Thu, Nov 14, 2013 at 3:45 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > When your service has state (injected services doesn't count) which is per > thread. > > Just to clarify, are you saying Injected services wouldn't work in a PerThread Scope?

Re: When should I use the PERTHREAD scope?

2013-11-14 Thread Thiago H de Paula Figueiredo
threading. I'm confused as for when I should be using the PERTHREAD scope. If your service has state and it (the state) should be the same for more than one thread (in your case, the lock), it cannot be per thread, otherwise you'd had one lock per thread, which would be useless

When should I use the PERTHREAD scope?

2013-11-14 Thread George Christman
Hello I'm looking to build a service where I would be Injecting a hibernate session as well as synchronizing a few methods for multi threading. I'm confused as for when I should be using the PERTHREAD scope. Scope(ScopeContants.PERTHREAD) public class MyServiceImpl.class implements

Re: @Scope PerThread may cause PermGen errors?

2012-11-30 Thread Christian Riedel
even got a small test-app running without problems so far. Great job! Am 30.11.2012 um 18:52 schrieb Howard Lewis Ship: > Per-thread scope means to create a new implementation, via the builder > method, once for every request: buldUserCacheSupport() is invoked the first > time any

Re: @Scope PerThread may cause PermGen errors?

2012-11-30 Thread Howard Lewis Ship
Per-thread scope means to create a new implementation, via the builder method, once for every request: buldUserCacheSupport() is invoked the first time any method of UserCacheSupport is invoked. EnvironmentalBuilder creates a proxy class and instance, and is intended to only be invoked once per

@Scope PerThread may cause PermGen errors?

2012-11-30 Thread Christian Riedel
Hi everone, today I found the reason for a recent memory leak and I thought I'd ask what you think of it: Rather by accident I annotated one of the EnvironmentalShadowBuilder-methods with @Scope(PERTHREAD) @Scope(ScopeConstants.PERTHREAD) public UserCacheSupport buildUserCacheSu

Tapestry/Hibernate/Quartz/Perthread scope

2012-08-20 Thread Michael Prescott
Gratefully wondering if someone could validate my hunches about Tapestry. By way of background, I've got a Tapestry app that manages some training data for a machine learning process. The training process is time consuming, so I want to do that outside of the request/response cycle. I intend to

Re: PerThread Scope and Assets

2012-07-27 Thread Juan E. Maya
application to be regurlarily saturated. > Otherwise, keep your eyes on your database queries and let the rest > shake out. > > On Fri, Jul 27, 2012 at 1:13 PM, Juan E. Maya wrote: >> Hello, >> >> first of all i am very glad to go back to work with T5 :) I was >

Re: PerThread Scope and Assets

2012-07-27 Thread Howard Lewis Ship
the rest shake out. On Fri, Jul 27, 2012 at 1:13 PM, Juan E. Maya wrote: > Hello, > > first of all i am very glad to go back to work with T5 :) I was > missing the mailing list. :) > > I know the PerThread scope service are created per request, but i > don't want the obj

PerThread Scope and Assets

2012-07-27 Thread Juan E. Maya
Hello, first of all i am very glad to go back to work with T5 :) I was missing the mailing list. :) I know the PerThread scope service are created per request, but i don't want the object to be created for every asset that is loaded, i only needed for the PageRender cycle. Is there a w

Re: @Scope

2011-10-12 Thread Howard Lewis Ship
;m >> converting a tapestry4/spring application to tapestry5 and I'm trying to >> leave spring behind.  As a spring bean this object was simply declared with >> scope="prototype"  which gave me a new instance of the object every time I >> accessed it. > > Tapest

Re: @Scope

2011-10-12 Thread Thiago H. de Paula Figueiredo
On Wed, 12 Oct 2011 18:28:06 -0300, Tony Nelson wrote: This particular service could have just as easily been a pojo. I'm converting a tapestry4/spring application to tapestry5 and I'm trying to leave spring behind. As a spring bean this object was simply declared

Re: @Scope

2011-10-12 Thread Tony Nelson
This particular service could have just as easily been a pojo. I'm converting a tapestry4/spring application to tapestry5 and I'm trying to leave spring behind. As a spring bean this object was simply declared with scope="prototype" which gave me a new instance of the

Re: @Scope

2011-10-12 Thread Cezary Biernacki
Hi, you can inject ObjectLocator and call 'autobuild' to create a new instance when needed. So instead of @Inject private MyService myService; ... myService.doSomething(); you would have @Inject private ObjectLocator locator; locator.autobuild(MyService.class).doSomething(). However I am

@Scope

2011-10-12 Thread Tony Nelson
I have a service, that I need a new instance of every time it is referenced. In ScopeConstants I see DEFAULT, and PERTHREAD. I really need a new instance every time I request this particular service because it saves state, and yes, there are some occasions where I need several of these in the

Re: component scope service with injected messages

2011-08-30 Thread Howard Lewis Ship
n the java code and avoid them in > the tml, but that is a question of taste). > > > - > http://www.winfonet.eu > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/component-scope-service-with-injecte

Re: component scope service with injected messages

2011-08-30 Thread nillehammer
return this.myService.doSomethingUseful(this.myObject, this.messages); } In your tml: (I try to do method calls with parameters in the java code and avoid them in the tml, but that is a question of taste). - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/component

Re: component scope service with injected messages

2011-08-29 Thread Thiago H. de Paula Figueiredo
On Mon, 29 Aug 2011 20:53:00 -0300, Paul Stanton wrote: just injecting messages didn't work when i tried it. Caused by: java.lang.RuntimeException: No service implements the interface org.apache.tapestry5.ioc.Messages. Maybe a 'service' isn't what I'm after, Messages isn't a service. It

Re: component scope service with injected messages

2011-08-29 Thread Paul Stanton
additional) parameter to your service method. (This is sometimes referred to as method-Injection, a misleading term in my humble opinion). - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/component-scope-service-with-injected-messages-tp4724993p47

Re: component scope service with injected messages

2011-08-29 Thread nillehammer
ext: http://tapestry.1045711.n5.nabble.com/component-scope-service-with-injected-messages-tp4724993p4748239.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apac

Re: component scope service with injected messages

2011-08-29 Thread Paul Stanton
he Messages within the service methods. - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/component-scope-service-with-injected-messages-tp4724993p4730146.html Sent from the Tapestry - User mail

Re: component scope service with injected messages

2011-08-24 Thread Steve Eynon
to define your service methods with an additional Messages > parameter. This way you can use the Messages within the service methods. > > - > http://www.winfonet.eu > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/component-scope-servic

Re: component scope service with injected messages

2011-08-24 Thread nillehammer
The easiest way is to define your service methods with an additional Messages parameter. This way you can use the Messages within the service methods. - http://www.winfonet.eu -- View this message in context: http://tapestry.1045711.n5.nabble.com/component-scope-service-with-injected

component scope service with injected messages

2011-08-22 Thread Paul Stanton
Hi all, I am aware that there is something special about tapestry services/resources such as Request, Messages etc which are only available in the context of a component render. I need to create a service which makes heavy use of the messages store and is available only in the scope of a

Re: Application Scope

2011-08-19 Thread George Christman
Thanks Robert -- View this message in context: http://tapestry.1045711.n5.nabble.com/Application-Scope-tp3246646p4716851.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: Application Scope

2011-08-19 Thread Robert Zeigler
http://tapestry.1045711.n5.nabble.com/Application-Scope-tp3246646p4716830.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org &

Re: Application Scope

2011-08-19 Thread George Christman
Is there any examples on how to create my own service? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Application-Scope-tp3246646p4716830.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Jun 2011 14:47:10 -0300, Dmitriy Vsekhvalnov wrote: did i get you right, that i can simply inject ObjectLocator service to my Quartz JobFactory and instantiate jobs via autobuild() I mean sources saying all dependencies will be injected. Yes. JavaDoc: Autobuilds a class by findin

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Dmitriy Vsekhvalnov
The proxy you get back from > a direct or indrect call to getService() is always global, though in > the case of the perthread scope, that core service implementation is > ... another proxy that manages and delegates to the per-thread > instance. > > I think you need to use an ex

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Howard Lewis Ship
Unfortunately, Tapestry is not Spring :-) The proxy you get back from a direct or indrect call to getService() is always global, though in the case of the perthread scope, that core service implementation is ... another proxy that manages and delegates to the per-thread instance. I think you

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Dmitriy Vsekhvalnov
iag...@gmail.com> wrote: > On Tue, 07 Jun 2011 10:47:23 -0300, Dmitriy Vsekhvalnov < > dvsekhval...@gmail.com> wrote: > > Hi all, >> > > Hi! > > >is it possible to have services bound with Bean scope? I'm using Quartz >> scheduler and my jobs are act

Re: Tapestry IoC: Bean Scope

2011-06-07 Thread Thiago H. de Paula Figueiredo
On Tue, 07 Jun 2011 10:47:23 -0300, Dmitriy Vsekhvalnov wrote: Hi all, Hi! is it possible to have services bound with Bean scope? I'm using Quartz scheduler and my jobs are actually services bound in AppModule with all dependency injection and so on. But i want diff

Tapestry IoC: Bean Scope

2011-06-07 Thread Dmitriy Vsekhvalnov
Hi all, is it possible to have services bound with Bean scope? I'm using Quartz scheduler and my jobs are actually services bound in AppModule with all dependency injection and so on. But i want different instances of jobs. So every time i call ServiceResources:getSe

Re: Advising a Scope PerThread Services with Context

2011-03-04 Thread Thiago H. de Paula Figueiredo
On Fri, 04 Mar 2011 14:40:54 -0300, rektide wrote: At present, I'm trying to build a MethodAdvice implementation that modifies the behavior of a PerThread Scope'd service. The fact that your service has perthread scope shouldn't change anything. The MethodAdvice need

Advising a Scope PerThread Services with Context

2011-03-04 Thread rektide
Hello everyone. I'm new here, so let me just say hello. I'm rektide, I've been using Tapestry 5.1 since July 2010. Been mostly great, with the main caveat being trying to figure out how to coax my app into having enough context when I run Ajax requests. The component model is awesome, the IO

Re: Application Scope

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 10:46:57 -0200, Ulrich Stärk wrote: Not build-in but you can write yourself some singleton service around a hashmap or something. I'd like to add that Tapestry never had an application scope. ApplicationState was renamend to SessionState exactly to prevent this

Re: Application Scope

2010-11-02 Thread Mats Andersson
One solution is to implement your own tapestry service for this. BR Mats Stephan Windmüller skrev 2010-11-02 13:36: Hi! Since the ApplicationState annotation has been renamed to SessionState, I am wondering if there is a usable Application scope in Tapestry where I can store data globally

Re: Application Scope

2010-11-02 Thread Ulrich Stärk
Not build-in but you can write yourself some singleton service around a hashmap or something. Uli On 02.11.2010 13:36, Stephan Windmüller wrote: Hi! Since the ApplicationState annotation has been renamed to SessionState, I am wondering if there is a usable Application scope in Tapestry where

Application Scope

2010-11-02 Thread Stephan Windmüller
Hi! Since the ApplicationState annotation has been renamed to SessionState, I am wondering if there is a usable Application scope in Tapestry where I can store data globally for the application? TIA Stephan - To unsubscribe, e

Re: RenderSupport Scope

2010-05-30 Thread Pablo dos Reis
Thank you Martin! 2010/5/30 Martin Strand > If you want to declare a global function from within Tapestry.onDOMLoaded, > you can simply add it to the windows object: > > window.myGlobalFunction = function() { > doCoolStuff(); > } > > You can then access that function from anywhere if you pref

Re: RenderSupport Scope

2010-05-30 Thread Martin Strand
If you want to declare a global function from within Tapestry.onDOMLoaded, you can simply add it to the windows object: window.myGlobalFunction = function() { doCoolStuff(); } You can then access that function from anywhere if you prefer to do things this way: Martin On Sun, 30 May 2010

Re: RenderSupport Scope

2010-05-29 Thread Pablo dos Reis
Hi Thiago, When the Tapestry creates the script. It puts the script inside a other method. Tapestry.onDOMLoaded() in this case. So when I try call it method using a js the method created by RenderSupport is not visible for js. I resolved the following writer.element("script", "language", "Ja

Re: RenderSupport Scope

2010-05-29 Thread Thiago H. de Paula Figueiredo
On Sat, 29 May 2010 23:18:28 -0300, Pablo dos Reis wrote: When I inject javaScript using renderSupport not is possible access the methods created in the class through a js file. Hi, Pablo! I'm not sure what you're talking about, but remember that any JavaScript code added through RenderS

RenderSupport Scope

2010-05-29 Thread Pablo dos Reis
When I inject javaScript using renderSupport not is possible access the methods created in the class through a js file. Are there a way for access a JavaScript method overrided using renderSupport for a classe outside it, in the js for exemple ? -- Pablo Henrique dos Reis

Re: T5: Testing service scope

2010-02-23 Thread Inge Solvoll
tion process that would let me do > it. I do have another ingenious idea though :-) > > Paul > > Inge Solvoll wrote on 23/02/2010 12:51:18: > > > That's what I'm already doing. This time I wanted to test that the > perthread > > scope of my service wor

Re: T5: Testing service scope

2010-02-23 Thread Paul Field
nctionality for Testify, but there are no easy hooks into the registry creation process that would let me do it. I do have another ingenious idea though :-) Paul Inge Solvoll wrote on 23/02/2010 12:51:18: > That's what I'm already doing. This time I wanted to test that the per

Re: T5: Testing service scope

2010-02-23 Thread Inge Solvoll
That's what I'm already doing. This time I wanted to test that the perthread scope of my service worked like it should, that's why I need to do an integration test with a real live registry. On Tue, Feb 23, 2010 at 12:42 PM, Paul Field wrote: > Hi Inge, > > Testify do

Re: T5: Testing service scope

2010-02-23 Thread Paul Field
> >> > >> Martin > >> > >> On Wed, 17 Feb 2010 12:17:35 +0100, Ulrich Stärk > >> wrote: > >> > >> Querying the registry for the same service from different threads > >>> should yield different instances > >>> when

Re: T5: Testing service scope

2010-02-23 Thread Inge Solvoll
t; > On 17.02.2010 23:32 schrieb Martin Strand: > > Hmm, why different instances? Wouldn't every thread see the same proxy >> instance? >> >> Martin >> >> On Wed, 17 Feb 2010 12:17:35 +0100, Ulrich Stärk >> wrote: >> >> Querying the registr

Re: T5: Testing service scope

2010-02-17 Thread Ulrich Stärk
10 12:17:35 +0100, Ulrich Stärk wrote: Querying the registry for the same service from different threads should yield different instances when using the perthread scope. Just test that. No need for a request if your service doesn't require one. Uli On 17.02.2010 11:42 schrieb Inge Solvol

Re: T5: Testing service scope

2010-02-17 Thread Martin Strand
Hmm, why different instances? Wouldn't every thread see the same proxy instance? Martin On Wed, 17 Feb 2010 12:17:35 +0100, Ulrich Stärk wrote: Querying the registry for the same service from different threads should yield different instances when using the perthread scope. Just test

Re: T5: Testing service scope

2010-02-17 Thread Ulrich Stärk
erent instances when using the perthread scope. Just test that. No need for a request if your service doesn't require one. Uli On 17.02.2010 11:42 schrieb Inge Solvoll: Hi! I recently encountered a bug in one of my services, where it had the wrong scope because I put the scope annotation on the

Re: T5: Testing service scope

2010-02-17 Thread Inge Solvoll
ly in my test superclass so all tests use the same registry instance. On Wed, Feb 17, 2010 at 12:17 PM, Ulrich Stärk wrote: > Querying the registry for the same service from different threads should > yield different instances when using the perthread scope. Just test that. No > need fo

Re: T5: Testing service scope

2010-02-17 Thread Ulrich Stärk
Querying the registry for the same service from different threads should yield different instances when using the perthread scope. Just test that. No need for a request if your service doesn't require one. Uli On 17.02.2010 11:42 schrieb Inge Solvoll: Hi! I recently encountered a bug i

Re: T5: Testing service scope

2010-02-17 Thread Thiago H. de Paula Figueiredo
On Wed, 17 Feb 2010 08:42:38 -0200, Inge Solvoll wrote: Hi! Hi! But how can I test "perthread" scope on services in the test registry when there are no real requests? I'm assuming this requires mocking the Request object in some way? Only if your service or some of i

T5: Testing service scope

2010-02-17 Thread Inge Solvoll
Hi! I recently encountered a bug in one of my services, where it had the wrong scope because I put the scope annotation on the interface rather than on the implementing class. I got the idea that I could manually create a T5 IOC registry to do integration testing on my services. But how can I

Re: Why does Registry.get(Class, AnnotationProvider) ignore @Scope?

2009-09-06 Thread Peter Niederwieser
Well, actually it does compile - if the class is written in Groovy. :-) Have to investigate this further. Anyway, I now understand that @Scope is allowed on a service implementation class, but not on its fields. Thanks for the clarification! Cheers, Peter Thiago H. de Paula Figueiredo wrote

Re: Why does Registry.get(Class, AnnotationProvider) ignore @Scope?

2009-09-06 Thread Thiago H. de Paula Figueiredo
Hi! The @Scope can't be used in fields: it wouldn't compile (@Scope is defined with @Target(value={TYPE,METHOD})). In addition, each service has only one scope, defined in its builder method. From http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html: "Each service has a

Why does Registry.get(Class, AnnotationProvider) ignore @Scope?

2009-09-06 Thread Peter Niederwieser
I'm using Registry.get(Class, AnnotationProvider) to find matching services for fields of an object that is not under Tapestry's control. Everything works fine, except that annotating a field with @Scope("myOwnScope") has no effect. Is this a bug? If not, what can I do to o

Re: Application scope services

2009-05-03 Thread Angelo Chen
> init the Tap5 application? Also, is it possible to have those services > declared in application scope? For instance, i wanted the application to > constantly check for incoming sms from mobile connected via javacomm. > > And also, I was looking at the ajax documentation. It didn&#

Re: Application scope services

2009-05-03 Thread Ulrich Stärk
absolutely. Have a look at the tapestry-ioc documentation. Also, is it possible to have those services declared in application scope? For instance, i wanted the application to constantly check for incoming sms from mobile connected via javacomm. I'd do that with the help of quartz. The third-

Application scope services

2009-05-03 Thread sodium
have those services declared in application scope? For instance, i wanted the application to constantly check for incoming sms from mobile connected via javacomm. And also, I was looking at the ajax documentation. It didn't state whether if the ajax supported is secured or not. I only wanted authen

Re: T5: tapestry-ioc scope problem in a standalone program

2008-09-10 Thread hua.jiang
your reply. But it seems not a correct solution. I just got the same result with the statement added. -- View this message in context: http://www.nabble.com/T5%3A-tapestry-ioc-scope-problem-in-a-standalone-program-tp19405294p19428352.html Sent from the Tapestry - User mail

Re: T5: tapestry-ioc scope problem in a standalone program

2008-09-09 Thread Kristian Marinkovic
ry users" An users@tapestry.apache.org Kopie Thema T5: tapestry-ioc scope problem in a standalone program Hello, every one. I met the following problem when trying to use tapestry-ioc in a standalone program. According to the tapestry official site, a service builder method should

T5: tapestry-ioc scope problem in a standalone program

2008-09-09 Thread hua.jiang
Hello, every one. I met the following problem when trying to use tapestry-ioc in a standalone program. According to the tapestry official site, a service builder method should be invoked multiple times, if it is annotated with @Scope("perthread") and the service is used in multi thr

Re: Session and application scope

2007-10-23 Thread Peter Stavrinides
How can i instanciate an Application Object? @ApplicationState private MyObject objectName_; how i use a request @Inject private RequestGlobals requestGlobals_; Then you have access to the Servlet API with things like: HttpServletRequest request = requestGlobals.getHTTPServletRequest(); Gi

Re: Session and application scope

2007-10-23 Thread Massimo Lusetti
On 10/23/07, Gianluigi <[EMAIL PROTECTED]> wrote: > Only a question, how i use a request or a Session in Tapestry 5? How can i > instanciate an > Application Object? > > in JSP i wrote : HttpSession session and session.setProperty("Key"); > and in Tapestry 5? Take a look at application state: h

Session and application scope

2007-10-23 Thread Gianluigi
Hi to all, i'm a JSP developer and i want to know a more on Tapestry 5, it seem very cool! :) Only a question, how i use a request or a Session in Tapestry 5? How can i instanciate an Application Object? in JSP i wrote : HttpSession session and session.setProperty("Key"); and in Tapestry 5?

Re: T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Charles Mason
On 9/17/07, Davor Hrg <[EMAIL PROTECTED]> wrote: > The problem is that you must give action link something > to identify your object. > > in the page you mentioned you have only one instance of > the MatchInfo component that get's rendered multiple times with different > data. > So when your action

Re: T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Davor Hrg
The problem is that you must give action link something to identify your object. in the page you mentioned you have only one instance of the MatchInfo component that get's rendered multiple times with different data. So when your action is called, you have the last element passed as parameter. yo

Re: T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Charles Mason
On 9/17/07, Francois Armand <[EMAIL PROTECTED]> wrote: > Well, I'm not sure that I understand what you do correctly, may you > provide the actual code ? > As far as I can tell, you persists a field that is used as value for the > loop, and so it's always the last MacthInfo that is persists. > > You

Re: T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Francois Armand
Charles Mason wrote: Hi All [..] Hi, [..] The method called by the action link uses the persistent field which stores the actual Match object which the component gets data from. However when ever I use the page and click the action link, its as though the action link is clicked on the last

T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Charles Mason
Hi All I am currently experiencing a problem which seems to contradict the model of how action link works. I have a page called start.html. It has a for loop which for every iteration contains a custom component, called MatchInfo. This renders a box containing the info about the match. MatchInfo

scope session help

2007-04-23 Thread Andrea Chiumenti
Hello, I've the following need I've a component that have a parameter that it's not necessarly bound to session scope. Is there a way to ma it bound to session whan managed by the component. i.e. I'd like this parameter to be boud to a property of the component that is session scoped. kiuma

Re: Persisted Object with session scope is getting lost between the pages.

2007-04-09 Thread tapuser
Details >> >> >> >> 123-ABC123 -Link to ItemDetails (OrderId is passed >> as >> >> >> >> parameter) >> >> >> >> >> >> >> >> >> >> >> >> ItemList Page Displays: >> >> >> >>

Re: Persisted Object with session scope is getting lost between the pages.

2007-04-01 Thread Martino Piccinato
gt;> >> In OrderListPage.java: >> >> >> >> >> >> In viewItems() method: >> >> >> >> >> >> ItemListPage nextPage = (ItemListPage ) cycle >> >> >> .getPage("It

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-31 Thread tapuser
>> >> >> >> >> >> >> In OrderListPage.java: >> >> >> >> >> >> In viewItems() method: >> >> >> >> >> &

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-31 Thread Martino Piccinato
; >> >> >> >> >> >> In ItemListPage.java: I am persisting the order object. >> >> >> >> @Persist("session") >> >> public abstract void setOrder(Order order); >> >> public a

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-30 Thread tapuser
va: I am persisting the order object. >> >> >> >> @Persist("session") >> >> public abstract void setOrder(Order order); >> >> public abstract Order getOrder(); >> >> >> >> In ItemForm.java: I am persisting the orde

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-30 Thread Martino Piccinato
; @Persist("session") >> public abstract void setOrder(Order order); >> public abstract Order getOrder(); >> >> >> When I am saving Item, getOrder() is returning null. This value exists >> when >> I navigate to new Item Page. But it is getting lost wh

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-30 Thread tapuser
sisted object in the previous page). >> >> @Persist("session") >> public abstract void setOrder(Order order); >> public abstract Order getOrder(); >> >> >> When I am saving Item, getOrder() is returnin

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-30 Thread Martino Piccinato
mForm.java. Please help... Thanks in advance... -Sri -- View this message in context: http://www.nabble.com/Persisted-Object-with-session-scope-is-getting-lost-between-the-pages.-tf3490484.html#a9747985 Sent from the Tapestry - User mailing list archive at Nabble.com.

Persisted Object with session scope is getting lost between the pages.

2007-03-29 Thread tapuser
e exists when I navigate to new Item Page. But it is getting lost while accessing save method in ItemForm.java. Please help... Thanks in advance... -Sri -- View this message in context: http://www.nabble.com/Persisted-Object-with-session-scope-is-getting-lost-between-the-pages.-tf3490484.ht

Re: Injecting services into application scope ASO

2007-03-16 Thread Barry Books
I think what you need is an initialize-method. setConfig cannot be called before the Manager constructor. See http://hivemind.apache.org/hivemind1/hivemind/BuilderFactory.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Injecting services into application scope ASO

2007-03-16 Thread Borut Bolčina
application scope ASO (Application State Object). This * class is instantiated lazily - when first page injects it. */ public Manager() { logger.info("config: " + config); // <<<<<< THIS IS NULL String address = config.getString("person.

Injecting services into application scope ASO

2007-03-15 Thread Borut Bolčina
Hello, can someone provide some code hints to Hivemind and Spring newb - that would be me - on how to inject 1. Hivemind service into application scope ASO 2. Spring service into application scope ASO I want to cache some long term objects in the global ASO, but want (if it is at all

Re: RE: Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-11 Thread Tapestry User List
Thanks Ben, That's what I did and it works great ! Best regards, D. 2007/1/4, Ben Dotte <[EMAIL PROTECTED]>: Crap.. I forgot about that dependency on the web request. That never made sense to me for the case of application-scope ASOs. In any case, here is a wild idea. If you can

Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Shing Hing Man
that implements > ServletContextListener. > In the method public void > contextDestroyed(ServletContextEvent event), > I need to retrieve an Application State Object (ASO) > of tapestry 4 > with an application scope (not session). > > My question is how to retrieve an Appli

RE: Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Ben Dotte
Crap.. I forgot about that dependency on the web request. That never made sense to me for the case of application-scope ASOs. In any case, here is a wild idea. If you can capture and hold onto the Hivemind-created instance of the ASO, you could then give out access to it through a static getter

Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Mahmut Izci
ateObject" is the name of your ASO. > > HTH > > Ben > > -Original Message- > From: Tapestry User List [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 04, 2007 8:45 AM > To: tapestry-user@jakarta.apache.org > Subject: how to retrieve an Application St

Re: Re: how to retrieve an Application State Object (ASO) with an application scope from the ServletContext ?

2007-01-04 Thread Tapestry User List
nager.class)).get("myStateObject"); > > Where "myStateObject" is the name of your ASO. > > HTH > > Ben > > -Original Message- > From: Tapestry User List [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 04, 2007 8:45 AM > To: tapestry-

  1   2   >