Re: T5 which button did you hit?

2007-10-31 Thread Nick Westgate
There are some docs about this here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html To get the "success" event from the component named Form, use: onSuccessFromForm() To get the "submit" event from the component named Submit, so use: onSuccessFromSubmit() It's good practice

T5 which button did you hit?

2007-10-31 Thread Marcus
Hi, SomePage.java: ... public Object onSubmit() { System.out.println("Button1"); } public Object onSuccess() { System.out.println("Button 2"); } ... SomePage.tml: ... ... localhost:8080/SomeTest/SomePage How do you know, in java class, which button did you hit? Console always display

Re: T5 book: update

2007-10-31 Thread Donyee
Where is the book? Can someone give me a copy? or the download url ? 2007/11/1, Eko S.W. <[EMAIL PROTECTED]>: > > I am sorry, but How can we use DateField in 5.0.6? > I am so late on 5.0.6 > > Thanks > > 2007/10/26, Ted Steen <[EMAIL PROTECTED]>: > > > > Very nice! > > Dont forget to update the p

Re: T5 book: update

2007-10-31 Thread Eko S.W.
I am sorry, but How can we use DateField in 5.0.6? I am so late on 5.0.6 Thanks 2007/10/26, Ted Steen <[EMAIL PROTECTED]>: > > Very nice! > Dont forget to update the part about the DatePicker. It is now > obsolete. T5.0.6 now includes a DateField as a part of the core. > -- Best wishes, Eko SW

Re: T5 book: update

2007-10-31 Thread Eko S.W.
Woaw, can I had the PDF, or I must pay ? thanks my personal email is at [EMAIL PROTECTED] -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/

T5: How can I inject a different resource type?

2007-10-31 Thread Michael Lake
Basically, I want to be able to store my component .tml files in a database. I've been looking at the code, stepping through the debugger, and it seems that I need to implement org.apache.tapestry.ioc.Resource or perhaps extend AbstractResource. ClasspathResouce and ContextResource are classes that

T5: persist a list

2007-10-31 Thread Angelo Chen
Hi, I got a list for a loop: @Persist("flash") private List files; Questions: 1. do i have to files = new List() in my page constructor? 2. why this files never got empty, I can see it even from another browser? how to empty this list? Thanks, A.C. -- View this message in context: http://w

Re: T5: file uploader validation

2007-10-31 Thread Angelo Chen
hi, solution is very simple, just check the extension in onValidate, if not jpg recorderror, same as other validation. Angelo Chen wrote: > > Hi, > > Is there a way to check if file selected by the user is a jpeg file name > before the uploading starts? thanks. > > A.C. > > > -- View th

Re: Help with forgetPage method

2007-10-31 Thread Bill Holloway
lalap, Using the back/forward button on the browser invokes the browser's internal caching mechanism and is largely beyond the scope of the server (tapestry) to control. It is when the browser is *redirected* back to that page or when the contents of that page are streamed back to the browser fro

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-10-31 Thread Dom Couldwell
Any ideas as to when we might get a fix for this? We're stuck in terms of migrating to 4.1.3 until we get a fix. Thanks, Dom --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the s

Re: T5: Will there be OGNLsupport

2007-10-31 Thread Jesse Kuhnert
It's possible, but there are probably a couple things that need to be addressed properly first. I think one of Drew's remaining wishes is to see some of the static classes/configuration re-factored to be more IoC friendly. I plan on doing this at some point but am still trying to keep up with

Re: Simple servlet with xml output - to tapestry

2007-10-31 Thread llonely
Thank you very much both. Fernando, I just voted for on bug. Will try to use the patch as well, as I need namespaces. Will keep you posted regards thanos Fernando Padilla wrote: > > Yes you can output XML directly from the template with some caveats. > > 1) By default the contentType is "te

T5: Will there be OGNLsupport

2007-10-31 Thread Charles Mason
Hi All I was just wondering if there is any way to add OGNL support to Tapestry 5 or if there are any plans to do so. I am finding the prop: quite limiting. I appreciate it does have extremly good performance compared to OGNL but it would be nice to have the choice. Would it be possible to have a

T5: file uploader validation

2007-10-31 Thread Angelo Chen
Hi, Is there a way to check if file selected by the user is a jpeg file name before the uploading starts? thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-file-uploader-validation-tf4725955.html#a13512340 Sent from the Tapestry - User mailing list archive at Nabble.c

Re: T5 : Localization of input validation

2007-10-31 Thread Nick Westgate
Or just look on the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Cheers, Nick. Marcus wrote: Hi Stephane, search this forum for "*T5 How to Override the default banner message" * Marcus

Re: Expression syntax Tapestry 5

2007-10-31 Thread Nick Westgate
Details of prop are here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html Cheers, Nick. Peter Stavrinides wrote: Thanks Chris, that helps answer my question. Peter Chris Lewis wrote: I could be mistaken, but I think you'll find the "language", if you can call it that

Re: Simple servlet with xml output - to tapestry

2007-10-31 Thread Fernando Padilla
Yes you can output XML directly from the template with some caveats. 1) By default the contentType is "text/html", if you want to change that you can override it by using this annotation on your page class file: @Meta("tapestry.response-content-type=text/xml") 2) namespaces are totally ignored

Re: T5 : Localization of input validation

2007-10-31 Thread Marcus
Hi Stephane, search this forum for "*T5 How to Override the default banner message" * Marcus

Help with forgetPage method

2007-10-31 Thread lalapj2706
Hello! I saw that you had some problems with forgetPage() method, and I was wondering if you could please tell me how can I use this method, I’ve been searching a lot on the Internet , but I did not find an exemple. I don’t even know if this method will be useful to my problem… So, the problem

How do I use forgetPage method.

2007-10-31 Thread Laís
Hello! I’d like to know how can I use the forgetPage() method, I’ve been searching a lot, but I did not find an exemple. I don’t even know if this method will be useful to my problem… So, the problem is when the user refresh/ back / forward the page, these situations can’t happen. Thank

Re: Is Tapestry 5 ready?

2007-10-31 Thread Robin Helgelin
On 10/31/07, Galam <[EMAIL PROTECTED]> wrote: > hi everyone, Hi. > Last time when I check the Tapestry mailing list was probably a year a go. I > have been waited patiently for the arrival of Tapestry 5. Now, it seems it > is almost there, but technologies evoves fast. Is Tapestry still a better

Is Tapestry 5 ready?

2007-10-31 Thread Galam
hi everyone, Last time when I check the Tapestry mailing list was probably a year a go. I have been waited patiently for the arrival of Tapestry 5. Now, it seems it is almost there, but technologies evoves fast. Is Tapestry still a better framework for building medium to large scale websites when

Re: Mixing T5 and Guice --- best practices

2007-10-31 Thread Jesse Kuhnert
You may run in to issues wrt hot class reloading, but maybe not. Only one way for you to find out. ;) FYI - I was witness to at least a couple tiny email exchanges between Howard and Bob discussing their implementations and what kind of options there might be. The T5 IoC feature set is just too

Re: Simple servlet with xml output - to tapestry

2007-10-31 Thread Thiago H de Paula Figueiredo
On Wed, 31 Oct 2007 11:37:43 -0200, llonely <[EMAIL PROTECTED]> wrote: Many thanks Thiago, this is surprisingly helpful! You're welcome. :) Is XML output possible on template level? Having a template with the basic structure and update it based on parameter values. As far as I know, you c

Re: Expression syntax Tapestry 5

2007-10-31 Thread Peter Stavrinides
Thanks Chris, that helps answer my question. Peter Chris Lewis wrote: I could be mistaken, but I think you'll find the "language", if you can call it that, pleasantly dumb compared to OGNL. Let me disclaim once more - you should consult the docs - but I don't believe there are any operators at

Re: Simple servlet with xml output - to tapestry

2007-10-31 Thread llonely
Many thanks Thiago, this is surprisingly helpful! Is XML output possible on template level? Having a template with the basic structure and update it based on parameter values. BR Thiago H de Paula Figueiredo-2 wrote: > > On Wed, 31 Oct 2007 09:22:47 -0200, llonely <[EMAIL PROTECTED]> wrote:

Re: Expression syntax Tapestry 5

