You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by János Jarecsni <ja...@gmail.com> on 2008/04/19 20:38:58 UTC

Page template and class location

Hi,

can a page be contributed to the web application by a JAR file (just like
component templates)? If so, how an URL can be constructed to such a page?
Concretely, is it possible for T5 to have a forum.tml residing in the
com.foo.bar package of a forum.jar file and use it in the application?

thanks in advance,
Janos

Re: Page template and class location

Posted by János Jarecsni <ja...@gmail.com>.
Hm, does not work. I tried

http://localhost:8080/Celebrities/mylib/SomePage
and
http://localhost:8080/mylib/SomePage

so both with and without a context, but none worked.

cheers,
janos

On 22/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
>
> When you contribute it via
>
> new LibraryMapping( "mylib", "com.mycompany.package" )
>
> you wanna browse it with http://localhost:8080/mylib/x
>
> /M
>
>
>
> János Jarecsni schrieb:
>
> > no :)
> > I tried a lot of URLs in the browser, but none worked. What URL did you
> > use
> > to browse to such a page?
> > thx
> > janos
> >
> >
> > On 22/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
> >
> >
> > > Exactly. Does it work now?
> > >
> > > /M
> > >
> > > János Jarecsni schrieb:
> > >
> > >
> > >
> > > > Hi Michael,
> > > >
> > > > I have the following line in the manifest.mf of my T5 component
> > > > library
> > > > JAR:
> > > >
> > > > Tapestry-Module-Classes: hu.intellynet.mojito.tapestry.LibraryModule
> > > >
> > > > Is it what you mean?
> > > >
> > > > thx
> > > > Janos
> > > >
> > > > On 21/04/2008, michael.gerzabek@gmx.net <mi...@gmx.net>
> > > > wrote:
> > > >
> > > >
> > > >
> > > >
> > > > > Janos,
> > > > > You have to provide the full class name of your Module (in your
> > > > > jar
> > > > > file)
> > > > > in the MANIFEST.MF file which is located in the META-INF
> > > > > directory.
> > > > > More
> > > > > infos on that in the two links I added my last post.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
> > > > >
> > > > > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
> > > > >
> > > > >
> > > > > Michael
> > > > >
> > > > > -------- Original-Nachricht --------
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > > Datum: Mon, 21 Apr 2008 13:13:45 +0200
> > > > > > Von: "János Jarecsni" <ja...@gmail.com>
> > > > > > An: "Tapestry users" <us...@tapestry.apache.org>
> > > > > > Betreff: Re: Page template and class location
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > > Hi Michael,
> > > > > >
> > > > > > what did you do? I did what I wrote (yes it is a library JAR, I
> > > > > > have
> > > > > > the
> > > > > > LibraryModule class I quoted, the library name is "mylib", and
> > > > > > the
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > quoted
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > > URLs do NOT work. What URL did you use?
> > > > > >
> > > > > > thx a lot
> > > > > > Janos
> > > > > >
> > > > > > On 21/04/2008, Michael Gerzabek <mi...@gmx.net>
> > > > > > wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > > Hi Janos,
> > > > > > >
> > > > > > > if your library is in a jar file read [1], else add the method
> > > > > > > you
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > posted
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > > in your current Module. Tested it, works like a charm ;)
> > > > > > >
> > > > > > > [1]
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > > Infos on Modules:
> > > > > >
> > > > > >
> > > > > > > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
> > > > > > >
> > > > > > > János Jarecsni schrieb:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > > Yes, but how? :) I tried various ways, none worked. The
> > > > > > > > library
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > contains
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > > the
> > > > > > >
> > > > > > >
> > > > > > > > following library module:
> > > > > > > >
> > > > > > > >  public static void
> > > > > > > >
> > > > > > > > contributeComponentClassResolver(Configuration<LibraryMapping>
> > > > > > > > configuration) {
> > > > > > > >      configuration.add(new LibraryMapping("mylib",
> > > > > > > > "com.mycompany.package"));
> > > > > > > >  }
> > > > > > > >
> > > > > > > > In the "com.mycompany.package.pages" package there is the
> > > > > > > > X.tml.
> > > > > > > > Pointing my browser to
> > > > > > > >
> > > > > > > > http://localhost:8080/context/mylib/x
> > > > > > > > http://localhost:8080/context/mylib.x
> > > > > > > > http://localhost:8080/context/x
> > > > > > > >
> > > > > > > > doesn't work either.
> > > > > > > >
> > > > > > > > Thanks in advance!
> > > > > > > > Janos
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > > > For additional commands, e-mail:
> > > > > > > users-help@tapestry.apache.org
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Page template and class location

