} catch (ELException e) {
if (this.tags.size() > 0) {
throw new TagException((Tag) this.tags.peek(), e
.getMessage());
} else {
throw new ELException(this.alias + ": "
+ e.getMessage(), e.getCause());
}
}
}
// KEEP THESE SEPARATE SO LOGIC DOESN'T GET FUBARED
} else if (this.buffer.length() > 0) {
String s = this.buffer.toString();
if (s.trim().length() > 0) {
if (child) {
s = trimRight(s);
}
if (s.length() > 0) {
try {
ELText txt = ELText.parse(s);
if (txt != null) {
if (txt.isLiteral()) {
this.children.add(new UILiteralTextHandler(txt
.toString()));
} else {
this.children.add(new UITextHandler(this.alias,
txt));
}
}
} catch (ELException e) {
if (this.tags.size() > 0) {
throw new TagException((Tag) this.tags.peek(), e
.getMessage());
} else {
throw new ELException(this.alias + ": "
+ e.getMessage(), e.getCause());
}
}
}
}