Currently, there isn't a good way to do what you want. I just hit a
similar problem for my client and am deciding on the right solution; I
think another callback event, much like passivate, but passed the Link
so it can be customized.

See https://issues.apache.org/jira/browse/TAP5-1190

On Fri, Jun 18, 2010 at 8:30 AM, Joel Halbert <j...@su3analytics.com> wrote:
> I want to return the user to a page that has a context and some query
> params:
>
> I can do this, using Link:
>
>    public Object onSubmit(){
>        Link link = ls.createPageRenderLinkWithContext(Buy.class, product);
>        link.addParameter("x", x);
>        link.addParameter("y", y);
>        return link;
>    }
>
> Directs the user to;
> http://localhost:8080/web/buy/product?x=1&y=2
>
> I want to know if I can easily do the same using Page:
>
>   �...@injectpage
>    private Buy buy;
>    public Object onSubmit() {
>        buy.setProduct(product)
>        return buy;
>    }
>
> And in Buy have an onPassivate to get the correct context
> Buy {
>    String onPassivate90{return product}
> }
>
> Whch gets me the URL:
> http://localhost:8080/web/buy/product
>
> But what's the easiest way of then tacking on the query string I want?
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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

Reply via email to