Posted by Michael Gerzabek <mi...@gmx.net>.
When you contribute it via

new LibraryMapping( "mylib", "com.mycompany.package" )

you wanna browse it with http://localhost:8080/mylib/x

/M



János Jarecsni schrieb:
> no :)
> I tried a lot of URLs in the browser, but none worked. What URL did you use
> to browse to such a page?
> thx
> janos
>
>
> On 22/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
>   
>> Exactly. Does it work now?
>>
>> /M
>>
>> János Jarecsni schrieb:
>>
>>     
>>> Hi Michael,
>>>
>>> I have the following line in the manifest.mf of my T5 component library
>>> JAR:
>>>
>>> Tapestry-Module-Classes: hu.intellynet.mojito.tapestry.LibraryModule
>>>
>>> Is it what you mean?
>>>
>>> thx
>>> Janos
>>>
>>> On 21/04/2008, michael.gerzabek@gmx.net <mi...@gmx.net>
>>> wrote:
>>>
>>>
>>>       
>>>> Janos,
>>>> You have to provide the full class name of your Module (in your jar
>>>> file)
>>>> in the MANIFEST.MF file which is located in the META-INF directory.
>>>> More
>>>> infos on that in the two links I added my last post.
>>>>
>>>>
>>>>
>>>> http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
>>>>
>>>> http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
>>>>
>>>>
>>>> Michael
>>>>
>>>> -------- Original-Nachricht --------
>>>>
>>>>
>>>>         
>>>>> Datum: Mon, 21 Apr 2008 13:13:45 +0200
>>>>> Von: "János Jarecsni" <ja...@gmail.com>
>>>>> An: "Tapestry users" <us...@tapestry.apache.org>
>>>>> Betreff: Re: Page template and class location
>>>>>
>>>>>
>>>>>           
>>>>         
>>>>> Hi Michael,
>>>>>
>>>>> what did you do? I did what I wrote (yes it is a library JAR, I have
>>>>> the
>>>>> LibraryModule class I quoted, the library name is "mylib", and the
>>>>>
>>>>>
>>>>>           
>>>> quoted
>>>>
>>>>
>>>>         
>>>>> URLs do NOT work. What URL did you use?
>>>>>
>>>>> thx a lot
>>>>> Janos
>>>>>
>>>>> On 21/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
>>>>>
>>>>>
>>>>>           
>>>>>> Hi Janos,
>>>>>>
>>>>>> if your library is in a jar file read [1], else add the method you
>>>>>>
>>>>>>
>>>>>>             
>>>>> posted
>>>>>
>>>>>
>>>>>           
>>>>>> in your current Module. Tested it, works like a charm ;)
>>>>>>
>>>>>> [1]
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>> http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
>>>>
>>>>
>>>>         
>>>>> Infos on Modules:
>>>>>           
>>>>>> http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
>>>>>>
>>>>>> János Jarecsni schrieb:
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Yes, but how? :) I tried various ways, none worked. The library
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> contains
>>>>>>             
>>>>>           
>>>>>> the
>>>>>>             
>>>>>>> following library module:
>>>>>>>
>>>>>>>   public static void
>>>>>>> contributeComponentClassResolver(Configuration<LibraryMapping>
>>>>>>> configuration) {
>>>>>>>       configuration.add(new LibraryMapping("mylib",
>>>>>>> "com.mycompany.package"));
>>>>>>>   }
>>>>>>>
>>>>>>> In the "com.mycompany.package.pages" package there is the X.tml.
>>>>>>> Pointing my browser to
>>>>>>>
>>>>>>> http://localhost:8080/context/mylib/x
>>>>>>> http://localhost:8080/context/mylib.x
>>>>>>> http://localhost:8080/context/x
>>>>>>>
>>>>>>> doesn't work either.
>>>>>>>
>>>>>>> Thanks in advance!
>>>>>>> Janos
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>         
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>     


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


