I found the following jira issue and added a comment.

http://issues.apache.org/jira/browse/TOMAHAWK-596

 

I can’t use the datascroller in an a4j:outputpanel due to the duplicated ids.

Did anybody succeed in updating the datascroller via ajax?

 

Any help is highly appreciated.



Michael

 


From: Michael Heinen [mailto:[EMAIL PROTECTED]
Sent: Sonntag, 22. Oktober 2006 15:15
To: MyFaces Discussion
Subject: t:datascroller - duplicated ids with ajax

 

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