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

2008-09-09 Thread Kristian Marinkovic
add following instruction after you have started the thread: Thread.currentThread().join() changes are good that you main program (process) is terminated before the thread is started. g, kris "hua.jiang" <[EMAIL PROTECTED]> 10.09.2008 04:35 Bitte antworten an "Tapestry users" An users@t

RE: Updating maven from within eclipse

2008-09-09 Thread rdennett
I ran mvn eclipse:eclipse from the tapestry-tutorial1 directory and it said that it built successfully (actually, I was wanting to know how to update the project via maven from _within_ eclipse), but I am still getting a bunch of "cannot be resolved" errors for various imports. I had put this pro

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 threads. So I wrot

Re: T-4.1.6-SNAPSHOT broken? commons-pool

2008-09-09 Thread Martin Strand
Perhaps it's not much help, but you can see where commons-pool comes from if you run: mvn dependency:tree Martin On Tue, 09 Sep 2008 19:56:31 +0200, Ken in nashua <[EMAIL PROTECTED]> wrote: Well no where in my project is commons-pool specified anywhere. It is implicitly being drawn i

Re: I'd like to generate valid XHTML

2008-09-09 Thread Luther Baker
I do remember the generics being a bit tricky but not too bad. I will post what I have a bit later tonite. -Luther On Tue, Sep 9, 2008 at 12:24 PM, ProAdmin Dariusz Dwornikowski < [EMAIL PROTECTED]> wrote: > And it wokred for you ? > > public static void contributeAlias(Configuration > confi

RE: T5: Event bubbling

2008-09-09 Thread Blower, Andy
That's how I've been dealing with this scenario up til today, but this event is fired from a form submission so I can't change the event name. Well I don't think I can any way. ;-) And thank you Howard for your explanation. That's fine, I don't think it's a big deal. I do still think it'd be gr

Re: T5: Event bubbling

2008-09-09 Thread Howard Lewis Ship
Just technical reasons inside Tapestry. I still feel, strongly, that an event that bubbles up should not expose the originating component. For those following from the sidelines: P --> A --> B Page P contains component A which contains component B. An action event is triggered on B. A sees th

Re: T5: Event bubbling

2008-09-09 Thread Josh Canfield
I think the best practice here is to create your own events, that way you don't have to build dependencies on child components internal structure. Your subcomponent would catch the events from it's dependencies and translate them to events that it exposes. http://tapestry.apache.org/tapestry5/apido

Re: I'd like to generate valid XHTML

2008-09-09 Thread ProAdmin Dariusz Dwornikowski
And it wokred for you ? public static void contributeAlias(Configuration configuration) { configuration.add(AliasContribution.create(MarkupWriterFactory.class, new XhtmlMarkupWriterFactoryImpl())); } I get error after insering that in AppModule. Eclipse says:

Re: I'd like to generate valid XHTML

2008-09-09 Thread Luther Baker
I followed the wiki instructions and the other posts here and yes, I am generating correct XHTML now. I haven't attempted to remove the superfluous tapestry css file nor have I convinced the library to put the Content-Type meta tag first - but I'm satisfied with valid XHTML. The only other style

Re: T5: onActivate() called twice

2008-09-09 Thread Howard Lewis Ship
What version of Tapestry? This was addressed in 5.0.14, I believe, to ensure that when overriding a base class event handler method, the method is not invoked twice. On Mon, Apr 21, 2008 at 6:25 AM, Leon Derks <[EMAIL PROTECTED]> wrote: > Hi Davor, > > Indeed, I have a BasePage that implements th

Re: I'd like to generate valid XHTML

2008-09-09 Thread ProAdmin Dariusz Dwornikowski
Did you manage to achieve it in 5.0.14 ? Im very curious, how to do the Wiki method in 5.0.14. 2008/9/1 Luther Baker <[EMAIL PROTECTED]> > Is there a way to adjust the html that is generated - especially in the > header? > > Specifically, the generated head section does not appear to be xhtml > c

RE: Updating maven from within eclipse

