You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrey Tkach <tk...@sac.com.ua> on 2005/06/06 13:15:44 UTC

Border vs Tiles

Hi,
 
As I've understood I do not need the component like Tiles in Tapestry, I can
use the border component instead.
But is there a way to put several pages on one Border component?
For instance, login form in the corner is one page, content bellow on the
layout is a second page and these pages are put into one Border component.
 
Thanks,
 

Andrey


Re: Border vs Tiles

Posted by Ron Piterman <mp...@vollbio.de>.
ציטוט Andrey Tkach:
> Thank you. Solution turned out to not so simple like in Tiles or using
> <jsp:include>. I need to write custom component for each part of the page. 
I Must disagree...

The nice thing about these components is:
1. they are simple to write.
2. they "function". What I mean by function is, imagine a login 
component. You can add to it the whole functionality, and use it 
whereever you want. In Tiles, you have to use complicated flow, so the 
login button addresses a page and throws you out of your current context.

In Tapestry, a login component could just change a member in the Visit, 
or, if failing, display a message *As part of the component* so its 
acutally much mucg simpler.

> 
> Andrey
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Re[2]: Border vs Tiles

Posted by Kevin Menard <ni...@negativetwenty.net>.
On Jul 26, 2005, at 1:59 AM, Andrey Tkach wrote:

> Thank you for reply, your code proved to be quite interesting. Is it
> somewhere the live example of current implementation of Bookmarker?  
> Because
> when I tried to contact ...:8080 the connection was refused.

Ahh, sorry.  I changed the host that the webapp ran on from the one  
the code is hosted on.  I'll try to get a live copy back up and  
running soon.  I also intend on migrating it to Picasso, which may be  
interesting for people to look at.

-- 
Kevin

RE: Re[2]: Border vs Tiles

Posted by Andrey Tkach <tk...@sac.com.ua>.
Hello Kevin,

Yep, I see. I was pretty new to Tapestry, coming from Struts. The idea was
ability to substitute not only one part of the Border component, i.e. have 2
or more tags like this 
<span jwcid="@RenderBody">
</span> to have login box reusable, for example.
Now with growing experience in Tapestry I see it could be solved different
ways, like setting up the properties or writing own components.
Thank you for reply, your code proved to be quite interesting. Is it
somewhere the live example of current implementation of Bookmarker? Because
when I tried to contact ...:8080 the connection was refused.

Best wishes,
Andrey
-----Original Message-----
From: Kevin Menard [mailto:nirvdrum@negativetwenty.net] 
Sent: Wednesday, June 08, 2005 5:09 PM
To: Andrey Tkach
Cc: 'Tapestry users'
Subject: Re[2]: Border vs Tiles

Hello Andrey,

Monday, June 6, 2005, 11:05:15 AM, you wrote:

> Thank you. Solution turned out to not so simple like in Tiles or using
> <jsp:include>. I need to write custom component for each part of the page.

Perhaps I'm missing something here, but you don't *need* to write them
as components.  Your header, footer, login, etc. can just be part of
your border component.  For a small example, see:

http://www.negativetwenty.net/svn/bookmarker/trunk/context/WEB-INF/Border.ht
ml

-- 
Best regards,
 Kevin                            mailto:nirvdrum@negativetwenty.net



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


Re[2]: Border vs Tiles

Posted by Kevin Menard <ni...@negativetwenty.net>.
Hello Andrey,

Monday, June 6, 2005, 11:05:15 AM, you wrote:

> Thank you. Solution turned out to not so simple like in Tiles or using
> <jsp:include>. I need to write custom component for each part of the page.

Perhaps I'm missing something here, but you don't *need* to write them
as components.  Your header, footer, login, etc. can just be part of
your border component.  For a small example, see:

http://www.negativetwenty.net/svn/bookmarker/trunk/context/WEB-INF/Border.html

-- 
Best regards,
 Kevin                            mailto:nirvdrum@negativetwenty.net


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


RE: Border vs Tiles

Posted by Markus Eberle <Ma...@tngtech.com>.
Zitat von Andrey Tkach <tk...@sac.com.ua>:

> Thank you. Solution turned out to not so simple like in Tiles or using
> <jsp:include>. I need to write custom component for each part of the page.

Well a custom component is not more complex than a jsp, that could be included,
as the jsp still requires the logic.


Cheers,
    Markus

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


RE: Border vs Tiles

Posted by Ricardo Cortes <rc...@boltstaff.com>.
Try passing an arbitrary list of objects to a Tile, say an ArrayList of
employees.  This is much easier in Tapestry than in Tiles.

On Mon, 2005-06-06 at 18:05 +0300, Andrey Tkach wrote:
> Thank you. Solution turned out to not so simple like in Tiles or using
> <jsp:include>. I need to write custom component for each part of the page. 
> 
> Andrey
> 
> 
> ---------------------------------------------------------------------
> 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


RE: Border vs Tiles

Posted by Andrey Tkach <tk...@sac.com.ua>.
Thank you. Solution turned out to not so simple like in Tiles or using
<jsp:include>. I need to write custom component for each part of the page. 

Andrey


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


Re: Border vs Tiles

Posted by Ron Piterman <mp...@vollbio.de>.
Sure, but you should change your terminology abit:
The login form may be a component.
so you write your border:

  ... component 0 (header?) ...
  ... component 1 (login?)...
  ... component 2 (menu? )...
  <span jwcid="@RenderBody">
  ... component 3 (right menu? )...
  ... component 4 (footer ? ) ...

now for each page in the wished layout you use:

<span jwcid="@Border">
	here comes the page :)
</span>

this will result in:

  ... component 0 (header?) ...
  ... component 1 (login?)...
  ... component 2 (menu? )...
here comes the page :)
  ... component 3 (right menu? )...
  ... component 4 (footer ? ) ...


Cheers,
Ron

ציטוט Andrey Tkach:
> Hi,
>  
> As I've understood I do not need the component like Tiles in Tapestry, I can
> use the border component instead.
> But is there a way to put several pages on one Border component?
> For instance, login form in the corner is one page, content bellow on the
> layout is a second page and these pages are put into one Border component.
>  
> Thanks,
>  
> 
> Andrey
> 
> 


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