Wow, that looks to be the ticket, thanks!

I can't believe I'm still discovering new nooks and crannies in T5.2!

Steve.

On 12 September 2011 19:54, Robert Zeigler <robert.zeig...@roxanemy.com> wrote:
> Have you tried the @BindParameter annotation?
>
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/BindParameter.html
>
> eg:
>
> public class MyMixin {
>    @BindParameter
>    private Object context;
>
>    void setupRender() {
>        context = "some new context";
>    }
> }
>
>
> Robert
>
> On Sep 11, 2011, at 9/1111:25 PM , Steve Eynon wrote:
>
>> Hi,
>>
>> Can mixins contribute / set the parameters of it's container? It's
>> something I've needed to do a couple of times now but have not been
>> able to work out a way.
>>
>> If the container has setters then I know I can do something like:
>>
>> @InjectContainer
>> private MyComponent dave;
>>
>> void setupRender() {
>>    dave.setDrink("Beer");
>> }
>>
>> But I'm trying to change parameters which don't have a setter -
>> specifically the context of the core Form component.
>>
>> Can anyone enlighten me? If Mixins can container parameters, then
>> there really would be nothing they couldn't do!
>>
>> Cheers,
>>
>> Steve.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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

Reply via email to