if (formName == null) {
throw new IllegalArgumentException("sunShine.registerInputField: Form is required");
}
DocumentFragment value = null;
SessionContext context = this.getContext(contextName);
Session session = this.getSession(false);
if (session == null) {
throw new IllegalArgumentException("sunShine.registerInputField: Session is required for context " + contextName);
}
synchronized(session) {
Map inputFields = (Map)session.getAttribute(SunShine.ATTRIBUTE_INPUTXML_STORAGE);
if (inputFields == null) {
inputFields = new HashMap(10);
session.setAttribute(SunShine.ATTRIBUTE_INPUTXML_STORAGE, inputFields);
}
inputFields.put(name, new Object[] {context, path, formName});
value = context.getXML(path);
}
if (this.getLogger().isDebugEnabled() == true) {
this.getLogger().debug("END registerInputField value="+value);
}