RE: spring T5 integration on acegi security considerations

2008-10-07 Thread Jonathan Barker
Please note that Spring Security is the successor to Acegi Security. My experience is with Acegi but you should probably invest the time in learning Spring Security. They have definitely changed how they configure things. With my old T4 apps, using Acegi configured via Spring, but also using my

Re: [T5] Alias building recursion exception when using tapetry-spring-security

2008-10-07 Thread Michael Gerzabek
Can you post (excerpts of) your Module class where you build your own SaltSource? Thiago H. de Paula Figueiredo schrieb: Hi! Please help me with this exception. I've trying to find any information on how to figure out what's happening but, even after debugging through Tapestry source code, I

RE: [T5] Alias building recursion exception when using tapetry-spring-security

2008-10-07 Thread Jonathan Barker
I hit that once, but I can't remember what caused it. Have you made sure that you don't have multiple copies of the library in your classpath? Can you post your AppModule? > -Original Message- > From: Thiago H. de Paula Figueiredo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 07,

Re: Scalability of T5 : Form Wizard options

2008-10-07 Thread Renat Zubairov
Hello John, >> >> In this case, you wouldn't use the page activation context, as you're >> filling the page properties yourself. As Tapestry uses redirect-after-post >> by default (and not using it can lead to several problems), you would need >> to @Persist("flash") the property in all pages. Th

can T5 do contract first web service

2008-10-07 Thread wesley
hi all, just wondered whether T5 can offer contract first web services like spring 2? from what i look up on the help pages, there isn't any topic on it except Hivemind from the previous T4. any idea? thanks wesley -- View this message in context: http://n2.nabble.com/can-T5-do-contract-first-

Re: tapestry-spring-security and openid

2008-10-07 Thread Michael Gerzabek
Robin Helgelin schrieb: On Tue, Oct 7, 2008 at 10:58 PM, Jonathan Barker <[EMAIL PROTECTED]> wrote: I'm assuming this hasn't changed since tapestry5-acegi. The IfLoggedIn component uses the following test: private boolean test() { Principal principal = requestGlobals.getHTTPServle

Re: tapestry-spring-security and openid

2008-10-07 Thread Michael Gerzabek
Jonathan Barker schrieb: Actually, there are two problems. In the configuration for tapestry5-acegi and presumably spring security, there is an AnonymousAuthenticationProvider. The AnonymousAuthenticationProvider only assures that there is an Authentication at any time. So don't take it away

RE: spring T5 integration on acegi security considerations

2008-10-07 Thread wesley
hi jon, since i'm integrating the spring as back end and front end as T5, the filter that i'm using is TapestrySpringFilter as outline by the wiki from t5 homepage. "For access to pages, you either configure a filter through Spring, or through annotations, or through tapestry-ioc configuration.

Re: Tapestry 5 : The requested resource (/login) is not available. error in Tomcat

2008-10-07 Thread LakshithaS
Yeah,, I also thought that, I will contact them and find out about their supporting Tapestry and all. Actually they only mention the Tomcat server and JSP/Servlet support. So better to check the server logs also, ill check with them Thank you all for your ideas :) Cheers Daniel Jue wrote:

[T5] Alias building recursion exception when using tapetry-spring-security

2008-10-07 Thread Thiago H. de Paula Figueiredo
Hi! Please help me with this exception. I've trying to find any information on how to figure out what's happening but, even after debugging through Tapestry source code, I haven't find any answer. I've shortened and reformatted the message for clarity. java.lang.RuntimeException: Error in

t5: PageActivationContext and error handling?

2008-10-07 Thread Angelo Chen
Hi, I have following class, it works, but how to handle errors like: 1. user pass a wrong usr ID: http://localhost/info/11 2. without passing id : http://localhost/info Is there a way to use @PactActivationContext to save coding and yet can still handle errors like the above? Thanks, Angel

Re: Scalability of T5 : Form Wizard options

2008-10-07 Thread John Jimmy Dondapati
On Tue, Oct 7, 2008 at 7:11 PM, Thiago H. de Paula Figueiredo < [EMAIL PROTECTED]> wrote: > Em Tue, 07 Oct 2008 18:23:05 -0300, John Jimmy Dondapati < > [EMAIL PROTECTED]> escreveu: > > Here are the options with T5 (from what we could dig up) : >> 2. Pass on the Request object between the Pages

Re: Scalability of T5 : Form Wizard options

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 18:23:05 -0300, John Jimmy Dondapati <[EMAIL PROTECTED]> escreveu: Here are the options with T5 (from what we could dig up) : 2. Pass on the Request object between the Pages using Page1.java Object onSubmitFromForm() { nextPage.setRequestObject(this.requestObject()); re

Re: T5: How to use Quartz with T5?

2008-10-07 Thread Angelo Chen
would like to use it, how to specify chenillekit dependency in maven? Sven Homburg wrote: > > for dependencies look here > > http://www.chenillekit.org/chenillekit-quartz/dependencies.html > > there is no sample code, the project is in an early stage, > > but working under production in 2 c

Re: T5: How to use Quartz with T5?

2008-10-07 Thread Angelo Chen
looks good, how to specify chenillekit dependency in maven? Sven Homburg wrote: > > for dependencies look here > > http://www.chenillekit.org/chenillekit-quartz/dependencies.html > > there is no sample code, the project is in an early stage, > > but working under production in 2 customer pr

RE: tapestry-spring-security and openid

2008-10-07 Thread Jonathan Barker
One of my problems is that I don't know enough about the OpenId authentication with Spring Security. For a test, start with an unsecured page with a simple login form. Inject the AuthenticationManager and manually authenticate. If that succeeds, then it's definitely an issue of storing the Auth

Re: tapestry-spring-security and openid

2008-10-07 Thread Ulrich Stärk
I already did this but this still doesn't solve the problem that there is no openid Authentication token in the SecurityContext. And I don't know why since the login seems to work just fine. Uli Jonathan Barker schrieb: Actually, there are two problems. In the configuration for tapestry5-aceg

RE: tapestry-spring-security and openid

2008-10-07 Thread Jonathan Barker
I think so. I believe that one or more of the filters will populate the UserPrincipal as a convenience, but the test should really be using the SecurityContext > -Original Message- > From: Robin Helgelin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 07, 2008 17:14 > To: Tapestry use

RE: tapestry-spring-security and openid

2008-10-07 Thread Jonathan Barker
Actually, there are two problems. In the configuration for tapestry5-acegi and presumably spring security, there is an AnonymousAuthenticationProvider. I think that should be omitted by default, but right now it will fill in the Authentication object if your regular authentication fails. Either

Scalability of T5 : Form Wizard options

2008-10-07 Thread John Jimmy Dondapati
Hi, We are evaluating Tapestry for a couple of months and are very interested in using it in a huge project that will have a minimum of 30k users when it goes up. Since T5 is not yet production ready we are seeking for advice to know how scalable Tapestry forms can be. We need a multipage for

Re: tapestry-spring-security and openid

2008-10-07 Thread Robin Helgelin
On Tue, Oct 7, 2008 at 10:58 PM, Jonathan Barker <[EMAIL PROTECTED]> wrote: > I'm assuming this hasn't changed since tapestry5-acegi. The IfLoggedIn > component uses the following test: > >private boolean test() { >Principal principal = > requestGlobals.getHTTPServletRequest().getUserP

Re: tapestry-spring-security and openid

2008-10-07 Thread Ulrich Stärk
Thanks Jonathan, but this not the root cause. The Authentication object stored in the SecurityContext is an AnonymousAuthenticationToken instead of an OpenIDAuthenticationToken. That tells me that somehow the Authentication doesn't get stored... Uli Jonathan Barker schrieb: I'm assuming this

RE: tapestry-spring-security and openid

2008-10-07 Thread Jonathan Barker
I'm assuming this hasn't changed since tapestry5-acegi. The IfLoggedIn component uses the following test: private boolean test() { Principal principal = requestGlobals.getHTTPServletRequest().getUserPrincipal(); return principal != null && principal.getName() != ""; } Unf

tapestry-spring-security and openid

2008-10-07 Thread Ulrich Stärk
Hi, I'm trying to authenticate my users against an openid provider. Spring security provides an OpenIDAuthenticationProcessingFilter and an OpenIDAuthenticationProvider for this purpose. I set up the filter and the provider and contributed them to the HttpServletRequestHandler service and the

RE: Treating a Component Like a Form Field

2008-10-07 Thread Jonathan Barker
Yup, completely. This is just an issue of getting @Parameter working properly then. I defer to Thiago. Jonathan > -Original Message- > From: Keith Bottner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 07, 2008 15:42 > To: Tapestry users > Subject: Re: Treating a Component Like a

Re: October release for v5?

2008-10-07 Thread Sven Homburg
t5components project page: http://code.google.com/p/tapestry5-components/ 2008/10/7 Daniel Jue <[EMAIL PROTECTED]> > Currently, 5.0.15 is a good one to start with. You can get a head start on > developing now, and when the production version comes out your changes > should be minimal to none, d

Re: Treating a Component Like a Form Field

2008-10-07 Thread Keith Bottner
Jonathan, Actually I use an underlying select with an Encoder, OptionModel and SelectionModel, I just wrap it all into a single component because it gets used in a number of places and it is easier to set the Encoder, OptionModel and SelectionModel once then to have multiple developers re

RE: Treating a Component Like a Form Field

2008-10-07 Thread Jonathan Barker
Keith, Is there a particular reason that you created a custom component for the Country selection rather than just using the standard Select component? Is it just that it gets used in a number of places, or was there another reason? Jonathan > -Original Message- > From: Keith Bottner [

T5: page as application/json response

2008-10-07 Thread Waldo Mendoza
Hello Is there any way to tell tapestry to render a entire page as JSON response? Currently there is a support like this for blocks and components, but i tried the following: @ContentType("application/json") public class TestPage { } But nothing happens, i want to get a json response, with .c

Re: Details about Services

2008-10-07 Thread Keith Bottner
Thanks for the feedback, I will review the link you sent me. And I totally agree about the comment about learning Tapestry with regard to Struts/Tiles. I just needed more information so I can wrap my head around porting things properly instead of just using a hammer to bang a square peg int

Re: October release for v5?

2008-10-07 Thread Daniel Jue
Currently, 5.0.15 is a good one to start with. You can get a head start on developing now, and when the production version comes out your changes should be minimal to none, depending on how deep you get into it. It seems class and package name changes are done, and that was the most disruptive ch

Re: Treating a Component Like a Form Field

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 15:58:34 -0300, Keith Bottner <[EMAIL PROTECTED]> escreveu: I have used @Parameter before but never like this. I am unsure how this would work. When you set a field that is a parameter, the bound page property is also set. A parameter in Tapestry is not just an in para

Re: Details about Services

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 15:48:23 -0300, Keith Bottner <[EMAIL PROTECTED]> escreveu: I have been looking for documentation that explains more detailed information on how Services are implemented but I have not found any. Does anybody know where some good documentation can be located? Here: htt

Re: Treating a Component Like a Form Field

2008-10-07 Thread Keith Bottner
I have used @Parameter before but never like this. I am unsure how this would work. Right now inside of my component I have a field named selection and I have a public getter and setter so that I can retrieve this value from within the page that is using the component. I also have a @Proper

Re: Triggering a partial update on a grid

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 15:42:26 -0300, Hugo Palma <[EMAIL PROTECTED]> escreveu: I thought so too, but i'm starting to think there is one. Here's some of the code in hope someone will spot something wrong: Maybe not related to your problem, but the zone parameter of the Form comp

Details about Services

2008-10-07 Thread Keith Bottner
I have been looking for documentation that explains more detailed information on how Services are implemented but I have not found any. Does anybody know where some good documentation can be located? Questions outstanding are: Are Services singletons? (i.e. does everyone that uses a Service

Re: Triggering a partial update on a grid

2008-10-07 Thread Hugo Palma
I thought so too, but i'm starting to think there is one. Here's some of the code in hope someone will spot something wrong: template: submit="true"/> zone="processGrid">Search inplace="true" rowsPerPage="prop:gridRowsPerPage" row="currentProcess"

Re: Triggering a partial update on a grid

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 15:22:03 -0300, Hugo Palma <[EMAIL PROTECTED]> escreveu: What's the difference between using the form submit with a zone and using an event link besides the form parameters not getting updated ? AFAIK, none. -- Thiago H. de Paula Figueiredo Independent Java consultant,

Re: Triggering a partial update on a grid

2008-10-07 Thread Hugo Palma
I had thought of that. But all the form parameters are persisted and i have debugged the application and the grid source parameter has the correct size. Only the grid doesn't seem to be aware of it. I just found out that if i use an eventlink component to trigger the update instead of the for

Re: Triggering a partial update on a grid

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 13:47:30 -0300, Hugo Palma <[EMAIL PROTECTED]> escreveu: Caused by: java.lang.IndexOutOfBoundsException: Index: 10, Size: 10 Take a look at the collection returned to the Grid source parameter in the second request. One common error is to not @Persist the form parameter

Re: tapestry-spring-security: injecting UserDetails

2008-10-07 Thread Michael Gerzabek
In your page use Authentication authentication = SecurityContextHolder.getContext() .getAuthentication(); if ( authentication.getPrincipal() instanceof User ) { ... } where User is you specific User object. Hope that helps, Michael Ulrich Stärk schrieb: Hi, are the UserDetai

Triggering a partial update on a grid

2008-10-07 Thread Hugo Palma
I have a search form and a grid with the results. I'd like to submit the form and update the grid with the filtered results without doing a full page refresh. My take on this is to set the form component "zone" parameter to the grid zone id so that the form submit it's treated "AJAX way" and

Re: [T5] Using Tapestry5 on Igenko, an open source cms/eCommerce project

2008-10-07 Thread Bouiaw
Thanks a lot for this interesting link. On Tue, Oct 7, 2008 at 2:29 AM, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Em Mon, 06 Oct 2008 19:14:40 -0300, Bouiaw <[EMAIL PROTECTED]> escreveu: > >> 1) RESTful URL handling >> >> As I would like to manage RESTful urls like >> (http://mywe

Re: Problem injecting ApplicationStateManager into service implementing commons-upload ProgressListener

2008-10-07 Thread Pierre-Alain RIVIERE
Using your method do not solve my NPE calling ApplicationStateManager. BUT! now I can inject HttpServletRequest in my ProgressListenerImpl (instead of ApplicationStateManager) and get my state object using - (UserData) request.getSe

Re: October release for v5?

2008-10-07 Thread Marcelo Lotif
I agree with Jonathan. Tapestry 5 is very stable since alpha versions. The RC is very close and we don't expect to see major changes until the final release arrives, just some bug fixes and little improvements. If you start now, certainly you will feel no pain on upgrading. On Tue, Oct 7, 2008 at

Re: [EMAIL PROTECTED] inside [EMAIL PROTECTED]

2008-10-07 Thread Norman Franke
You want to return the value of an OGNL expression based on your example, just that you want the expression to be determined at run time. I'd imagine you can do that in code. I've never done that, but it should be possible to do so. What I have done was to use HiveMind's PropertyUtils class

Re: T5: How to use Quartz with T5?

2008-10-07 Thread Sven Homburg
for dependencies look here http://www.chenillekit.org/chenillekit-quartz/dependencies.html there is no sample code, the project is in an early stage, but working under production in 2 customer projects 2008/10/7 Angelo Chen <[EMAIL PROTECTED]> > > Thanks for the fast reply, does the Quartz mod

Client side validation problem when using absolute positioning

2008-10-07 Thread Toby Hobson
I have just encountered a problem and wanted to run it by you guys before reporting it as a bug: have positioned an element using css absolute positioning but the validation "bubble" appears in the wrong place. Here is my relevant code: set name css: #newSetPanel { wi

tapestry-spring-security: injecting UserDetails

2008-10-07 Thread Ulrich Stärk
Hi, are the UserDetails of a logged in user somehow exposed as a service or accessible via some service so that I can access them? Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: NPE when trying to contribute ServletContextSymbolProvider to SymbolSource (WAS: Re: Page pool hard limit and page instance usage)

2008-10-07 Thread Francois Armand
Ville Virtanen wrote: I have no new info on this, and I think we should add ticket to get this sorted. (If it is something we do wrong -> correct the documentation or then it is a bug that needs a fix anyway.) I search forward and find a solution that works for me, I hope it may help you too

Re: T5: How to use Quartz with T5?

2008-10-07 Thread Angelo Chen
Thanks for the fast reply, does the Quartz module depends on some other modules in the chenillekit? is there any sample project that I can try it out? pom.xml will be a big help. thanks. Angelo Sven Homburg wrote: > > perhaps it helps you > > http://www.chenillekit.org/chenillekit-quartz/index

Re: T5: How to use Quartz with T5?

2008-10-07 Thread Sven Homburg
perhaps it helps you http://www.chenillekit.org/chenillekit-quartz/index.html 2008/10/7 Angelo Chen <[EMAIL PROTECTED]> > > Hi, > > I'm trying to use Quarts for some scheduled tasks and I'd like to make it a > service, at end is my simple code, AnnounceSchedulerImpl is the service, > > in the Ap

Re: Problem injecting ApplicationStateManager into service implementing commons-upload ProgressListener

2008-10-07 Thread Francois Armand
Francois Armand wrote: [...]. So, I have no idea why the bug is not always here. But it happens that the problem was that I try to use (tapestry) Request before the call to requestGlobals.storeRequestResponse(request, response); was done : I'm in a RequestHandler, and this is done in the term

Re: Tapestry 5 : The requested resource (/login) is not available. error in Tomcat

2008-10-07 Thread Daniel Jue
Some hosting companies that allow you to run servlets do not allow/don't give you resources for using higher end web frameworks, such as Tapestry, Spring, etc. Some explicitly forbid apps that use Hibernate. In these cases, you are stuck with very basic JSPs. You may want to check and make sure

T5: select updating in form?

2008-10-07 Thread photos
I have a select dropdown that will determine what is displayed in a second dropdown. Both of these are in a form. Am I correct in thinking that this cannot be done using Zones (I seem to recall a recent posting that said it was not possible if it's inside a form). In that case, how can

T5: How to use Quartz with T5?

2008-10-07 Thread Angelo Chen
Hi, I'm trying to use Quarts for some scheduled tasks and I'd like to make it a service, at end is my simple code, AnnounceSchedulerImpl is the service, in the AppModule I add: binder.bind(AnnouceScheduler.class, AnnouceSchedulerImpl.class); but when run the IOC will not be started, commenting

Re: Tapestry 5 : The requested resource (/login) is not available. error in Tomcat

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 11:00:29 -0300, LakshithaS <[EMAIL PROTECTED]> escreveu: HTTP Status 404 - /login type Status report message /login description The requested resource (/login) is not available. Apache Tomcat/5.0.27 Check your logs. It looks like your application was not started succ

Tapestry 5 : The requested resource (/login) is not available. error in Tomcat

2008-10-07 Thread LakshithaS
Dear All, I would like to mention an issue which i have recently faced and still fighting to resolve, I have developed an application using Tapestry (5.0.10) and finally hosted in newly purchased GoDaddy account. its a deluxe hosting plan and supports JSP/servlet they use Tomcat 5.0.27 version. Al

[T5] Weird page loading exception

2008-10-07 Thread Thiago H. de Paula Figueiredo
Hi! I'm getting this exception when trying to use one package (Tapestry CRUD) in another project (Example): Base class br.com.arsmachina.tapestrycrud.base.BasePage (super class of br.com.arsmachina.tapestrycrud.base.BaseListPage) is not in a controlled package and is therefore not valid.

RE: October release for v5?

2008-10-07 Thread Jonathan Barker
I've had production apps in place since 5.0.5. Actually, I have one that's still running on 5.0.5. Anything I have in active development just follows the most current release, or snapshot. Hop on the bandwagon. If you are looking to move, there's no time like the present. Jonathan > -Or

Re: type of Component

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 09:54:34 -0300, Walid Iguer <[EMAIL PROTECTED]> escreveu: Delegate Component does not suit for me. This requires me to write any blocks on my page It can use blocks from other pages too. I would like the type to be implemented dynamically. For example: Tapestry doe

Re: type of Component

2008-10-07 Thread Walid Iguer
Delegate Component does not suit for me. This requires me to write any blocks on my page I would like the type to be implemented dynamically. For example: Thanks 2008/10/7 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> > Em Tue, 07 Oct 2008 09:28:58 -0300, Walid Iguer <[EMAIL PROTECTED]>

Re: type of Component

2008-10-07 Thread Thiago H. de Paula Figueiredo
Em Tue, 07 Oct 2008 09:28:58 -0300, Walid Iguer <[EMAIL PROTECTED]> escreveu: Hi, I'm looking for a way to dynamically implement a "type" of Component. Do you have a solution? Use blocks and the Delegate component: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestr

Re: type of Component

2008-10-07 Thread Toby Hobson
What errors do you see? 2008/10/7 Walid Iguer <[EMAIL PROTECTED]> > Hi, > > I'm looking for a way to dynamically implement a "type" of Component. > > Do you have a solution? > > Currently, I do this: (the method does not like me) > > ... > > > > > > > > > >

type of Component

2008-10-07 Thread Walid Iguer
Hi, I'm looking for a way to dynamically implement a "type" of Component. Do you have a solution? Currently, I do this: (the method does not like me) ... Thanks, Wig

Re: Problem injecting ApplicationStateManager into service implementing commons-upload ProgressListener

2008-10-07 Thread Francois Armand
Pierre-Alain RIVIERE wrote: Hello, Maybe it's related but 5.0.14 gives me the same result here. But the use case seems to be the same : contributing a RequestFilter with the ApplicationStateService thrown a NPE. And no solution or hack for now. Too bad cause my webapp is just a simple upload

October release for v5?

2008-10-07 Thread Joel Halbert
Hi Tapestry Community, Apologies if this question has been answered elsewhere many times, but I wanted to get a feel for when the final production ready release of Tapestry 5 might be available? Is this still scheduled for October? (I've been keenly anticipating Tapestry 5 since May, currently

[T5] application hangs regularly (windows, maven jetty:run)

2008-10-07 Thread Andy Pahne
Hi, I am currently developing a T5 app. I run it with the maven jett plugin on a windows box. I tried T 5.0.15 and 5.0.16-SNAPSHOT. The application hangs regularly. When I start it and then start to navigate the application pages, after the third or fourth page view, the server stops almost

Re: T5: Serverpush functionality?

2008-10-07 Thread Otho
Thank you both for your tips! Regards, Otho 2008/10/6 Lance Java <[EMAIL PROTECTED]> > Use dwr's reverse ajax... it's great! > http://directwebremoting.org/dwr/reverse-ajax > > If you download the sample war it has examples including a chat > application. > > Dwr3.0 is soon to be released with a

Re: Zone update

2008-10-07 Thread Ulrich Stärk
That doesn't work at the moment, an issue has already been opened: https://issues.apache.org/jira/browse/TAP5-138 You can register with JIRA and vote for it. Uli Am Di, 7.10.2008, 11:19, schrieb Zlatko Kuvendziski: > Hi! Does any one know how to update a zone, but with a select component. > I kn

RE: T5: Validation message defaults

2008-10-07 Thread Blower, Andy
Okay, I've raised a JIRA TAP5-253 for this. > -Original Message- > From: Blower, Andy > Sent: 01 October 2008 15:04 > To: 'Tapestry users' > Subject: T5: Validation message defaults > > I'm trying to set up validation for our forms and I need to customise > the default validation messages.

Zone update

2008-10-07 Thread Zlatko Kuvendziski
Hi! Does any one know how to update a zone, but with a select component. I know how to make that with actionLink --> http://www.infoq.com/articles/tapestry5-intro , but I need to make it onCnange from the select component, if thats even possible... I'm using tapestry 5.0.15 here's a sample co

Re: Access the ApplicationGlobals inside the "AppModule::bind()" method

2008-10-07 Thread Ulrich Stärk
After you defined the PropertiesFileSymbolProvider, you have to contribute it to the SymbolSource service (see the HOWTO). Afterwards you can just @Inject @Symbol("your-symbol-name-here") final String something into your service builder method, e.g. public YourService buildYourService(@Inject @Sym

Re: Access the ApplicationGlobals inside the "AppModule::bind()" method

2008-10-07 Thread Ville Virtanen
Just bind(@Inject @Symbol("some.identifier") String someSymbol) I think. This initiates the construction of symbolsource, which in turn calls the contribute in your appmodule which initiates the construction of the PropertiesFileSymbolProvider which reads the file. And btw, I would recommend h

Re: Access the ApplicationGlobals inside the "AppModule::bind()" method

2008-10-07 Thread Edouard sur edouardmercier.fr
Thank you for this very quick and clear answer! Does it mean that I will be able to inject the "PropertiesFileSymbolProvider" object inside the "AppModule::bind(ServiceBinder binder, @InjectService("PropertiesFileSymbolProvider") SymbolProvider propertiesFileSymbolProvider)" method this way? Or sh

Re: How to access an ASO in a non-servlet thread

2008-10-07 Thread Ulrich Stärk
Am Di, 7.10.2008, 10:38, schrieb Edouard sur edouardmercier.fr: > Thank you Uli. > > I had already taken a look at the two pointers you have provided, > without really understanding them: I'm a bit lost on how to start > with. I've understood that I must create a service and declare it > inside the

Re: Access the ApplicationGlobals inside the "AppModule::bind()" method

2008-10-07 Thread Ulrich Stärk
Some of us (including me) tried to do the same thing but failed. See here http://markmail.org/message/hdcboxjrxkrgruyy for the discussion. It seems to come down to the order in which services are instantiated. By the time your service is being instantiated, the ServletContext has not yet been set i

Access the ApplicationGlobals inside the "AppModule::bind()" method

2008-10-07 Thread Edouard sur edouardmercier.fr
Hello again. I would like the service implementation binding (inside the "AppModule::bind(ServiceBinder binder)") to depend on the web.xml configuration file. This is the reason why I would like to access the ApplicationGlobal instance inside the method (in order to call as "globals.getServletCont

Re: How to access an ASO in a non-servlet thread

2008-10-07 Thread Edouard sur edouardmercier.fr
Thank you Uli. I had already taken a look at the two pointers you have provided, without really understanding them: I'm a bit lost on how to start with. I've understood that I must create a service and declare it inside the AppModule class. I've seen that I should declare an interface for such a s

Re: How to access an ASO in a non-servlet thread

2008-10-07 Thread Ulrich Stärk
You can build a Tapestry ioc service around your notification receiver thread which manages the thread and exposes any notification received. This service can then be injected into your pages and components and can be queried for any received notifications. See http://wiki.apache.org/tapestry/Tape

How to access an ASO in a non-servlet thread

2008-10-07 Thread Edouard sur edouardmercier.fr
Hi everyone. I'm currently facing the following problem: my T5 (0.15) web application receive notifications in a dedicated non servlet thread inside some of my Tapestry components, which have an ApplicationStateObject attribute. I would like to update the state of the ASO, but the problem is that