You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bill Holloway <bi...@gmail.com> on 2007/06/17 09:41:08 UTC
Re: T5: page redirect
I'm having the same trouble. My Start page inherits from ProtectedPage:
public abstract class ProtectedPage
{
@InjectPage
private Login _loginPage;
@ApplicationState
private AppState _state;
Object onActivate ()
{
if (! _state.isLoggedIn())
{
_loginPage.setCallback (this);
return _loginPage;
}
return null;
}
}
Start has an "empty" class, no members, just a template. The Login
works fine. Everything is OK under Jetty (logged in or logged out) as
long as I call localhost:8080/start, but if I'm not "logged in," a
call to localhost:8080 gets me a blank page. Introducing "Login tmp =
_loginPage" at the beginning of onActivate and watching that in a
debug session shows a good _loginPage variable. But BOOM.
Bill
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: page redirect
Posted by Nick Westgate <ni...@key-planning.co.jp>.
Yes, search the list for "bug in redirect".
I posted a workaround a couple of weeks ago (and logged a JIRA issue).
BTW, readers who view threaded wouldn't see your reply to such an old post.
Cheers,
Nick.
CarstenM wrote:
> Hey guys,
>
> already any solution for this "behaviour"?
>
> Bye
> Carsten
>
>
> Sven Homburg wrote:
>> wow, and i think i must be crazy and nobody believes me !!
>>
>> Mit freundlichem Gruss
>>
>> homburg Softwaretechnik
>> S.Homburg
>> 21220 Seevetal / GERMANY
>> Fon: +49-4105-669746
>> Fax: +49-4105-668947
>>
>>
>>
>>
>> Bill Holloway schrieb:
>>> I'm having the same trouble. My Start page inherits from ProtectedPage:
>>>
>>> public abstract class ProtectedPage
>>> {
>>> @InjectPage
>>> private Login _loginPage;
>>>
>>> @ApplicationState
>>> private AppState _state;
>>>
>>> Object onActivate ()
>>> {
>>> if (! _state.isLoggedIn())
>>> {
>>> _loginPage.setCallback (this);
>>> return _loginPage;
>>> }
>>> return null;
>>> }
>>> }
>>>
>>> Start has an "empty" class, no members, just a template. The Login
>>> works fine. Everything is OK under Jetty (logged in or logged out) as
>>> long as I call localhost:8080/start, but if I'm not "logged in," a
>>> call to localhost:8080 gets me a blank page. Introducing "Login tmp =
>>> _loginPage" at the beginning of onActivate and watching that in a
>>> debug session shows a good _loginPage variable. But BOOM.
>>>
>>> Bill
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: page redirect
Posted by CarstenM <Ca...@1822-s-inform.de>.
Hey guys,
already any solution for this "behaviour"?
Bye
Carsten
Sven Homburg wrote:
>
> wow, and i think i must be crazy and nobody believes me !!
>
> Mit freundlichem Gruss
>
> homburg Softwaretechnik
> S.Homburg
> 21220 Seevetal / GERMANY
> Fon: +49-4105-669746
> Fax: +49-4105-668947
>
>
>
>
> Bill Holloway schrieb:
>> I'm having the same trouble. My Start page inherits from ProtectedPage:
>>
>> public abstract class ProtectedPage
>> {
>> @InjectPage
>> private Login _loginPage;
>>
>> @ApplicationState
>> private AppState _state;
>>
>> Object onActivate ()
>> {
>> if (! _state.isLoggedIn())
>> {
>> _loginPage.setCallback (this);
>> return _loginPage;
>> }
>> return null;
>> }
>> }
>>
>> Start has an "empty" class, no members, just a template. The Login
>> works fine. Everything is OK under Jetty (logged in or logged out) as
>> long as I call localhost:8080/start, but if I'm not "logged in," a
>> call to localhost:8080 gets me a blank page. Introducing "Login tmp =
>> _loginPage" at the beginning of onActivate and watching that in a
>> debug session shows a good _loginPage variable. But BOOM.
>>
>> Bill
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/T5%3A-page-redirect-tf3486878.html#a11751934
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: page redirect
Posted by Sven Homburg <Sv...@hsofttec.com>.
wow, and i think i must be crazy and nobody believes me !!
Mit freundlichem Gruss
homburg Softwaretechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947
Bill Holloway schrieb:
> I'm having the same trouble. My Start page inherits from ProtectedPage:
>
> public abstract class ProtectedPage
> {
> @InjectPage
> private Login _loginPage;
>
> @ApplicationState
> private AppState _state;
>
> Object onActivate ()
> {
> if (! _state.isLoggedIn())
> {
> _loginPage.setCallback (this);
> return _loginPage;
> }
> return null;
> }
> }
>
> Start has an "empty" class, no members, just a template. The Login
> works fine. Everything is OK under Jetty (logged in or logged out) as
> long as I call localhost:8080/start, but if I'm not "logged in," a
> call to localhost:8080 gets me a blank page. Introducing "Login tmp =
> _loginPage" at the beginning of onActivate and watching that in a
> debug session shows a good _loginPage variable. But BOOM.
>
> Bill
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org