Thanks for this answer Ivan.
But i'm still stuck on this :(
I've changed the data to be a function and yes, my data is shown on screen and when i expand something that isn't loaded, an ajax call is made. And this is where i'm stuck.
The request is made.. I can see the success of it but no data is displayed.
Shouldn't we use .complete instead of .done? How should i return the data on this ajax request?
$.ajax({
url: 'GetEntityNodes.jsf',
data: {
rand : new Date().getTime()
}
}).done(function(d) {
cb(d.responseText);
});
This is how i'm performing my ajax call.. It works but nothing is displayed on scren :(