Hi Thiago Ok, I will more specific: I'm developing a Tapestry component (GMapShow) that renders a google map. If I include the google maps javascript library directly in this component, the map is not render if the component is inside a block, so I need to include the library BEFORE the block (with the GMapShow component) is rendered.
So, I have created a component to only include the Google Maps library: public class ImportGMapLib { @Inject private JavaScriptSupport javaScriptSupport; public void beginRender() { javaScriptSupport.importJavaScriptLibrary("https://maps.googleapis.com/maps/api/js?v=3.exp"); } } My "Test.tml" looks like this: <t:maps.importGMapLib/> <t:actionlink t:id="refresh" zone='zoneResults'>refresh</t:actionlink> <t:zone id='zoneResults'/> <t:block t:id="blockResults"> <t:maps.gmapshow marker="marker"/> </t:block> I need to validate from GMapEdit component if the javascript library "https://maps.googleapis.com/maps/api/js?v=3.exp" was imported, or validate inside GMapEdit if the ImportGMapLib component was invoked inside Test.tml. Thanks in advance. -----Mensaje original----- De: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Enviado el: jueves, 25 de septiembre de 2014 07:29 a.m. Para: Tapestry users Asunto: Re: [T5] How can I validate if a script is present ? On Wed, 24 Sep 2014 21:59:44 -0300, Carlos Gómez Montiel <ibe...@gmail.com> wrote: > Hi ¡ Hi! > How can I validate from a component if a script is inside <head> tag > of a container page? I'm sorry, but I have no idea which scenario are you trying to describe here. Which validation is this? -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org