Re: onSubmitButton() method not running - Tapestry5

2008-12-28 Thread Kristian Marinkovic
hi Issah, you can have only one submit handler for a form. you could move all your code into the onSubmit handler or use one of the other events (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html) if you need some pre-processing. onPrepare

Re: T5: Can I scan all services for a custom annotation?

2008-12-28 Thread Howard Lewis Ship
A decorator is the current proper approach to this. The only problem is that using a too-wide decorator (one that decorates MasterObjectProvider, or any service contributed into MasterObjectProvider) can easily cause a cyclic instantiation problem. In any case, I've been thinking of making it eas

onSubmitButton() method not running - Tapestry5

2008-12-28 Thread Issah Grusi
Folks! I have a submit button on a form, the form event handler gets called but the submit event handler does not get called. Please Help!! Object onSubmitFromRegistrationForm()  {   System.out.println("The form was submitted!");   if (unsubscribe)    subscribe = false;   return nextPage;  } �...

Re: "Global" app.properties for a component-module

2008-12-28 Thread Joakim Olsson
Great, issue created (https://issues.apache.org/jira/browse/TAP5-424). Could I work around it in any way by contributing something to ComponentResources or something like that in my module-class? Regards, Joakim On Sun, 2008-12-28 at 15:20 -0800, Howard Lewis Ship wrote: > It is possible but no

T5: Can I scan all services for a custom annotation?

2008-12-28 Thread Bill Holloway
I've got a module library with an annotation that I can attach to any T5 service. I need to scan all an application's T5 services to pick out the ones that have that annotation. What's the best way to accomplish this? Thanks, Bill

Re: "Global" app.properties for a component-module

2008-12-28 Thread Howard Lewis Ship
It is possible but not implemented, please add an issue to JIRA. On Sun, Dec 28, 2008 at 2:45 AM, Joakim Olsson wrote: > Hi, > > I have built modules for separate parts of my application to keep GUI, > business logic and persistence for each part in one place. > > I have not found a way to have a

Re: [T5] codebase question: transform of methods/classes

2008-12-28 Thread Howard Lewis Ship
Tapestry uses a custom class loader to for components. It uses the Javassist library to load class files into memory, manipulate them (such as adding the Component interface) before they are fully instantiated. Documentation is always handy, especially if provided as a patch. Just create a JIRA is

[T5] codebase question: transform of methods/classes

2008-12-28 Thread manuel aldana
Hi, am digging into source code these days. Currently it is a bit unclear, what happens with the marker-annotations and how they are transformed to the respective method signature. Example: In my debugger my custom component's type is shown as type Component, though it is a POJO and thus onl

Re: Is possible to use ApplicationStateManager with PageTester?

2008-12-28 Thread Howard Lewis Ship
I'm not 100% sure, I'd have to check the code, but I believe it simulates the HttpSession (using a Map). On Sat, Dec 27, 2008 at 4:02 AM, Massimo Lusetti wrote: > It doesn't seems to me the PageTester is able to "use" the > ApplicationStateManager since this needs a Servlet Container to stick > t

Re: Different results Eclipse vs. Jetty and Tomcat

2008-12-28 Thread Howard Lewis Ship
For components, templates are optional. On Sun, Dec 28, 2008 at 4:52 AM, Tomas Kolda wrote: > Yes, that was it. I thought that Tapestry throws exceptions when it does not > find any resource. Thank you very much Howard. > > Tomas > > Howard Lewis Ship napsal(a): >> >> Tapestry can't find your Bor

Re: Different results Eclipse vs. Jetty and Tomcat

2008-12-28 Thread Tomas Kolda
Yes, that was it. I thought that Tapestry throws exceptions when it does not find any resource. Thank you very much Howard. Tomas Howard Lewis Ship napsal(a): Tapestry can't find your Border.tml, it must be in the wrong place, visible to Eclipse but not in src/main/resources for Maven. On Sat

"Global" app.properties for a component-module

2008-12-28 Thread Joakim Olsson
Hi, I have built modules for separate parts of my application to keep GUI, business logic and persistence for each part in one place. I have not found a way to have a "global" app.properties for the module though like there is for the "main" web-project. Can this be done or am I looking for some