2008-09-09 Thread Jonathan Barker
I'll add to that... Once you have edited your pom to change the release version, and run mvn eclipse:eclipse, make sure you check your Eclipse project's classpath to make sure there are no lingering references to the old Tapestry jars. > -Original Message- > From: Toby Hobson [mailto:[E

RE: T5: onActivate() called twice

2008-09-09 Thread Yeeswara Nadapana (HCL Financial Services)
Hi Leon, I am facing the same problem with the onActivate() method calling twice. Did you find any solution for this? Thanks, Yees. -Original Message- From: Leon Derks [mailto:[EMAIL PROTECTED] Sent: Monday, April 21, 2008 6:56 PM To: Tapestry users Subject: Re: T5: onActivate() calle

Re: T5: Class reloading not working

2008-09-09 Thread Thiago H. de Paula Figueiredo
Em Tue, 09 Sep 2008 11:17:46 -0300, Sven Homburg <[EMAIL PROTECTED]> escreveu: sorry, dont mean "spread", mean "advantage" Faster startup time Faster (at least it is my impression, no tests made) More modular Can be used embedded in an application ... Thiago ---

Re: T5: Class reloading not working

2008-09-09 Thread Sven Homburg
sorry, dont mean "spread", mean "advantage" 2008/9/9 Sven Homburg <[EMAIL PROTECTED]> > i know its off topic, and i dont want to start a discussion about what is > better, > only want know the spread of tomcet against jetty !? > > 2008/9/9 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> > > Em

Re: T5: Class reloading not working

2008-09-09 Thread Sven Homburg
i know its off topic, and i dont want to start a discussion about what is better, only want know the spread of tomcet against jetty !? 2008/9/9 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> > Em Tue, 09 Sep 2008 10:40:05 -0300, Inge Solvoll <[EMAIL PROTECTED]> > escreveu: > > That's it then.

Re: T5: Class reloading not working

2008-09-09 Thread Thiago H. de Paula Figueiredo
Em Tue, 09 Sep 2008 10:40:05 -0300, Inge Solvoll <[EMAIL PROTECTED]> escreveu: That's it then. All my page and component classes are under WEB-INF/classes. So I need to either switch to Jetty or find a way to compile all my T5 classes to a jar file under WEB-INF/lib... I think almost anyon

Re: T5: Class reloading not working

2008-09-09 Thread Inge Solvoll
That's it then. All my page and component classes are under WEB-INF/classes. So I need to either switch to Jetty or find a way to compile all my T5 classes to a jar file under WEB-INF/lib... By the way, I did of course annotate the component field. This is not a problem with syntax, I have a lot o

Re: T5: Class reloading not working

2008-09-09 Thread Thiago H. de Paula Figueiredo
Em Tue, 09 Sep 2008 10:09:15 -0300, Inge Solvoll <[EMAIL PROTECTED]> escreveu: "Embedded component 'keyField' has no type. You should specify a type in the component template, or define the component inside class com.myapp.tapestry5.pages.admin.system.SettingsEdit using the @Component annota

T5: Class reloading not working

2008-09-09 Thread Inge Solvoll
Hi! 1. I created a page and tested that it viewed nicely in my browser 2. I added a component via a private instance variable with type TextField in my page class 3. I added a reference to that component in my .tml. 4. I get the following error in the browser, indicating that tapestry can't see my

Re: Updating maven from within eclipse

2008-09-09 Thread Toby Hobson
Hi Rob are you using the maven-eclipse plugin or just running mvn eclipse:eclipse from the command line to generate the .project file? Either way I think changing your pom to use the newer version should work. If you are still having problems you can always delete the contents of your .m2/reposito

Re: [T5] Filename of TextStreamResponse ?

2008-09-09 Thread Otho
Thanks a lot to you, two! Regards, Otho 2008/9/9 Kristian Marinkovic <[EMAIL PROTECTED]> > hi, > > in addition you can add the desired fileName (as the last parameter) to > the > context of the ActionLink. this way the user will always see the link to a > file if > he hovers over: > > eg: > > @C

RE: T5: Event bubbling

2008-09-09 Thread Blower, Andy
I found the answer by searching the list (see: http://markmail.org/message/fjev6gt76fpc6akq) but I think the T5 documentation should be updated to include these details. I also wonder if allowing more specificity would be useful as an option even if it did mean that changes in the child compone

T5: Event bubbling

2008-09-09 Thread Blower, Andy
I'm trying to handle an event in a parent component of one that fires the event and it doesn't seem to work unless it's a generic catch all event handler like onAction(). If I specify the component id like onActionFromThing() or specifying component="thing" in an OnEvent annotation it doesn't ca

Re: Securing services

2008-09-09 Thread Massimo Lusetti
On Tue, Sep 9, 2008 at 10:21 AM, Hugo Palma <[EMAIL PROTECTED]> wrote: > I've used tapestry-acegi with great success for securing both pages and > methods: > > Check an example here > http://www.localhost.nu/java/tapestry5-acegi/usage.html > > Another possibility, although i never actually tried i

RE: pageLink and a context

2008-09-09 Thread Russell Brown
Do you not just need to use literal: prefix on your string? Otherwise Tapestry assumes it is a property. So how about... Add a project Just a guess from reading http://tapestry.apache.org/tapestry5/guide/parameters.html CTRL-F "Binding Expressions" Cheers Russell -Original Message-

Re: pageLink and a context

2008-09-09 Thread Kristian Marinkovic
hi, could you post your page class? if you need some heavy preparation you could inject the page and call some methods: public class Page1() { @InjectPage private Page2 page2; @Component private ActionLink page2Link Object onActionFromPage2Link() { page2.heavyInit

Re: Securing services

2008-09-09 Thread Hugo Palma
I've used tapestry-acegi with great success for securing both pages and methods: Check an example here http://www.localhost.nu/java/tapestry5-acegi/usage.html Another possibility, although i never actually tried it, could be to define your own Secured annotation and contribute a custom worke

Re: [T5] Filename of TextStreamResponse ?

2008-09-09 Thread Kristian Marinkovic
hi, in addition you can add the desired fileName (as the last parameter) to the context of the ActionLink. this way the user will always see the link to a file if he hovers over: eg: @Component(parameter="context=literal:report.csv") private ActionLink link the generated link then will look

Securing services

2008-09-09 Thread Moritz Gmelin
Hi, Securing page access with an access controller injected as a dispatcher in the render cycle is well described in the T5 wiki. But How would I secure a service method on a page? E.G. I have a page "DocumentPage" with a method onDownload(id docID). When the URL DocumentPage/onDownload/5 is

Re: [T5] Filename of TextStreamResponse ?

2008-09-09 Thread Carl Crowder
If you set the "Content-Disposition" header in the response you can. Add this to your page: @Inject private RequestGlobals requestGlobals; Then somewhere before you return the stream response, do requestGlobals.getResponse().setHeader("Content-Disposition", "attachment; filename=" + ); Also, y

[T5] Filename of TextStreamResponse ?

2008-09-09 Thread Otho
Hello all, by defaullt a TextStreamResponse when meant to be saved on disk gets a filname composed of for example export.customers Is there any way to override that to something like export_customers.csv without having to rename classes and methods accordingly? Regards, Otho