You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michal Hlavac <hl...@medium13.sk> on 2005/02/17 11:21:48 UTC
Friendly URLs and Tapestry
hello,
does Tapestry 3.02 support friendly URLs?
thanx, hlavki
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Friendly URLs and Tapestry 3.1.
Posted by sa...@women-at-work.org.
Is it also possible to have alias links to the same destination?
I am thinking of directory structures that support several languages so that
also the urls are translated.....
> Thought you may find this interesting:
> http://tuckey.org/urlrewrite/
>
>
> On Sat, 26 Feb 2005 14:34:26 -0500, Kevin Menard
> <ni...@negativetwenty.net> wrote:
> > On Feb 26, 2005, at 12:47 PM, Ramin wrote:
> >
> > > Couldn't you acheive the same thing using mod_rewrite on Apache? I
> > > think rewrite rules might be easier to maintain and work faster than
> > > having a servlet handle the url translation. I'm new to Tapestry, so
> > > I'm sure if this is possible, but from the examples on your website,
> > > you can definitely do the same thing with RewriteRule
> >
> > I don't know if this was directed at my site or Paul's, but I'll
> > address it for mine. Sure, rewrite rules could be used. To be honest,
> > I've always had problems getting rewrite rules to work how I want
> > without more effort than I care for. Furthermore, it binds you to
> > using apache. For my public copy of Bookmarker, I do use apache +
> > mod_jk2, but the "standalone" version runs in an embedded jetty
> > instance. So, it's nice to have the friendly URLs in that case as
> > well. Now, there are yet even more options for this . . . skim the
> > lists and maybe filter for "Erik Hatcher" :-)
> >
> > But as far as speed is concerned, it should be no slower than native
> > Tapestry, although I haven't benchmarked this. There is no more
> > translation going on than Tapestry out of the box though, it's just a
> > different way of rendering links. I used the patched friendly URL jars
> > because they require almost no effort to use, it's a cross-container
> > solution, and I get nice URLs out of it. But to each his own. When
> > Tapestry 3.1 comes out, it's all a moot issue anyway, but in the
> > meanwhile, I'm very thankful for the work Paul did in getting this to
> > work.
> >
> > --
> > Kevin
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
> --
> - Ramin
>
> ---------------------------------------------------------------------
> 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: Friendly URLs and Tapestry
Posted by Kevin Menard <ni...@negativetwenty.net>.
On Feb 28, 2005, at 10:01 PM, Ramin wrote:
> Thought you may find this interesting:
> http://tuckey.org/urlrewrite/
Oddly enough, I just came across that this evening. I have been unable
to get it to work though. I suspect the version of ORO it is expecting
is clashing with Cayenne's, although I haven't looked in great detail
yet. Thanks for the link though.
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: New Topics on Replies [Was: Re: Best Practices]
Posted by Luca De Petrillo <lu...@websiteitalia.com>.
On 01/03/2005 - 06:49:47, you wrote in gmane.comp.java.tapestry.user:
>Sorry if this is way OT, but have there been a lot of messages recently
>that have essentially been new threads, but reply to previous messages?
> Mail.app's threading is all off, and I'm wondering is this is what is
>happening. Just wondering if the issue is on my end or not.
>
This seem to be an e-mail client problem (I read the mailing-list using
gmane newsletter), that don't place the correct headears (see in-reply-to
etc.).
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
New Topics on Replies [Was: Re: Best Practices]
Posted by Kevin Menard <ni...@negativetwenty.net>.
Sorry if this is way OT, but have there been a lot of messages recently
that have essentially been new threads, but reply to previous messages?
Mail.app's threading is all off, and I'm wondering is this is what is
happening. Just wondering if the issue is on my end or not.
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Best Practices
Posted by Derek Brown <ze...@yahoo.com>.
Hello,
I have methods and listeners that look like this:
public void resetRows()
{
CFactory cf = (CFactory)
getPage().getComponent("cfactory");
UserComponentPaged comp = (UserComponentPaged)
cf.getComponent("usercomppaged");
UserListPaged list = (UserListPaged)
comp.getComponent("userlistpaged");
TableView tv = (TableView)
list.getComponent("tableview");
ITableModel tm = tv.getTableModel();
setRows(tm.getRows());
}
Is there anyway to reduce the clutter or use something
like ognl here?
Thanks,
Derek
__________________________________
Do you Yahoo!?
Yahoo! Sports - Sign up for Fantasy Baseball.
http://baseball.fantasysports.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Friendly URLs and Tapestry
Posted by Ramin <i8...@gmail.com>.
Thought you may find this interesting:
http://tuckey.org/urlrewrite/
On Sat, 26 Feb 2005 14:34:26 -0500, Kevin Menard
<ni...@negativetwenty.net> wrote:
> On Feb 26, 2005, at 12:47 PM, Ramin wrote:
>
> > Couldn't you acheive the same thing using mod_rewrite on Apache? I
> > think rewrite rules might be easier to maintain and work faster than
> > having a servlet handle the url translation. I'm new to Tapestry, so
> > I'm sure if this is possible, but from the examples on your website,
> > you can definitely do the same thing with RewriteRule
>
> I don't know if this was directed at my site or Paul's, but I'll
> address it for mine. Sure, rewrite rules could be used. To be honest,
> I've always had problems getting rewrite rules to work how I want
> without more effort than I care for. Furthermore, it binds you to
> using apache. For my public copy of Bookmarker, I do use apache +
> mod_jk2, but the "standalone" version runs in an embedded jetty
> instance. So, it's nice to have the friendly URLs in that case as
> well. Now, there are yet even more options for this . . . skim the
> lists and maybe filter for "Erik Hatcher" :-)
>
> But as far as speed is concerned, it should be no slower than native
> Tapestry, although I haven't benchmarked this. There is no more
> translation going on than Tapestry out of the box though, it's just a
> different way of rendering links. I used the patched friendly URL jars
> because they require almost no effort to use, it's a cross-container
> solution, and I get nice URLs out of it. But to each his own. When
> Tapestry 3.1 comes out, it's all a moot issue anyway, but in the
> meanwhile, I'm very thankful for the work Paul did in getting this to
> work.
>
> --
> Kevin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
- Ramin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Friendly URLs and Tapestry
Posted by Kevin Menard <ni...@negativetwenty.net>.
On Feb 26, 2005, at 12:47 PM, Ramin wrote:
> Couldn't you acheive the same thing using mod_rewrite on Apache? I
> think rewrite rules might be easier to maintain and work faster than
> having a servlet handle the url translation. I'm new to Tapestry, so
> I'm sure if this is possible, but from the examples on your website,
> you can definitely do the same thing with RewriteRule
I don't know if this was directed at my site or Paul's, but I'll
address it for mine. Sure, rewrite rules could be used. To be honest,
I've always had problems getting rewrite rules to work how I want
without more effort than I care for. Furthermore, it binds you to
using apache. For my public copy of Bookmarker, I do use apache +
mod_jk2, but the "standalone" version runs in an embedded jetty
instance. So, it's nice to have the friendly URLs in that case as
well. Now, there are yet even more options for this . . . skim the
lists and maybe filter for "Erik Hatcher" :-)
But as far as speed is concerned, it should be no slower than native
Tapestry, although I haven't benchmarked this. There is no more
translation going on than Tapestry out of the box though, it's just a
different way of rendering links. I used the patched friendly URL jars
because they require almost no effort to use, it's a cross-container
solution, and I get nice URLs out of it. But to each his own. When
Tapestry 3.1 comes out, it's all a moot issue anyway, but in the
meanwhile, I'm very thankful for the work Paul did in getting this to
work.
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Friendly URLs and Tapestry
Posted by Ramin <i8...@gmail.com>.
Couldn't you acheive the same thing using mod_rewrite on Apache? I
think rewrite rules might be easier to maintain and work faster than
having a servlet handle the url translation. I'm new to Tapestry, so
I'm sure if this is possible, but from the examples on your website,
you can definitely do the same thing with RewriteRules
On Sat, 26 Feb 2005 13:04:26 +0100 (MET),
sarah.simbad@women-at-work.org <sa...@women-at-work.org> wrote:
> fyi (those who havent followed everything...like me)
>
> http://article.gmane.org/gmane.comp.java.tapestry.user/11099
>
>
> > On Feb 17, 2005, at 9:58 AM, Kevin Menard wrote:
> > >
> > > It should support them, insofar as the patches in the Wiki still
> > > apply. Adaptable URLs aren't going to be official until 3.1. With
> > > that being said, I'll patching the code shortly (maybe over the
> > > weekend) and making the JARs available if anyone wants -- unless
> > > someone beats me to it, in which case, great, less work for me :-)
> >
> > Better late than never. The patched JARs can be downloaded from the
> > Bookmarker repository:
> >
> > http://www.negativetwenty.net/svn/bookmarker/trunk/lib/
> >
> > I haven't gotten around to making a patch to the codebase yet, but I'll
> > send an update when I do.
> >
> > --
> > Kevin
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
--
- Ramin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Friendly URLs and Tapestry
Posted by sa...@women-at-work.org.
fyi (those who havent followed everything...like me)
http://article.gmane.org/gmane.comp.java.tapestry.user/11099
> On Feb 17, 2005, at 9:58 AM, Kevin Menard wrote:
> >
> > It should support them, insofar as the patches in the Wiki still
> > apply. Adaptable URLs aren't going to be official until 3.1. With
> > that being said, I'll patching the code shortly (maybe over the
> > weekend) and making the JARs available if anyone wants -- unless
> > someone beats me to it, in which case, great, less work for me :-)
>
> Better late than never. The patched JARs can be downloaded from the
> Bookmarker repository:
>
> http://www.negativetwenty.net/svn/bookmarker/trunk/lib/
>
> I haven't gotten around to making a patch to the codebase yet, but I'll
> send an update when I do.
>
> --
> Kevin
>
>
> ---------------------------------------------------------------------
> 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: Friendly URLs and Tapestry
Posted by Kevin Menard <ni...@negativetwenty.net>.
On Feb 17, 2005, at 9:58 AM, Kevin Menard wrote:
>
> It should support them, insofar as the patches in the Wiki still
> apply. Adaptable URLs aren't going to be official until 3.1. With
> that being said, I'll patching the code shortly (maybe over the
> weekend) and making the JARs available if anyone wants -- unless
> someone beats me to it, in which case, great, less work for me :-)
Better late than never. The patched JARs can be downloaded from the
Bookmarker repository:
http://www.negativetwenty.net/svn/bookmarker/trunk/lib/
I haven't gotten around to making a patch to the codebase yet, but I'll
send an update when I do.
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Friendly URLs and Tapestry
Posted by Kevin Menard <ni...@negativetwenty.net>.
On Feb 17, 2005, at 5:21 AM, Michal Hlavac wrote:
> hello,
>
> does Tapestry 3.02 support friendly URLs?
It should support them, insofar as the patches in the Wiki still apply.
Adaptable URLs aren't going to be official until 3.1. With that being
said, I'll patching the code shortly (maybe over the weekend) and
making the JARs available if anyone wants -- unless someone beats me to
it, in which case, great, less work for me :-)
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org