TMLPortlet portlet = tmlContext.getportlet();
if (portlet == null) {
this.addWarning("Current user has no portlet registration", true);
return;
}
result = portlet.itemlist(itemName);
}
else if (type.equals("tmlform")) {
TMLForm form = tmlContext.gettmlform();
if (form == null) {
addWarning("There is no current WebTML form at this position in the current request");