How do you include an html link in an error message for a form

2010-09-02 Thread Donny Nadolny
I have a form where data can be entered, and one of the restrictions is that there is no duplicate data in the db. If there is, I record an error in the form with recordError(Field field, String errorMessage). I can do this fine - but I would like to include a link to the item that already contains

Re: Event before which request data is processed.

2010-09-02 Thread Thiago H. de Paula Figueiredo
Hi, guys! I stand corrected. :) On Thu, 02 Sep 2010 18:13:44 -0300, Howard Lewis Ship wrote: Thank you for pointing that out. I guess that the meaning has changed, it's more like "the page's persistent fields have been attached to the page instance for this thread/request". On Thu, Sep 2

Re: Event before which request data is processed.

2010-09-02 Thread Howard Lewis Ship
Thank you for pointing that out. I guess that the meaning has changed, it's more like "the page's persistent fields have been attached to the page instance for this thread/request". On Thu, Sep 2, 2010 at 2:07 PM, Igor Drobiazko wrote: > On Thu, Sep 2, 2010 at 10:55 PM, Thiago H. de Paula Figuei

Re: Event before which request data is processed.

2010-09-02 Thread Igor Drobiazko
On Thu, Sep 2, 2010 at 10:55 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > @PageDetached are ignored in Tapestry 5.2, as it doesn't use a page pool > anymore. > > That's not correct. The life cycle of a page is still the same: the page is attached to the request and detached wh

Re: Event before which request data is processed.

2010-09-02 Thread Thiago H. de Paula Figueiredo
On Thu, 02 Sep 2010 17:23:51 -0300, Christian Gruber wrote: Hey, Hi! We have a "page" we want to use roughly in place of writing a separate servlet that needs access to the request and all its raw data before processing for binding What do you mean by "before processing for bind

Re: Event before which request data is processed.

2010-09-02 Thread Igor Drobiazko
Just inject the Request [1] or HttpServletRequest (both are per-thread services) into your page and use it. [1] http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/services/Request.html On Thu, Sep 2, 2010 at 10:23 PM, Christian Gruber wrote: > Hey, > > We have a "page" we wa

Event before which request data is processed.

2010-09-02 Thread Christian Gruber
Hey, We have a "page" we want to use roughly in place of writing a separate servlet that needs access to the request and all its raw data before processing for binding - is there a proper event at which we can do this? Would @PageAttached be appropriate for this? Can we get the Request a

Re: General debugging query

2010-09-02 Thread Thiago H. de Paula Figueiredo
On Thu, 02 Sep 2010 12:58:09 -0300, Jim O'Callaghan wrote: Thanks Thiago. This may be the cause of it - will have to keep an eye on whether this just happens to annotated fields or not. In 5.2+, which I could play with yet, I guess all fields are removed, as there's no page pool anymore

RE: General debugging query

2010-09-02 Thread Jim O'Callaghan
Thanks Thiago. This may be the cause of it - will have to keep an eye on whether this just happens to annotated fields or not. Regards, Jim. -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 02 September 2010 16:29 To: Tapestry users Subject: Re:

Re: General debugging query

2010-09-02 Thread Thiago H. de Paula Figueiredo
On Thu, 02 Sep 2010 11:53:53 -0300, Jim O'Callaghan wrote: Does this debugging issue ring a bell with anyone? Any workarounds? Is it down to using T5 annotations on methods and them being instrumented? Access to annotated fields in Tapestry 5 are silently replaced by method calls. In T

RE: T5.1 and Threaded Background Tasks

2010-09-02 Thread Alfie Kirkpatrick
I thought it was also interesting/cool that proxies are serializable, so that you can do things like add a service as a property to a Quartz job and (provided it's a job that runs in the same VM lifetime) it works perfectly. Alfie. -Original Message- From: Howard Lewis Ship [mailto:hls.

RE: [T5.2] No object of type ClientBehaviorSupport is available from the Environment

2010-09-02 Thread Jim O'Callaghan
Can't reproduce Andy and not a solution I'm afraid, but can you try to run the app through your non-Eclipse environment with debug mode set on the JVM and remote debug it using Eclipse on a socket / shared mem? Perhaps this would give you some more info. Regards, Jim. -Original Message-

General debugging query

2010-09-02 Thread Jim O'Callaghan
I'm using Eclipse 3.4.1 and debugging with a variety of JVMs from late 1.4s to 1.6+ -I'm finding that the mouseover popups or watch variables frequently evaluate variables as null in, say, some page method, but then if I follow the debugger through to the service / DAO layer I can get a correct val

RE: [T5.2] No object of type ClientBehaviorSupport is available from the Environment

2010-09-02 Thread Blower, Andy
Sorry for no update - was on a short holiday over the (UK) bank holiday weekend. Anyway, I thought this had just 'gone-away' yesterday but it hasn't. It happens unless I run it using Eclipse to debug the app, now that really is strange! That's right, a bug that doesn't appear when debugging. Kin

Re: File Handling and Buffer Handling

2010-09-02 Thread Michael Gentry
You may need/want to add a -Djava.awt.headless=true to your startup, too. mrg On Wed, Sep 1, 2010 at 11:35 PM, Charith Madusanka wrote: > Hi Thiago!, > > I also use java.awt.Rectangle, java.awt.image.BufferedImage  packages for my > code ... is it ok? > > charith > > On Wed, Sep 1, 2010 at 6:36

RE: Submitting XML via a T5 form

2010-09-02 Thread Jim O'Callaghan
Alex, You're quite right Tap is working as required and posting / redisplaying the xml intact - the problem was another exception buried deep in the app that being caught in error rather than thrown - thanks. Regards, Jim. -Original Message- From: Alex Kotchnev [mailto:akoch...@gmail.com

Re: Call function periodically

2010-09-02 Thread Werner Keil
Should you prefer using Java Concurrent, please have a look at what these guys did: http://code.google.com/p/parfait/ They succesfully merged *JSR-275*, the Units of Measure API with elements in java.util.concurrent, allowing a far greater flexibility with regard

Re: Call function periodically

2010-09-02 Thread Werner Keil
You could also use Quartz. Werner On Thu, Sep 2, 2010 at 11:18 AM, wrote: > > This has to be done independently of the activity of the users on the web > application > Whats not clear to me is if you will be updating a UI or not... unless you > are, then why use JavaScript? Use IoC and > java.u

Re: Call function periodically

2010-09-02 Thread P . Stavrinides
> This has to be done independently of the activity of the users on the web > application Whats not clear to me is if you will be updating a UI or not... unless you are, then why use JavaScript? Use IoC and java.util.concurrent.ScheduledExecutorService to create a scheduler service with a runna

Re: URL to file

2010-09-02 Thread Laurent Guerin
Hi, As Thiago has told you, Tapestry is a Web framework and has no need to provide a such feature into the T5 API. Perhaps, i don't understand your need, but java.io.File.toURI() followed by java.net.URI.toURL() should be a good candidate. 2010/9/2 Charith Madusanka > Hi! > > Is there any simpl