You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ma...@ch.schindler.com on 2005/03/10 14:11:56 UTC

list as table datarow

We tried to use a list holding the data for one table row but we got  the
string representation of the whole list in every cell.
what did we do wrong.

Markus Haas


*******
<br>
Notice: The information contained in this message is intended only for 
use of the individual(s) named above and may contain confidential, 
proprietary or legally privileged information. No confidentiality or 
privilege is waived or lost by any mistransmission. If you are not the 
intended recipient of this message you are hereby notified that you 
must not use, disseminate, copy it in any form or take any action in 
reliance of it. If you have received this message in error please 
delete it and any copies of it and notify the sender immediately.
<br>
*******

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


Re: list as table datarow

Posted by Hanson Char <ha...@gmail.com>.
You can use a row index to retrieve the corresponding row from your
list.  If there doesn't exist one with your table component, you can
create your own.

Example:

	private int rowIndex = -1;

	public Row getCurrentRow() {
		List rowList = this.getRowList();
		Row row = (Row)rowList.get(this.rowIndex);
		return row;
	}

	public void setCurrentRow(Row currentRow) {
		this.rowIndex++;
	}

(If your table component allows pagination, you also need to
initialize rowIndex to the current row index relative to the current
page number.)

H

On Thu, 10 Mar 2005 14:11:56 +0100, markus_haas@ch.schindler.com
<ma...@ch.schindler.com> wrote:
> We tried to use a list holding the data for one table row but we got  the
> string representation of the whole list in every cell.
> what did we do wrong.
> 
> Markus Haas
> 
> *******
> <br>
> Notice: The information contained in this message is intended only for
> use of the individual(s) named above and may contain confidential,
> proprietary or legally privileged information. No confidentiality or
> privilege is waived or lost by any mistransmission. If you are not the
> intended recipient of this message you are hereby notified that you
> must not use, disseminate, copy it in any form or take any action in
> reliance of it. If you have received this message in error please
> delete it and any copies of it and notify the sender immediately.
> <br>
> *******
> 
> ---------------------------------------------------------------------
> 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