if (!component.isRendered())
{
return;
}
UrlBuffer urlBuffer = (UrlBuffer) component;
String var = (String) urlBuffer.getAttributes().get("var");
String mappingId = (String) component.getAttributes().get("mappingId");
if (mappingId == null)
{
throw new PrettyException("Mapping id was null when attempting to build URL for component: "
+ component.toString() + " <" + component.getClientId(context) + ">");
}
String relative = (String) urlBuffer.getAttributes().get("relative");
PrettyContext prettyContext = PrettyContext.getCurrentInstance(context);
PrettyConfig prettyConfig = prettyContext.getConfig();
UrlMapping urlMapping = prettyConfig.getMappingById(mappingId);