Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread Thiago H de Paula Figueiredo

On Fri, 08 Jun 2007 07:47:21 -0300, Allen Guo <[EMAIL PROTECTED]> wrote:


Nobody answer me ? :(

Hi All,

I use T5.0.4. I packaged some common components to common.jar.
You know, in T3/4, we may add a configuration like contrib to
.application file. But how can I use it in my another project base on  
T5?


All you need to do is to put your library/package in the application  
classpath.
Tapestry-IoC searches the classpath trying to find JARs that have a  
Tapestry-Module-Classes antry in its manifest file and autoloads the  
module classes specified there. This is just wonderful. :)
Take a look at  
http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html and search  
"Autoloading" for more details.


Thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread 蝈蝈龙

I did it on your suggestion. It's working now :)
Thank you

2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:


try "opend/Radio" ... :)



"蝈蝈龙" <[EMAIL PROTECTED]>
08.06.2007 13:56
Bitte antworten an
"Tapestry users" < users@tapestry.apache.org>


An
"Tapestry users" 
Kopie

Thema
Re: How to use the third-party T5 Component in another T5 project






I added the code to AppModule.class
   onfiguration.add(new LibraryMapping("opend","org.opend.corelib"));
Then refer to the component in html template like this
  
Am I right? It always throw the exception below

Unable to resolve component type 'opend:Radio' to a component class name.
Available component types: FlatImg, Layout, core/ActionLink, core/Any,
core/BeanEditForm, core/Checkbo

2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:
>
> just forget what i said before
>
> you can use a LibraryMapping to add other component libraries.
> therefore you have to contribute your library (that contains a prefix
> and the root package) to a tapestry ioc service:
>
> in you AppModule class
>
> public static void
> contributeComponentClassResolver(Configuration
> configuration)
> {
> configuration.add(new LibraryMapping("whatever",
> "org.whatever.mycomponents"));
> }
>
> g
> kris
>
>
>
>
> "蝈蝈龙" <[EMAIL PROTECTED]>
> 08.06.2007 13:31
> Bitte antworten an
> "Tapestry users" < users@tapestry.apache.org>
>
>
> An
> "Tapestry users" 
> Kopie
>
> Thema
> Re: How to use the third-party T5 Component in another T5 project
>
>
>
>
>
>
> But I can only a tapestry.app-package in web.xml
> And another question is ,
> if the component have the same name with the component in my project,
what
> should I do?
>
> 2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:
> >
> > i think you have to deploy the jar (make it available in the
classpath)
> > and add the new package path to the tapestry.app-package
> > parameter in web.xml
> >
> > g
> > kris
> >
> >
> >
> >
> > Allen Guo < [EMAIL PROTECTED]>
> > 08.06.2007 12:47
> > Bitte antworten an
> > "Tapestry users" 
> >
> >
> > An
> > Tapestry users 
> > Kopie
> >
> > Thema
> > Re: How to use the third-party T5 Component in another T5 project
> >
> >
> >
> >
> >
> >
> > Nobody answer me ? :(
> > > Hi All,
> > >
> > > I use T5.0.4. I packaged some common components to common.jar.
> > > You know, in T3/4, we may add a configuration like contrib to
> > > .application file. But how can I use it in my another project base
on
> > T5?
> > >
> > >
> > > Thanks
> > > Allen Guo
> > >
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
>





Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread Kristian Marinkovic
try "opend/Radio" ... :)



"蝈蝈龙" <[EMAIL PROTECTED]> 
08.06.2007 13:56
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: How to use the third-party T5 Component in another T5 project






I added the code to AppModule.class
   onfiguration.add(new LibraryMapping("opend","org.opend.corelib"));
Then refer to the component in html template like this
  
Am I right? It always throw the exception below

Unable to resolve component type 'opend:Radio' to a component class name.
Available component types: FlatImg, Layout, core/ActionLink, core/Any,
core/BeanEditForm, core/Checkbo

2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:
>
> just forget what i said before
>
> you can use a LibraryMapping to add other component libraries.
> therefore you have to contribute your library (that contains a prefix
> and the root package) to a tapestry ioc service:
>
> in you AppModule class
>
> public static void
> contributeComponentClassResolver(Configuration
> configuration)
> {
> configuration.add(new LibraryMapping("whatever",
> "org.whatever.mycomponents"));
> }
>
> g
> kris
>
>
>
>
> "蝈蝈龙" <[EMAIL PROTECTED]>
> 08.06.2007 13:31
> Bitte antworten an
> "Tapestry users" 
>
>
> An
> "Tapestry users" 
> Kopie
>
> Thema
> Re: How to use the third-party T5 Component in another T5 project
>
>
>
>
>
>
> But I can only a tapestry.app-package in web.xml
> And another question is ,
> if the component have the same name with the component in my project, 
what
> should I do?
>
> 2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:
> >
> > i think you have to deploy the jar (make it available in the 
classpath)
> > and add the new package path to the tapestry.app-package
> > parameter in web.xml
> >
> > g
> > kris
> >
> >
> >
> >
> > Allen Guo <[EMAIL PROTECTED]>
> > 08.06.2007 12:47
> > Bitte antworten an
> > "Tapestry users" 
> >
> >
> > An
> > Tapestry users 
> > Kopie
> >
> > Thema
> > Re: How to use the third-party T5 Component in another T5 project
> >
> >
> >
> >
> >
> >
> > Nobody answer me ? :(
> > > Hi All,
> > >
> > > I use T5.0.4. I packaged some common components to common.jar.
> > > You know, in T3/4, we may add a configuration like contrib to
> > > .application file. But how can I use it in my another project base 
on
> > T5?
> > >
> > >
> > > Thanks
> > > Allen Guo
> > >
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
>




Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread 蝈蝈龙

I added the code to AppModule.class
  onfiguration.add(new LibraryMapping("opend","org.opend.corelib"));
Then refer to the component in html template like this
 
Am I right? It always throw the exception below

Unable to resolve component type 'opend:Radio' to a component class name.
Available component types: FlatImg, Layout, core/ActionLink, core/Any,
core/BeanEditForm, core/Checkbo

2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:


just forget what i said before

you can use a LibraryMapping to add other component libraries.
therefore you have to contribute your library (that contains a prefix
and the root package) to a tapestry ioc service:

in you AppModule class

public static void
contributeComponentClassResolver(Configuration
configuration)
{
configuration.add(new LibraryMapping("whatever",
"org.whatever.mycomponents"));
}

g
kris




"蝈蝈龙" <[EMAIL PROTECTED]>
08.06.2007 13:31
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: How to use the third-party T5 Component in another T5 project






But I can only a tapestry.app-package in web.xml
And another question is ,
if the component have the same name with the component in my project, what
should I do?

2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:
>
> i think you have to deploy the jar (make it available in the classpath)
> and add the new package path to the tapestry.app-package
> parameter in web.xml
>
> g
> kris
>
>
>
>
> Allen Guo <[EMAIL PROTECTED]>
> 08.06.2007 12:47
> Bitte antworten an
> "Tapestry users" 
>
>
> An
> Tapestry users 
> Kopie
>
> Thema
> Re: How to use the third-party T5 Component in another T5 project
>
>
>
>
>
>
> Nobody answer me ? :(
> > Hi All,
> >
> > I use T5.0.4. I packaged some common components to common.jar.
> > You know, in T3/4, we may add a configuration like contrib to
> > .application file. But how can I use it in my another project base on
> T5?
> >
> >
> > Thanks
> > Allen Guo
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>





Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread Kristian Marinkovic
just forget what i said before

you can use a LibraryMapping to add other component libraries.
therefore you have to contribute your library (that contains a prefix
and the root package) to a tapestry ioc service:

in you AppModule class

public static void 
contributeComponentClassResolver(Configuration 
configuration)
{
configuration.add(new LibraryMapping("whatever", 
"org.whatever.mycomponents"));
}

g
kris




"蝈蝈龙" <[EMAIL PROTECTED]> 
08.06.2007 13:31
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: How to use the third-party T5 Component in another T5 project






But I can only a tapestry.app-package in web.xml
And another question is ,
if the component have the same name with the component in my project, what
should I do?

2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:
>
> i think you have to deploy the jar (make it available in the classpath)
> and add the new package path to the tapestry.app-package
> parameter in web.xml
>
> g
> kris
>
>
>
>
> Allen Guo <[EMAIL PROTECTED]>
> 08.06.2007 12:47
> Bitte antworten an
> "Tapestry users" 
>
>
> An
> Tapestry users 
> Kopie
>
> Thema
> Re: How to use the third-party T5 Component in another T5 project
>
>
>
>
>
>
> Nobody answer me ? :(
> > Hi All,
> >
> > I use T5.0.4. I packaged some common components to common.jar.
> > You know, in T3/4, we may add a configuration like contrib to
> > .application file. But how can I use it in my another project base on
> T5?
> >
> >
> > Thanks
> > Allen Guo
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>




Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread 蝈蝈龙

But I can only a tapestry.app-package in web.xml
And another question is ,
if the component have the same name with the component in my project, what
should I do?

2007/6/8, Kristian Marinkovic <[EMAIL PROTECTED]>:


i think you have to deploy the jar (make it available in the classpath)
and add the new package path to the tapestry.app-package
parameter in web.xml

g
kris




Allen Guo <[EMAIL PROTECTED]>
08.06.2007 12:47
Bitte antworten an
"Tapestry users" 


An
Tapestry users 
Kopie

Thema
Re: How to use the third-party T5 Component in another T5 project






Nobody answer me ? :(
> Hi All,
>
> I use T5.0.4. I packaged some common components to common.jar.
> You know, in T3/4, we may add a configuration like contrib to
> .application file. But how can I use it in my another project base on
T5?
>
>
> Thanks
> Allen Guo
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread Kristian Marinkovic
i think you have to deploy the jar (make it available in the classpath) 
and add the new package path to the tapestry.app-package
parameter in web.xml

g
kris




Allen Guo <[EMAIL PROTECTED]> 
08.06.2007 12:47
Bitte antworten an
"Tapestry users" 


An
Tapestry users 
Kopie

Thema
Re: How to use the third-party T5 Component in another T5 project






Nobody answer me ? :(
> Hi All,
>
> I use T5.0.4. I packaged some common components to common.jar.
> You know, in T3/4, we may add a configuration like contrib to
> .application file. But how can I use it in my another project base on 
T5?
>
>
> Thanks
> Allen Guo
>
>
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to use the third-party T5 Component in another T5 project

2007-06-08 Thread Allen Guo
Nobody answer me ? :(
> Hi All,
>
> I use T5.0.4. I packaged some common components to common.jar.
> You know, in T3/4, we may add a configuration like contrib to
> .application file. But how can I use it in my another project base on T5?
>
>
> Thanks
> Allen Guo
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to use the third-party T5 Component in another T5 project

2007-06-07 Thread Allen Guo
Hi All,

I use T5.0.4. I packaged some common components to common.jar.
You know, in T3/4, we may add a configuration like contrib to
.application file. But how can I use it in my another project base on T5?


Thanks
Allen Guo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]