private void outputPartners(Properties ctx,PrintWriter out,int partnerID,boolean includeAny){
  out.println("<partners>");
  if (includeAny) {
    out.println("<partner id='-1'");
    if (partnerID == 0)     out.println(" selected='selected'");
    out.println(">ANY</partner>");
  }
  for (  MBPartner partner : getAllPartners(ctx)) {
    out.print("<partner id='" + partner.get_ID() + "'");
    if (partnerID == partner.get_ID())     out.print(" selected='selected'");
    out.println(">" + Util.maskHTML(partner.getName()) + "</partner>");
  }
  out.println("</partners>");
}

private void outputPartners ( Properties ctx , PrintWriter out , int partnerID , boolean includeAny ) { out . println ( "<partners>" ) ; if ( includeAny ) { out . println ( "<partner id='-1'" ) ; if ( partnerID == 0 ) out . println ( " selected='selected'" ) ; out . println ( ">ANY</partner>" ) ; } for ( MBPartner partner : getAllPartners ( ctx ) ) { out . print ( "<partner id='" + partner . get_ID ( ) + "'" ) ; if ( partnerID == partner . get_ID ( ) ) out . print ( " selected='selected'" ) ; out . println ( ">" + Util . maskHTML ( partner . getName ( ) ) + "</partner>" ) ; } out . println ( "</partners>" ) ; }
output xml list of business partners
