Achso, in meiner Klasse die Function aus dem beispiel von TYPO3.org:
public function ajxRequest($params, &$ajaxObj) {
$this->init();
// do the logic...
if (empty($this->tree)) {
$ajaxObj->setError('An error occurred');
} else {
$ajaxObj->addContent('tree', 'The tree works...');
}
}
Danke und Gruß!