Hi,
I want to inject a service in a page with service id,when I use
@Inject
@Id("serviceid")
It seems that does not inject the service with "serviceid".
Instead of use
@Inject
@Servcie("serviceid")
It works well.
Does the @Id annotation can't be used in a page class?
Thanks.
---
gt;
> >From javadoc: "Currently, this is used when injecting a {...@link Block}."
>
> Martijn
>
> On Sun, 2008-12-14 at 21:06 +0800, d0ng wrote:
>
>> Hi,
>> I want to inject a service in a page with service id,when I use
>> @Inject
>> @Id(&q
Hi,
I like the focus function of T5 when the HTML document loaded.
But I want to disable the focus action when the HTML document loaded
somtimes, how does this to be set?
Thanks.
-
To unsubscribe, e-mail: users-unsubscr...@tapestr
Hi,
I have a page that's used to redirect request to other page in some
case,but I don't make it work well.
For example,in the test code the Index page can't be render and there is
nothing to output.
public class Test {
@InjectPage
private Index index;
public Object onActivate() {
return index;
}
er/page");
}
Cheers,
Bill
On Wed, Dec 24, 2008 at 9:59 AM, d0ng wrote:
Hi,
I have a page that's used to redirect request to other page in some
case,but I don't make it work well.
For example,in the test code the Index page can't be render and there is
nothing to output.
Yes,I have tested the Index page separately,it works well when I request it.
Thiago HP ??:
Have you tested your Index page separately? Your code looks correct.
On Wed, Dec 24, 2008 at 12:59 PM, d0ng wrote:
Hi,
I have a page that's used to redirect request to other page in some
case,
response is correct.
Is this a problem?
BTW,I'm using 5.0.18.
Thanks.
Bill Holloway ??:
I set up just such a page, and have it working. It returns my index just
fine. I'm using 5.0.18, JDK 1.5, Jetty 6.1.8.
Bill
On Fri, Dec 26, 2008 at 8:24 AM, d0ng wrote:
Thanks for your rep
ple:
>
> @InjectPage
> private Login loginPage;
>
> Object onActivate() {
> if(!userExists) {
>
> loginPage.setNext(this.getClass());
> return loginPage;
> }
> return null;
> }
>
> Is what I use to redirect to a login page if a user isn't logged in.
&g
only inside PageTester?
>
> 2008/12/26 d0ng :
>
>> It send a redirect response in my test because of the default value of
>>
>> SUPPRESS_REDIRECT_FROM_ACTION_REQUEST is false.
>>
>> I guess the same is true of you,you can see the network action to verify it
Happy New Year!
Thanks Tapestry5 development team,our new application based on Tapestry5
is running.
Thanks all the user of this mail list,I learned much from here :).
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.or
Hi,
I have a loop component in a form,I want to turn off the state saving logic.
So I set the volatile property to true like this:
The NullPointerException exception is thrown when I request the page:
Caused by: java.lang.NullPointerException
at
org.apache.tapestry5.corelib.compo
11 matches
Mail list logo