Re: [T5.1] Best approach for Ajax and Maps

2010-09-11 Thread Everton Agner
Oh, perfect! Thanks! :) ___ Everton Agner Ramos 2010/9/10 Thiago H. de Paula Figueiredo > On Fri, 10 Sep 2010 16:16:30 -0300, Everton Agner > wrote: > > About the URI for the js ajax call, i just want to know if there is a >> better way for doing it (passing the URI to th

Re: [T5.1] Best approach for Ajax and Maps

2010-09-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Sep 2010 16:16:30 -0300, Everton Agner wrote: About the URI for the js ajax call, i just want to know if there is a better way for doing it (passing the URI to the javascript)... i just didn't like the hidden field approach. Use RenderSupport.addScript() to add a line of JavaS

Re: [T5.1] Best approach for Ajax and Maps

2010-09-10 Thread Everton Agner
My first approach was by enclosing some hidden fields in a Form... I wanted to avoid that, but it seems i'll have problems with context values, like blank spaces etc. About the URI for the js ajax call, i just want to know if there is a better way for doing it (passing the URI to the javascript)..

Re: [T5.1] Best approach for Ajax and Maps

2010-09-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Sep 2010 15:32:10 -0300, Everton Agner wrote: Yeah, it's easy! Thanks! :) 1 - I figured it out that i don't need to write JSON as response for the even handling... Just returning the Zone's Body to magically refresh it is all i need (since the Grid knows how to build itself).

Re: [T5.1] Best approach for Ajax and Maps

2010-09-10 Thread Everton Agner
Yeah, it's easy! Thanks! Well, there is some things i wanna know... 1 - I figured it out that i don't need to write JSON as response for the even handling... Just returning the Zone's Body to magically refresh it is all i need (since the Grid knows how to build itself). But this code isn't worki

Re: [T5.1] Best approach for Ajax and Maps

2010-09-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Sep 2010 08:47:03 -0300, Everton Agner wrote: Hi! Hi, Everton! - How can I make an Ajax call to some method on the Page? Is there any component that could act like a bridge for it? And I need to write JSON as response, and I don't wanna create a Servlet just for that purpose.

[T5.1] Best approach for Ajax and Maps

2010-09-10 Thread Everton Agner
Hi! I have to develop a very simple POI (points of interest) Manager App using GMaps. The thing is, I have only one Page - /Map/Poi - that needs to render the Map (using the Google js thing for it) and capture js events like right click on it to create new POIs (and saving them on a database), an