Thursday, September 27, 2012

How to determine the selected tab name with component


Use Case :  If there are multiple <af:showDetailTab> components in <af::pnaelTabbed> , How to identify what tab has been selected ?

Solution :   Use <af:setPropertyListener> component inside <af:showDetailTab> and specify 'type =disclosure' and set a specific value to a page flow scope variable or any binding attribute.



            <af:showDetailItem text="Employee" id="sdi2" >
                <af:setPropertyListener from="EMP"
                                        to="#{bindings.TabName.inputValue}"
                                        type="disclosure"/>
              </af:showDetailItem>


#{bindings.TabName.inputValue} - View object attribute Or you can also specify #{pageFlowScope.tabName}

1 comment: