try {
String url = getUrl();
if (url.length()>0) {
HttpServletRequest request = (new FacesContextBroker()).extractHttpServletRequest();
String contextPath = request.getContextPath();
String proxy = contextPath + "/catalog/livedata/liveDataProxy.page";
ResponseWriter writer = context.getResponseWriter();
writer.write(
"<div dojoType=\"gpt.LiveData\" " +
"proxy=\"" + proxy + "\" " +
"url=\"" + url + "\" " +
"mapStyle=\"" +getMapStyle()+ "px\" " +
"mapService=\"" +getMapService()+ "\" " +
"geometryService=\"" +getGeometryService()+ "\" " +
"verbose=\"" +getVerbose()+ "\" " +
"errorMessage=\"" +getErrorMessage()+ "\" " +
"basemapLabel=\"" +getBasemapLabel()+ "\" " +
"tooltips=\"" +getTooltips()+ "\" " +
"onCreatePlaceholder=\"" +getOnCreatePlaceholder()+ "\"></div>"
);
}
} catch (Throwable t) {
MessageBroker messageBroker =
new FacesContextBroker().extractMessageBroker();
messageBroker.addErrorMessage(t);
LogUtil.getLogger().log(Level.SEVERE, "Exception raised.", t);
}
}