Well either you could use two tables, or you could have a third method mix
the two.
Don't you just want to have one or two of the columns in the first table
show something from the other list?

The way I would do that is to just add a property for the Post object that
refers to a specific Person object.

Then you could add a couple of columns in your columns="" binding that
actually refers to properties in person, like;

columns="columns="listOfPosts:Title:title, personName:Name:myPerson.name"

where you add in Post.java;

Person myPerson;
public Person getMyPerson()
{
   return myPerson;
}

anbd of course you have a getName() method on person.  Would that work??

Cheers,
PS

On 3/8/06, Nima Boustanian <[EMAIL PROTECTED]> wrote:
>
> Hey all
>
> How do I output data from multiple sources into one contrib:Table?
>
> What I do at the moment is:
>                                 <table jwcid="[EMAIL PROTECTED]:Table"
> id="conversationsPlaceHolder" source="ognl:posts"
>                                 columns="listOfPosts:Title:title,
> listOfPosts:Created:createdDate"
>                                 class="postTable" cellpadding="2"
> cellspacing="2" width="100%">
>
> Where the data source for source="ognl:posts" is
>                                public List getPosts() {
>                                     return getPostManager().getPosts();
>                                }
>
> The above example works fine, but what if I have another method which
> returns
>                                public List getPerson() {
>                                     return
> getPersonManager().getPersons();
>                                }
>
> How can I use both sources in one table? If this isn't possible, are
> there any other components that should be used instead?
>
> Thanks!
>
> Btw - if there are other newbies out there interested in Tapestry
> components, check out this site I stumbled across recently,
> it can come in handy: http://xdoclet.codehaus.org/TapestryTags
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to