Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Handling close event in UI shell

981554Oct 3 2013 — edited Oct 3 2013

Hi Experts,

I am facing some challenge to figure out where to write close icon action code

  <af:commandNavigationItem id="tabIndex" rendered="#{tab.active}" immediate="false"

                                        actionListener="#{viewScope.dynTabManager.tabActivatedEvent}"

                                        inlineStyle="#{tab.dirty ? 'font-style: italic' : ''}"

                                        partialSubmit="true"

                                        textAndAccessKey="#{tab.title}"

                                        remove="#{tab.closeable ? 'inherit' : 'no'}"

                                        itemListener="#{viewScope.dynTabManager.removeTab}">

                <f:attribute name="tabId" value="#{tab.id}"/>

</commandNavigationItem>

If we see below link correct answer part

It is stating

"closeIcon commanlink actionListener to be bound to "#{viewScope.tabContext.closeIcon}""

but we don't any componet for close icon it is comming by enablibg

  remove="#{tab.closeable ? 'inherit' : 'no'}" in command navigationItem.

Please help

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2013
Added on Oct 3 2013
2 comments
276 views