Re: T5: PageLink keeping activantion context when t:context is not set.

2007-09-01 Thread Nick Westgate (Work)
What is it that you want explained? The framework generates links consistently by always calling onPassivate (if present) to generate context for the page link unless you provide a context. You've found a way to override that ... what else is there to explain? If you want a slightly shorter synta

Re: T5: Activation contexts

2007-09-01 Thread Nick Westgate (Work)
It _shouldn't_ change anything, but I'm wondering why Joel is seeing different behaviour, and trying to find out if there is a problem. I studied this problem a few months ago, looked at the source code (and the Javassist generated source code) and I'm not happy with the current implementation or

RE: T5: Activation contexts

2007-08-31 Thread Nick Westgate (Work)
l Wiegman wrote: > > Hrm... are you sure? I only see the correct one being called. > > -Original Message----- > From: Nick Westgate (Work) [mailto:[EMAIL PROTECTED] > Sent: Friday, August 31, 2007 1:56 PM > To: users@tapestry.apache.org > Subject: RE: T5: Activation contexts

RE: T5: Activation contexts

2007-08-31 Thread Nick Westgate (Work)
Did you examine your log output? For: http://localhost:8080/myapp/Start/1/2/3 You'll see: Activated with 1 2 _and_ Activated with 1 2 3 If you add a no argument onActivate() that will also be called. Object[] is the best solution right now for multiple parameters. http://issues.apache.org/jira/b

Re: T5: Activation contexts

2007-08-31 Thread Nick Westgate (Work)
No. Tapestry will call _all_ the matching methods. http://issues.apache.org/jira/browse/TAPESTRY-1695 Cheers, Nick. Marcus-11 wrote: > > Hi Joel, > > You can make, of course, three onActivate methods, with 2, 3 and 4 > parameters, then the Tapestry with call one that matches. > > Marcus >

Re: [T5] Restricting Page Access

2007-08-24 Thread Nick Westgate (Work)
Also, just as a reminder, base classes must not go in the pages package. Cheers, Nick. César Les wrote: > > A little mistake myPage MUST extends SecurePage of course :) > > On 8/24/07, César Lesc <[EMAIL PROTECTED]> wrote: >> If you have a base class for your protected pages then on

Re: T5 Type to ValueEncoderFactory

2007-08-22 Thread Nick Westgate (Work)
Nice. Why don't you post the code on a new page here? ... http://wiki.apache.org/tapestry/Tapestry5HowTos Cheers, Nick. Ognen Ivanovski wrote: > > > On 2007-08-16, at 05:10, Nick Westgate wrote: > >> Indeed. Hence the JIRA. >> >> Howard has mentioned the possibility of merging the two type

Re: T5:Simple form submit

2007-08-22 Thread Nick Westgate (Work)
Or preferably see the actual TextField component docs on that page. The label used in the TextField is used for validation errors as well as for the Label component, so it's only defined in one place. (= Good) As for the error, it's because no id is defined for the form. I can't test the code ri

Re: T5: a strategy for a multi-page/multi-form wizard

2007-08-17 Thread Nick Westgate (Work)
Read the docs for onActivate(). Cheers, Nick. Chris Lewis-5 wrote: > > Hello, > > I'm redeveloping an application in T5 that will have several wizard-like > form sequences. Basically a few forms on a few pages that must be > followed in order, with the ability to revisit/jump around in ste

Re: T5: static page variables in templates

2007-08-16 Thread Nick Westgate (Work)
You can use "agentLister" if you add a "getAgentLister" accessor to your class. Prop is the default binding for value and expansions - "prop:" is not needed, and you can use expansions in parameters. Or use message:agentLister with a properties file. Cheers, Nick. Chris Lewis-5 wrote: > > Bu

Re: T5: radio, label

2007-08-16 Thread Nick Westgate (Work)
You're welcome. It wasn't a known issue before you found it. I just debugged and logged it. The benefits of using the label component are: - DRY: a component declares its label once, and the Label refers to it - validation decoration of the resulting label Cheers, Nick. Chris Lewis-5 wrote: >

Re: T5 Type to ValueEncoderFactory

2007-08-14 Thread Nick Westgate (Work)
This error looks familiar. Can you post some source? (I can't get to it myself for a couple of days though.) Cheers, Nick. redijedi wrote: > > I've suddenly run into what seems to be a bug that appears when I pass > an integer to a custom component that itself contains a radiogroup > that use

Re: t5 how to load messages

2007-08-11 Thread Nick Westgate (Work)
BTW, the page Shing referred you to covers the use-case you gave. Look for the code passing a message to the border component: . (I realise you probably want to do more of the work from the layout though.) Cheers, Nick. ra wrote: > > Yes, of course, but that case is not described and I don't

Re: Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.

2007-08-10 Thread Nick Westgate (Work)
I don't think that's the problem as T5.0.5 defaults to UTF-8 encoding. That is, the decoratePageResponseRenderer() is NOT needed any more, but the contributeRequestHandler() with Utf8Filter IS needed for UTF-8 form submits. Cheers, Nick. Donyee wrote: > > Looks here! > http://groups.google.c

Re: T5 HTML email generation

2007-08-02 Thread Nick Westgate (Work)
It's been done with T4, but I would agree with a recent poster that choosing a template engine like Velocity is better. Search for the recent posts on the topic. Cheers, Nick. Stephen Summerfield wrote: > > What's the recommended way of generating HTML formatted files (eg for > sending as em

Re: T5 Strategy for redirecting due to any error

2007-08-02 Thread Nick Westgate (Work)
As Massimo implies, exceptions derived from RuntimeException are unchecked. Cheers, Nick. Massimo Lusetti wrote: > > On 8/2/07, Daniel Jue <[EMAIL PROTECTED]> wrote: > >> Thanks Nick! Is there a reason RedirectException extends >> RunTimeException and not Exception? Or is that just the way

Re: T5 Strategy for redirecting due to any error

2007-08-01 Thread Nick Westgate (Work)
Yes. Resurrect the idea of throwing a RedirectException. (Or a Link, page class ... ?) Cheers, Nick. Daniel Jue wrote: > > Is there a way to redirect to another page at any point in the render > process of a component or page? > -- View this message in context: http://www.nabble.com/T5-St

Re: [T5] Problem with special characters and forms

2007-08-01 Thread Nick Westgate (Work)
Did you read the page Ulrich linked to? "The Utf8Filter changes are still needed to decode form submissions." Cheers, Nick. Marcelo lotif wrote: > > sorry, but i search and did not seen nothing about forms and the UTF-8 > encoding... > thank you for the response :) > > 2007/8/1, Ulrich Stärk

Re: T5 confused about Services and XmlHttpResponse

2007-07-27 Thread Nick Westgate (Work)
mogulwraith wrote: > > How do I get the text returned by the service? > Have a look at this example on the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage You want to do the same thing but something like: TextStreamResponse onEvent() { // get the service text