You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by coriolisguy <es...@yahoo.com> on 2011/04/02 13:58:25 UTC

@Import

Hi All,

I want to import multiple javascript files using the @Import annotation.

This works
@Import("context:ext-3.2.1/adapter/ext/ext-base.js")
public class Layout
{
...

This does not work
@Import("context:ext-3.2.1/adapter/ext/ext-base.js")
@Import("context:ext-3.2.1/ext-all-debug.js")
public class Layout
{
...

What is the proper syntax.

Thanks


--
View this message in context: http://tapestry.1045711.n5.nabble.com/Import-tp4277615p4277615.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: @Import

Posted by Howard Lewis Ship <hl...@gmail.com>.
Note that the syntax of annotations is defined by the Java language,
not Tapestry, as is the limitation (?) that a given method (or other
member) have only one annotation of a given type.

On Sat, Apr 2, 2011 at 5:39 AM, Angelo C. <an...@gmail.com> wrote:
> how about this?
>
> @Import(library =
> {"context:ext-3.2.1/adapter/ext/ext-base.js","context:ext-3.2.1/ext-all-debug.js"})
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Import-tp4277615p4277644.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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


Re: @Import

Posted by "Angelo C." <an...@gmail.com>.
how about this?

@Import(library =
{"context:ext-3.2.1/adapter/ext/ext-base.js","context:ext-3.2.1/ext-all-debug.js"})

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Import-tp4277615p4277644.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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