dev@jsftemplating.java.net

Re: JSFTemplating: if command event

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Mon, 04 Dec 2006 12:17:57 -0800

Yep!

FYI, there are 2 types of if's (actually 3, but the 3rd is
transparent). An if component (or LayoutElement, the 3rd type), and an
if handler. The if handler can be used inside any event:

<!command
    handler1(x="y");
    if ("true|false") {
       handler2();
       handler3(name='value');
    }
    handler4(something='else');
/>

I hope this helps!

Ken Paulsen
https://jsftemplating.dev.java.net

Senthil Chidambaram wrote:
> Can we have
> if(check for something) call a handler in command event. What I'm
> trying to ask is, can we have if statement in command event.
>
> thx
> Senthil