Hi Muhammad You can use ZoneUpdater for that.
http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html So in your select you will have <select t:type='select' t:mixins='zoneupdater' t:zone='whatever_zone' t:event='updateColumn' t:context='widthIndex' t:clientEvent='onchange'/> and <select t:type='select' t:mixins='zoneupdater' t:zone='whatever_zone' t:event='updateRow' t:context='heightIndex' t:clientEvent='onchange'/> Object onColumnUpdate(int widthIndex){ ... return columnZone.getBody(); } Object onRowUpdate(int heightIndex){ return rowZone.getBody(); } On Mon, Sep 5, 2011 at 11:32 PM, Muhammad Gelbana <m.gelb...@gmail.com> wrote: > Hi All, > > I've been trying to do this for some time now but nothing worked. I searched > through this list and I still can't figure it out !! > > Here is my case, I draw a table using dimensions provided in the page > activation context. So I can't predict how many rows or columns I may have. > Each header in the columns have a select field and so does each row at it's > left most cell. > Each select field should update the whole row or column, depending on which > select field had it's value changed. > > I attached an image explaning more what I need to do and here is a portion > of my page's tml file to elaborate more. The "???" are just to not that I > need the select to update zones but I just don't know what to put here ! > > <t:form> > <div style="overflow: auto;"> > <table class="contentpane skyTable" width="100%" cellspacing="0" > cellpadding="0" border="0" align="center"> > <tr> > <td bgcolor="lightgray"/> > <td t:type="loop" t:source="1 .. width" > t:value="widthIndex"> > ${widthIndex} - <t:select t:id="toNode" > model="toProbesModel" zone="???"/> > </td> > </tr> > <tr t:type="loop" t:source="1 .. height" t:value="heightIndex"> > <td>${heightIndex} - <t:select t:id="fromNode" > model="fromProbesModel" zone="???"/></td> > <t:loop t:source="1 .. width" t:value="widthIndex"> > <td row="${heightIndex}" col="${widthIndex}" from="" > to="" style="background-color: #BDBDBD;"> > <t:zone id="${widthIndex}-${heightIndex}"> > N/A > </t:zone> > </td> > </t:loop> > </tr> > </table> > </div> > </t:form> > > The whole idea is to add more info to the XHR request, this will most > probably aid to fix my problem. > > If this is kinda not possible at the moment. May be someone can help me to > request fragments of pages to load in these using prototype ajax calls > rather that using tapestry's capabilities although I'd hate that !! I wanna > be good using tapestry :) > > Also I need to modify the cells being updated "style" attribute to add an > image as it's background and remote that attribute when a cell is fully > updated. Just to show a loader gif. > > I already have this working using servlets but I'd LOVE to use tapestry > instead :) > > -- > Regards, > Muhammad Gelbana > Java Developer > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > -- Regards Taha Hafeez Siddiqi (tawus) http://tawus.wordpress.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org