You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Colin Sampaleanu <co...@exis.com> on 2004/04/26 01:47:53 UTC
Multiple tables on one page seem to share one instance of current
page and column sort
I have a page with multiple tables inside one form. The display of data
inside each table is fine, but for some reason, if I click the
left/right navigation links, _all_ the tables go to the previous or next
page. In the same fashion, if I click on a column header, _all_ the
tables sort on that column. The template is very simple:
<span jwcid="@Conditional" condition="ognl:developerList != null">
<span jwcid="@Foreach" source="ognl:developerList"
value="ognl:developer">
<table jwcid="@contrib:FormTable" width="100%" border="0"
cellpadding="0" cellspacing="1" align="center" class="contentBlock"
source="ognl:developer"
columns="Username:userName, App Name:appName"
row="ognl:event"
rowsClass="ognl:beans.rowClass.next"/>
</span>
</span>
Now I've looked at the generated hrefs, and they're different:
<a href="javascript:submitLink(document.Form0,"linkColumn$0");">App Name</a></td>
<a href="javascript:submitLink(document.Form0,"linkColumn$2");">App Name</a>
yet the same state is still being shared across all tables, for these
items, for some reason.
Anybody have an idea what is going on. I sort of remember seeing
something similar on the list a while back, but I can't find that message.
Regards,
Colin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Multiple tables on one page seem to share one instance of current
page and column sort
Posted by Colin Sampaleanu <co...@exis.com>.
Thanks for the info. I think this would work.
So this is not really a bug then. By default, unless you pass in an
ITableSessionManager impl to the table, will all tables on the page
share the same state, or only when they are in a loop like this? I
presume it's the former, right?
Regards,
Colin
Mindbridge wrote:
>Hi,
>
>This happens because the table state is stored in a persistent property by
>default. Please implement the ITableSessionStoreManager interface and pass
>it to the tableSessionStoreManager parameter. You can make the
>implementation so that it stores the table state in the Visit according to
>the current iteration, for example.
>
>Would this help?
>
>----- Original Message -----
>From: "Colin Sampaleanu" <co...@exis.com>
>To: "Tapestry users" <ta...@jakarta.apache.org>
>Sent: Monday, April 26, 2004 2:47 AM
>Subject: Multiple tables on one page seem to share one instance of current
>page and column sort
>
>
>
>
>>I have a page with multiple tables inside one form. The display of data
>>inside each table is fine, but for some reason, if I click the
>>left/right navigation links, _all_ the tables go to the previous or next
>>page. In the same fashion, if I click on a column header, _all_ the
>>tables sort on that column. The template is very simple:
>>
>> <span jwcid="@Conditional" condition="ognl:developerList != null">
>> <span jwcid="@Foreach" source="ognl:developerList"
>>value="ognl:developer">
>> <table jwcid="@contrib:FormTable" width="100%" border="0"
>>cellpadding="0" cellspacing="1" align="center" class="contentBlock"
>> source="ognl:developer"
>> columns="Username:userName, App Name:appName"
>> row="ognl:event"
>> rowsClass="ognl:beans.rowClass.next"/>
>> </span>
>> </span>
>>
>>Now I've looked at the generated hrefs, and they're different:
>>
>><a
>>
>>
>href="javascript:submitLink(document.Form0,"linkColumn$0");">App
>Name</a></td>
>
>
>><a
>>
>>
>href="javascript:submitLink(document.Form0,"linkColumn$2");">App
>Name</a>
>
>
>>yet the same state is still being shared across all tables, for these
>>items, for some reason.
>>
>>Anybody have an idea what is going on. I sort of remember seeing
>>something similar on the list a while back, but I can't find that message.
>>
>>Regards,
>>Colin
>>
>>
>>
>>---------------------------------------------------------------------
>>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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Multiple tables on one page seem to share one instance of current page and column sort
Posted by Mindbridge <mi...@yahoo.com>.
Hi,
This happens because the table state is stored in a persistent property by
default. Please implement the ITableSessionStoreManager interface and pass
it to the tableSessionStoreManager parameter. You can make the
implementation so that it stores the table state in the Visit according to
the current iteration, for example.
Would this help?
----- Original Message -----
From: "Colin Sampaleanu" <co...@exis.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Monday, April 26, 2004 2:47 AM
Subject: Multiple tables on one page seem to share one instance of current
page and column sort
> I have a page with multiple tables inside one form. The display of data
> inside each table is fine, but for some reason, if I click the
> left/right navigation links, _all_ the tables go to the previous or next
> page. In the same fashion, if I click on a column header, _all_ the
> tables sort on that column. The template is very simple:
>
> <span jwcid="@Conditional" condition="ognl:developerList != null">
> <span jwcid="@Foreach" source="ognl:developerList"
> value="ognl:developer">
> <table jwcid="@contrib:FormTable" width="100%" border="0"
> cellpadding="0" cellspacing="1" align="center" class="contentBlock"
> source="ognl:developer"
> columns="Username:userName, App Name:appName"
> row="ognl:event"
> rowsClass="ognl:beans.rowClass.next"/>
> </span>
> </span>
>
> Now I've looked at the generated hrefs, and they're different:
>
> <a
href="javascript:submitLink(document.Form0,"linkColumn$0");">App
Name</a></td>
> <a
href="javascript:submitLink(document.Form0,"linkColumn$2");">App
Name</a>
>
> yet the same state is still being shared across all tables, for these
> items, for some reason.
>
> Anybody have an idea what is going on. I sort of remember seeing
> something similar on the list a while back, but I can't find that message.
>
> Regards,
> Colin
>
>
>
> ---------------------------------------------------------------------
> 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