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
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
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
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
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
>
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
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
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
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
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
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:
>
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
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
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
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
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
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
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
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
19 matches
Mail list logo