-
15. Re: JSF performance tips in Seam applications
mgrouch Aug 28, 2007 12:08 PM (in response to mgrouch)So far I have this proposal to prevent double submission
http://jira.jboss.org/jira/browse/RF-710
Also it could be used on any Ajax request to prevent concurrent
ajax requests when there is ajax activity alread.
What do you think?
Thanks -
16. Re: JSF performance tips in Seam applications
amitev Aug 29, 2007 3:02 AM (in response to mgrouch)In shale project there is a component that prevents double submits (shale token).
-
17. Re: JSF performance tips in Seam applications
denis-karpov Aug 29, 2007 4:26 AM (in response to mgrouch)About double requests....
I used for a long time the solution that I have proposed to Gavin
http://jira.jboss.org/jira/browse/JBSEAM-183
Gavin by some reasons did not accept it in to Seam. I did not catch exactly why. As I understand it concerns clustering. I do not know about clustering, but on single server it works reliably 100%.
Denis. -
18. Re: JSF performance tips in Seam applications
mgrouch Sep 26, 2007 6:11 PM (in response to mgrouch)Here is a link to additional performance discussion thread
Topics discussed there include
EL performance, impact of reflection,
impact of Seam interception, using outjection,
impact of Seam lookups for annotations,
comparison with JSP
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118762
Thanks -
19. Re: JSF performance tips in Seam applications
asookazian Sep 26, 2007 7:03 PM (in response to mgrouch)I don't think I saw this one yet:
don't code heavy logic or db access code (opening db connections are expensive) in getXXX() methods that are called from JSF EL (e.g. methods called from render or value attributes).
It's possible that your getXXX() methods may be called several times (unbeknownst to you until you use the debugger) when the JSF is rendering.
Apparently, there is nothing in the JSF spec that states the getXXX() methods must be called only once per rendering of the JSF page. -
20. Re: JSF performance tips in Seam applications
lisaanm Nov 5, 2007 6:42 AM (in response to mgrouch)Hi,
I came across a performance tip for JSF/JSP pages and would like to confirm it.
Here is what they say:
JSF/JSP tags should be in one line.
Example:
BEFORE<h:form> <h:inputText value="SEAM Rocks!!!!"> </h:form>
AFTER<h:form> <h:inputText value="SEAM Rocks!!!!"> </h:form>
Eventhough tough to read JSF/JSP pages, but for production i think its OK.
Any comments about this.
Thanks -
21. Re: JSF performance tips in Seam applications
pmuir Nov 5, 2007 8:28 AM (in response to mgrouch)Have you got a source for that? It seems like FUD to me.