Showing posts with label jsf. Show all posts
Showing posts with label jsf. Show all posts

Practical RichFaces Review

Practical RichFaces
Average Reviews:

(More customer reviews)
Are you looking to buy Practical RichFaces? Here is the right place to find the great deals. we can offer discounts of up to 90% on Practical RichFaces. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Practical RichFaces ReviewFor as big an impact RichFaces and Ajax4jsf have had on JSF adoption, there's no question that there has been a dearth of good documentation on the subject. So how practice is RichFaces, really? That's the question Max Katz answers in his recently released Apress book, Practical RichFaces. At last, the missing manual has been discovered!
If you have ever perused the RichFaces documentation, you'll agree that it leaves out the bigger picture of how RichFaces works, in particular the underlying Ajax4jsf mechanism (i.e., the behavior provided by ). I can attest to the observation the author states in the introduction that a lot of developers are using the tags and attributes from RichFaces without a clear understanding of their purpose and, as such, only arrive at a working application through trial and error. After reading Practice RichFaces, and keeping it close at hand, you can finally put those painstaking steps aside and know what you are doing from the start.
The book starts out with one of the most clear and concise explanations of JSF that I have come across. You learn that Ajax and JSF are a good fit for one another and the combination allows you to do Ajax without having to suffer the headache of coding JavaScript and dealing with browser inconsistencies.
The author then sets the record straight about the origins of RichFaces and its relationship with Ajax4jsf. You learn that there is a clear distinction between the tags in the a4j: and rich: namespaces. Specifically, the a4j: tags provide page-level Ajax support whereas the rich: tags provide component-level Ajax support. As you learn about both tag sets, you begin to appreciate how easily you can add Ajax and partial page updates to your application using RichFaces. You can practically feel yourself maturing as a developer and eager to start adding more sophisticated user interfaces that give your application a desktop feel.
If you are seeking answers to specific questions you have about certain Ajax4jsf tags, I can assure you that you will find them in this book. Let me cite a couple of examples. Early on in the book, the author provides an explanation as to why content that was not rendered on an initial request cannot be rendered during a partial page update without a placeholder. This is a common problem that comes up as soon as the developer tries to use Ajax for input field validation. There is good coverage of the ajaxKeys attribute for updating individual rows in a UIData component, a very compelling feature of RichFaces in terms of performance. You also learn how to use the tag to create a wizard in a single-page application while still being able to leverage the JSF navigation rules.
Most important of all, you learn about the multitude of options you have to control the Ajax request, such as explicitly marking which regions of the page to update or instructing a region to update itself automatically on any Ajax request, adding an activity indicator to show when an Ajax request is in progress, submitting only a part of the form (i.e, processing only a subset of UIInput components on the server), bypassing model updates, queuing Ajax requests to avoid flooding the server, and discarding duplicate page updates. You even learn how to create a JavaScript function which behind the scenes executes a method on the server and subsequently performs a partial page update, separating the Ajax4jsf mechanism from any one component.
Although I have been using RichFaces for several years, I learned many things about RichFaces and even corrected some mistaken assumptions I had.
You are constantly reminded in the book that skinning is covered in chapter 11, almost to the point where you want to just skip to the chapter and get it over with. The coverage of skinning is pretty good, though a thorough explanation of the XCSS files and how they tie into the theme is sorely missed. There are other important areas of RichFaces that didn't make it into this book. There is no coverage of the drag and drop components nor, as mentioned earlier, the resource delivery framework. The section on developing a custom tree is fairly thin and, coming from experience, it turns out to be a lot more difficult than it appears. So while this book serves as a vital resource for understanding the fundamentals of how RichFaces works, there is still room for a book further along in the progression.
Despite providing a clear picture of how RichFaces works, the book has a number typos, broken grammar, incorrect code formatting, and mixed up code and diagram references, sadly a shortcoming of the RichFaces developer documentation as well. Likely you'll be able to read around the mistakes, though, and understand what was intended. I just wish more care had been taken to polish the manuscript and the code listings.
While Practical RichFaces is an excellent resource if you are developing an application using RichFaces, or you want to add Ajax capability to an existing JSF application, do not expect to find the information you need if you are planning to develop custom RichFaces components. The book lacks coverage of the RichFaces Component Development Kit (CDK) and the excellent resource delivery mechanism in RichFaces that supplies the assets (images, JavaScript, CSS) needed by the rich components. For this reason, the target audience of this book should be identified as the application developer, not the component developer, citing roles defined in the JSF specification.
As well as the author does explaining the concepts, tags, and tag attributes in RichFaces, the fact remains that RichFaces has several bizarre tag and attribute names that cause confusion for the developer. One example is the tag. Keep-Alive is an HTTP header that specifies to the browser how to control the connection. But the tag has nothing to do with this header. This tag stores the value resolved by a value expression in the UI component tree so that it's available on postback. This is just one example of how RichFaces is a bit rough around the edges. I'm hopeful that RichFaces 4 will align the excellent concepts in RichFaces under a better naming strategy. Of course, given that the names are not always intuitive, it makes this book an even more critical resource to you as a developer.
Looking beyond these technicalities aside, it's my recommendation that if you are using RichFaces, you should definitely take the opportunity to read this book.Practical RichFaces OverviewThis book illustrates how to use the RichFaces, a JSF component library that makes it easy to add Ajax to Java applications. JSF is the Java standard for component-based frameworks on the web, and libraries like this bring JSF's capabilities up to what users expect from modern web applications. The focus is on how to quickly use the RichFaces capabilities to radically change the look and responsiveness of application.

