Re: creating an InPlaceSelect control

2011-01-27 Thread hese
Yes, I solve my issue using OnEvent using this post: http://tapestry.1045711.n5.nabble.com/ck-OnEvent-with-Context-td2433888.html looks like chenille kit doesnt handle context values very well. but the problem with the solution offered in the above post is that the code tries to get the context

Re: creating an InPlaceSelect control

2011-01-26 Thread Josh Canfield
>    void beginRender(MarkupWriter writer) { >                writer.element("t:select", >                                "t:id", getClientId(), >                                "model", model, >                                "value", value); > >        resources.renderInformalParameters(writer);

Re: creating an InPlaceSelect control

2011-01-26 Thread hese
If you see my previous post, I have included my own context value.. context="program.id" Using firebug I see that the post for the onChange event looks like this - http://localhost:8080/fcc/programs.inplaceselect:internalevent/9007 9007 is program.id...but that doesnt get passed into the eve

Re: creating an InPlaceSelect control

2011-01-26 Thread LLTYK
Just a guess, but change your tml to have a context along with changing the event handler. t:mixins="ck/OnEvent" t:event="change" t:context="contextyoumakeup" -- View this message in context: http://tapestry-users.832.n2.nabble.com/creating-an-InPlaceSelect-control-tp5963248p5963981.html Sent

Re: creating an InPlaceSelect control

2011-01-26 Thread hese
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 wi

Re: creating an InPlaceSelect control

2011-01-26 Thread hese
thanks for your response. Yes, I saw some examples using onEvent mixins...but my use case is that i have to generate this select control for every row in a table/grid. So if I use this mixin, will it be able to get back the particular row id for which the onChange event occured, or just the val

Re: creating an InPlaceSelect control

2011-01-26 Thread LLTYK
Just use the chenillekit onevent mixin. Unfortunately it'll only pass the selected value as a string. So you'd have to translate the string back into your object. @OnEvent(component = "TheSelect", value = "change") void onSelected(String value) { } -- View this message in context: