ok, i tried the mixin ... i am not receiving the context parameter in the
onEvent handler...

I checked the chenillekit's onEvent documentation and they say:

"The context for the link (optional parameter). This list of values will be
converted into strings and included in the URI. The strings will be coerced
back to whatever their values are and made available to event handler
methods."

which means i should also get the context value passed to the event
Handler...I tried increasing the onEvent handler arguments to two (one for
value and one for the context value), but then the onEvent doesnt get called
at all.  With one parameter, i am able to receive the 'value' alone.

code:

<table...>

<select t:type="select" t:id="inPlaceSelect" model="programStatusModel"
context="program.id" value="selectedStatus" t:mixins="ck/OnEvent"
t:event="change"></select>

</table>

@OnEvent(component="inPlaceSelect", value = "change") 
    void onSelected(String value) { 
        logger.error("onEvent:" +  value);
    }



-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/creating-an-InPlaceSelect-control-tp3358181p3358446.html
Sent from the Tapestry - User 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