but lets say you have a component class where the component applies a mixin to itself:
public class MyComponent { @Mixin // want this applied to MyComponent private SomeMixin someMixin; } how do you specify parameters for SomeMixin? On Fri, 2007-07-13 at 14:51 +0200, Davor Hrg wrote: > please check the bottom of the page... also read the page again > http://tapestry.apache.org/tapestry5/tapestry-core/guide/mixins.html > > @Mixin annotation just say what mixin you are adding, > after that the component is joined with the mixin so > to define a parameter, you can do it in the template or via > @Component annotation > > the example on the docs shows it: > > @Component(parameters={"param=someValue", . . . }) @Mixin("Autocomplete") > private TextField _userId; > > Davor Hrg > > > On 7/13/07, Dan Adams <[EMAIL PROTECTED]> wrote: > > > > Yeah, my mixin has a required parameter but when I use it like this in > > my component: > > > > @Mixin > > private Confirm confirm; > > > > I have no way of specifying the parameters. It seems like @Mixin needs > > to accept a parameters parameter. > > > > On Fri, 2007-07-13 at 07:28 +0200, Davor Hrg wrote: > > > I belive you can declare parameters in you mixin just as you would in a > > > component, > > > I haven't tried it yet, but if you hadn't, please read this page from > > > tapestry site: > > > > > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/mixins.html > > > > > > Davor Hrg > > > > > > On 7/12/07, Dan Adams <[EMAIL PROTECTED]> wrote: > > > > > > > > When you apply a mixin with @Mixin how do you specify parameters? Is > > > > there an open ticket for this? > > > > > > > > -- > > > > Dan Adams > > > > Senior Software Engineer > > > > Interactive Factory > > > > 617.235.5857 > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > > Dan Adams > > Senior Software Engineer > > Interactive Factory > > 617.235.5857 > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]