I found a cool Safari Extension called "Better Source" that helped me get 
closer on this problem, I'm hoping someone can help me beyond this. . 

 Basically, the idea is that I want a grid that is initially hidden. Clicking 
on a button reveals a grid, clicking on an item in the grid reveals a detail 
zone for the item in the grid. 

 The grid works separately, but not when nested. 

 So we start with a t:zone wrapped around a link:

 <t:zone t:id="popupZonelocations">

                    <a class="button" t:type="eventlink" 
t:zone="popupZonelocations" t:context="literal:locations" t:event="showToMany" 
t:id="showlocaitons">Show Locations</a>
                </t:zone>


That returns the block below:

                <t:block t:id="locationsGridBlock">
            
                            <t:pace.grid.ActivationLocationGrid 
activationlocationSource="user.locations" t:id="locationsgrid"/>
                </t:block>

My ActivationLocationGrid component is basically:

   <zone i:id="details" />
    <grid>
            <t:parameter name="firstCell>
                   <eventlink zone="details">
            </t:parameter>
    </grid>
    <block t:id="details">
               stuff
     </block>


So basically, after the load, we should have:

 <zone   id='first zone'>
      <zone id ='second zone'>
               <grid>
                      <link  zone='second zone'>
               </grid>
      </zone>
</zone> 



Here's what the resulting HTML source looks like after the grid has been 
revealed. It looks like what has happened is that Tapestry has generated some 
sort of id suffix: 12a7d6e06a7 Which  it then proceeds to append to the IDs of 
everything in the result of loading the first zone. But its not propogating 
that suffix everywhere properly, because then the links inside the grid don't 
work, at least my links don't, but the sort headers do! Digging in a bit more, 
it seems that the issue is that the zoneId's don't have the suffix when the 
list of linkZones is generated, which I can show after the HTML:


HTML:

<div class="t-zone" id="popupZonelocations" style="background-image: none; 
background-color: rgb(255, 255, 255); ">
  227                            <span class="text">Locations has 13 items 
<br></span>
  228                            
  229         
  230     <div class="t-zone" id="popupZoneActivationLocation_12a7d6e06a7">
  231        </div>
  232        <div id="gridAL_12a7d6e06a7"><div class="t-data-grid">
  233
  234    
  235
  236    <table class="t-data-grid">
  237        <thead><tr><th class="uuid t-first"><a id="sort_12a7d6e06a7" 
href="/Zardoz2/pace/view/user.userviewlong.locationsgrid.gridal.columns:sort/uuid/gridAL_12a7d6e06a7?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86">uuid</a><a
 id="sort2_12a7d6e06a7" 
href="/Zardoz2/pace/view/user.userviewlong.locationsgrid.gridal.columns:sort/uuid/gridAL_12a7d6e06a7?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86"><img
 alt="[Sortable]" class="t-sort-icon" 
src="/Zardoz2/assets/1.0-SNAPSHOT/core/components/sortable.png"></a></th><th 
class="userName t-sort-column-descending"><a id="sort_12a7d6e06a7_0" 
class="t-sort-column-descending" 
href="/Zardoz2/pace/view/user.userviewlong.locationsgrid.gridal.columns:sort/userName/gridAL_12a7d6e06a7?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86">userName</a><a
 id="sort2_12a7d6e06a7_0" class="t-sort-column-descending" 
href="/Zardoz2/pace/view/user.userviewlong.locationsgrid.gridal.columns:sort/userName/gridAL_12a7d6e06a7?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86"><img
 alt="[Desc]" class="t-sort-icon" 
src="/Zardoz2/assets/1.0-SNAPSHOT/core/components/sort-desc.png"></a></th><th 
class="userDescription t-last"><a id="sort_12a7d6e06a7_1" 
href="/Zardoz2/pace/view/user.userviewlong.locationsgrid.gridal.columns:sort/userDescription/gridAL_12a7d6e06a7?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86">userDescription</a><a
 id="sort2_12a7d6e06a7_1" 
href="/Zardoz2/pace/view/user.userviewlong.locationsgrid.gridal.columns:sort/userDescription/gridAL_12a7d6e06a7?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86"><img
 alt="[Sortable]" class="t-sort-icon" 
src="/Zardoz2/assets/1.0-SNAPSHOT/core/components/sortable.png"></a></th></tr></thead>
  238        <tbody>
  239            <tr class="even t-first"><td class="uuid">
  240                <a id="popupActivationLocationDetauls_12a7d6e06a7" 
class="buttonPopup" 
href="/Zardoz2/pace/view/user.userviewlong.locationsgrid:popup/BD84E635-FC4A-42A6-A59D-5E49E9CCB66C?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86">BD84E635-FC4A-42A6-A59D-5E49E9CCB66C</a>
  241            </td><td class="userName t-sort-column-descending">iLok2 
#2</td><td class="userDescription">iLok Newly Registered To Pierce</td></tr><tr 
class="odd"><td class="uuid">
  242                <a id="popupActivationLocationDetauls_12a7d6e06a7_0" 
class="buttonPopup" 
href="/Zardoz2/pace/view/user.userviewlong.locationsgrid:popup/0C41FFA2-E825-485E-A7D8-55038194830F?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86">0C41FFA2-E825-485E-A7D8-55038194830F</a>
  243            </td><td class="userName t-sort-column-descending">iLok2 
#1</td><td class="userDescription">iLok Newly Registered To Pierce</td></tr><tr 
class="even"><td class="uuid">
Link Zone list excerpt showing both the parameters for a grid sort label, and 
the parameters for a link inside the grid:

{
          "linkId" : "sort2_12a7d8dbe0e_1",
          "url" : 
"/Zardoz2/pace/view/user.userviewlong.locationsgrid.gridal.columns:sort/userDescription/gridAL_12a7d8dbe0e?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86",
          "zoneId" : "gridAL_12a7d8dbe0e"
        },
        {
          "linkId" : "popupActivationLocationDetauls_12a7d8dbe0e",
          "url" : 
"/Zardoz2/pace/view/user.userviewlong.locationsgrid:popup/107A0D2E-6F62-44E7-B3E9-D3D47C0A11D3?t:ac=29F85122-60BB-43C0-A086-D0FF0AD64D86",
          "zoneId" : "popupZoneActivationLocation"
        },


Note that the Grid sort link has the right zoneId, and that it's told to update 
the right zone, in that the suffix has been added to the zoneId specifier.

The link inside the grid is not told to update the right zone because the 
suffix has NOT been added. 

 Pierce


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to