You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2005/04/05 22:11:47 UTC

[Jakarta-tapestry Wiki] Update of "FriendlyUrls" by PaulFerraro

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-tapestry Wiki" for change notification.

The following page has been changed by PaulFerraro:
http://wiki.apache.org/jakarta-tapestry/FriendlyUrls

The comment on the change is:
Updated custom AssetService to reflect Tapestry-3.0.3

------------------------------------------------------------------------------
       */
      public ILink getLink(IRequestCycle requestCycle, IComponent component, Object[] parameters)
      {
-         if (Tapestry.size(parameters) != 1)
+         if (Tapestry.size(parameters) != 2)
          {
-             throw new ApplicationRuntimeException(Tapestry.format("service-single-parameter", Tapestry.ASSET_SERVICE));
+             throw new ApplicationRuntimeException(Tapestry.format("service-incorrect-parameter-count", Tapestry.ASSET_SERVICE, new Integer(2)));
          }
          
          String suffix = requestCycle.getEngine().getSpecification().getProperty(BaseEngine.SERVICE_URL_SUFFIX);