<t:zone t:id="zoneFilterType" id="prop:ZoneFilterTypeId">
  ...
  <t:zone t:id="zoneFilterProperty" id="prop:ZoneFilterPropertyId">
  ...
  </t:zone>
  ...
</t:zone>

   public String getZoneFilterTypeId() {
      return zoneFilterType.getClientId();//  return "zoneFilterType" +
currentFilterSection.getKey();
    }

    public String getZoneFilterPropertyId() {
        return zoneFilterProperty.getClientId();//return
"zoneFilterProperty" + currentFilterSection.getKey();
    }

In your code zone is declared to use "prop:ZoneFilterTypeId" property as
id. And this property gets id of zone => infinite recursion.
You should specify another property as zone id, e.g.:

<t:zone t:id="zoneFilterType" id="zoneFilterTypeId_${
currentFilterSection.key}">
  ...
  <t:zone t:id="zoneFilterProperty" id="zoneFilterPropertyId_${
currentFilterSection.key}">
  ...
  </t:zone>
  ...
</t:zone>


On Tue, Feb 26, 2013 at 12:03 AM, bhorvat <horvat.z.bo...@gmail.com> wrote:

> Nope removing normal id breaks the ajax. Here is how my code looks like
>
>  <select t:id="selectType" t:type="select" t:mixins="SelectContextMixin"
>                   zone="prop:ZoneFilterTypeId"
> t:context="currentFilterSection.key"
>                   contextEncoder="encoderFilterSection" t:model="typeModel"
>                   t:value="currentFilterSection.value.type" >
>   </select>
>
>  <t:zone t:id="zoneFilterType" id="prop:ZoneFilterTypeId">
>        <select t:id="selectProperty" t:type="select"
> t:mixins="SelectContextMixin"
>                   zone="prop:ZoneFilterPropertyId"
> t:context="currentFilterSection.key"
>                   contextEncoder="encoderFilterSection"
> t:model="propertyModel"
>                   t:value="currentFilterSection.value.properity">
>        </select>
>        <t:zone t:id="zoneFilterProperty" id="prop:ZoneFilterPropertyId">
>                    <select t:type="select" t:blankOption="never"
> class="dropDownMenu"
>                                t:model="comparatorModel"
> t:value="currentFilterSection.value.comparator">
>                   </select>
>
>        </t:zone>
>  </t:zone>
>
>     public String getZoneFilterTypeId() {
>       return zoneFilterType.getClientId();//  return "zoneFilterType" +
> currentFilterSection.getKey();
>     }
>
>     public String getZoneFilterPropertyId() {
>         return zoneFilterProperty.getClientId();//return
> "zoneFilterProperty" + currentFilterSection.getKey();
>     }
>
>
> Also is it possible to prevent using a mixin maybe the triggering of the
> original event?
>
> Thanks for the help and patience sody :)
>
> cheers
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Mixng-cant-find-zone-parameter-tp5720157p5720219.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