dev@jsftemplating.java.net

Re: JSFTemplating: action attribute and command event

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Mon, 11 Sep 2006 12:44:43 -0700

Priti Tiwary wrote:
> Hi,
> i have a button with action attribute and handlers in command event for
> that button. Is it possible that the handlers can change the value of
> action attributes value and decide where to navigate..
>
>
> TO be more elaborate.
> case is as follows:
>
>
> navString is set to abc.jsf in the beginning..
>
> <sun:button id="oneBtn" action="#{navString}">
> <!command
> testHandler(inputValue="#{ipValue}",
> navigationAction=>$attribute{navString})
> </sun:button>
>
>
Hi Priti,
Maybe you can use the navigate handler instead of using the action
attribute of the button.

<sun:button id="oneBtn" >
      <!command
          testHandler(inputValue="#{ipValue}",navigationAction=>$attribute{navString})
          navigate(page="#{navString}")
       !>
</sun:button>


thanks
Anissa
> is it possible that button oneBtn navigates to efg.jsf instead of
> abc.jsf(set initially) if the testHandler changes navString values
> Priti
>
>