use of com.webobjects.appserver.WOElement in project wonder-slim by undur.
the class WOHelperFunctionParser method didParseClosingWebObjectTag.
public void didParseClosingWebObjectTag(String s, WOHelperFunctionHTMLParser htmlParser) throws WOHelperFunctionDeclarationFormatException, WOHelperFunctionHTMLFormatException, ClassNotFoundException {
WOHTMLWebObjectTag webobjectTag = _currentWebObjectTag.parentTag();
if (webobjectTag == null) {
throw new WOHelperFunctionHTMLFormatException("<" + getClass().getName() + "> Unbalanced WebObject tags. Either there is an extra closing </WEBOBJECT> tag in the html template, or one of the opening <WEBOBJECT ...> tag has a typo (extra spaces between a < sign and a WEBOBJECT tag ?).");
}
try {
WOElement element = _currentWebObjectTag.dynamicElement(_declarations, _languages);
_currentWebObjectTag = webobjectTag;
_currentWebObjectTag.addChildElement(element);
} catch (RuntimeException e) {
throw new RuntimeException("Unable to load the component named '" + componentName(_currentWebObjectTag) + "' with the declaration " + prettyDeclaration((WODeclaration) _declarations.objectForKey(_currentWebObjectTag.name())) + ". Make sure the .wo folder is where it's supposed to be and the name is spelled correctly.", e);
}
}
Aggregations