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 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.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
> > > in this case, your component is the Index page, and your action is
> > > 'updateMsg'.  Tapestry uses a colon (:) to indicate an action as
> > > opposed to a nested component (designated by the period (.)).
> > >
> > > What problems are you having with the generated link?
> > >
> > > Cheers,
> > > lasitha.
> > >
> > > [1]
> > >
> http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResourcesCommon.html#createActionLink(java.lang.String,%20boolean,%20java.lang.Object...)
> > >
> > >
> > > On 10/12/07, Donyee <[EMAIL PROTECTED]> wrote:
> > > > 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:
> > > > > ${updateLink}...
> > > > >
> > > > > It displays "/index:updateMsg", it should be "/index.updateMsg"!
> > > > > Is this a bug? or I made wrong?
> > > > >
> > > > > ----徐 依伟
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > ----徐 依伟
> > > >
> > >
> >
> >
> >
> > --
> > ----徐 依伟
> >
>



-- 
----徐 依伟

Reply via email to