Revisiting the topic : Programmatically disclosing a ShowDetailItem in a <af:panelTabbed>
Sometime back I blogged about Programmatically disclosing a ShowDetailItem in a <af:panelTabbed>. In today's post I'm revisiting this topic to address the same usecase for applications with customization(change persistence) ON. If the customization is enabled you may need to use appropriate ChangeManager APIs for persisting the changes that you do programmatically. Otherwise during rendering ChangeManager will override your programmatic changes with the state for the component that is persisted in the change manger during the last user interaction. So the code snippet posted in my previous blog post needs to have following ChangeManager APIs as well to make this working for an application that use "Change Persistence/Customization". The precious post has the full code sample. For a complete working sample, you need to change displaySelectedItem(...) given in the last post's sample with the code snippet given below.