code: @Override
  	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
  		WContent content = (WContent) component;
  		XmlStringBuilder xml = renderContext.getWriter();
  
  		if (!content.isDisplayRequested()) {
  			// This is the normal situation.
  			return;
  		}
  
  		Object contentAccess = content.getContentAccess();
  
  		if (contentAccess == null) {
  			LOG.warn("No content specified");
  			return;
  		}
  
  		// Ok, the content is available and should be shown
  		switch (content.getDisplayMode()) {
  			case DISPLAY_INLINE:
  			case PROMPT_TO_SAVE:
  				xml.appendTagOpen("ui:redirect");
  				xml.appendUrlAttribute("url", content.getUrl());
  				xml.appendEnd();
  				break;
  
  			case OPEN_NEW_WINDOW:
  				xml.appendTagOpen("ui:popup");
  				xml.appendUrlAttribute("url", content.getUrl());
  				xml.appendAttribute("width", content.getWidth().replaceAll("px", ""));
  				xml.appendAttribute("height", content.getHeight().replaceAll("px", ""));
  				xml.appendOptionalAttribute("resizable", content.isResizable(), "true");
  				xml.appendEnd();
  				break;
  
  			default:
  				throw new IllegalStateException("Invalid display mode: " + content.getDisplayMode());
  		}
  	}
docs: <p>
  Paints the given WContent.</p>
  
  <p>
  This paint method outputs a popup that opens browser window in which the content document will be displayed. The
  component is only rendered for requests in which the display() method of the content component has just been
  called.</p>
  
  <p>
  WContent's handleRequest() method will return the actual PDF document content via the use of an Escape.</p>
  
  @param component the WContent to paint.
  @param renderContext the RenderContext to paint to.