2007-10-31 Thread Chris Lewis
I could be mistaken, but I think you'll find the "language", if you can call it that, pleasantly dumb compared to OGNL. Let me disclaim once more - you should consult the docs - but I don't believe there are any operators at all. In templates you simply have 3 constructs: 1) Expansions. These

Expression syntax Tapestry 5

2007-10-31 Thread Peter Stavrinides
Hi all Can anyone point me to some documentation on writing expressions in tapestry templates. I am looking for some examples of operators and general syntax. Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: Mixing T5 and Guice --- best practices

2007-10-31 Thread Kristian Marinkovic
pages and components can be decorated using mixins! g, kris Ognen Ivanovski <[EMAIL PROTECTED]> Gesendet von: news <[EMAIL PROTECTED]> 31.10.2007 12:39 Bitte antworten an "Tapestry users" An users@tapestry.apache.org Kopie Thema Re: Mixing T5 and Guice --- best practices Jan Vissers

Re: Mixing T5 and Guice --- best practices

2007-10-31 Thread Thiago H de Paula Figueiredo
On Wed, 31 Oct 2007 09:39:36 -0200, Ognen Ivanovski <[EMAIL PROTECTED]> wrote: b) decoration of multiple services might not be as expressive as one would like it to be if one would like use declarative transaction management. Work is being done here (http://tapestry.apache.org/tapestry5

Re: Simple servlet with xml output - to tapestry

2007-10-31 Thread Thiago H de Paula Figueiredo
On Wed, 31 Oct 2007 09:22:47 -0200, llonely <[EMAIL PROTECTED]> wrote: Hi all, I am currently testing tapestry and trying to convert a simple servlet. I have a typical servlet that gets parameters and returns xml Generate the XML output using any method you fancy and then return a StreamR

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-10-31 Thread Thiago H de Paula Figueiredo
On Wed, 31 Oct 2007 09:17:52 -0200, Ognen Ivanovski <[EMAIL PROTECTED]> wrote: The question is - how to do it? Better yet, how to do it without boilerplate code all around? tapestry-ioc allows you to write interceptors on service method calls. I've already done that: http://tapestry-mine.

Re: T5: Persist or not? help me understand this

2007-10-31 Thread Marcelo C. de Freitas
Angelo, We had a situation using T4.1 where some non-persistent properties where reused in listeners after the page was rendered. It used to work relatively fine but as the page got more properties it begun to fail. Sometimes it got the right value, other times an old value (?!?!) and -

Re: Mixing T5 and Guice --- best practices

2007-10-31 Thread Ognen Ivanovski
Jan Vissers wrote: Please, please don't 'shoot' me - but if this is the case what would be a reason for me to use T5 IoC, other that for injecting stuff into page classes? I think the T5 IoC is great, fast, simple and covers 80% of the things you need an IoC container for. Plug, allows you t

Re: T5: Multiple onActivate?

2007-10-31 Thread Kevin Menard
In some ways I'd agree, in others I wouldn't. I'm finding cases where T5 really made some simple well-defined aspects from previous generations much more difficult than they need be. These will be getting added to JIRA though. All in all though, I do like a lot of the improvements. I'll have to

Simple servlet with xml output - to tapestry

2007-10-31 Thread llonely
Hi all, I am currently testing tapestry and trying to convert a simple servlet. I have a typical servlet that gets parameters and returns xml for example http://localhost:8080/myapp/method=login&user=test result: ok after that, return results for user stored in session http://localhos

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-10-31 Thread Ognen Ivanovski
lasitha wrote: However, your post brings up an interesting question: will the object's state be persisted even after validation fails? My first Seems obvious that a transaction should be wrapped around the form validation (or around the whole request) which would rollback in case of valdati

Re: T5: Persist or not? help me understand this

2007-10-31 Thread Angelo Chen
Hi, looks like I have to make it @Persist if Long usrID is private, if just the default it might be persisted even without a @Persist but a warning during run time, am I right? A.C. Angelo Chen wrote: > > Hi, > > I got a little confused with need to @Persist, example as follow, the > usrID as

T5 : Localization of input validation

2007-10-31 Thread Stephane Decleire
Hi, I can't find the way to localize the default messages provided by Tapestry for input validation like : "You must correct the following errors before you may continue" or "You must provide a value for ..." Any help is welcome. Stephane