Re: Trouble with new ASO Scope

2005-12-30 Thread Eli Doran
To add more info... I added a bit to make sure it was the timing. I set the cookie scope manager into a cart subclass and when done using it in the listener method i called the manager's store method on it. Of course store gets called again by the system a bit after but by then the cart is not

Trouble with new ASO Scope

2005-12-30 Thread Eli Doran
I've been trying to setup a new scope for ASO's using cookies. I have the ASO working fine and injecting into pages. The problem is by the time the system calls StateObjectPersistenceManager#store for the cookie manager it seems to be too late to add cookies to the outgoing response. I checked

Re: Pattern validator problem

2005-12-30 Thread Shing Hing Man
I asked the same question a few weeks. Ron Piterman had kindly answered it. You can check out the his answer at http://article.gmane.org/gmane.comp.java.tapestry.user/29260/match=shing Basically, if you want to have ',' in your pattern, you have to define your pattern in a bean. The $ sign no

Re: URL of the current page

2005-12-30 Thread Thom Hehl
Apache has another project in the commons called httpclient that should do the trick. A little tricky to set up the first time, but works pretty well. Jean-Eric Cuendet wrote: Hi, I'm implementing a payment solution with Tapestry. I have a page on which a user can choose some articles and th

Re: How to add logic for all components that render

2005-12-30 Thread Robert Zeigler
Actually... ;) I can't speak for 4.x, but this works with 3.0.3. I had a similar sort of situation where I needed to override all link-component types to use a custom renderer. So... if you do something like the following in your .application file: Then all references in your application to Direc

Happy New Year

2005-12-30 Thread Vinu Varghese
Title: Vinu Varghese Wish you a Happy New Year -- [ Good is not Good when better is Expected ] My Email : [EMAIL PROTECTED] My Web : www.vinusweb.com X minds Solutions Unfolded [www.x-minds.org]

Happy New Year

2005-12-30 Thread Vinu Varghese
Title: Vinu Varghese Wish you a Happy New Year -- [ Good is not Good when better is Expected ] My Email : [EMAIL PROTECTED] My Web : www.vinusweb.com X minds Solutions Unfolded [www.x-minds.org]

How to inject visit object into pojo

2005-12-30 Thread John Smith
I apologize for just mooching help off this list, but I haven't been able to figure this out other places. For my database layer, I want to always write in the database the username of the user that is changing the record. So if I create a new record, I want to write who created it (created_by

RE: How to add logic for all components that render

2005-12-30 Thread Konstantin Ignatyev
AspectJ provided around advice might help you :) with AOP you could instrument any classes and inject custom code quite cleanly. John Smith <[EMAIL PROTECTED]> wrote: I could but then I would have to change all the code to use that extended class. Like for PageLink, everything now would have

How to add logic for all components that render

2005-12-30 Thread John Smith
I am trying to find a way to provide a hook into everything that renders. I want to integrate some business rules into Tapestry so that I can turn off the rendering of some components if some condition is true. For example, if you are not part of the admin group then the "Delete User" button doe

RE: How to add logic for all components that render

2005-12-30 Thread John Smith
I could but then I would have to change all the code to use that extended class. Like for PageLink, everything now would have to use MyCustomPageLink. Or I would have to crack open the tapestry.jar and change the component class of PageLink to MyCustomPageLink. Original Message Follows

Pattern validator problem

2005-12-30 Thread Anders Jacobsson
Hi! I've been trying to do pattern validation using the new validator approach in Tapestry 4 (RC3) but it seems it is not possible to use [, ] and , in the pattern string. It seems like the constructValidatorList() method in ValidatorFactoryImpl cannot handle those kinds of characters and my guess

RE: How to add logic for all components that render

