Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7914221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:02:39+00:00 2026-06-03T14:02:39+00:00

In JSF 2.0, is there any significant technical difference between doing a non-AJAX submit

  • 0

In JSF 2.0, is there any significant technical difference between doing a non-AJAX submit e.g. and a “@all” AJAX submit e.g. ?

The user won’t perceive a page refresh from the AJAX-style submit, but is anything else technically significant happening? Is less data being submitted back to the server? Are any elements of the JSF life-cycle different with the AJAX versus non-AJAX submit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T14:02:41+00:00Added an answer on June 3, 2026 at 2:02 pm

    Technically, @all is slower than a synchronous postback. There’s no difference in the HTML rendering during render response, but there is slightly more data in the ajax response, because the ajax response is been sent as a XML document with the updated HTML as a CDATA block. The following data is added to the response on top of the entire HTML output:

    <?xml version='1.0' encoding='UTF-8'?>
    <partial-response>
        <changes>
            <update id="javax.faces.ViewRoot">
                <![CDATA[
                    HTML output here.
                ]]>
            </update>
            <update id="javax.faces.ViewState">
                <![CDATA[5778819104895950876:-4716773626508512118]]>
            </update>
        </changes>
    </partial-response>
    

    (you can see it yourself in “Net” or “Network” section of the web developer toolset in Chrome/Firebug/IE9 which you can get by pressing F12)

    That’s thus always ~250 bytes more than a synchronous response. Also, there’s some overhead in the postprocessing because JavaScript has to parse all that HTML out of the XML response and replace the DOM with it, although the performance impact is practically totally negligible these days with fast machines.

    However, in practice, @all appears visually faster than a synchronous postback because there’s no means of any “flash of content”.

    Note that @all was unsupported for long in PrimeFaces because it is “fundamentally wrong” (to cite the PrimeFaces lead), but after the OmniFaces FullAjaxExceptionHandler, the PrimeFaces lead has changed minds and it’s supported from PrimeFaces 3.2 and on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good morning all. Is there any jsf control that escapes the html tags? Imagine
I want to create User Interface in JSF. Is there any tool apart from
Are there any production quality JSF 2 implementations yet? If so what are they?
when to use Serializable backing bean in JSF? is there any factors to go
I am using Netbeans for JSF development and...is there any Visual Web Designer plugin
I am using JSF 1.1 with struts. Pages flicker while navigation. Is there any
Is there any way of providing a file download from a JSF backing bean
is there any standard Tag, or good taglib which enables hanging request in jsf
Is there any ready-to-use component for JSF that allows to chose the Date +
Is there any components like Devexpress (.NET) for JSF?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.