Thanks for that Thiago, I have had a look at the Tesestry docs and not seen 
anything helpful.

I have also added an id="value" attribute to the component but it is ignore, I 
just get a similar result. (see below)

Is there an example somewhere?

John


<t:zone t:id="calendarZone" id="calendarZone">
    <div style="height:516px;overflow:auto;">
        <div style="float:right;border-left: 2px solid #fff;background-color: 
buttonface;"><t:linkcals/></div>
        <form t:type="form" t:id="selectform" style="width: 65em;padding: 
1px;margin: 1px;border: 1px solid #DFEFDF">
        Criteria:
                 <t:select t:id="selectedVenueName" value="selectedVenueId" 
model="venues" t:blankOption="NEVER" t:zone="calendarZone"/>
                 <t:select t:id="selectedWorkName" value="selectedWorkId" 
model="works" t:blankOption="ALWAYS" t:zone="calendarZone"/>
        </form>
        <t:loop t:source="months" t:value="currentMonth">
            <span class="calmon">
            <strong>${currentMonthName}</strong><br/>
                <t:loop t:source="monthDays" t:value="currentDay">

                    <span class="calday" style="height:${monthHeight}px;">
                        ${currentDay}<br/>${currentDayName}<br/>
                        <t:loop t:source="monthEvents" t:value="currentEvent" 
t:index="eventNumber">
                            <t:if test="currentEvent.event.free">
                                <t:jquery.dialogajaxlink t:id="book" 
id="${eventNumberId}" t:dialog="reservationDialogCal" 
t:context="[currentEvent.event.monthIndex,currentEvent.event.dayNumber,eventNumber]"
 t:zone="reservationZone" class="availablece" 
title="${currentEvent.text}">${currentEvent.event.from.time}<br/>${currentEvent.event.to.time}</t:jquery.dialogajaxlink>
                                <p:else>
                                   <t:jquery.dialogajaxlink t:id="edit" 
id="${eventNumberId}" t:dialog="reservationDialogCal" 
t:context="currentEvent.id" t:zone="reservationZone" class="${bookingClass}" 

  ----- Original Message ----- 
  From: Thiago H de Paula Figueiredo 
  To: Tapestry users 
  Sent: Monday, November 04, 2013 1:40 AM
  Subject: Re: incorrect ids for links after switching jquery tabs


  On Sun, 03 Nov 2013 19:21:37 -0200, John <j...@quivinco.com> wrote:

  > I'm finding that component ids are being corrupted as I switch between  
  > jquery tabs which means that these links fail when clicked. They are in  
  > loops and should have the correct loop count at the end, but garbage  
  > appears to be injected in the middle of the ids when rerendering.
  >
  > source:
  > <t:jquery.dialogajaxlink t:id="book" t:dialog="reservationDialogCal"  
  > 
t:context="[currentEvent.event.monthIndex,currentEvent.event.dayNumber,eventNumber]"
  
  > t:zone="reservationZone" class="availablece"  
  > 
title="${currentEvent.text}">${currentEvent.event.from.time}<br/>${currentEvent.event.to.time}</t:jquery.dialogajaxlink>
  >
  > original correct rendering
  > <a title="available" class="availablece" id="book_11"  
  > href="#">21:00<br>23:00</a>
  >
  > incorrect rendering after switching back within a tab
  > <a title="available" class="availablece" id="book_1421fd014ff_11"  
  > href="#">21:00<br>23:00</a>
  >
  > How to fix this, has anyone seen this before and figured it out?

  For every element inside a zone you want to refer to it through its id,  
  like that's the case above, provide an id yourself instead of letting  
  Tapestry do it.

  -- 
  Thiago H. de Paula Figueiredo
  Tapestry, Java and Hibernate consultant and developer
  http://machina.com.br

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

Reply via email to