I have a problem with the datascroller and duplicated ids in combination with ajax4jsf.

HtmlDataScrollerRenderer re-creates commandLinks on every rendering in the getLink methods.

Is it possible to reuse existing components or clear the existing components before creating new ones?

 

E.g. can I clear the children of the uiComponent in the encodeBegin method of the renderer?

Or has this any side effects?

 

public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException {

  uiComponent.getChildren().clear();

  super.encodeBegin(facesContext, uiComponent);

}

 

Michael

Reply via email to