You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Korben Zhang <ko...@gmail.com> on 2007/07/26 12:12:18 UTC

T5: how to create comonents package like t4?

Hi,all
T5 components was put in ${app-root}/components by default,  I wanna create
reusable
components in different web applications. How to do?

Thanks.

-- 
Korben Zhang

Re: T5: how to create comonents package like t4?

Posted by Shing Hing Man <ma...@yahoo.com>.
This question has come up in the mailing list
recently.
The following gives a brief description.

Suppose org.man.tapestry5.components will hold our new
components.

1) add the following to AppModule


    public static void
contributeComponentClassResolver(Configuration<LibraryMapping>
configuration)
    {
        // Creates a virtual root pacakge for
pages,components.
        configuration.add(new LibraryMapping("man",
"org.man.tapestry5"));
    }

2) Suppose in  org.man.tapestry5.components, we have
component PageLinkPopup.java.

Usage :

<a href="#" t:type="man/pagelinkPopup" t:page="home"
   windowName="literal:my windown" features="literal:
'resizable,scrollbars,top=100,left=200,height=300,
width=500'"
>Home</a>

Shing


--- Korben Zhang <ko...@gmail.com> wrote:

> Hi,all
> T5 components was put in ${app-root}/components by
> default,  I wanna create
> reusable
> components in different web applications. How to do?
> 
> Thanks.
> 
> -- 
> Korben Zhang
> 


Home page : http://www.lombok.demon.co.uk/



      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

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