Element sessionTitleElem = (Element)sessionNodeList.addElement();
ItsNatHttpSession itsNatSession = (ItsNatHttpSession)sessions.get(i);
String sessionId = itsNatSession.getId();
ItsNatVariableResolver level1 = request.createItsNatVariableResolver();
level1.setLocalVariable("sessionId",sessionId);
level1.setLocalVariable("agentInfo",itsNatSession.getUserAgent());
level1.resolve(sessionTitleElem);
ItsNatDocument[] remDocs = itsNatSession.getItsNatDocuments();
Element docsParent = ItsNatDOMUtil.getElementById("docs",sessionTitleElem); // Pues estar� duplicado
ElementList docNodeList = factory.createElementList(docsParent,false);
if (remDocs.length > 0)
{
docNodeList.removeAllElements(); // Elimina el patr�n y el "No Documents Loaded" iniciando la lista
for(int j = 0; j < remDocs.length; j++)
{
Element docInfoElem = (Element)docNodeList.addElement();
ItsNatDocument remDoc = remDocs[j];
ItsNatVariableResolver level2 = level1.createItsNatVariableResolver();
level2.setLocalVariable("docId",remDoc.getId());
level2.setLocalVariable("docName",remDoc.getItsNatDocumentTemplate().getName());
level2.resolve(docInfoElem);
}
}
else
{
docNodeList.removeElementAt(0); // Elimina el patr�n (el primero) pero no el "No Documents Loaded"