hi kevin,
it is currenly not possible to read the parameters of a
component from within a mixin.
i filed a jira entry some time ago... feel free to vote for it :)
https://issues.apache.org/jira/browse/TAPESTRY-1764
g,
kris
-----robert zeigler <[EMAIL PROTECTED]> schrieb: -----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
it is currenly not possible to read the parameters of a
component from within a mixin.
i filed a jira entry some time ago... feel free to vote for it :)
https://issues.apache.org/jira/browse/TAPESTRY-1764
g,
kris
An: "Tapestry users" <users@tapestry.apache.org>
Von: Robert Zeigler <[EMAIL PROTECTED]>
Gesendet von: robert zeigler <[EMAIL PROTECTED]>
Datum: 25.01.2008 04:51PM
Thema: Re: Mixin nudge
Hi Kevin,
I wonder if you could use mixin parameters for this?
Since the value to be operated on is likely to have different names
for different components (certainly no guaranteed name), it seems like
specifying a mixin parameter which tapestry will "autobind" is perhaps
the way to go?
Then you could make your adjustments in (probably) begin render?
Robert
On Jan 25, 2008, at 1/259:22 AM , Kevin Menard wrote:
> Hi,
>
> After writing my "newlines" binding, I got to thinking that it might
> be nice
> if it were just a mixin. I started digging in, but couldn't really
> wrap my
> head around modifying the parent component's bound value.
>
> What I'm looking to do is is basically a value filter. I'd like the
> mixin
> to take the value, apply its filter, and pass on to the next mixin or
> component in the chain. I've actually got several other candidate
> operations in mind as well (truncation, capitalization, URLification).
>
> Right now I'm a bit stuck getting the value and storing it back in.
> It
> looks like mixins are set up primarily to render something before or
> after
> the component, but not necessarily change the component's state.
> So, I'm
> not really sure how to go about this. Any help would be much
> appreciated.
>
> Thanks,
> Kevin
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]