You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F. Da Costa Gomez" <dc...@fixed.com> on 2003/04/01 14:27:10 UTC
Using another Component within another one
Hi all,
If I got:
Border.(jwc & html & java)
Login.(html & page & java)
Both defined in the .application
Can I gain access to Login, *within the Border.html* by using
<table bla="dada" jwcid="@Login">
...
</table>
Or is this too simple a thought?
TIA
Fermin DCG
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: Using another Component within another one
Posted by "F.R. Da Costa Gomez" <dc...@fixed.com>.
I understand what you're suggesting and it can certainly be done.
Basically I was trying *not* to introduce another component with common
aspects.
Since I feel *less is more* I was looking for a way to utilize something
(like Login.page, that already worked on its own) in another setting
where life could be made easier by using just a little part of a
independent logical whole. (forget about the fact that I put it into the
<table> tag, blame it on the learning curve).
Or should I make a clear distinction between visual (.page) and
non-visual (.jwc) components. Whereby .jwc can be used within .page but
not vise versa (nor .page within .page)?
This is assuming one is just trying to gain access to non-visual stuff
(i.e. calc this or verify that)
If the above is a completely wrong approach to applying Tapestry that's
fine (it was just a thought).
Howard M. Lewis Ship wrote:
>I don't get where you are going with this.
>
>If Login is a page, why would you want to insert it into a component? As a
><table>?
>
>If you have common features used in both the Login page, and in your Border
>component, then you probably want to factor out a third component for the
>common aspects.
>
>--
>Howard M. Lewis Ship
>Creator, Tapestry: Java Web Components
>http://jakarta.apache.org/proposals/tapestry
>
>
>
>
>
>>-----Original Message-----
>>From: F. Da Costa Gomez [mailto:dcg@fixed.com]
>>Sent: Tuesday, April 01, 2003 7:27 AM
>>To: tapestry-user@jakarta.apache.org
>>Subject: Using another Component within another one
>>
>>
>>Hi all,
>>
>>If I got:
>>Border.(jwc & html & java)
>>Login.(html & page & java)
>>Both defined in the .application
>>
>>Can I gain access to Login, *within the Border.html* by using
>> <table bla="dada" jwcid="@Login">
>> ...
>> </table>
>>Or is this too simple a thought?
>>
>>
RE: Using another Component within another one
Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
I don't get where you are going with this.
If Login is a page, why would you want to insert it into a component? As a
<table>?
If you have common features used in both the Login page, and in your Border
component, then you probably want to factor out a third component for the
common aspects.
--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/proposals/tapestry
> -----Original Message-----
> From: F. Da Costa Gomez [mailto:dcg@fixed.com]
> Sent: Tuesday, April 01, 2003 7:27 AM
> To: tapestry-user@jakarta.apache.org
> Subject: Using another Component within another one
>
>
> Hi all,
>
> If I got:
> Border.(jwc & html & java)
> Login.(html & page & java)
> Both defined in the .application
>
> Can I gain access to Login, *within the Border.html* by using
> <table bla="dada" jwcid="@Login">
> ...
> </table>
> Or is this too simple a thought?
>
> TIA
> Fermin DCG
>
> --
> Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org