tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard Lewis Ship" <hls...@gmail.com>
Subject Re: T5: Need HTTP Forward
Date Tue, 04 Mar 2008 19:04:26 GMT
You could have two onActivate() methods, maybe something like:

public class MyPage
{
  @Persist private String _b;

 @Inject private ComponentResources _resources;

 Object onActivate(String a, String b)
 {
    _b = b;

    return _resources.createPageLink(_resources.getPageName(), false, a);
 }

 void onActivate(String a) { ... }
}

Event methods with the same name are invoked in order of parameter
count, largest number to fewest.


On Tue, Mar 4, 2008 at 9:12 AM, Bill Holloway <bill.holloway@gmail.com> wrote:
> I need an http forward like this:
>
>  http://example.org/mypage/a/b --> http://example.org/mypage/a
>
>  The last two path elements are activation context items.  I'm chopping
>  off "/b" to shorten the URL to a form that is desirable for
>  bookmarking.  I could persist the "/b" as a persistent page property,
>  but I'd rather not.
>
>  Bill
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>  For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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


Mime
View raw message