And also The handler of
<t:jquery.dialogajaxlink t:dialog="myDialog" class="report" t:zone="myZone" t:context="${host.hostid}"> <span class="ss_sprite ss_bin"></span> Delete ${host.hostid} </t:jquery.dialogajaxlink> something like @OnEvent(value = EventConstants.ACTION) Object showDetail(int hostid) { if (!request.isXHR()) { return this; } host.hostid = hostid; return myZone; } on server side you have to reassign the host id received in context into host.hostid in order to refresh the zone with the right id. regards François 2012/1/26 Taha Hafeez Siddiqi <tawus.tapes...@gmail.com>: > Hi > > If your dialog is in some kind of a loop you have to ensure t:clientId is > unique for each dialog > > something like > > <div t:type='jquery/dialog' t:clientId='prop:dialogId'> > ... > </div> > > <a t:type='jquery/dialogLink' dialog='prop:dialogId'>Link</a> > > and then in your java file > > public String getDialogId(){ > return "myDialog" + loopIndex; > } > > regards > Taha > > On Jan 26, 2012, at 2:43 AM, Russell John-Baptistr wrote: > >> trying to wrap my brain around how I should pass IDs from my >> jquery.dialogajaxlink to my jquery.dialog. >> >> I am using query builder to build a list of hosts. I can display the id and >> other host information of each host, per row. >> However whenever the delete dialog box is called via clicking "delete" >> on a row, only the first ID and the first hostname in the list gets >> passed to the dialog. This happens regardless of which row's delete >> link is clicked. >> >> I feel there is something simple I'm missing. Thanks in advance for any >> input! >> >> >> <qb:pagedcolumn> >> >> <t:jquery.dialog t:clientId="myDialog"> >> >> <t:zone t:id="myZone" id="myZone"> >> <!-- <br></br>Are you sure you want to >> delete host ${host.hostname}? >> <input type="input" class="report2" name="host" >> value="${host.hostid}"/>--> >> <form> >> <t:actionlink t:type="button" t:id="DeleteMe" >> context="${host.hostId}" t:mixins="jquery/button"> >> Delete Host ${host.hostid} >> </t:actionlink> >> </form> >> </t:zone> >> </t:jquery.dialog> >> >> <t:jquery.dialogajaxlink t:dialog="myDialog" >> class="report" t:zone="myZone" t:context="${host.hostid}"> >> <span class="ss_sprite ss_bin"></span> >> Delete ${host.hostid} >> </t:jquery.dialogajaxlink> >> <br></br> >> >> </qb:pagedcolumn> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org