You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paulo Ramos <pa...@multicert.com> on 2007/07/19 18:08:53 UTC

Pages Library

Hi all,

I have a group of Tapestry pages that are equal in 3 different projects. 
I have created a Library with some shared components, but there is a way 
to do the same with the pages?

Thank's for your time.

Paulo Ramos - Portugal



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


Re: Pages Library

Posted by Hugo Palma <hu...@gmail.com>.
Sure there is.
Just create the .page, template and class in your library jar.
Then add something like this to you library spec file:

<page name="MyLibraryPage specification-path="pages/MyLibraryPage.page"/>

Paulo Ramos wrote:
> Hi all,
>
> I have a group of Tapestry pages that are equal in 3 different 
> projects. I have created a Library with some shared components, but 
> there is a way to do the same with the pages?
>
> Thank's for your time.
>
> Paulo Ramos - Portugal
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Pages Library

Posted by Hugo Palma <hu...@gmail.com>.
Yep

http://tapestry.apache.org/tapestry3/doc/TapestryUsersGuide/spec.page.html

Mark Stang wrote:
> Does this work in 3.x?
>
> regards,
>
> Mark
>
> Mark J. Stang
> Software Engineer
> office: +1 303.468.2900
> Ping Identity
>
>
>
> -----Original Message-----
> From: Renat Zubairov [mailto:renat.zubairov@gmail.com]
> Sent: Thu 7/19/2007 10:18 AM
> To: Tapestry users
> Subject: Re: Pages Library
>  
> That's quite a fancy feature of Tapestry, I didn't expected to find it
> but it's actually there and woking
>
> See
>
> http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/BookieMail.library
>
> You can put pages in the library declaration. Reference to the page
> should be done with prefix
>
> Renat
>
> On 19/07/07, Paulo Ramos <pa...@multicert.com> wrote:
>   
>> Hi all,
>>
>> I have a group of Tapestry pages that are equal in 3 different projects.
>> I have created a Library with some shared components, but there is a way
>> to do the same with the pages?
>>
>> Thank's for your time.
>>
>> Paulo Ramos - Portugal
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>     
>
>
>   

RE: Pages Library

Posted by Mark Stang <ms...@pingidentity.com>.
Does this work in 3.x?

regards,

Mark

Mark J. Stang
Software Engineer
office: +1 303.468.2900
Ping Identity



-----Original Message-----
From: Renat Zubairov [mailto:renat.zubairov@gmail.com]
Sent: Thu 7/19/2007 10:18 AM
To: Tapestry users
Subject: Re: Pages Library
 
That's quite a fancy feature of Tapestry, I didn't expected to find it
but it's actually there and woking

See

http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/BookieMail.library

You can put pages in the library declaration. Reference to the page
should be done with prefix

Renat

On 19/07/07, Paulo Ramos <pa...@multicert.com> wrote:
> Hi all,
>
> I have a group of Tapestry pages that are equal in 3 different projects.
> I have created a Library with some shared components, but there is a way
> to do the same with the pages?
>
> Thank's for your time.
>
> Paulo Ramos - Portugal
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,
Renat Zubairov

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



Re: Pages Library

Posted by Igor Drobiazko <ig...@gmail.com>.
Prefix is the namespace of the library. You define it in your
app.application like this:

<library id="contrib"
specification-path="/org/apache/tapestry/contrib/Contrib.library"/>

'contrib' is the namespace/prefix.


On 7/19/07, Paulo Ramos <pa...@multicert.com> wrote:
>
> Thanks
>
> How do i call the pages??
> What prefix??
>
> Paulo Ramos - Portugal
>
> Renat Zubairov escreveu:
> > That's quite a fancy feature of Tapestry, I didn't expected to find it
> > but it's actually there and woking
> >
> > See
> >
> >
> http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/BookieMail.library
> >
> >
> > You can put pages in the library declaration. Reference to the page
> > should be done with prefix
> >
> > Renat
> >
> > On 19/07/07, Paulo Ramos <pa...@multicert.com> wrote:
> >> Hi all,
> >>
> >> I have a group of Tapestry pages that are equal in 3 different
> projects.
> >> I have created a Library with some shared components, but there is a
> way
> >> to do the same with the pages?
> >>
> >> Thank's for your time.
> >>
> >> Paulo Ramos - Portugal
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> >
>
>
>

Re: Pages Library

Posted by Steve Shucker <ss...@vmsinfo.com>.
Use whatever prefix your library is mapped with.  It's the "id" 
attribute in your *.application file.

BTW, I've found that you NEED to include a *.page file for pages in 
libraries.  Maybe it was fixed in the  4.1.2 release, but specless pages 
in libraries never worked for me.

-Steve

Paulo Ramos wrote:
> Thanks
>
> How do i call the pages??
> What prefix??
>
> Paulo Ramos - Portugal
>
> Renat Zubairov escreveu:
>> That's quite a fancy feature of Tapestry, I didn't expected to find it
>> but it's actually there and woking
>>
>> See
>>
>> http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/BookieMail.library 
>>
>>
>> You can put pages in the library declaration. Reference to the page
>> should be done with prefix
>>
>> Renat
>>
>> On 19/07/07, Paulo Ramos <pa...@multicert.com> wrote:
>>> Hi all,
>>>
>>> I have a group of Tapestry pages that are equal in 3 different 
>>> projects.
>>> I have created a Library with some shared components, but there is a 
>>> way
>>> to do the same with the pages?
>>>
>>> Thank's for your time.
>>>
>>> Paulo Ramos - Portugal
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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: Pages Library

Posted by Paulo Ramos <pa...@multicert.com>.
Thanks

How do i call the pages??
What prefix??

Paulo Ramos - Portugal

Renat Zubairov escreveu:
> That's quite a fancy feature of Tapestry, I didn't expected to find it
> but it's actually there and woking
>
> See
>
> http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/BookieMail.library 
>
>
> You can put pages in the library declaration. Reference to the page
> should be done with prefix
>
> Renat
>
> On 19/07/07, Paulo Ramos <pa...@multicert.com> wrote:
>> Hi all,
>>
>> I have a group of Tapestry pages that are equal in 3 different projects.
>> I have created a Library with some shared components, but there is a way
>> to do the same with the pages?
>>
>> Thank's for your time.
>>
>> Paulo Ramos - Portugal
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>


Re: Pages Library

Posted by Renat Zubairov <re...@gmail.com>.
That's quite a fancy feature of Tapestry, I didn't expected to find it
but it's actually there and woking

See

http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/BookieMail.library

You can put pages in the library declaration. Reference to the page
should be done with prefix

Renat

On 19/07/07, Paulo Ramos <pa...@multicert.com> wrote:
> Hi all,
>
> I have a group of Tapestry pages that are equal in 3 different projects.
> I have created a Library with some shared components, but there is a way
> to do the same with the pages?
>
> Thank's for your time.
>
> Paulo Ramos - Portugal
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,
Renat Zubairov

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