12.07.2015 Views

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

Beginning Java EE 6 with GlassFish 3, Second Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 12 ■ PROCESSING AND NAVIGATIONAPress - <strong>Beginning</strong> <strong>Java</strong> <strong>EE</strong> 6The partial response from the server contains the XHTML portion of the page to be updated. The<strong>Java</strong>Script looks for the booklist element of the page and applies the changes needed. The partialresponse on Listing 12-16 is self-explanatory; it specifies that an update has to be made to thecomponent identified by booklist (). The body of the element is thefragment of XHTML that has to override the actual data table. Of course, this XML is handledautomatically by the JSF Ajax handlers—the developer doesn’t need to do anything <strong>with</strong> it manually.Listing 12-16. The Partial Response Received by the ClientISBNTitlePriceDescriptionNumber Of PagesIllustrations1234-234H2G212.0Scifi IT book241false564-694Robots18.5Best seller317true375

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!