isn't that what i'm doing via

t:id="zoneB"

?


Howard Lewis Ship wrote:
Set an explcit id parameter for zone B.  It looks repetitive, but it's
the correct thing here.

On Thu, Jun 17, 2010 at 2:56 PM, Paul Stanton <p...@mapshed.com.au> wrote:
Hi All,

I've just noticed that if you update a zone that contains another zone, you
can no longer update the contained zone.

this may be related to my prior post regarding id's changing after a zone
update.

see example: (click 'update zone b' which works, click 'update zone a' which
works, click 'update zone b' which doesn't work).

public class Start
{
  @InjectComponent
  private Zone zoneA;
  @InjectComponent
  private Zone zoneB;
  @Property
  private String zoneAContent;
  @Property
  private String zoneBContent;

  private Object onActionFromLinkA()
  {
      zoneAContent = new Date().toString();
      return new MultiZoneUpdate("zoneA", zoneA);
  }

  private Object onActionFromLinkB()
  {
      zoneBContent = new Date().toString();
      return new MultiZoneUpdate("zoneB", zoneB);
  }
}

tml:

<t:zone t:id="zoneA" style="border:1px solid blue;">
  <h2>Zone A</h2>
  ${zoneAContent}
  <t:zone t:id="zoneB" style="border:1px solid red;">
      <h2>Zone B</h2>
      ${zoneBContent}
  </t:zone>
</t:zone>

<a t:type="actionlink" t:id="linkA" zone="zoneA">Update Zone A</a>
<a t:type="actionlink" t:id="linkB" zone="zoneB">Update Zone B</a>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





Reply via email to