1. Obtaining newly generated clientId of JSF components seamframework.orgpublic String getClientId(String componentId) { FacesContext context = FacesContext.getCurrentInstance(); UIViewRoot root = context.getViewRoot(); UIComponent c = findComponent(root, componentId); return c.getClientId(context); } /** * Finds component with the given id */ private UIComponent findComponent(UIComponent c, String id) { if (id.equals(c.getId())) { return c; } Iterator |