How about this, instead:

JAVA *component*
@Import(library="../dimitriy/bogdanov/bootstrap-dropdown.js")

and

TML *component*

If your component is rendered multiple times in a page, then the TML
method will import the JS repeatedly.  Tapestry is smart enough, even
in the Java component, to know if it has already been imported and not
import it multiple times.  This applies to CSS, too.

mrg


On Wed, Mar 14, 2012 at 3:40 PM, TechniciuM <a1098...@rppkn.com> wrote:
> Hi, as title denotes, I would like to know what is the difference between tml
> and java importing javascript. Examples shown below.
>
> JAVA page
> @Import(library="../dimitriy/bogdanov/bootstrap-dropdown.js")
>
> and
>
> TML page
>
>
> Discussion about this topic is appreciated. :)
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Difference-between-tml-and-java-importing-js-tp5565945p5565945.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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

Reply via email to