Hi!

Please post new discussions as new messages instead of replying to existing ones. Every threaded visualization of the mailing list will show your message in the wrong place. ;)

On Tue, 04 Jan 2011 15:24:28 -0200, Richard Hill <r...@su3analytics.com> wrote:


Happy New Year All,

I'm attempting to pass an url in an ajax request to an onEvent handler.
So I'm making a request like:

GET /MyPage.MyComponent:event/http://blah.com/....

MyComponent.java:

public StreamResponse onEvent(String url) {
        ....
}


The problem is that what's being passed to onEvent() is just "http:"

Now I realise that "/" is the context delimiter. However I've tried
encoding the url with escape(url), encodeURI(url), and
encodeURIComponent(url) (the latter 2 encode the "/") but to no avail -
same issue.

I also realise that Tapestry employs it's own encoding scheme - do I
have to encode in this way? If so, does anyone have some code to
implement Tapestry url encoding in javascript?

Many thanks,

Richard.






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
Coordenador e professor da Especialização em Engenharia de Software com Ênfase em Java da Faculdade Pitágoras
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to