@Override protected void encodeHiddenAttributes( ResponseWriter responseWriter, OutputTooltip tooltip, boolean first) throws IOException { FacesContext facesContext = FacesContext.getCurrentInstance(); // contentBox String clientId = tooltip.getClientId(facesContext); String contentBox = StringPool.POUND + ComponentUtil.escapeClientId(clientId); encodeNonEscapedString(responseWriter, AlloyRendererUtil.CONTENT_BOX, contentBox, first); first = false; // render : true encodeWidgetRender(responseWriter, first); }
@Override public void encodeJavaScriptCustom(FacesContext facesContext, UIComponent uiComponent) throws IOException { ResponseWriter responseWriter = facesContext.getResponseWriter(); OutputTooltip tooltip = (OutputTooltip) uiComponent; // alloy's divs should be in place and hidden by now. // so we need to unhide the div we have hidden until now. // any chance for blinking should be over by now. responseWriter.write( "A.one('" + StringPool.POUND + ComponentUtil.escapeClientId(tooltip.getClientId(facesContext)) + "')._node['style'].display = 'block';"); }