On Fri, 26 Sep 2014 14:04:01 -0300, Carlos Gómez Montiel
<ibe...@gmail.com> wrote:
Hi Thiago
Hi!
<t:actionlink t:id="refresh" zone='zoneResults'>refresh</t:actionlink>
<t:zone id='zoneResults'/>
<t:block t:id="blockResults">
<div t:type="jquery/gmap" t:id="map"
t:parameters="options"></div>
</t:block>
If you had mentioned before you were trying to show it in a Zone update,
we would have understood the problem earlier. You can use blocks in
non-AJAX scenarios too.
In your case, using your own code, not the one from tapestry5-jquery, the
check for whether the Google Maps is already loaded should be part of your
own code. Not a good solution.
Ultimately the solution is to use Require.js or a similar solution and let
it handle the client-side dependencies and ensure the loading order of
JavaScript files. Tapestry 5.4 supports it out-of-the-box.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org