@EventListener , elements and the bound model

2007-02-01 Thread karthik G
I have a .page like this - and a listener @EventListener(elements = "prop", events = "onchange") public void propChange() { System.out.println(getPropValue( ) ); } I want the property that a component is bound to (and specified in "elements" at the same time) to be updated b

Re: Tap 4.1.2 Snapshot :@EventListener with async=false is not been called

2007-01-31 Thread karthik G
Same problem!! On 1/18/07, Shing Hing Man <[EMAIL PROTECTED]> wrote: I have a method with annotation @EventListener(targets = "companyPS", events = "onchange", submitForm = "myForm", async = false) that listens to a PropertySelection component. W

Tapestry 4.1 and Ajax enabled Contrib TablePages component

2007-01-19 Thread karthik G
Hi All, I tried using the TablePages component in my tapestry component that in turn is being refreshed through Ajax. TablePages doesnt seem to be working in Ajax mode. How are you guys handling this requirement now? I need a Ajax enabled custom Contrib Table component (and hence am using Table

Re: Extending existing component and .page file

2007-01-10 Thread karthik G
h Y. > -Original Message- > From: karthik G [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 09, 2007 3:15 PM > To: Tapestry users > Subject: Extending existing component and .page file > > class X extends Y{} > > If component X extends an existing component Y by

Extending existing component and .page file

2007-01-09 Thread karthik G
class X extends Y{} If component X extends an existing component Y by providing a new template X.html and adding additional property in X.jwc, are we required to copy the contents of Y.jwc into X.jwc? If I dont include it, i run into errors. May be am missing some parameter here. How can i get

Re: Error when accessing ApplicationStateManager in WebRequestServicerFilter

2007-01-04 Thread karthik G
---Original Message- From: karthik G [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 03, 2007 8:40 PM To: Tapestry users Subject: Error when accessing ApplicationStateManager in WebRequestServicerFilter I wrote my custom filter that implements WebRequestServicerFilter - In my filter am

Error when accessing ApplicationStateManager in WebRequestServicerFilter

2007-01-03 Thread karthik G
I wrote my custom filter that implements WebRequestServicerFilter - In my filter am looking up ApplicationStatemanager to determine if a session object exists. public class CustomWebRequestServicerFilter impleme

Re: Tap4: Leaving the Page Listener?

2007-01-02 Thread karthik G
On 1/3/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I almost added a central hivemind service to expose those page listener methods as global listeners you can have a hivemind service implement to generically listen to all page changes (for all pages) that will be great. I want to be able to

ClassCastException when using @InjectSpring

2007-01-02 Thread karthik G
Hi, I'm using tapestry-spring-0.1.2 and tapestry 4.0.1 + annotations 4.0.2 I get a ClassCastException in the tapestry page when using @InjectSpring. Any idea what is going wrong here. @InjectSpring("productService") public abstract ProductService getProductService(); The type of the bean retu

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
:) Btw, thank you all for guiding me through tapestry workers On 12/28/06, Raul Raja Martinez <[EMAIL PROTECTED]> wrote: @Persist("client") ? wouldn´t that use cookies? karthik G wrote: > thanks Robert! > > This is what I have in my code - > > public boolean isSecure

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
Uhhm found the problem - @Persist("session") is not same as @InjectState("user") ? When i switched over to @InjectState("user") it worked as expected. On 12/27/06, karthik G <[EMAIL PROTECTED]> wrote: thanks Robert! This is what I have in my c

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
ger.get() I think this should work Kind regards, Robert karthik G schrieb: > WoW!, i downloaded tapestry-acegi code. Used some ideas from there for > implementing my stuff..and it works like a charm. > > But can someone tell me how can I programmatically look up hivemind

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
fied scope? thanks, Karthik On 12/27/06, karthik G <[EMAIL PROTECTED]> wrote: Thanks james/ron, I finally gathered some courage to look at the source code :) Ok I just want to check for the presence of the User object in the session in my ClassAnnotationEnhancementWorker. I

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
ut I don't know if there are any > tutorials/docu around for this. It is quite advanced staff, but its not > that hard. > > Cheers, > Ron > > > > karthik G wrote: > > thanks Ron. Currently am with going the way (subclassing a securedpage) as > > suggested

Re: hook into T4's page creation process

2006-12-22 Thread karthik G
dd the needed logic to the mentioned attach event. Take a look at the annotations module code and hivemind configuration. Cheers, Ron karthik G wrote: > I just want to add an annotation on the page and then take some action when > the page is being bound to a request from the page pool. >

Re: Can you comment on this?

2006-12-21 Thread karthik G
Both frameworks have excellent developers (which is great for users) and from what I see both have a different approach to a problem. I think everything can co-exist! Case in point ;-) http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709

hook into T4's page creation process

2006-12-20 Thread karthik G
I just want to add an annotation on the page and then take some action when the page is being bound to a request from the page pool. @SecuredPage abstract class MyPage extends BasePage{ } Is there anyways i can hook into T4's page creation process and then depending upon the annotation take som

Re: tapestry prop / ognl?

2006-12-18 Thread karthik G
which is why it's slower. Take care, Daniel On 12/15/06, karthik G <[EMAIL PROTECTED]> wrote: > > Should i be using tapestry prop in place of ognl? Is this norm when > developing with tapestry? > > http://howardlewisship.com/tapestry-javaforge/tapestry-prop/ > &g

tapestry prop / ognl?

2006-12-15 Thread karthik G
Should i be using tapestry prop in place of ognl? Is this norm when developing with tapestry? http://howardlewisship.com/tapestry-javaforge/tapestry-prop/ Please do let me know as we are at a very early in the project and would like to adopt the best option. thanks, Karthik

Re: PageBeginRenderListener equivalent for Components

2006-12-14 Thread karthik G
thanks Jiju On 12/15/06, jiju <[EMAIL PROTECTED]> wrote: PageBeginRenderListener will be called in the case of rendering a component in ajax context also. Bcose, the difference in ajax calls is only in the clientside,rest remains the same as normal calls karthik G wrote: >

Re: PageBeginRenderListener equivalent for Components

2006-12-14 Thread karthik G
to. On 12/14/06, karthik G <[EMAIL PROTECTED]> wrote: > Hi All, > > I understand that PageBeginRenderListener gets called during render and > rewind of a Page. I later created a component that is embedded inside a page > and moved the content from the Page to the newly created Com

PageBeginRenderListener equivalent for Components

2006-12-14 Thread karthik G
Hi All, I understand that PageBeginRenderListener gets called during render and rewind of a Page. I later created a component that is embedded inside a page and moved the content from the Page to the newly created Component. Now my component implements PageBeginRenderListener and does everything

render a previously non-existing component on ajax submit

2006-12-12 Thread karthik G
I have one page in my application. I want to display a panel/form (FORM-1) in the page that allows user to do ajax submit. Once that is done , i want to replace FORM-1 with a different FORM-2 that didn't exist before in the page. I see that AjaxSubmit has a property updateComponents where we are s