Narcis Paslaru wrote:
Hi all,
You should read this e-mail backwords. If anybody have the same
problem or have any idea about why this is happening and how it's
supposed to be fixed, please reply !
Thank you,
Narcis Paslaru
I remember experiencing a similar problem when using| c:forEach instead
of ui:repeat (lots of seam calls) Could it be that|?
/JM
------------------------------------------------------------------------
Subject:
Multiple calls to a SEAM component's method
From:
Narcis Paslaru <[EMAIL PROTECTED]>
Date:
Mon, 19 Feb 2007 13:45:11 +0200
To:
[EMAIL PROTECTED]
To:
[EMAIL PROTECTED]
Message-ID:
<[EMAIL PROTECTED]>
User-Agent:
Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version:
1.0
Content-Type:
multipart/mixed; boundary="------------070401010103030108010305"
Hi all,
This issue is better described at :
http://jira.nuxeo.org/browse/NXP-635 .
If anyone has any idea why is this happening and how to fix it, please
reply asap.
Thank you,
Narcis Paslaru
------------------------------------------------------------------------
Subject:
Re: Sections model calls
From:
Narcis Paslaru <[EMAIL PROTECTED]>
Date:
Mon, 19 Feb 2007 13:01:03 +0200
To:
Anahide Tchertchian <[EMAIL PROTECTED]>
To:
Anahide Tchertchian <[EMAIL PROTECTED]>
Message-ID:
<[EMAIL PROTECTED]>
User-Agent:
Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version:
1.0
References:
<[EMAIL PROTECTED]>
In-Reply-To:
<[EMAIL PROTECTED]>
Content-Type:
multipart/alternative; boundary="------------070404000708030107040304"
Anahide Tchertchian wrote:
Hi,
Looking at your templates, it seems to me sections_table will not be
used for other purposes than publication (is it?). If yes, i think
you can try to avoid using ui:param because it is not innocent at all
in generating spurious calls.
Anyway this tree will surely be kept in some sort of cache and/or
computed from the search engine in the future, so I would not worry
about optimising it now.
Cheers,
anahide.
Hi Anahide,
I took your advice and I've modifyed the page to not use
<ui:decoarate>. Instead I moved all the code that was in the template,
up to the document_publish.xhtml.
Still I got 22 method calls for 1 page rendering so I've eliminated
some code to see what was causing the extra calls.
I used *<c:set var="documents"
value="#{publishActions.sectionsSelectModel}"/>* instead of
*<ui:param> *but it seems like every time I used documents in my page,
a call was made to get the documents. After I've eliminated all the
references to documents there are still 4 calls / page - that is 1 for
every section that I have defined in my domain.
If you have another idea, please let me know about it.
Thank you,
Narcis
------------------------------------------------------------------------
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm