You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Michael Heinen <mh...@recommind.com> on 2006/10/24 19:00:22 UTC
RE: datascroller - duplicated ids with ajax
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:mhn@recommind.com]
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