Re: [T5] Permalinks

2009-12-11 Thread Jakub Vlasak
Or you can do it from the other side. If the string isn't contained in the
array of your pages, then rewrite the url.

On Thu, Dec 10, 2009 at 7:49 PM, blueboy6 blueb...@gmail.com wrote:


 TNX Thiago,

 this really helped me a lot :)

 PS
 isn't url rewrite complicated to do when I have lots of diferent parts...
 (TWR-234, A34-TDS and so on) because I would need to create rule for all of
 them, I just read all documentation and didn't find anything similar.

 :)



 Thiago H. de Paula Figueiredo wrote:
 
  Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 blueb...@gmail.com
  escreveu:
 
  Hello everyone,
 
  Hi!
 
  I have interesting question.
  Is it posible to create permalinks for my pages like:
  www.test.com/TY45-234
  I know that there is activation context but I need to do this in this
  shorter way.
 
  Two suggestions:
 
  1) Have an Index page and use its activation context to redirect to the
  proper page
  2) Implement a URL rewriting rule the verifies the URL and changes it to
  /view/TY45-234, for example. This approach has the advantage of not using
  redirects.
 
  --
  Thiago H. de Paula Figueiredo
  Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
  and instructor
  Owner, software architect and developer, Ars Machina Tecnologia da
  Informação Ltda.
  http://www.arsmachina.com.br
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

 --
 View this message in context:
 http://old.nabble.com/-T5--Permalinks-tp26730696p26732522.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: [T5] Permalinks

2009-12-11 Thread blueboy6

Hi Jakub,

I'm not sure that I got what you are suggesting to me?

Can you explain it a little bit to me.

Bojan


Jakub Vlasak wrote:
 
 Or you can do it from the other side. If the string isn't contained in the
 array of your pages, then rewrite the url.
 
 On Thu, Dec 10, 2009 at 7:49 PM, blueboy6 blueb...@gmail.com wrote:
 

 TNX Thiago,

 this really helped me a lot :)

 PS
 isn't url rewrite complicated to do when I have lots of diferent parts...
 (TWR-234, A34-TDS and so on) because I would need to create rule for all
 of
 them, I just read all documentation and didn't find anything similar.

 :)



 Thiago H. de Paula Figueiredo wrote:
 
  Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 blueb...@gmail.com
  escreveu:
 
  Hello everyone,
 
  Hi!
 
  I have interesting question.
  Is it posible to create permalinks for my pages like:
  www.test.com/TY45-234
  I know that there is activation context but I need to do this in this
  shorter way.
 
  Two suggestions:
 
  1) Have an Index page and use its activation context to redirect to the
  proper page
  2) Implement a URL rewriting rule the verifies the URL and changes it
 to
  /view/TY45-234, for example. This approach has the advantage of not
 using
  redirects.
 
  --
  Thiago H. de Paula Figueiredo
  Independent Java, Apache Tapestry 5 and Hibernate consultant,
 developer,
  and instructor
  Owner, software architect and developer, Ars Machina Tecnologia da
  Informação Ltda.
  http://www.arsmachina.com.br
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

 --
 View this message in context:
 http://old.nabble.com/-T5--Permalinks-tp26730696p26732522.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


 
 

-- 
View this message in context: 
http://old.nabble.com/-T5--Permalinks-tp26730696p26749167.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



[T5] Permalinks

2009-12-10 Thread blueboy6

Hello everyone,

I have interesting question.

Is it posible to create permalinks for my pages like:

www.test.com/TY45-234

I know that there is activation context but I need to do this in this
shorter way.

Or at least to take this permalink and to send it to other page as
activation context.

Impatiently waiting for reply. :)

Bojan Cincur
-- 
View this message in context: 
http://old.nabble.com/-T5--Permalinks-tp26730696p26730696.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5] Permalinks

2009-12-10 Thread Thiago H. de Paula Figueiredo

Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 blueb...@gmail.com escreveu:


Hello everyone,


Hi!


I have interesting question.
Is it posible to create permalinks for my pages like:
www.test.com/TY45-234
I know that there is activation context but I need to do this in this
shorter way.


Two suggestions:

1) Have an Index page and use its activation context to redirect to the  
proper page
2) Implement a URL rewriting rule the verifies the URL and changes it to  
/view/TY45-234, for example. This approach has the advantage of not using  
redirects.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5] Permalinks

2009-12-10 Thread blueboy6

TNX Thiago,

this really helped me a lot :)

PS
isn't url rewrite complicated to do when I have lots of diferent parts...
(TWR-234, A34-TDS and so on) because I would need to create rule for all of
them, I just read all documentation and didn't find anything similar.

:)



Thiago H. de Paula Figueiredo wrote:
 
 Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 blueb...@gmail.com
 escreveu:
 
 Hello everyone,
 
 Hi!
 
 I have interesting question.
 Is it posible to create permalinks for my pages like:
 www.test.com/TY45-234
 I know that there is activation context but I need to do this in this
 shorter way.
 
 Two suggestions:
 
 1) Have an Index page and use its activation context to redirect to the  
 proper page
 2) Implement a URL rewriting rule the verifies the URL and changes it to  
 /view/TY45-234, for example. This approach has the advantage of not using  
 redirects.
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
 and instructor
 Owner, software architect and developer, Ars Machina Tecnologia da  
 Informação Ltda.
 http://www.arsmachina.com.br
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/-T5--Permalinks-tp26730696p26732522.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5] Permalinks

2009-12-10 Thread Thiago H. de Paula Figueiredo

Em Thu, 10 Dec 2009 16:49:25 -0200, blueboy6 blueb...@gmail.com escreveu:


TNX Thiago,
this really helped me a lot :)


You're welcome!

PS isn't url rewrite complicated to do when I have lots of diferent  
parts...
(TWR-234, A34-TDS and so on) because I would need to create rule for all  
of them, I just read all documentation and didn't find anything similar.


You don't need to create a rule for each of them, as long as you have a  
defined mapping between permalink and real URL.
You can think of URL rewriting as being string manipulation. The  
documentation just shows simple examples for easy understanding.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org