* sub.setVariablePrefix("{"); sub.setVariableSuffix("}");
* String url = sub.replace(urlPattern); return url; }
*/
return null;
} else {
ActionDefinition actionDef = Router.reverse(action, paramMap);
// was doing some hacking for caching. don't do it now for
// Compatibility with remote
// Route route = actionDef.route;
// // find is the route is cacheable. it's hard to cache
// path
// // with constrained parameter
// //
// String path = route.path;
// if (!path.contains("<")) {
// // cacheable
// if (path.endsWith("?"))
// path = path.substring(0, path.length() - 1);
// getActionCache().put(k, path);
// }
return actionDef.toString();
}
} catch (ActionNotFoundException e) {
throw new RuntimeException(e + ". No matching route in reverse lookup: " + actionString);
// throw new NoRouteFoundException(action, null);
}