Re: friendly URL restart redirects to /app

2006-06-25 Thread Mike Grundvig
Yes, Mr. Ship just posted that on the Dev forum. I'm very glad to be 
incorrect. This will save me a ton of time :)


Michael Grundvig
Electrotank, Inc
http://www.electrotank.com


- Original Message - 
From: "hv @ Fashion Content" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, June 25, 2006 11:03 AM
Subject: Re: friendly URL restart redirects to /app


Thanks for the advice, but you are actually wrong. It is quite trivial to 
change the Tapestry defaults.


The default you are talking about can be changed by a  line in the 
webapp.application file or by a  in your applications 
hivemodule.xml


I see on the dev list that Howard already replied :)

Henrik

"Mike Grundvig" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
Short of re-writing some of the internal guts of Tapestry, templates have 
to end in the .HTML extension (or you have to rename all the internal 
Tapestry templates to your new extension). That's what I was referring 
to. I brought this up only so you wouldn't be caught by surprise like I 
was.


Michael Grundvig
Electrotank, Inc
http://www.electrotank.com


- Original Message - 
From: "hv @ Fashion Content" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, June 25, 2006 10:07 AM
Subject: Re: friendly URL restart redirects to /app


All my templates are named .html, so I can actually access the template 
in parallel with the page service.


I don't consider it a bug, and you can change it. ServiceEncoders deal 
with how URLs are interpreted not how files/resources are named.


In Tap3 you would change it in the .application file, I guess you can 
now change it in hivemodule.xml as well if you want.


http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/hivemind.FactoryDefaults.html

In Tap4 there is a new PageSource thing, which I guess means that you 
can completely change how templates are handled if you like.


Henrik

"Mike Grundvig" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
This is not directly related to your question but are your pages all 
named .html? I ask because I saw this:


I've found a bug in T4 where your extension might be htm, but Tapestry 
expects all templates to be named .html.


Mike

Michael Grundvig
Electrotank, Inc
http://www.electrotank.com


- Original Message - 
From: "hv @ Fashion Content" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, June 25, 2006 8:16 AM
Subject: friendly URL restart redirects to /app


I followed the instructions on friendly urls for T4, and it works just 
fine except for one thing.


The exception page correctly links to '/restart.do', but when you 
follow the link it gets redirected to '/app' rather than '/'


Is this a bug or didn't I configure it correctly?



stateful-extension="sdirect"/>




service="external"/>











-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: friendly URL restart redirects to /app

2006-06-25 Thread andyhot
Restart service clears the session and redirects to
the Tapestry Servlet (which is usually /app)

It's quite easy to create your own restart service and do
other stuff...
See
http://svn.apache.org/repos/asf/tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/engine/RestartService.java

>From "hv @ Fashion Content" <[EMAIL PROTECTED]>:

> I followed the instructions on friendly urls for T4, and it works just fine 
> except for one thing.
> 
> The exception page correctly links to '/restart.do', but when you follow the
> 
> link it gets redirected to '/app' rather than '/'
> 
> Is this a bug or didn't I configure it correctly?
> 
> 
> 
>  stateful-extension="sdirect"/>
> 
> 
> 
>  service="external"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: friendly URL restart redirects to /app

2006-06-25 Thread hv @ Fashion Content
Thanks for the advice, but you are actually wrong. It is quite trivial to 
change the Tapestry defaults.

The default you are talking about can be changed by a  line in the 
webapp.application file or by a  in your applications 
hivemodule.xml

I see on the dev list that Howard already replied :)

Henrik

"Mike Grundvig" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> Short of re-writing some of the internal guts of Tapestry, templates have 
> to end in the .HTML extension (or you have to rename all the internal 
> Tapestry templates to your new extension). That's what I was referring to. 
> I brought this up only so you wouldn't be caught by surprise like I was.
>
> Michael Grundvig
> Electrotank, Inc
> http://www.electrotank.com
>
>
> - Original Message - 
> From: "hv @ Fashion Content" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, June 25, 2006 10:07 AM
> Subject: Re: friendly URL restart redirects to /app
>
>
>> All my templates are named .html, so I can actually access the template 
>> in parallel with the page service.
>>
>> I don't consider it a bug, and you can change it. ServiceEncoders deal 
>> with how URLs are interpreted not how files/resources are named.
>>
>> In Tap3 you would change it in the .application file, I guess you can now 
>> change it in hivemodule.xml as well if you want.
>>
>> http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/hivemind.FactoryDefaults.html
>>
>> In Tap4 there is a new PageSource thing, which I guess means that you can 
>> completely change how templates are handled if you like.
>>
>> Henrik
>>
>> "Mike Grundvig" <[EMAIL PROTECTED]> skrev i en meddelelse 
>> news:[EMAIL PROTECTED]
>>> This is not directly related to your question but are your pages all 
>>> named .html? I ask because I saw this:
>>> 
>>> I've found a bug in T4 where your extension might be htm, but Tapestry 
>>> expects all templates to be named .html.
>>>
>>> Mike
>>>
>>> Michael Grundvig
>>> Electrotank, Inc
>>> http://www.electrotank.com
>>>
>>>
>>> - Original Message - 
>>> From: "hv @ Fashion Content" <[EMAIL PROTECTED]>
>>> To: 
>>> Sent: Sunday, June 25, 2006 8:16 AM
>>> Subject: friendly URL restart redirects to /app
>>>
>>>
>>>>I followed the instructions on friendly urls for T4, and it works just 
>>>>fine except for one thing.
>>>>
>>>> The exception page correctly links to '/restart.do', but when you 
>>>> follow the link it gets redirected to '/app' rather than '/'
>>>>
>>>> Is this a bug or didn't I configure it correctly?
>>>>
>>>> 
>>>>
>>>> >>> stateful-extension="sdirect"/>
>>>>
>>>> 
>>>>
>>>> >>> service="external"/>
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>>
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: friendly URL restart redirects to /app

