Program: 60623
Project: 60623
Buggy source:
public <T extends AbstractAttributableTO>ResultSetPanel(final String id,final boolean filtered,final NodeCond searchCond,final PageReference callerRef){
  super(id);
  setOutputMarkupId(true);
  page=(BasePage)callerRef.getPage();
  this.filtered=filtered;
  this.filter=searchCond;
  this.feedbackPanel=page.getFeedbackPanel();
  editmodal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  editmodal.setInitialHeight(EDIT_MODAL_WIN_HEIGHT);
  editmodal.setInitialWidth(EDIT_MODAL_WIN_WIDTH);
  editmodal.setCookieName("String_Node_Str");
  add(editmodal);
  displaymodal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  displaymodal.setInitialHeight(DISPLAYATTRS_MODAL_WIN_HEIGHT);
  displaymodal.setInitialWidth(DISPLAYATTRS_MODAL_WIN_WIDTH);
  displaymodal.setCookieName("String_Node_Str");
  add(displaymodal);
  statusmodal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  statusmodal.setInitialHeight(STATUS_MODAL_WIN_HEIGHT);
  statusmodal.setInitialWidth(STATUS_MODAL_WIN_WIDTH);
  statusmodal.setCookieName("String_Node_Str");
  add(statusmodal);
  container=new WebMarkupContainer("String_Node_Str");
  container.setOutputMarkupId(true);
  add(container);
  updateResultTable(false);
  AjaxLink displayAttrsLink=new IndicatingAjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    final AjaxRequestTarget target){
      displaymodal.setPageCreator(new ModalWindow.PageCreator(){
        private static final long serialVersionUID=-7834632442532690940L;
        @Override public Page createPage(){
          return new DisplayAttributesModalPage(page.getPageReference(),displaymodal);
        }
      }
);
      displaymodal.show(target);
    }
  }
;
  displayAttrsLink.add(new Behavior(){
    private static final long serialVersionUID=1469628524240283489L;
    @Override public void onComponentTag(    final Component component,    final ComponentTag tag){
      if (resultTable.getRowCount() > rows) {
        tag.remove("String_Node_Str");
        tag.put("String_Node_Str","String_Node_Str");
      }
 else {
        tag.remove("String_Node_Str");
        tag.put("String_Node_Str","String_Node_Str");
      }
    }
  }
);
  MetaDataRoleAuthorizationStrategy.authorize(displayAttrsLink,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  container.add(displayAttrsLink);
  final Form paginatorForm=new Form("String_Node_Str");
  container.add(paginatorForm);
  final DropDownChoice<Integer> rowsChooser=new DropDownChoice<Integer>("String_Node_Str",new PropertyModel(this,"String_Node_Str"),preferences.getPaginatorChoices());
  rowsChooser.add(new AjaxFormComponentUpdatingBehavior("String_Node_Str"){
    private static final long serialVersionUID=-1107858522700306810L;
    @Override protected void onUpdate(    final AjaxRequestTarget target){
      preferences.set(getRequest(),getResponse(),Constants.PREF_USERS_PAGINATOR_ROWS,String.valueOf(rows));
      final EventDataWrapper data=new EventDataWrapper();
      data.setTarget(target);
      send(getParent(),Broadcast.BREADTH,data);
    }
  }
);
  paginatorForm.add(rowsChooser);
  setWindowClosedReloadCallback(statusmodal);
  setWindowClosedReloadCallback(editmodal);
  setWindowClosedReloadCallback(displaymodal);
}

Fixed version (ground truth):
public <T extends AbstractAttributableTO>ResultSetPanel(final String id,final boolean filtered,final NodeCond searchCond,final PageReference callerRef){
  super(id);
  setOutputMarkupId(true);
  page=(BasePage)callerRef.getPage();
  this.filtered=filtered;
  this.filter=searchCond;
  this.feedbackPanel=page.getFeedbackPanel();
  editmodal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  editmodal.setInitialHeight(EDIT_MODAL_WIN_HEIGHT);
  editmodal.setInitialWidth(EDIT_MODAL_WIN_WIDTH);
  editmodal.setCookieName("String_Node_Str");
  add(editmodal);
  displaymodal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  displaymodal.setInitialHeight(DISPLAYATTRS_MODAL_WIN_HEIGHT);
  displaymodal.setInitialWidth(DISPLAYATTRS_MODAL_WIN_WIDTH);
  displaymodal.setCookieName("String_Node_Str");
  add(displaymodal);
  statusmodal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  statusmodal.setInitialHeight(STATUS_MODAL_WIN_HEIGHT);
  statusmodal.setInitialWidth(STATUS_MODAL_WIN_WIDTH);
  statusmodal.setCookieName("String_Node_Str");
  add(statusmodal);
  container=new WebMarkupContainer("String_Node_Str");
  container.setOutputMarkupId(true);
  add(container);
  rows=preferences.getPaginatorRows(getRequest(),Constants.PREF_USERS_PAGINATOR_ROWS);
  updateResultTable(false);
  final AjaxLink displayAttrsLink=new IndicatingAjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    final AjaxRequestTarget target){
      displaymodal.setPageCreator(new ModalWindow.PageCreator(){
        private static final long serialVersionUID=-7834632442532690940L;
        @Override public Page createPage(){
          return new DisplayAttributesModalPage(page.getPageReference(),displaymodal);
        }
      }
);
      displaymodal.show(target);
    }
  }
;
  displayAttrsLink.add(new Behavior(){
    private static final long serialVersionUID=1469628524240283489L;
    @Override public void onComponentTag(    final Component component,    final ComponentTag tag){
      if (resultTable.getRowCount() > rows) {
        tag.remove("String_Node_Str");
        tag.put("String_Node_Str","String_Node_Str");
      }
 else {
        tag.remove("String_Node_Str");
        tag.put("String_Node_Str","String_Node_Str");
      }
    }
  }
);
  MetaDataRoleAuthorizationStrategy.authorize(displayAttrsLink,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  container.add(displayAttrsLink);
  final Form paginatorForm=new Form("String_Node_Str");
  container.add(paginatorForm);
  final DropDownChoice<Integer> rowsChooser=new DropDownChoice<Integer>("String_Node_Str",new PropertyModel(this,"String_Node_Str"),preferences.getPaginatorChoices());
  rowsChooser.add(new AjaxFormComponentUpdatingBehavior("String_Node_Str"){
    private static final long serialVersionUID=-1107858522700306810L;
    @Override protected void onUpdate(    final AjaxRequestTarget target){
      preferences.set(getRequest(),getResponse(),Constants.PREF_USERS_PAGINATOR_ROWS,String.valueOf(rows));
      final EventDataWrapper data=new EventDataWrapper();
      data.setTarget(target);
      data.setRows(rows);
      send(getParent(),Broadcast.BREADTH,data);
    }
  }
);
  paginatorForm.add(rowsChooser);
  setWindowClosedReloadCallback(statusmodal);
  setWindowClosedReloadCallback(editmodal);
  setWindowClosedReloadCallback(displaymodal);
}