Hi All, I discovered a way to handle those problems... for comunity referece:
1) For the first problem use one more property: <display:setProperty name="paging.banner.page.link"> <a href="javascript://nop/" onclick="paginate(''GPRS'', ''{1}'');" title="Go to page {0}">{0}</a> </display:setProperty> 2) For the second use two quotes instead of only one as above. I discovered ajaxtags project, that solves this problem too, but the solution proposed here doesn´t need mode jar´s, js´s... Best regards, José Renato José Renato escreveu: > Hi All. I am trying to use Display Tag with DOJO toolkit. All the DT > links for pagination and sorting are direct references to the service > (simple href links). I need to use Ajax instead of direct link reference > to control the area to be refreshed, and I am having difficulty to > change the table links to handle this. For example, today I have this: > > [display:setProperty name="paging.banner.full"] > ... > [<a href="{1}">${lblFirst}</a>/<a href="{2}">${lblPrev}</a>] {0} [<a > href="{3}">${lblNext}</a>/<a href="{4}">${lblLast}</a>]</th> > ... > [/display:setProperty] > > This piece of code will generate something like: > ... > <a title="Go to page 4" > href="/Application/reqLoadOperData.do?selectedTab=WAP&d-16540-p=4&method=loadOperationData">4</a> > <a > href="/Application/reqLoadOperData.do?selectedTab=WAP&d-16540-p=2&method=loadOperationData">Next</a> > ... > > I need to change this default behavior because Ajax will control the > area to be refreshed, i.e. only the table container wich the user is > using will be updated instead of all page content, because I have many > tables into a TabbedPane. Then I was tryning this: > > [display:setProperty name="paging.banner.full"] > ... > <th align="left">[<a onclick="paginate('WAP', {1});" > href="#">${lblFirst}</a>/<a onclick="paginate('WAP', {2});" > href="#">${lblPrev}</a>] > {0} [<a onclick="paginate('WAP', {3});" href="#">${lblNext}</a>/<a > onclick="paginate('WAP', {4});" href="#">${lblLast}</a>]</th> > ... > [/display:setProperty] > > The generated content: > ... > <a title="Go to page 8" > href="/Application/reqLoadOperData.do?selectedTab=WAP&d-49444-p=8&method=loadOperationData">8</a> > <a href="#" onclick="paginate(WAP, > /Application/reqLoadOperData.do?selectedTab=WAP&d-49444-p=2&method=loadOperationData);">Next</a> > ... > > Note that "paginate" method will pass the dispatching control to Ajax. > To conclude, above I have two problems: > 1) I don´t know how to handle "{0}" for generating specific page links > as the last one showed; > 2) The "first, next,..." links are loosing the ' symbol and generating > javascript error. > > Sorry for this long post... but any ideas how to handle this situation? > Thanks a lot, Bye. > José Renato. > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > displaytag-user mailing list > displaytag-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user