/** * Add a form component value to the url line of a popup request * * @param comp The component to get the value from * @param requestParmName The name of the parameter to add to the URL line */ public void addFormComponentValueToPopup(HtmlComponent comp, String requestParmName) { if (comp == null) return; if (_popupURLLineValues == null) _popupURLLineValues = new Vector<FormComponentInfo>(); boolean isInDataTable = false; HtmlComponent parent = comp.getParent(); while (parent != null) { if (parent instanceof JspDataTable || parent instanceof JspList || parent instanceof HtmlDataTable) { isInDataTable = true; break; } parent = parent.getParent(); } if (comp instanceof HtmlLookUpComponent) comp = ((HtmlLookUpComponent) comp).getEditField(); String name = comp.getFormString() + comp.getFullName(); FormComponentInfo inf = new FormComponentInfo(); inf.attName = requestParmName; inf.compName = name; inf.isInDataTable = isInDataTable; _popupURLLineValues.add(inf); }