Re: Page template and class location

Posted by János Jarecsni <ja...@gmail.com>.
no :)
I tried a lot of URLs in the browser, but none worked. What URL did you use
to browse to such a page?
thx
janos


On 22/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
>
> Exactly. Does it work now?
>
> /M
>
> János Jarecsni schrieb:
>
> > Hi Michael,
> >
> > I have the following line in the manifest.mf of my T5 component library
> > JAR:
> >
> > Tapestry-Module-Classes: hu.intellynet.mojito.tapestry.LibraryModule
> >
> > Is it what you mean?
> >
> > thx
> > Janos
> >
> > On 21/04/2008, michael.gerzabek@gmx.net <mi...@gmx.net>
> > wrote:
> >
> >
> > > Janos,
> > > You have to provide the full class name of your Module (in your jar
> > > file)
> > > in the MANIFEST.MF file which is located in the META-INF directory.
> > > More
> > > infos on that in the two links I added my last post.
> > >
> > >
> > >
> > > http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
> > >
> > > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
> > >
> > >
> > > Michael
> > >
> > > -------- Original-Nachricht --------
> > >
> > >
> > > > Datum: Mon, 21 Apr 2008 13:13:45 +0200
> > > > Von: "János Jarecsni" <ja...@gmail.com>
> > > > An: "Tapestry users" <us...@tapestry.apache.org>
> > > > Betreff: Re: Page template and class location
> > > >
> > > >
> > >
> > >
> > > > Hi Michael,
> > > >
> > > > what did you do? I did what I wrote (yes it is a library JAR, I have
> > > > the
> > > > LibraryModule class I quoted, the library name is "mylib", and the
> > > >
> > > >
> > > quoted
> > >
> > >
> > > > URLs do NOT work. What URL did you use?
> > > >
> > > > thx a lot
> > > > Janos
> > > >
> > > > On 21/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
> > > >
> > > >
> > > > > Hi Janos,
> > > > >
> > > > > if your library is in a jar file read [1], else add the method you
> > > > >
> > > > >
> > > > posted
> > > >
> > > >
> > > > > in your current Module. Tested it, works like a charm ;)
> > > > >
> > > > > [1]
> > > > >
> > > > >
> > > > >
> > > >
> > > http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
> > >
> > >
> > > > Infos on Modules:
> > > > > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
> > > > >
> > > > > János Jarecsni schrieb:
> > > > >
> > > > >
> > > > >
> > > > > > Yes, but how? :) I tried various ways, none worked. The library
> > > > > >
> > > > > >
> > > > > contains
> > > >
> > > >
> > > > > the
> > > > > > following library module:
> > > > > >
> > > > > >   public static void
> > > > > > contributeComponentClassResolver(Configuration<LibraryMapping>
> > > > > > configuration) {
> > > > > >       configuration.add(new LibraryMapping("mylib",
> > > > > > "com.mycompany.package"));
> > > > > >   }
> > > > > >
> > > > > > In the "com.mycompany.package.pages" package there is the X.tml.
> > > > > > Pointing my browser to
> > > > > >
> > > > > > http://localhost:8080/context/mylib/x
> > > > > > http://localhost:8080/context/mylib.x
> > > > > > http://localhost:8080/context/x
> > > > > >
> > > > > > doesn't work either.
> > > > > >
> > > > > > Thanks in advance!
> > > > > > Janos
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Page template and class location

Posted by Michael Gerzabek <mi...@gmx.net>.
Exactly. Does it work now?

/M

János Jarecsni schrieb:
> Hi Michael,
>
> I have the following line in the manifest.mf of my T5 component library JAR:
>
> Tapestry-Module-Classes: hu.intellynet.mojito.tapestry.LibraryModule
>
> Is it what you mean?
>
> thx
> Janos
>
> On 21/04/2008, michael.gerzabek@gmx.net <mi...@gmx.net> wrote:
>   
>> Janos,
>> You have to provide the full class name of your Module (in your jar file)
>> in the MANIFEST.MF file which is located in the META-INF directory. More
>> infos on that in the two links I added my last post.
>>
>>
>> http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
>>
>> http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
>>
>>
>> Michael
>>
>> -------- Original-Nachricht --------
>>     
>>> Datum: Mon, 21 Apr 2008 13:13:45 +0200
>>> Von: "János Jarecsni" <ja...@gmail.com>
>>> An: "Tapestry users" <us...@tapestry.apache.org>
>>> Betreff: Re: Page template and class location
>>>       
>>     
>>> Hi Michael,
>>>
>>> what did you do? I did what I wrote (yes it is a library JAR, I have the
>>> LibraryModule class I quoted, the library name is "mylib", and the
>>>       
>> quoted
>>     
>>> URLs do NOT work. What URL did you use?
>>>
>>> thx a lot
>>> Janos
>>>
>>> On 21/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
>>>       
>>>> Hi Janos,
>>>>
>>>> if your library is in a jar file read [1], else add the method you
>>>>         
>>> posted
>>>       
>>>> in your current Module. Tested it, works like a charm ;)
>>>>
>>>> [1]
>>>>
>>>>         
>> http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
>>     
>>>> Infos on Modules:
>>>> http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
>>>>
>>>> János Jarecsni schrieb:
>>>>
>>>>         
>>>>> Yes, but how? :) I tried various ways, none worked. The library
>>>>>           
>>> contains
>>>       
>>>>> the
>>>>> following library module:
>>>>>
>>>>>    public static void
>>>>> contributeComponentClassResolver(Configuration<LibraryMapping>
>>>>> configuration) {
>>>>>        configuration.add(new LibraryMapping("mylib",
>>>>> "com.mycompany.package"));
>>>>>    }
>>>>>
>>>>> In the "com.mycompany.package.pages" package there is the X.tml.
>>>>> Pointing my browser to
>>>>>
>>>>> http://localhost:8080/context/mylib/x
>>>>> http://localhost:8080/context/mylib.x
>>>>> http://localhost:8080/context/x
>>>>>
>>>>> doesn't work either.
>>>>>
>>>>> Thanks in advance!
>>>>> Janos
>>>>>
>>>>>
>>>>>           
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>         
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>     


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


Re: Page template and class location

Posted by János Jarecsni <ja...@gmail.com>.
Hi Michael,

I have the following line in the manifest.mf of my T5 component library JAR:

Tapestry-Module-Classes: hu.intellynet.mojito.tapestry.LibraryModule

Is it what you mean?

thx
Janos

On 21/04/2008, michael.gerzabek@gmx.net <mi...@gmx.net> wrote:
>
> Janos,
> You have to provide the full class name of your Module (in your jar file)
> in the MANIFEST.MF file which is located in the META-INF directory. More
> infos on that in the two links I added my last post.
>
>
> http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
>
> http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
>
>
> Michael
>
> -------- Original-Nachricht --------
> > Datum: Mon, 21 Apr 2008 13:13:45 +0200
> > Von: "János Jarecsni" <ja...@gmail.com>
> > An: "Tapestry users" <us...@tapestry.apache.org>
> > Betreff: Re: Page template and class location
>
>
> > Hi Michael,
> >
> > what did you do? I did what I wrote (yes it is a library JAR, I have the
> > LibraryModule class I quoted, the library name is "mylib", and the
> quoted
> > URLs do NOT work. What URL did you use?
> >
> > thx a lot
> > Janos
> >
> > On 21/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
> > >
> > > Hi Janos,
> > >
> > > if your library is in a jar file read [1], else add the method you
> > posted
> > > in your current Module. Tested it, works like a charm ;)
> > >
> > > [1]
> > >
> >
> http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
> > > Infos on Modules:
> > > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
> > >
> > > János Jarecsni schrieb:
> > >
> > > > Yes, but how? :) I tried various ways, none worked. The library
> > contains
> > > > the
> > > > following library module:
> > > >
> > > >    public static void
> > > > contributeComponentClassResolver(Configuration<LibraryMapping>
> > > > configuration) {
> > > >        configuration.add(new LibraryMapping("mylib",
> > > > "com.mycompany.package"));
> > > >    }
> > > >
> > > > In the "com.mycompany.package.pages" package there is the X.tml.
> > > > Pointing my browser to
> > > >
> > > > http://localhost:8080/context/mylib/x
> > > > http://localhost:8080/context/mylib.x
> > > > http://localhost:8080/context/x
> > > >
> > > > doesn't work either.
> > > >
> > > > Thanks in advance!
> > > > Janos
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Page template and class location

Posted by mi...@gmx.net.
Janos,
You have to provide the full class name of your Module (in your jar file) in the MANIFEST.MF file which is located in the META-INF directory. More infos on that in the two links I added my last post.

http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html

Michael

-------- Original-Nachricht --------
> Datum: Mon, 21 Apr 2008 13:13:45 +0200
> Von: "János Jarecsni" <ja...@gmail.com>
> An: "Tapestry users" <us...@tapestry.apache.org>
> Betreff: Re: Page template and class location

> Hi Michael,
> 
> what did you do? I did what I wrote (yes it is a library JAR, I have the
> LibraryModule class I quoted, the library name is "mylib", and the quoted
> URLs do NOT work. What URL did you use?
> 
> thx a lot
> Janos
> 
> On 21/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
> >
> > Hi Janos,
> >
> > if your library is in a jar file read [1], else add the method you
> posted
> > in your current Module. Tested it, works like a charm ;)
> >
> > [1]
> >
> http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
> > Infos on Modules:
> > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
> >
> > János Jarecsni schrieb:
> >
> > > Yes, but how? :) I tried various ways, none worked. The library
> contains
> > > the
> > > following library module:
> > >
> > >    public static void
> > > contributeComponentClassResolver(Configuration<LibraryMapping>
> > > configuration) {
> > >        configuration.add(new LibraryMapping("mylib",
> > > "com.mycompany.package"));
> > >    }
> > >
> > > In the "com.mycompany.package.pages" package there is the X.tml.
> > > Pointing my browser to
> > >
> > > http://localhost:8080/context/mylib/x
> > > http://localhost:8080/context/mylib.x
> > > http://localhost:8080/context/x
> > >
> > > doesn't work either.
> > >
> > > Thanks in advance!
> > > Janos
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >

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


Re: Page template and class location

Posted by János Jarecsni <ja...@gmail.com>.
Hi Michael,

what did you do? I did what I wrote (yes it is a library JAR, I have the
LibraryModule class I quoted, the library name is "mylib", and the quoted
URLs do NOT work. What URL did you use?

thx a lot
Janos

On 21/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
>
> Hi Janos,
>
> if your library is in a jar file read [1], else add the method you posted
> in your current Module. Tested it, works like a charm ;)
>
> [1]
> http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
> Infos on Modules:
> http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html
>
> János Jarecsni schrieb:
>
> > Yes, but how? :) I tried various ways, none worked. The library contains
> > the
> > following library module:
> >
> >    public static void
> > contributeComponentClassResolver(Configuration<LibraryMapping>
> > configuration) {
> >        configuration.add(new LibraryMapping("mylib",
> > "com.mycompany.package"));
> >    }
> >
> > In the "com.mycompany.package.pages" package there is the X.tml.
> > Pointing my browser to
> >
> > http://localhost:8080/context/mylib/x
> > http://localhost:8080/context/mylib.x
> > http://localhost:8080/context/x
> >
> > doesn't work either.
> >
> > Thanks in advance!
> > Janos
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Page template and class location

Posted by Michael Gerzabek <mi...@gmx.net>.
Hi Janos,

if your library is in a jar file read [1], else add the method you 
posted in your current Module. Tested it, works like a charm ;)

[1] 
http://www.nabble.com/T5%3A-component-libraries-to12055274.html#a12055580
Infos on Modules: 
http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html

János Jarecsni schrieb:
> Yes, but how? :) I tried various ways, none worked. The library contains the
> following library module:
>
>     public static void
> contributeComponentClassResolver(Configuration<LibraryMapping>
> configuration) {
>         configuration.add(new LibraryMapping("mylib",
> "com.mycompany.package"));
>     }
>
> In the "com.mycompany.package.pages" package there is the X.tml.
> Pointing my browser to
>
> http://localhost:8080/context/mylib/x
> http://localhost:8080/context/mylib.x
> http://localhost:8080/context/x
>
> doesn't work either.
>
> Thanks in advance!
> Janos
>   


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


Re: Page template and class location

Posted by János Jarecsni <ja...@gmail.com>.
Yes, but how? :) I tried various ways, none worked. The library contains the
following library module:

    public static void
contributeComponentClassResolver(Configuration<LibraryMapping>
configuration) {
        configuration.add(new LibraryMapping("mylib",
"com.mycompany.package"));
    }

In the "com.mycompany.package.pages" package there is the X.tml.
Pointing my browser to

http://localhost:8080/context/mylib/x
http://localhost:8080/context/mylib.x
http://localhost:8080/context/x

doesn't work either.

Thanks in advance!
Janos



On 21/04/2008, Michael Gerzabek <mi...@gmx.net> wrote:
>
> János Jarecsni schrieb:
>
> > I have a component library, x.jar. I placed a y.tml into its pages
> > package
> > (some.package.pages, where some.package is declared in the library
> > module as
> > the root package). I added the component jar to the web application,
> > still I
> > cannot access the x.tml as a page.
> >
> >
> When y.tml is in x.jar then you maybe might want to address y(.tml) in the
> browser!
>
> > Any help is welcome! :)
> >
> > Cheers,
> > Janos
> >
> >
> >
> > On 19/04/2008, János Jarecsni <ja...@gmail.com> wrote:
> >
> >
> > > Hi,
> > >
> > > can a page be contributed to the web application by a JAR file (just
> > > like
> > > component templates)? If so, how an URL can be constructed to such a
> > > page?
> > > Concretely, is it possible for T5 to have a forum.tml residing in the
> > > com.foo.bar package of a forum.jar file and use it in the application?
> > >
> > > thanks in advance,
> > > Janos
> > >
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Page template and class location

Posted by Michael Gerzabek <mi...@gmx.net>.
János Jarecsni schrieb:
> I have a component library, x.jar. I placed a y.tml into its pages package
> (some.package.pages, where some.package is declared in the library module as
> the root package). I added the component jar to the web application, still I
> cannot access the x.tml as a page.
>   
When y.tml is in x.jar then you maybe might want to address y(.tml) in 
the browser!
> Any help is welcome! :)
>
> Cheers,
> Janos
>
>
>
> On 19/04/2008, János Jarecsni <ja...@gmail.com> wrote:
>   
>> Hi,
>>
>> can a page be contributed to the web application by a JAR file (just like
>> component templates)? If so, how an URL can be constructed to such a page?
>> Concretely, is it possible for T5 to have a forum.tml residing in the
>> com.foo.bar package of a forum.jar file and use it in the application?
>>
>> thanks in advance,
>> Janos
>>
>>     


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


Re: Page template and class location

Posted by János Jarecsni <ja...@gmail.com>.
I have a component library, x.jar. I placed a y.tml into its pages package
(some.package.pages, where some.package is declared in the library module as
the root package). I added the component jar to the web application, still I
cannot access the x.tml as a page.

Any help is welcome! :)

Cheers,
Janos



On 19/04/2008, János Jarecsni <ja...@gmail.com> wrote:
>
> Hi,
>
> can a page be contributed to the web application by a JAR file (just like
> component templates)? If so, how an URL can be constructed to such a page?
> Concretely, is it possible for T5 to have a forum.tml residing in the
> com.foo.bar package of a forum.jar file and use it in the application?
>
> thanks in advance,
> Janos
>