I got it. For my initial problem, if anyone would be interested in knowing how I tackled it, I've added a boolean attribute to every tab panel object in javascript on creation. Then, when a tab gets activated, I check its value and reload a tab if necessary: