You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/03/07 06:36:03 UTC
t5: home page
hi,
t5 loads start page when it is called:
http://localhost:8080/myapp
I'd like it to load home.tmp instead, any way to set it? renaming home.tml
to start.tml is one, but i like to keep it. thanks.
A.C.
--
View this message in context: http://www.nabble.com/t5%3A-home-page-tp15890272p15890272.html
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: home page
Posted by David Marquis <dm...@neopeak.com>.
I also like to "decide" which page the user sees when entering the
application, so I do :
/* Any page I want to display */
public class MyHomepage {
...
}
/* Default tapestry page for "app root" : */
public class Start {
Class onActivate() {
return MyHomepage.class;
}
}
This will redirect the incoming visitor to the right page, but also
allows for some entry logic (if required).
HTH,
--
David
On 7-Mar-08, at 5:48 AM, Kheldar666 wrote:
>
> See : http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html
>
> Parameter : tapestry.start-page-name
>
> Regards,
>
>
>
> Angelo Chen wrote:
>>
>> hi,
>>
>> t5 loads start page when it is called:
>>
>> http://localhost:8080/myapp
>>
>> I'd like it to load home.tmp instead, any way to set it? renaming
>> home.tml
>> to start.tml is one, but i like to keep it. thanks.
>>
>> A.C.
>>
>
> --
> View this message in context: http://www.nabble.com/t5%3A-home-page-tp15890272p15891144.html
> 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: home page
Posted by Kheldar666 <ma...@liber-mundi.org>.
See : http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html
Parameter : tapestry.start-page-name
Regards,
Angelo Chen wrote:
>
> hi,
>
> t5 loads start page when it is called:
>
> http://localhost:8080/myapp
>
> I'd like it to load home.tmp instead, any way to set it? renaming home.tml
> to start.tml is one, but i like to keep it. thanks.
>
> A.C.
>
--
View this message in context: http://www.nabble.com/t5%3A-home-page-tp15890272p15891144.html
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: home page
Posted by Kristian Marinkovic <kr...@porsche.co.at>.
try this:
public void contributeApplicationDefaults(MappedConfiguration<String,
String> configuration)
{
configuration.add("tapestry.start-page-name","logicalPageName");
}
if you dont like Strings - like me :) - and prefer typesafe programming
you can inject the ComponentClassResolver and let it return the logical
page name for a page class:
logicalPageName = resolver.resolvePageClassNameToPageName(Login.class
.getName()));
g,
kris
Angelo Chen <an...@yahoo.com.hk>
07.03.2008 06:36
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>
An
users@tapestry.apache.org
Kopie
Thema
t5: home page
hi,
t5 loads start page when it is called:
http://localhost:8080/myapp
I'd like it to load home.tmp instead, any way to set it? renaming home.tml
to start.tml is one, but i like to keep it. thanks.
A.C.
--
View this message in context:
http://www.nabble.com/t5%3A-home-page-tp15890272p15890272.html
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