Re: [T5] Got a wrong uri from createActionLink!

2007-10-12 Thread Donyee
Thanks, I changed to onUpdateMsg()! works fine! 2007/10/12, lasitha <[EMAIL PROTECTED]>: > > I might still not be getting it, but i'll try again :) > > Preamble... (see below for a possible solution): > > Tapestry uses the following convention for an action link: > /page.component:action > Periods

Re: [T5] Got a wrong uri from createActionLink!

2007-10-12 Thread lasitha
I might still not be getting it, but i'll try again :) Preamble... (see below for a possible solution): Tapestry uses the following convention for an action link: /page.component:action Periods represent nested components and colons prefix a named action. So, '/index.updatemsg' points to an 'upd

Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
I request the /index.updatemsg and get a json data, the onActionFromUpdateMsg() method works fine! but i request the /index:updatemsg, it response as /index! Is this new in t5.06? How can i get a url like /index.updatemsg?? Thanks! 2007/10/12, lasitha <[EMAIL PROTECTED]>: > > AFAIK, there's nothin

Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread lasitha
AFAIK, there's nothing wrong with using a colon within the path of a URI. Do you know of any problems with this? Its been working so far... Perhaps i'm missing the point? On 10/12/07, Donyee <[EMAIL PROTECTED]> wrote: > The colon (:) "/index:updatemsg" is not a uri, > how could i get a "/index.u

Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
The colon (:) "/index:updatemsg" is not a uri, how could i get a "/index.updatemsg"? 2007/10/12, lasitha <[EMAIL PROTECTED]>: > > Umm, looks fine to me... > > According to the createActionLink javadoc[1], it creates "... a > component action request link as a callback for this component." So >

Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread lasitha
Umm, looks fine to me... According to the createActionLink javadoc[1], it creates "... a component action request link as a callback for this component." So in this case, your component is the Index page, and your action is 'updateMsg'. Tapestry uses a colon (:) to indicate an action as opposed

Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
I use T5.06 snapshot ! 2007/10/12, Donyee <[EMAIL PROTECTED]>: > > > Here is my code: > Index.java > @Inject > private ComponentResources resource; > public String getUpdateLink() { > Link link = resource.createActionLink("updateMsg", true); > return link.toURI(); > } > > and in Index.tml: > ${upd

[T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
Here is my code: Index.java @Inject private ComponentResources resource; public String getUpdateLink() { Link link = resource.createActionLink("updateMsg", true); return link.toURI(); } and in Index.tml: ${updateLink}... It displays "/index:updateMsg", it should be "/index.updateMsg"! Is this a b