Portlet Encode NameSpace: How to Encode a Portal NameSpace
WEB DESIGN VIDEOS - PHOTO EDITING VIDEO CLIPS

|
For the original tutorial, please look follow the portal tutorials link at the top of my webpage on Hibernate and JPA development. Thanks!This tutorial demonstrates how to, and best practices surrounding, the display of images in a JSP page, namely a Java Server Page that is part of the page aggretation process of a Portal Server.\nhttp://www.thebookonhibernate.com\n\n\n\nEncoding Form Data with getNamespace( )\n\nTo ensure that form databeing sent from our portlet to the server doesn\'t get confused with the form data of another portlet, the RenderResponse object gives us a special method called getNamespace(); this method will return a unique, alpha-numeric character set that uniquely identifies a portlet on a particular page. If we use the getNamespace() call, and attach that identifying String to each data element being sent back to the server, no other portlet on the portal page will mistakenly use our portlet\'s data. \n\nAll form elements should be encoded using the getNamespace() method of the response, and all fields being read in a portlet should assume the field has been namespace encoded. \n\nNote: For simplicity sake, this book will use examples that exclude the namespace call, which is fine for training, but is completely unacceptable in development or production. Uniquely identify all of your form data, or JavaScripts, by using the getNamespace call to uniquely encode their names. \n\nFor mock Sun certification exams and free online Java tests, check out:\n\nhttp://www.scja.com administration, code, custom, deployment, development, encode, java, jsr-168, jsr168, namespace, portal, portlet, sample, tag
|
|
![]()