[Seasar-user:21566] Re: 繰り返しと条件分岐について
Koichi Kobayashi
[E-MAIL ADDRESS DELETED]
2013年 2月 27日 (水) 03:59:59 JST
Hi Weiming,
Can you try to add the following to your web.xml?
This avoids <input type="hidden" name="te-conditions" />.
<context-param>
<param-name>teeda.JAVASCRIPT_NOT_PERMITTED_PATH</param-name>
<param-value>/path/to/yourBig.html</param-value>
</context-param>
http://teeda.seasar.org/ja/extension_customize.html#javascript
On Tue, 26 Feb 2013 10:28:32 +0800, Weiming Zhou <zhou_w @ worksap.co.jp> wrote:
> Greetings,
>
> This is Weiming Zhou. I'd like to ask a few questions about loop and
> te:condition.
>
> I tried to display a list of items with ' <table><tbody
> id="xxxItems">... ', and I placed several te:condition within the table
> to control whether some of the columns are displayed or not, for
> instance, <te:condition rendered="#{xxxPage.showColumn1}"
> omittag="true">,etc. I find it extremely slow when it rediects to other
> pages from this page if there are up to several thousand items and I
> want to control the display of up to 20 columns.
>
> I read log and find something like
> PageScope={org.seasar.teeda.extension.Condition={Form:fakeItems:0:showColumn1=true,Form:fakeItems:1:showColumn1=true,...}
>
> Moreover, Teeda seems to encode the information for te:condition in
> the web page using a hidden input field named "te:condition", whose
> value is so long that it makes HTTP requests extremely large, which
> might be the reason of the pool performance my project suffers but I'm
> not sure. I guess the information stored in the server side and the
> client side might be redundant.
>
> Q1. Is there any way to make Teeda store all this information in
> server side in order not to make the HTTP requests so large?
> Q2. If I don't care about the value of Booleans like showColumn1 when
> posting back, is there any way to avoid the performance penalty for both
> the server side and client side? I mean I don't want Teeda to store
> these things in PageScope or a hidden field in the web page.
>
> Thanks
>
--
{
name: "Koichi Kobayashi",
mail: "koichik @ improvement.jp",
blog: "http://d.hatena.ne.jp/koichik/",
twitter: "@koichik"
}
Seasar-user メーリングリストの案内