returnString.append("<script>setSelectToArrayOfEntities(window.document.forms[0]." + childSelectName + ",allChildren(),childPopUpStringForAll)</script>\n");
String children = "allChildren("+parentsChildrenId+")"; if(selectedParent() != null) { children = "getParentEntityForId(" + selectedParent().hashCode() + ").children()"; } returnString.append("<script language=\"JavaScript\">\nsetSelectToArrayOfEntities(window.document." + formName() + "." + childSelectName + "," + children +",childPopUpStringForAll)\n</script>\n");
    public String hiddenFormElementStrings() {        StringBuffer returnString;        returnString = new StringBuffer(500);        if (selectedParent() != null) {            returnString.append("<input type=\"hidden\" name=\""+selectedParentId+"\" value=\"" + selectedParent().hashCode() + "\">\n");        } else {            returnString.append("<input type=\"hidden\" name=\""+selectedParentId+"\" value=\"\">\n");        }        if (selectedChild() != null) {            returnString.append("<input type=\"hidden\" name=\""+selectedChildId+"\" value=\"" + selectedChild().hashCode() + "\">\n");        } else {            returnString.append("<input type=\"hidden\" name=\""+selectedChildId+"\" value=\"\">\n");        }        returnString.append("<script>setSelectToArrayOfEntities(window.document.forms[0]." + childSelectName + ",allChildren(),childPopUpStringForAll)</script>\n");        return returnString.toString();    }