2005-12-30 Thread Patrick Casey
Couldn't you just override the component's renderBody method? And then do something like: Public void renderBody(IRequestCycle cycle) { If (foo) Super.renderBody(cycle); } --- Pat > -Original Message- > From: John Smith [mailto:[EM

How to add logic for all components that render

2005-12-30 Thread John Smith
I am trying to find a way to provide a hook into everything that renders. I want to integrate some business rules into Tapestry so that I can turn off the rendering of some components if some condition is true. For example, if you are not part of the admin group then the "Delete User" button doe

URL of the current page

2005-12-30 Thread Jean-Eric Cuendet
Hi, I'm implementing a payment solution with Tapestry. I have a page on which a user can choose some articles and then call a well crafted URL to make the payment by credit card (www.saferpay.com). I need to give Saferpay 3 URLs: - 1 if the transaction is OK - 1 if the transaction is NOK -

RE: How does one control rendering?

2005-12-30 Thread Rusty Phillips
Thank you very much! That is incredibly helpful! Sorry if I sounded angry. It wasn't my intent. -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Friday, December 30, 2005 10:08 AM To: Tapestry users Subject: Re: How does one control rendering? Hmmm...Your email s

calling nested Spring services

2005-12-30 Thread Mazhar, Osman (Home Office)
Hello, I am having issues calling nested Spring Services in my code. I am using Tapestry 4.0 rc3 with Spring and Hibernate and using the tapestry-spring.jar for integration. What I am trying to do is populate a dropdown in the pageBeginRender() method. In that method, when I call a Spri

Re: How does one control rendering?

2005-12-30 Thread Jesse Kuhnert
Hmmm...Your email sounds very angry. I will answer it anyways. All content in tapestry is written to a IMarkupWriter class instance, which is similar to a markup tag output buffer. There are a few services involved in taking an incoming response and rendering output. Like DirectService. If I were

RE: How does one control rendering?

2005-12-30 Thread Rusty Phillips
Your approach was the one that I reasoned was probably what to do, and suggested in my last e-mail that got no response. My guess is that nobody knows how to do this, its impossible, or I'm way off how to do it. I'm hoping it's the last thing. If Tapestry is so inflexible that you can't even do

Re: js menu and Tapestry pages

2005-12-30 Thread Jorge Quiroga
Thanks Omar, you give me a big clue, but getServiceParameters seems to be deprecated on T4 then I Put the actionLink in my html file with a listener, then on my js Menu y put the link as I can see on hidden actionLink but with an additional parameter and in Java file I use String menuActio

Re: js menu and Tapestry pages

2005-12-30 Thread Jorge Quiroga
Thanks Ahmed, this is what I need, I'll probe it, and Happy New Year. JQ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: js menu and Tapestry pages

2005-12-30 Thread Ahmed Mohombe
or exist a Tapestry menu to do it better or easier? For me this menu was helpful in many situations: http://metamorphosis.krysalis.org/krysalis-menu/ Ahmed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

SOLVED RE: DatePicker: Translating date

2005-12-30 Thread Schabek Ɓukasz
Thanks for help! Works fine ;) -Original Message- From: Shing Hing Man [mailto:[EMAIL PROTECTED] Sent: Thursday, December 29, 2005 3:22 PM To: Tapestry users Subject: Re: DatePicker: Translating date > > value="ognl:quoteDateValue"/> > value="translator:pattern=y

Re: StaleLinkException in form with conditional TextField

2005-12-30 Thread Vincent
Hi , I think you can also try if / else component, which is available in the version 4. If you stick to use tapestry 3 you can download from http://www.t-deli.com/ regards, Vincent On 12/30/05, Andreas Idl <[EMAIL PROTECTED]> wrote: > Hi > > If you are using tap3: > You may use the contrib:FormCo

Re: Issue of passing parameters between 2 pages

2005-12-30 Thread Alan Chandler
On Thursday 29 December 2005 13:14, Vincent wrote: > Hi > > Will cycle.getServiceParameters/setServiceParameters meet your needs? > > regards, > Vincent > > On 12/29/05, Alan Chandler <[EMAIL PROTECTED]> wrote: > > On Thursday 29 December 2005 11:06, Andreas Idl wrote: Not sure exactly who you are

Re: StaleLinkException in form with conditional TextField

2005-12-30 Thread Andreas Idl
Hi If you are using tap3: You may use the contrib:FormConditional. It stores the conditions in hidden fields and so provides the same data during rewind. The Conditional doesn't, and so can result in a stale link. Andreas > Hi All, > > I have a form with a conditional field password. The first

StaleLinkException in form with conditional TextField

2005-12-30 Thread Lennart Benoot
Hi All, I have a form with a conditional field password. The first time the form apaers it is not shown. When the user submits a certain condition is checked and if met the form is shown again but with the password field now. Then the user fills in his password and resubmits. Up until now eve