public int doEndTag() throws MissingAttributeException {
if (this.firstIteration)
{
TableTag tableTag = (TableTag) findAncestorWithClass(this, TableTag.class);
// tableTag can't be null, it has been checked in doStartTag
if (this.value == null)
{
if (getBodyContent() == null)
{
throw new MissingAttributeException(getClass(), //
new String[]{"value", "body content"}); //$NON-NLS-1$ //$NON-NLS-2$
}
this.value = getBodyContent().getString();
}
tableTag.setProperty(this.name, this.value);
this.name = null;
this.value = null;
}
return EVAL_PAGE;
}
Passes attribute information up to the parent TableTag.
When we hit the end of the tag, we simply let our parent (which better be a TableTag) know what the user wants to
change a property value, and we pass the name/value pair that the user gave us, up to the parent
|