Re: T5.1: componentSource with an activation context

2010-09-20 Thread Jack Nuzbit
se the configuration in a contribution on a per-app basis. Sounds fun right? :) On Fri, Sep 17, 2010 at 5:44 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 17 Sep 2010 12:58:52 -0300, Jack Nuzbit > wrote: > > Hi, >> > > Hi! > > Is

T5.1: componentSource with an activation context

2010-09-17 Thread Jack Nuzbit
Hi, Is there a way to create Pages and initialise their activation context at a service level? ComponentSource can give me Component instances but casting it to my page instance results in a ClassCastException due to the different classloaders. Is there a way I can set an activation/event context

Re: [T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
On Tue, Nov 10, 2009 at 2:58 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 10 Nov 2009 12:42:25 -0200, Jack Nuzbit > escreveu: > > > non-tapestry site. The problem is that in using tapestry components I >> can't set the action attr

Re: [T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
form to post to this external site. The form component will override any action I define. On Tue, Nov 10, 2009 at 1:53 PM, Massimo Lusetti wrote: > On Tue, Nov 10, 2009 at 12:08 PM, Jack Nuzbit > wrote: > > > Hi All, > > I've got a rather complex form that I'd l

[T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
Hi All, I've got a rather complex form that I'd like to use the tapestry form components to initialise but it needs to post externally. Is there a way to do this with tapestry? Form components require a surrounding t:form element which then overrides the action. I can't see any way around this with

Re: About stateless applications

2009-09-30 Thread Jack Nuzbit
I wrote a paging component that I think would do what you want. The component takes a PageSource implementation which acquires the paged list of items for display and also constructs the page activation context for any paging links - so there's no need for any @Persist annotations. Here's my blog

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Jack Nuzbit
I mean too much component nesting like what's been described in this thread. On Mon, Sep 14, 2009 at 12:56 PM, Ivano Luberti wrote: > Jack, what "Uber component pattern" stands for ? > > Jack Nuzbit ha scritto: > > I'm concerned I may be falling foul of t

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Jack Nuzbit
I'm concerned I may be falling foul of the Uber-component pattern as well. I'm regularly building container components that dynamically render different sub-components. Is there any chance somebody could document the recommended approach here. Many thanks, Jack On Fri, Sep 11, 2009 at 8:23 PM,

T5.1: no post-redirect on invalid forms

2009-08-17 Thread Jack Nuzbit
Hi folks, I thought I'd try out a RequestExceptionHandler that could catch custom form validation exceptions and render the response directly rather than use the standard redirect response. This means I can avoid using sessions entirely and in my limited testing it works perfectly but was wondering

Re: T5 Persistence Question

2009-07-09 Thread Jack Nuzbit
I recently struggled with the same issue and in the end implemented a cookie persist strategy similar to the one on the tapestry wiki. I've since concluded that cookie persist strategies are far from ideal. It would be great if tapestry could accommodate non-redirects on form errors so persistent

Re: T5.1 components inside loops not getting reset

2009-07-09 Thread Jack Nuzbit
er is expensive; running the assembler is cheaper (but still > expensive enough to justify page pooling). > > HTH. > > Robert > > > On Jul 8, 2009, at 7/86:33 AM , Jack Nuzbit wrote: > > Hello, >> >> Am I correct in thinking that when a component i

T5.1 components inside loops not getting reset

2009-07-08 Thread Jack Nuzbit
Hello, Am I correct in thinking that when a component is acquired from the pool it's state should be reset? I'm asking because I've noticed that when rendering components repeatedly in a loop the state doesn't get reset. Here's the test component I've used: public class Test { @Property

T5.1: date modified in asset cache path

2009-03-19 Thread Jack Nuzbit
I've just upgraded an application from 5.0.18 to 5.1.0.1 (a very smooth upgrade i might add) and I'm very impressed with the new performance features, gzipping and the far future asset headers. I was wondering if anyone's considered adding the facility to use an assets date modified in the cache u

T5 service per request

2009-02-08 Thread Jack Nuzbit
I'm trying to use the tapestry IoC to inject a per thread service into my other services. @Scope(ScopeConstants.PERTHREAD) public class PerThreadService { private MyObject myObject; public PerThreadService(Cookies cookies) { myObject = new MyObject(cookies.readCookieValue("userData

Re: 5.0.15 asset NullPointerException

2008-10-16 Thread Jack Nuzbit
Thanks Tobias, I think you're right. I've switched back to 5.0.14 for the time being but I'll test again on the next release.

Re: tapestry 5 without sessions

2008-10-16 Thread Jack Nuzbit
I've just tested the scenario of being redirected after a validation failure using the quickstart Archetype and the code below. I can see that tapestry is performing a redirect after the onValidateForm even though the form has errors. Is the only solution to persist the form data to a database?

Re: tapestry 5 without sessions

2008-10-16 Thread Jack Nuzbit
Thanks for your responses. if validation fails for a form, you shouldn't be redirected therefore you > need not worry about that, the redirect after the post should occur if > validation succeeds. > That makes a lot of sense. Presumably if the form failure event occurs there will be no redirect t

tapestry 5 without sessions

2008-10-16 Thread Jack Nuzbit
I'm about to start a large project and intend to use tapestry 5 but want to avoid using sessions due to scalability. The only issue I can see is losing form data when the validation fails because of the redirect after the post. I've noticed the property tapestry.suppress-redirect-from-action-requ

Re: hidden input field, TAPESTRY5

2008-10-14 Thread Jack Nuzbit
i just use Jack

5.0.15 asset NullPointerException

2008-10-13 Thread Jack Nuzbit
Hi All, I've just switched over to tapestry 5.0.15 and I'm now seeing sporadic NullPointerExceptions originating from the ContextAssetFactory. Caused by: java.lang.NullPointerException at $Request_11cf6ca8ebe.getContextPath($Request_11cf6ca8ebe.java) at $Request_11cf6ca8e55.getContextPath

Re: T5 image submit

2008-04-30 Thread Jack Nuzbit
the image to > use. > > Email me offline if you're still having problems and I'll send you my > code. > > > On Tue, Apr 29, 2008 at 8:32 AM, Jack Nuzbit <[EMAIL PROTECTED]> > wrote: > > > Hi All, > > > > Can anybody point me in the rig

T5 image submit

2008-04-29 Thread Jack Nuzbit
Hi All, Can anybody point me in the right direction for creating an image submit in tapestry 5. I've scoured the docs but i can't find anything. Many thanks, Jack

T5: Base class java.text.Format (super class of my.package.MyFormat) is not in a controlled package

2008-04-08 Thread Jack Nuzbit
Hi All, I'm trying to use a custom Format object with the output component but I'm getting the following exception: Caused by: java.lang.RuntimeException: Base class java.text.Format (super class of my.package.tapestry.pages.util.MyFormat) is not in a controlled package and is therefore not valid

Re: beaneditform - java.lang.RuntimeException: No service implements the interface org.apache.tapestry.internal.InternalComponentResources.

2008-03-04 Thread jack Nuzbit
Hi Marcus, looks like this is tapestry 5.0.11-SNAPSHOT specific. My fault for being too eager. I switched over to 5.0.10 and everything works fine. In case this is a bug and not just a work in progress, to recreate it just create a new project with the tapestry 5 archetype, change the tapestry ver

Re: beaneditform - java.lang.RuntimeException: No service implements the interface org.apache.tapestry.internal.InternalComponentResources.

2008-03-04 Thread jack Nuzbit
t;[EMAIL PROTECTED]> wrote: > I believe that the "internal" APIs in T5 are "off limits". Injecting > ComponentResources, an interface, doesn't do what you want? > > Bill h > > On Tue, Mar 4, 2008 at 11:29 AM, jack Nuzbit <[EMAIL PROTECTED]> >

beaneditform - java.lang.RuntimeException: No service implements the interface org.apache.tapestry.internal.InternalComponentResources.

2008-03-04 Thread jack Nuzbit
Hi All, I'm trying to use the beaneditform component but i'm getting the following exception bubbling up. Do i have to create a Service to implement the InternalComponentResources class? I can't find anything about this in any documentation so i'm inclined to think i've misconfigured something but