Sorry, I do not have to run the PageTest,but it fails in my running
application.


Howard Lewis Ship 写道:
> Sounds like a bug; even putting Tapestry into crippled mode (suppress
> redirects enabled) you should be able to return a page instance.
>
> Does this fail in your running app, or only inside PageTester?
>
> 2008/12/26 d0ng <agile.j...@gmail.com>:
>   
>> 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 
>> in FireFox with Firebug.
>>
>>
>>
>>
>> Mark W. Shead 写道:
>>     
>>> I use this all the time and it works. For example:
>>>
>>> @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.
>>>
>>> Mark
>>>
>>> On 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.
>>>>
>>>> public class Test {
>>>> @InjectPage
>>>> private Index index;
>>>>
>>>> public Object onActivate() {
>>>> return index;
>>>> }
>>>> }
>>>>
>>>> Does anyone know why?
>>>>
>>>> Thanks.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>
>>>>         
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>>     
>
>
>
>   

Reply via email to