You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are multiple tabs and the first one is disabled, but the last one is always enabled, the activeIndex="-1" does not work to load the last enabled Tab. The offset is only incremented on active Tabs ...
for (intindex = 0; index < tabs.size(); index++) {
finalTabtab = (Tab) tabs.get(index);
if (tab.isRendered()) {
finalintcurrentIndex = numberOfTabsRendered;
Runnabler = newRunnable() {
intoffset = 0;
publicvoidrun() {
try {
encodeTabPane(context, writer, tab, (currentIndex+offset == currentlyActiveIndex) && (!tabView.isDisabled()));
offset++;
} catch (IOExceptionex) {
// exotic case, suffice it to log itLOGGER.log(Level.SEVERE, "An exception occurred while rendering a tab.", ex);
}
}
};
if (tab.getValue() == null) {
r.run();
numberOfTabsRendered ++;
} else {
numberOfTabsRendered += ((Tab)tabs.get(currentIndex)).encodeTabs(context, r);
}
}
}
As for your question: there are no unit tests. We've started to think about tests when it was too late. Plus, we didn't find out yet how to write useful and efficient unit tests for JSF components with a reasonable effort.
Version: 1.4.1, 1.5.0-SNAPSHOT
If there are multiple tabs and the first one is disabled, but the last one is always enabled, the activeIndex="-1" does not work to load the last enabled Tab. The offset is only incremented on active Tabs ...
Btw. where do i find the unit-tests ? https://github.com/TheCoder4eu/BootsFaces-Tests seems to be outdated ..
The text was updated successfully, but these errors were encountered: