private AWArrayManager formInputIds (AWEncodedString formElementId)
{
String formElementIdString = formElementId.string();
AWPage page = page();
AWArrayManager formInputIds = page.getFormIds(formElementIdString);
if (formInputIds == null) {
formInputIds = new AWArrayManager(AWElementIdPath.class);
page.putFormIds(formElementIdString, formInputIds);
}
else {
formInputIds.clear();
}
// add all "global" form input ids
// note that this takes care of all forms that occur after the recording of
// the global form input id. All forms that occur before the global element id
// is recorded are taken care of by AWPage.addGlobalFormInputIdPath().
List globalPaths = requestContext().getGlobalFormInputIdPaths();
if (globalPaths != null) {
for (int i=0, size=globalPaths.size(); i < size; i++) {
formInputIds.addElement(globalPaths.get(i));
}
}
return formInputIds;
}