Was hoping something more abstract solution, like getting the current instances of active tabs and find out what is the active at that running moment. Ah well, its 2013 and still disappointed by Java.
Thanks a lot for your help Subramanina, i used something similar to your suggestion:
1) i have change my main function, and set it to accept a string (that will be the tab's id) for my purpose
2) on each tab, i add a disclosure event function. Inside that, i just simply save the tab's id on a private variable. So when ever
i want the current active tab id, i just get that variable's value.
3) PartialTrigger the panel with tabs
Almost the same solution with yours, just mine is less professional since i lost you there