Default tab closing icon in ADF UI Shell is located in the top right corner. Users are not really happy about this and there is a demand to have the same positioning as you can see in the Web browsers - directly on the tab. Tab placeholders are implemented in ADF UI Shell with af:navigationPane and af:commandNavigationItem components. Component af:navigationPane supports item removal, this means we can implement tab closing functionality directly in the tab. Unfortunately, out of the box ADF UI Shell template in ADF 11g and 12c is not updated with this adjustment. I will explain how you can implement by yourself, you would need to change ADF UI Shell source code.
Sample application is packaged with ADF UI Shell source code, including adjustment for tab closing icon - MultiTaskFlowApp_v3.zip. This is how ADF UI Shell tab looks with adjusted closing icon, directly in the tab:
User can click X icon to close Employees tab, it works perfectly fine:
This adjustment is implemented directly in ADF UI Shell template source code:
Default icon for tab closing is removed, see commented code:
Component af:navigationPane is set with itemRemoval="all" property. This renders and supports tab closing directly in the tab itself:
Component af:commandNavigationItem must be set with itemListener, this allows to implement a custom listener method to close current tab:
By default, close icon becomes visible, only when user moves mouse focus on top of the tab. This could be misleading for the users. However, there is a fix with custom CSS - you can define icon for disclosed and undisclosed tab:
Sample application is packaged with ADF UI Shell source code, including adjustment for tab closing icon - MultiTaskFlowApp_v3.zip. This is how ADF UI Shell tab looks with adjusted closing icon, directly in the tab:
User can click X icon to close Employees tab, it works perfectly fine:
This adjustment is implemented directly in ADF UI Shell template source code:
Default icon for tab closing is removed, see commented code:
Component af:navigationPane is set with itemRemoval="all" property. This renders and supports tab closing directly in the tab itself:
Component af:commandNavigationItem must be set with itemListener, this allows to implement a custom listener method to close current tab:
By default, close icon becomes visible, only when user moves mouse focus on top of the tab. This could be misleading for the users. However, there is a fix with custom CSS - you can define icon for disclosed and undisclosed tab: