You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Adam Greene <ag...@professionalopensource.ca> on 2005/03/04 02:26:54 UTC

Tapestry 3.0.2 + FriendlyURLs

Has anyone patched 3.0.2 to use the FriendlyURLs stuff?  I've only found 3.0.1

Want High Value at a Low Price?
Then check out ProfessionalOpenSource.ca

Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Massimo <ml...@gmail.com>.
On Sat, 5 Mar 2005 06:29:15 -0500, Erik Hatcher
<er...@ehatchersolutions.com> wrote:

> It goes like this....
> 
>         Howard is heads-down on 3.1 and has not expressed interest in future
> 3.0.x releases.
> 
>         I am pleased with my servlet filter approach for "friendly" URLs.

I've also always found the filter way to be a good way to keep
compatibility URL wise, as i've always used that technics in my
developments.

> I am supportive of a 3.0 release that includes friendly URL support
> internally, but I don't have an itch to scratch to make it happen
> myself.  The approach in the FriendlyURL support versus what Howard has
> already done in 3.1 is completely different though - this makes it more
> of a stop-gap hack than a wise architectural addition.

I can see very different approach on the filter way and on the patch
from the wiki, so i might guess some discussion with other committers
could show the best approach to achieve this.
I even don't know if Howard and/or other commiters have an idea of
what could be the timetable for a 3.1 release, in which case there
could be good reasons to not waste any effort on this but keep this
only very well showed/documented in the docs

-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Massimo <ml...@gmail.com>.
On Sun, 6 Mar 2005 11:13:20 +0100, Massimo <ml...@gmail.com> wrote:

> My last question about this topic.
> How about problems highlighted by Howard in the thread on -dev about
> "3.1: Declarative Security Issue" with solutions like the one popped
> out in this discussion, specifically with your patches ?

Nevermind, forget these last couple of lines...

-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Massimo <ml...@gmail.com>.
On Sat, 05 Mar 2005 17:17:02 -0800, Paul Ferraro <pm...@columbia.edu> wrote:

> I have to agree with Erik.

Indeed all of your (you and Erik) reasons are acceptable
 
> 1.) In 3.1, customizable service url encoding/decoding is now part of
> the framework (see org.apache.tapestry.engine.ServiceEncoder in
> 3.1-alpha-1).  To create a new 3.0.3 release with the wiki patch only to
> have the mechanism change again in 3.1 doesn't make sense.

This also is a good point.

> 2.) Patching and rebuilding the source yourself is not that hard.  As
> outlined in the wiki, there are only 2 files that require patching in
> order for things to work as intended - a grand total of 4 lines of
> code.  The rest of the code referenced in the wiki uses Tapestry's
> built-in extension points.

Yes, true.

> 3.) As Erik continually points out :), there are *several* ways to
> modify the urls generated/interpreted by Tapestry 3.0.  Overriding
> Tapestry's services as outlined in the wiki is just one of them.  The
> servlet filter approach is another.  Using Apache's mod_rewrite module
> is yet another.  You will find many success stories from people using
> each of these approaches in the list archives...

I'm starting to convincing myself that an "official" document
describing these approaches could solve all the problems.

My last question about this topic.
How about problems highlighted by Howard in the thread on -dev about
"3.1: Declarative Security Issue" with solutions like the one popped
out in this discussion, specifically with your patches ?

-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Paul Ferraro <pm...@columbia.edu>.
I have to agree with Erik.

1.) In 3.1, customizable service url encoding/decoding is now part of 
the framework (see org.apache.tapestry.engine.ServiceEncoder in 
3.1-alpha-1).  To create a new 3.0.3 release with the wiki patch only to 
have the mechanism change again in 3.1 doesn't make sense.

2.) Patching and rebuilding the source yourself is not that hard.  As 
outlined in the wiki, there are only 2 files that require patching in 
order for things to work as intended - a grand total of 4 lines of 
code.  The rest of the code referenced in the wiki uses Tapestry's 
built-in extension points.

3.) As Erik continually points out :), there are *several* ways to 
modify the urls generated/interpreted by Tapestry 3.0.  Overriding 
Tapestry's services as outlined in the wiki is just one of them.  The 
servlet filter approach is another.  Using Apache's mod_rewrite module 
is yet another.  You will find many success stories from people using 
each of these approaches in the list archives...

However, I do think that a 3.0.3 release might be in order since:
1. A patch applied to the DatePicker in 3.0.2 introduced a bug where the 
calendar won't close automatically if no onchange event listener is 
specified.
2. The JanitorThread fix in 3.0.2 was not entirely correct.

Paul

Erik Hatcher wrote:

> It goes like this....
>
>     Howard is heads-down on 3.1 and has not expressed interest in 
> future 3.0.x releases.
>
>     I am pleased with my servlet filter approach for "friendly" URLs.
>
> I am supportive of a 3.0 release that includes friendly URL support 
> internally, but I don't have an itch to scratch to make it happen 
> myself.  The approach in the FriendlyURL support versus what Howard 
> has already done in 3.1 is completely different though - this makes it 
> more of a stop-gap hack than a wise architectural addition.
>
> If another committer wanted to push through a release with this 
> embedded, this probably warrants it being called 3.1 and then what 
> Howard has been calling 3.1 be renumbered (4.0?! Howard doesn't like 
> that idea though).  Again, I'm supportive of it but have no time or 
> interest in doing it myself.
>
>     Erik
>
>
> On Mar 5, 2005, at 5:46 AM, Massimo wrote:
>
>> On Sat, 05 Mar 2005 00:13:18 -0500, Anastasios Angelidis
>> <vo...@videotron.ca> wrote:
>>
>>> It's not hard to do at all...
>>>
>>> Follow: http://wiki.apache.org/jakarta-tapestry/FriendlyUrls
>>
>>
>> If that's all that easy i don't understand why developers could not
>> import it in the core for 3.0 tree ?
>>
>> We all can see it's a recurrent demand from the community and we all
>> know how friendly URL are valuable from a search engine bot
>> perspective.
>>
>> I think all can understand Eric point of view about doing it with
>> filters but the question "If that's all that easy why not?" still
>> remain.
>>
>> Don you tend to agree ?
>>
>> -- 
>> Massimo
>> http://meridio.blogspot.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Massimo <ml...@gmail.com>.
On Sat, 05 Mar 2005 08:53:33 -0500, Matthew C. Mead <m-...@goof.com> wrote:

> This is something I'd be happy to put together if it were sanctioned and
> blessed.  I wouldn't want to cause a rowe by doing so.

You can read from howard's blog he is willing to get help from the
community. Actually he's talking about HiveMind but i think it could
be applicable to Tapestry too.

-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by "Matthew C. Mead" <m-...@goof.com>.
This is something I'd be happy to put together if it were sanctioned and 
blessed.  I wouldn't want to cause a rowe by doing so.

It's something I intend to get going for my own purposes anyway, just 
once the rest of the app I'm building with Tapestry is in place and 
functioning like I want.

I thought someone was already putting together a patch, though.  Just 
not sure of the timetable...


-matt


Erik Hatcher wrote:

> It goes like this....
>
>     Howard is heads-down on 3.1 and has not expressed interest in 
> future 3.0.x releases.
>
>     I am pleased with my servlet filter approach for "friendly" URLs.
>
> I am supportive of a 3.0 release that includes friendly URL support 
> internally, but I don't have an itch to scratch to make it happen 
> myself.  The approach in the FriendlyURL support versus what Howard 
> has already done in 3.1 is completely different though - this makes it 
> more of a stop-gap hack than a wise architectural addition.
>
> If another committer wanted to push through a release with this 
> embedded, this probably warrants it being called 3.1 and then what 
> Howard has been calling 3.1 be renumbered (4.0?! Howard doesn't like 
> that idea though).  Again, I'm supportive of it but have no time or 
> interest in doing it myself.
>
>     Erik
>
>
> On Mar 5, 2005, at 5:46 AM, Massimo wrote:
>
>> On Sat, 05 Mar 2005 00:13:18 -0500, Anastasios Angelidis
>> <vo...@videotron.ca> wrote:
>>
>>> It's not hard to do at all...
>>>
>>> Follow: http://wiki.apache.org/jakarta-tapestry/FriendlyUrls
>>
>>
>> If that's all that easy i don't understand why developers could not
>> import it in the core for 3.0 tree ?
>>
>> We all can see it's a recurrent demand from the community and we all
>> know how friendly URL are valuable from a search engine bot
>> perspective.
>>
>> I think all can understand Eric point of view about doing it with
>> filters but the question "If that's all that easy why not?" still
>> remain.
>>
>> Don you tend to agree ?
>>
>> -- 
>> Massimo
>> http://meridio.blogspot.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>

Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
It goes like this....

	Howard is heads-down on 3.1 and has not expressed interest in future 
3.0.x releases.

	I am pleased with my servlet filter approach for "friendly" URLs.

I am supportive of a 3.0 release that includes friendly URL support 
internally, but I don't have an itch to scratch to make it happen 
myself.  The approach in the FriendlyURL support versus what Howard has 
already done in 3.1 is completely different though - this makes it more 
of a stop-gap hack than a wise architectural addition.

If another committer wanted to push through a release with this 
embedded, this probably warrants it being called 3.1 and then what 
Howard has been calling 3.1 be renumbered (4.0?! Howard doesn't like 
that idea though).  Again, I'm supportive of it but have no time or 
interest in doing it myself.

	Erik


On Mar 5, 2005, at 5:46 AM, Massimo wrote:

> On Sat, 05 Mar 2005 00:13:18 -0500, Anastasios Angelidis
> <vo...@videotron.ca> wrote:
>> It's not hard to do at all...
>>
>> Follow: http://wiki.apache.org/jakarta-tapestry/FriendlyUrls
>
> If that's all that easy i don't understand why developers could not
> import it in the core for 3.0 tree ?
>
> We all can see it's a recurrent demand from the community and we all
> know how friendly URL are valuable from a search engine bot
> perspective.
>
> I think all can understand Eric point of view about doing it with
> filters but the question "If that's all that easy why not?" still
> remain.
>
> Don you tend to agree ?
>
> -- 
> Massimo
> http://meridio.blogspot.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Massimo <ml...@gmail.com>.
On Sat, 05 Mar 2005 00:13:18 -0500, Anastasios Angelidis
<vo...@videotron.ca> wrote:
> It's not hard to do at all...
> 
> Follow: http://wiki.apache.org/jakarta-tapestry/FriendlyUrls

If that's all that easy i don't understand why developers could not
import it in the core for 3.0 tree ?

We all can see it's a recurrent demand from the community and we all
know how friendly URL are valuable from a search engine bot
perspective.

I think all can understand Eric point of view about doing it with
filters but the question "If that's all that easy why not?" still
remain.

Don you tend to agree ?

-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Encoding a URL within a URL as a parameter

Posted by Markus Eberle <ma...@tngtech.com>.
Hi,

to simply encode the string use:

org.apache.commons.codec.net.URLCodec _urlCodec = new org.apache.commons.codec.net.URLCodec();
String encoded = _urlCodec.encode(dataToEncode, "UTF-8");

HTH
	Markus

On Monday 04 April 2005 16:33, Joshua Long wrote:
> Whats the easiest way to encode a URL being passed as a paramter to
> another url?
> 
> 
> The assets retreived by the asset service. the url referenced in source
> is created by a custom service. I need to the url into the first url. 
> 
> Anywya, i tried:
> 
>  cycle.getRequestContext().getResponse().encodeURL(link.getURL()); 
> 
> And that didn't quite work.. 
> 
> heres an example of the simplest fomr of the url 
> 
>  /myapp/xml_slide/myflashfile.swf?source=foo.xml
> 
> but instead of foo.xml, we want to pass in a dynamic url as generated by
> a custom service, whose sample value is 
> 
> /myapp/app?service=m_service&sp=Sref_1005812745093696 
> 
> Anyway, thanks for any help. 
> 
> Joshua 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 

-- 
TNG Technology Consulting GmbH
Tel: +49 179 148 24 16
markus.eberle@tngtech.com
http://www.tngtech.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Encoding a URL within a URL as a parameter

Posted by Joshua Long <lh...@adelphia.net>.
Whats the easiest way to encode a URL being passed as a paramter to
another url?


The assets retreived by the asset service. the url referenced in source
is created by a custom service. I need to the url into the first url. 

Anywya, i tried:

 cycle.getRequestContext().getResponse().encodeURL(link.getURL()); 

And that didn't quite work.. 

heres an example of the simplest fomr of the url 

 /myapp/xml_slide/myflashfile.swf?source=foo.xml

but instead of foo.xml, we want to pass in a dynamic url as generated by
a custom service, whose sample value is 

/myapp/app?service=m_service&sp=Sref_1005812745093696 

Anyway, thanks for any help. 

Joshua 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Anastasios Angelidis <vo...@videotron.ca>.
It's not hard to do at all...

Follow: http://wiki.apache.org/jakarta-tapestry/FriendlyUrls


Mikaël Cluseau wrote:

>I plan to upgrade my patch in a couple of days. I'll send it on this
>list.
>
>Le jeudi 03 mars 2005 à 21:26 -0400, Adam Greene a écrit :
>  
>
>>Has anyone patched 3.0.2 to use the FriendlyURLs stuff?  I've only
>>found 3.0.1
>> 
>>Want High Value at a Low Price?
>>Then check out ProfessionalOpenSource.ca
>>No virus found in this outgoing message.
>>Checked by AVG Anti-Virus.
>>Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 02/25/2005
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Mikaël Cluseau <nw...@nwrk.dyndns.org>.
I plan to upgrade my patch in a couple of days. I'll send it on this
list.

Le jeudi 03 mars 2005 à 21:26 -0400, Adam Greene a écrit :
> Has anyone patched 3.0.2 to use the FriendlyURLs stuff?  I've only
> found 3.0.1
>  
> Want High Value at a Low Price?
> Then check out ProfessionalOpenSource.ca
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 02/25/2005
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Tapestry 3.0.2 + FriendlyURLs

Posted by Kevin Menard <ni...@negativetwenty.net>.
On 3/3/05 8:26 PM, "Adam Greene" <ag...@professionalopensource.ca> wrote:

> Has anyone patched 3.0.2 to use the FriendlyURLs stuff?  I've only found 3.0.1

I sent this out links to my patched JARs sometime last week.  I still
haven¹t put up the patch yet (I applied everything manually, so I need to
diff to a clean source dir) . . . maybe this weekend.  Here you go though:

http://www.negativetwenty.net/svn/bookmarker/trunk/lib/

-- 
Kevin