You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dan Adams <da...@ifactory.com> on 2005/10/12 22:13:52 UTC

mistake in the external page docs

It seems like there is an error in the ExternalService docs. It says to
use a url in the form:

http://localhost/myapp?service=external&context=ViewCustomer&sp=5056

but that throws an exception:

Parameter name must not be null.
at
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:239) 
  * org.apache.tapestry.engine.ExternalService.service(ExternalService.java:139)
  * 
so I changed it to the form:

http://localhost/myapp?service=external&page=ViewCustomer&sp=5056

and it worked(?!)

-- 
Dan Adams
Software Engineer
Interactive Factory


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


Re: mistake in the external page docs

Posted by Howard Lewis Ship <hl...@gmail.com>.
That documentation is out of date; it is for Tapestry 3.0.  Tapestry
4.0 users the more verbose variant (where service and page are
seperate parameters) but will typically encode those as path
information inside a friendly URL.

On 10/12/05, Dan Adams <da...@ifactory.com> wrote:
> It seems like there is an error in the ExternalService docs. It says to
> use a url in the form:
>
> http://localhost/myapp?service=external&context=ViewCustomer&sp=5056
>
> but that throws an exception:
>
> Parameter name must not be null.
> at
> org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:239)
>   * org.apache.tapestry.engine.ExternalService.service(ExternalService.java:139)
>   *
> so I changed it to the form:
>
> http://localhost/myapp?service=external&page=ViewCustomer&sp=5056
>
> and it worked(?!)
>
> --
> Dan Adams
> Software Engineer
> Interactive Factory
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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