Re: 4.0.2 - Friendly URLs

2007-07-16 Thread Peter Stavrinides
I had similar issues in 4.0.2, I now use 4.1.1 and this works correctly 
for me:


   final ILink pageLink = getPageService().getLink(false, whateverPage);
   throw new RedirectException(pageLink.getURL());

But I Don't know if this will work in 4.0.2, I never tried.

Mahmut Izci wrote:

Hi all,

friendly URLs are working well, as long as the page URLs are called 
directly.

But how about activating a page after form submit?
If I call cycle.activate(NextPage), it results in
http://localhost:8080/myapp/app; and not 
http://localhost:8080/myapp/NextPage.html;.

Is there a way to activate the url?
I can throw a redirect exception, but i'm sure, this is not the best 
solution.


Thanks
Mahmut

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



--
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652 

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. 




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



Re: 4.0.2 - Friendly URLs

2007-07-13 Thread Renat Zubairov

I think it's not possible because form submitions are handled by the
different service than Friendly URLS.
However you can use Tapestry-flash and have redirect after post
which is always a good decision anyway.

Renat

On 13/07/07, Mahmut Izci [EMAIL PROTECTED] wrote:

Hi all,

friendly URLs are working well, as long as the page URLs are called
directly.
But how about activating a page after form submit?
If I call cycle.activate(NextPage), it results in
http://localhost:8080/myapp/app; and not
http://localhost:8080/myapp/NextPage.html;.
Is there a way to activate the url?
I can throw a redirect exception, but i'm sure, this is not the best
solution.

Thanks
Mahmut

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





--
Best regards,
Renat Zubairov

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



4.0.2 - Friendly URLs

2007-07-13 Thread Mahmut Izci

Hi all,

friendly URLs are working well, as long as the page URLs are called 
directly.

But how about activating a page after form submit?
If I call cycle.activate(NextPage), it results in
http://localhost:8080/myapp/app; and not 
http://localhost:8080/myapp/NextPage.html;.

Is there a way to activate the url?
I can throw a redirect exception, but i'm sure, this is not the best 
solution.


Thanks
Mahmut

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



Re: 4.0.2 - Friendly URLs

2007-07-13 Thread Norman Franke
I asked this same question a while ago and didn't get a response. You  
can implement ServiceEncoder and reform the URLs yourself for the  
Direct Service. However, I never did figure out how to do this using  
the same URL, since the encoders use the URL to determine what actual  
service to use. So, I used /foo/bar/baz for the baz service, and /foo/ 
bar/baz.d for the direct service representation. That seems t work.


-Norman

On Jul 13, 2007, at 6:24 AM, Renat Zubairov wrote:


I think it's not possible because form submitions are handled by the
different service than Friendly URLS.
However you can use Tapestry-flash and have redirect after post
which is always a good decision anyway.

Renat

On 13/07/07, Mahmut Izci [EMAIL PROTECTED] wrote:

Hi all,

friendly URLs are working well, as long as the page URLs are called
directly.
But how about activating a page after form submit?
If I call cycle.activate(NextPage), it results in
http://localhost:8080/myapp/app; and not
http://localhost:8080/myapp/NextPage.html;.
Is there a way to activate the url?
I can throw a redirect exception, but i'm sure, this is not the best
solution.

Thanks
Mahmut

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





--
Best regards,
Renat Zubairov

-
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]