Want to learn more information about Practical RichFaces?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

JBoss® Seam: Simplicity and Power Beyond Java™ EE Review

JBossandreg; Seam: Simplicity and Power Beyond Java™ EE
Average Reviews:

(More customer reviews)
Are you looking to buy JBoss® Seam: Simplicity and Power Beyond Java™ EE? Here is the right place to find the great deals. we can offer discounts of up to 90% on JBoss® Seam: Simplicity and Power Beyond Java™ EE. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

JBoss® Seam: Simplicity and Power Beyond Java™ EE ReviewYuan and Heute offer the Java programmer a very tempting route away from using the standard Java Enterprise Edition. As they point out, EE version 5 is an uncomfortable mixture of EJBs and JSF. The EJBs exist on the server side and encapsulate business logic. While the JSF is used, also on the server side, as a model-view-controller framework for Web work. In general, separating the MVC from the business logic is correct. But if you have to code EJBs and JSF together, then things get awkward. Code gets verbose and hard to structure.
The book's alternative is Seam, which is meant to be a filler between EJBs and JSF. One nice aspect is that Seam is inherently stateful. For a Web user session, this is vital, and it's nice from the text to see state built into Seam, without you having to shoehorn it in.
Perhaps the most persuasive parts of the book are the code examples. Granted, the authors wrote these to be as concise and elegant as possible. But if you accept that most authors of computer books do this, then you can quickly appreciate the contrast between the code here and comparable code in texts on EJBs and JSF. The latter code examples are much longer and more intricate. The brevity of code writing that Seam affords you can greatly help in two ways. Quicker to write. And quicker to debug.
Having said this, I am undecided about one aspect of the text. Involving what is called "dependency bijection". It is meant as a lightweight way for POJOs to interact with each other. As opposed to using framework interfaces or abstract classes. But the extensive use of interfaces (and abstract classes) has led to the successful development of extensible packages like Eclipse. (And I'm sure readers can cite other examples.) Is it the case that interface implementations do have limitations, perhaps in the context of Web servers and business logic?JBoss® Seam: Simplicity and Power Beyond Java™ EE OverviewA new edition of this title is available, ISBN-10: 0137129394 ISBN-13: 9780137129393Discover JBoss Seam: the Unified Framework for Simpler, More Powerful Web DevelopmentJBoss Seam integrates EJB 3.0 and JSF components under a unified framework that simplifies and accelerates Java EE web development. Now, JBoss Seam's project leader and technology evangelist take you inside this powerful new technology, showing exactly how to put it to work. Michael Yuan and Thomas Heute show how JBoss Seam enables you to create web applications that would have been difficult or impossible with previous Java frameworks. Through hands-on examples and a complete case study application, you'll learn how to leverage JBoss Seam's breakthrough state management capabilities; integrate business processes and rules; use AJAX with Seam; and deploy your application into production, one step at a time. Coverage includesHow JBoss Seam builds on—and goes beyond—the Java EE platform• Using the "Stateful Framework": conversations, workspaces, concurrent conversations, and transactions• Integrating the web and data components: validation, clickable data tables, and bookmarkable web pages• Creating AJAX and custom UI components, enabling AJAX for existing JSF components, and JavaScript integration via Seam Remoting • Managing business processes, defining stateful pageflows, and implementing rule-based security• Testing and optimizing JBoss Seam applications • Deploying in diverse environments: with Tomcat, with production databases, in clusters, without EJB 3, and more* Download source code for this book's case study application at http://michaelyuan.com/seam/.www.prenhallprofessional.comwww.jboss.comAbout This Book About the Authors AcknowledgmentsPart I: Getting Started Chapter 1: What Is Seam? Chapter 2: Seam Hello World Chapter 3: Recommended JSF Enhancements Chapter 4: Rapid Application Development Tools Part II: Stateful Applications Made Easy Chapter 5: An Introduction to Stateful Framework Chapter 6: A Simple Stateful Application Chapter 7: Conversations Chapter 8: Workspaces and Concurrent Conversations Chapter 9: Transactions Part III: Integrating Web and Data Components Chapter 10: Validate Input Data Chapter 11: Clickable Data Tables Chapter 12: Bookmarkable Web Pages Chapter 13: The Seam CRUD Application Framework Chapter 14: Failing Gracefully Part IV: AJAX Support Chapter 15: Custom and AJAX UI Components Chapter 16: Enabling AJAX for Existing Components Chapter 17: Direct JavaScript Integration Part V: Business Processes and Rules Chapter 18: Managing Business Processes Chapter 19: Stateful Pageflows Chapter 20: Rule-Based Security Framework Part VI: Testing Seam Applications Chapter 21: Unit Testing Chapter 22: Integration Testing Part VII: Production Deployment Chapter 23: Java EE 5.0 Deployment Chapter 24: Seam Without EJB3 Chapter 25: Tomcat Deployment Chapter 26: Using a Production Database Chapter 27: Performance Tuning and Clustering Appendix A: Installing and Deploying JBoss AS Appendix B: Using Example Applications as Templates Index

Want to learn more information about JBoss® Seam: Simplicity and Power Beyond Java™ EE?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

Mastering JavaServer Faces (Java) Review

Mastering JavaServer Faces (Java)
Average Reviews:

(More customer reviews)
Are you looking to buy Mastering JavaServer Faces (Java)? Here is the right place to find the great deals. we can offer discounts of up to 90% on Mastering JavaServer Faces (Java). Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Mastering JavaServer Faces (Java) ReviewThis is the best JSF book I've read to date. To begin with, its an excellent value. There is no wasted space. The O'Reilly book has 242 pages of appendix which basically regurgitates the API (shame!) You won't find that here. Also, the authors do not waste your time explaining what a JSP page is, etc.
The book starts off with an overview of MVC but it goes beyond explaining what MVC is (which is where most books stop) but explains how MVC is used in Swing and Struts and compares that to how it is employed in JSF. It also goes into some of the rationale for why things in JSF were designed the way they were. If you're not into that - fine, but at least its not an explanation of how to deploy a Servlet.
This book provides the most thorough explanation of how things work in JSF and provides impressive coverage of the lifecylce. These are the things you are going to have to know once you finish your "Hello World" programs and need to start actually writing a program.
I've read the Core and O'Reilly books so far. I'd have to rate this one the best. Perhaps my impressions were affected by the fact that I read these books first, but I feel like the reader will learn more from this book. It doesn't waste your time writing "Hello Faces" examples in chapter one just to appease the reader. You won't get down and dirty with the code to the middle of the book but that is how it should be in my opinion.
Also, if you are a Struts programmer, this book is much better than the others in discussing Struts and how it compares. It also provides some detail about integrating the two etc. Not as much as I would have liked, but much much more than the other books.Mastering JavaServer Faces (Java) OverviewHarness the power of JavaServer Faces to create your own server-side user interfaces for the WebThis innovative book arms you with the tools to utilize JavaServer Faces (JSF), a new standard that will make building user interfaces for J2EE(TM) applications a lot easier. The authors begin by painting the architectural big picture-covering everything from the Patterns that are used in the implementation to the typical JSF Request/Response lifecycle. Next, you'll learn how to use JSF in the real world by uncovering the various pieces of the JSF component model, such as UI components, events and validation. The authors then explain how to apply JSF, including how to integrate JSF user interfaces with the Business Tier and how to render your own user interface components. By following this approach, you'll be able to confidently create and validate your own custom applications that meet the needs of your company.Whether working in J2EE or J2SE(TM), this book will show you how to:* Use UI Components to build your user interface* Ensure that the data you store meets the business rules for your application* Integrate JSF with JSPs through the custom Tag feature in JSP implementations* Build JSF applications that interact with either EJBs or POJOs* Validate a new component and queue events to invoke custom application logic* Move your application from Struts to JSF

Want to learn more information about Mastering JavaServer Faces (Java)?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...