2006-06-25 Thread hv @ Fashion Content
Would the following be fix the redirect?



 













Or











Or change Restart service to act like Home service



Henrik

"hv @ Fashion Content" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
>I followed the instructions on friendly urls for T4, and it works just fine 
>except for one thing.
>
> The exception page correctly links to '/restart.do', but when you follow 
> the link it gets redirected to '/app' rather than '/'
>
> Is this a bug or didn't I configure it correctly?
>
> 
>
>  stateful-extension="sdirect"/>
>
> 
>
>  service="external"/>
>
> 
>
> 
>
> 
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: friendly URL restart redirects to /app

2006-06-25 Thread Mike Grundvig
Short of re-writing some of the internal guts of Tapestry, templates have to 
end in the .HTML extension (or you have to rename all the internal Tapestry 
templates to your new extension). That's what I was referring to. I brought 
this up only so you wouldn't be caught by surprise like I was.


Michael Grundvig
Electrotank, Inc
http://www.electrotank.com


- Original Message - 
From: "hv @ Fashion Content" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, June 25, 2006 10:07 AM
Subject: Re: friendly URL restart redirects to /app


All my templates are named .html, so I can actually access the template in 
parallel with the page service.


I don't consider it a bug, and you can change it. ServiceEncoders deal 
with how URLs are interpreted not how files/resources are named.


In Tap3 you would change it in the .application file, I guess you can now 
change it in hivemodule.xml as well if you want.


http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/hivemind.FactoryDefaults.html

In Tap4 there is a new PageSource thing, which I guess means that you can 
completely change how templates are handled if you like.


Henrik

"Mike Grundvig" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
This is not directly related to your question but are your pages all 
named .html? I ask because I saw this:


I've found a bug in T4 where your extension might be htm, but Tapestry 
expects all templates to be named .html.


Mike

Michael Grundvig
Electrotank, Inc
http://www.electrotank.com


- Original Message - 
From: "hv @ Fashion Content" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, June 25, 2006 8:16 AM
Subject: friendly URL restart redirects to /app


I followed the instructions on friendly urls for T4, and it works just 
fine except for one thing.


The exception page correctly links to '/restart.do', but when you follow 
the link it gets redirected to '/app' rather than '/'


Is this a bug or didn't I configure it correctly?



stateful-extension="sdirect"/>




service="external"/>











-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: friendly URL restart redirects to /app

2006-06-25 Thread hv @ Fashion Content
All my templates are named .html, so I can actually access the template in 
parallel with the page service.

I don't consider it a bug, and you can change it. ServiceEncoders deal with 
how URLs are interpreted not how files/resources are named.

In Tap3 you would change it in the .application file, I guess you can now 
change it in hivemodule.xml as well if you want.

http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/hivemind.FactoryDefaults.html

In Tap4 there is a new PageSource thing, which I guess means that you can 
completely change how templates are handled if you like.

Henrik

"Mike Grundvig" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> This is not directly related to your question but are your pages all named 
> .html? I ask because I saw this:
> 
> I've found a bug in T4 where your extension might be htm, but Tapestry 
> expects all templates to be named .html.
>
> Mike
>
> Michael Grundvig
> Electrotank, Inc
> http://www.electrotank.com
>
>
> - Original Message - 
> From: "hv @ Fashion Content" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, June 25, 2006 8:16 AM
> Subject: friendly URL restart redirects to /app
>
>
>>I followed the instructions on friendly urls for T4, and it works just 
>>fine except for one thing.
>>
>> The exception page correctly links to '/restart.do', but when you follow 
>> the link it gets redirected to '/app' rather than '/'
>>
>> Is this a bug or didn't I configure it correctly?
>>
>> 
>>
>> > stateful-extension="sdirect"/>
>>
>> 
>>
>> > service="external"/>
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: friendly URL restart redirects to /app

2006-06-25 Thread Mike Grundvig
This is not directly related to your question but are your pages all named 
.html? I ask because I saw this:


I've found a bug in T4 where your extension might be htm, but Tapestry 
expects all templates to be named .html.


Mike

Michael Grundvig
Electrotank, Inc
http://www.electrotank.com


- Original Message - 
From: "hv @ Fashion Content" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, June 25, 2006 8:16 AM
Subject: friendly URL restart redirects to /app


I followed the instructions on friendly urls for T4, and it works just fine 
except for one thing.


The exception page correctly links to '/restart.do', but when you follow 
the link it gets redirected to '/app' rather than '/'


Is this a bug or didn't I configure it correctly?



stateful-extension="sdirect"/>




service="external"/>











-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



friendly URL restart redirects to /app

2006-06-25 Thread hv @ Fashion Content
I followed the instructions on friendly urls for T4, and it works just fine 
except for one thing.

The exception page correctly links to '/restart.do', but when you follow the 
link it gets redirected to '/app' rather than '/'

Is this a bug or didn't I configure it correctly?


















-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]