First I tried using the disclosed attribute:
<af:showDetailItem text="User's Customers" disclosed="#{backbean.tab2}">
<ui:include src="tab2.xhtml" />
which did not initially work until I discovered that I had forgotten
to enclose the content of tab2.xhtml with ui:composition.
Now if I call setTab2(true) in the action method tab2 is shown on
return from the action.
Is there a better way to do this?
--Martin
On 5/9/06, Martin Denham <[EMAIL PROTECTED]> wrote:
I have a ShowOneTab containing 3 tabs. Tab 2 contains a Find button
which populates a list displayed on tab 2.
The problem is that tab 1 is always displayed after processing the
action associated with the button, but the button was on tab 2.
What is the correct way to handle a button on a tab and return to the
same tab containing the button?
Thanks
Martin