tapestry.apache.org/component-mixins.html

If the component and a mixin both define a parameter with the same name, then 
the component wins: the component's parameter will be bound, and the mixin's 
parameter will be unbound.

Alternately, you may prefix the name of the parameter with the unqualified name 
of the Mixin class; this eliminates the ambiguity. Example:

  @Component(parameters={"Autocomplete.id=auto", . . . }) 
@Mixins("Autocomplete", "DefaultFromCookie"})
  private TextField userId;
If the component and a mixin both supports informal parameters, the mixin will 
receive the all the unqualified informal parameters. If more than one Mixin 
supports informal parameters the results are undefined.

Sent from my iPhone

On 22-Feb-2013, at 5:09 AM, bhorvat <horvat.z.bo...@gmail.com> wrote:

> the zone parameter is always null for me.
> 
> call to mixing
> 
> <select t:id="selectType" t:type="select" t:mixins="SelectContextMixin" 
>           t:zone="zone" t:context="currentFilterSection"
>           t:model="typeModel" t:value="currentFilterSection.value.type" >
> </select> 
> 
> Mixing class
> 
>    @InjectContainer
>    private Select component;
>    @Inject
>    private ComponentResources resources;
>    @Inject
>    private JavaScriptSupport javascriptSupport;
>    @Parameter
>    private String zone;
>    @Parameter
>    private Object[] context;
> 
>    @AfterRender
>    void linkZone() {
>        Link link = resources.createEventLink("change", context);
>        JSONObject spec = new JSONObject("selectId",
> component.getClientId(), "zoneId", zone, "url", link.toURI());
>        javascriptSupport.addInitializerCall("linkSelectToZone", spec);
>    }
> 
>    Object onChange(@RequestParameter(value = "t:selectvalue", allowBlank =
> true) final String selectValue) {
>        CaptureResultCallback callback = new CaptureResultCallback();
>        this.resources.triggerEvent(EventConstants.VALUE_CHANGED, new
> Object[]{selectValue, context}, callback);
>        return callback.getResult();
>    }
> 
> Do I need to include zone in some differnet way?
> 
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Mixng-cant-find-zone-parameter-tp5720157.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