1. Each row will generate its own zone with unique id, so you can't use
static value for zone parameter. But you can use clientId of injected zone:

@InjectComponent
provate Zone zone;

public String getZoneId() {
  return zone.getClientId();
}

2. If you will use @BindParameter annotation - both select zone parameter
and mixin zone parameter will be bound. So you will have two behaviours:
from Select and from your mixin

3. As you don't use context parameter in onChange event handler in your
mixin you will have wrong value in VALUE_CHANGED event handler. It wil be
null. You need something like this:

    Object onChange(@RequestParameter(value = "t:selectvalue", allowBlank =
true) final String selectValue, EventContext eventContext) {
        CaptureResultCallback callback = new CaptureResultCallback();
        this.resources.triggerContextEvent(EventConstants.VALUE_CHANGED,
eventContext, callback);
        return callback.getResult();
    }

In VALUE_CHANGED event handler you will also need to get selected value
from request parameter instead of event context. As a variant you can also
create some kind of CompositeEventContext which will consist of original
EventContext and selectedValue object as a first argument.

4. And as you have already advised in another thread you can use popular
ZoneUpdater:


On Sat, Feb 23, 2013 at 6:26 PM, bhorvat <horvat.z.bo...@gmail.com> wrote:

> So I think that both of my problem are related to the fact that zone is not
> properly generated.
>
> It seems that regardless of the number of times I press + it always add the
> zone with the original name. The html code show that the id genreated is
> original_someRandomNumber while in the code I see that it is only original
> name. In other words each section always updates only the first row instead
> of its own row
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Mixng-cant-find-zone-parameter-tp5720157p5720183.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
>
>


-- 
BR
Ivan

Reply via email to