Program: 60896
Project: 60896
Buggy source:
public <T extends AbstractAttributableTO>ResultSetPanel(final String id,final boolean filtered,final NodeCond searchCond,final PageReference callerRef){
  super(id);
  setOutputMarkupId(true);
  page=(Users)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);
  final ModalWindow displaymodal=new ModalWindow("String_Node_Str");
  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);
  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(){
    @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(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);
  final ModalWindow displaymodal=new ModalWindow("String_Node_Str");
  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);
  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(){
    @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(editmodal);
  setWindowClosedReloadCallback(displaymodal);
}