public void apply(FacesContext context, AspectInvocation invocation) throws IOException { setInvocation(invocation); try { this.proceedCalled = false; super.encodeChildren(context); if (!proceedCalled) { invocation.proceed(); } } finally { clearInvocation(); } }
@Override public String getClientId(FacesContext context) { if (invocation != null) { this.clientId = getId(); if (this.clientId == null) { setId(generateCliendId(context)); this.clientId = getId(); } return new StringBuilder(invocation.getComponent().getClientId(context)) .append(UINamingContainer.getSeparatorChar(context)) .append(clientId) .toString(); } return super.getClientId(context); }
private void setInvocation(AspectInvocation invocation) { this.invocation = invocation; setAdvised(invocation.getComponent()); }