You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Leonardo Quijano Vincenzi <le...@dtqsoftware.com> on 2005/09/01 16:47:08 UTC

Organizing components

Hello,

Is there a way I can organize components into subdirectories? For 
example, if I have several modules in my web-app:

/module1
/module2
..
etc

I'd like to create some components, specific to those modules, just to 
help with the web site's refactoring (so I can define common FORMs or a 
dashboard box, etc). Right now the only way I can define them is in a 
single directory (WEB-INF, or the context-root, etc). I'd like to use a 
hierarchical approach such as:

<span jwcid="@module1/Dashboard">

etc..
I says that's an invalid jwcid. Is there a way I can do this? I've been 
unable to find anything in the documentation.
Thanks,

-- 
Ing. Leonardo Quijano Vincenzi
Director Técnico
DTQ Software




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


Re: Organizing components

Posted by Phil Ulrich <ph...@gmail.com>.
I ran into this on a recent project with a large number of components.
What I did was:

1. Move the component into a subdirectory.
2. Update (yourapp).application so that it knows where to find the
module. In my case this was as simple as:

<component-type type="Component"
specification-path="subdirectory/Component.jwc"/>

3. I could then refer to the component using <span jwcid="@Component" />.

I am using 3.0.3, YMMV using Tap4 as I have no experience with it yet.

--Phil

On 9/1/05, Leonardo Quijano Vincenzi <le...@dtqsoftware.com> wrote:
> Hello,
> 
> Is there a way I can organize components into subdirectories? For
> example, if I have several modules in my web-app:
> 
> /module1
> /module2
> ..
> etc
> 
> I'd like to create some components, specific to those modules, just to
> help with the web site's refactoring (so I can define common FORMs or a
> dashboard box, etc). Right now the only way I can define them is in a
> single directory (WEB-INF, or the context-root, etc). I'd like to use a
> hierarchical approach such as:
> 
> <span jwcid="@module1/Dashboard">
> 
> etc..
> I says that's an invalid jwcid. Is there a way I can do this? I've been
> unable to find anything in the documentation.
> Thanks,
> 
> --
> Ing. Leonardo Quijano Vincenzi
> Director Técnico
> DTQ Software
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

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