thx Alex. I'm mading less round wheel. Nile Black ----------------- 每天一个小时debian.
2009/3/7 Alex Kotchnev <akoch...@gmail.com> > Nile, > do re-read the T5 docs (e.g. > > http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/ActionLink.html > , > ), I think what you're trying to accomplish with your remotelink > mixin is > already being accomplished w/ zones: > > <t:actionLink t:id="foo" t:zone="barZone">Ajaxy goodness</t:actionlink> > > <t:zone t:id="barZone"> > <!-- the stuff here will be updated with the content of the block --> > </t:zone> > > <t:block t:id="updateBlock"> > <!-- this is the stuff that you want to show up when you click on the > link in the barZone --> > </t:block> > > then, in your code: > > @Component > private Block updateBlock > > public onActionFromFoo() { > return updateBlock; > } > > Cheers, > > Alex Kotchnev > > On Thu, Mar 5, 2009 at 4:51 AM, nile black <nile.bl...@gmail.com> wrote: > > > miss attachments > > > > Nile Black > > ----------------- > > 每天一个小时debian. > > > > > > > > On Wed, Mar 4, 2009 at 10:37 PM, nile black <nile.bl...@gmail.com> > wrote: > > > >> hi > >> i write a simple minixs call remotelink, it look like grails's > >> remotelink. > >> maybe minixs greate! > >> > >> you can simple use > >> > >> <a href="#" t:id="showme" > >> t:type="actionlink" t:update="result" > >> t:mixins="remotelink">action</a> > >> <a href="#" t:page="index" > >> t:type="pagelink" t:update="result" > t:mixins="remotelink">page</a> > >> <div id="result">result will show here.</div> > >> > >> but i confused by the return. > >> My first question is : what should ajax action return? json? html > >> fragment? xml? > >> > >> One of t5's benefit is "you can use dreamweaver edit the tml”. > >> In example code, "pagelink" work fine. because it return "html". but > >> actionlink is not perfect. > >> My seconde question is : how to return html fragment in action. > >> > >> > >> > >> Nile Black > >> ----------------- > >> 每天一个小时debian. > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > >