incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: How to handle a button action in ShowOneTab
Date Tue, 09 May 2006 16:18:30 GMT
What does the "action" return?  If you want to keep the UI the
way it was, return null.

-- Adam


On 5/9/06, Martin Denham <mjdenham@gmail.com> wrote:
> 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 <mjdenham@gmail.com> 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
> >
> >
>

Mime
View raw message