I am using the example documented here
http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/mixins/OnEvent.html
and I can't get the context optional parameter to work. 

The relevant code is as follows
*******************
<input t:id="code" t:type="TextField" translate="string" validate="required" 
                                                        t:mixins="autocomplete, 
ck/OnEvent"
                                        event="change"
onCompleteCallback="onTextFieldCompleteFunction"
                                        value="auxInvoicedItemUI?.code"
context="${myContext}"/>
*******************
public Object onChangeEvent(List<String> values){}
*******************
    public List<String> getMyContext()
    {
        List<String> list = new ArrayList<String>();
        list.add("code101XXX");
        list.add(String.valueOf(0));
        list.add("codeXXX");
        return list;    
    }
*******************
The problem is that the values parameter of onChangeEvent(List<String>
values)
always returns one value which is the value of
value="auxInvoicedItemUI?.code"

Is there anyway I can have the values parameter also containing the values
returned by getMyContext() method?

Petros



-- 
View this message in context: 
http://n2.nabble.com/ck-OnEvent-with-Context-tp3431473p3431473.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to