I think you should still be good, you just have to inject the
RequestPathOptimizer and pass that along to the LinkImpl.
On Jan 11, 2008 11:03 AM, Daniel Jue <[EMAIL PROTECTED]> wrote:
> In 5.0.7 (and previously), I used this code:
>
> private Link getLink() {
> logger.info("request.getContextPath() " +
> request.getContextPath());
> Link link = new LinkImpl(response, request.getContextPath(),
> Constants.J_ACEGI_SECURITY_CHECK);
> link.addParameter(Constants.J_USERNAME, username);
> link.addParameter(Constants.J_PASSWORD, password);
> return link;
> }
>
>
> Since LinkImpl is now
>
> public LinkImpl(Response response, RequestPathOptimizer optimizer,
> String contextPath,
> ComponentInvocation invocation, boolean forForm)
>
> Is there a new preferred way of creating custom links like I was doing
> before? Or should I try and mimic what the LinkImpl package private
> code does:
>
> LinkImpl(Response response, RequestPathOptimizer optimizer, String
> contextPath, String targetPath, boolean forForm)
> {
> this(response, optimizer, contextPath,
> new ComponentInvocationImpl(new
> OpaqueConstantTarget(targetPath), new String[0], null), forForm);
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]