dev@jsftemplating.java.net

List as input type for handler

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Mon, 09 Oct 2006 09:59:03 -0700

Hi Ken,

Does handler takes in a List as the input type ? I have the following,
and i want to pass the output from getList() to be the input for
doSomething().
Maybe i don't have the syntax right, but i just can't it to work. I can
use Array instead of List if List is not supported.

<!command
    getList( outList=>$attribute{myList});
    doSomething(theList=${myList}) <==== Whats the correct syntax ?
/>

@Handler(id="getList",
    output={
        @HandlerOutput(name="outList", type=java.util.List.class)})


@Handler(id="doSomething",
    input={
        @HandlerInput(name="theList", type=java.util.List.class,
required=true)})

thanks
Anissa.