On Tue, 28 Sep 2010 17:58:35 +0200, Manuel Sugawara
<manuel.sugaw...@gmail.com> wrote:
On Tue, Sep 28, 2010 at 7:08 AM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
On Tue, 28 Sep 2010 05:41:50 -0300, Lutz Hühnken
<lh.tapestry.l...@googlemail.com> wrote:
Of course I am willing to learn. What would be the "Tapestry way" of
implementing this?
Use Form and leave it using POST. If you want a bookmarkable URL, use
the
page activation context instead. Tapestry and the form field components
do
all the value handling for you.
Of course is a matter of taste but I rather have
http://localhost/?q=c%E1lculo+diferencial<http://localhost/?q=c%C3%A1lculo+diferencial>than
http://localhost:8080/C$00e1lculo$0020diferencial
I happen to prefer the second URL so I am doing this with an activation
context, just as you describe:
POST /search.form
redirects to
GET /search/my-search-query
If you're concerned about the peculiar characters showing up in the
activation context ($0020 etc) you could ovverride the default URL encoder
and provide your own version to get prettier URLs:
http://localhost:8080/Cálculo+diferencial
Here's an example to get you started:
http://www.mail-archive.com/users@tapestry.apache.org/msg44973.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org