Successfully reported this slideshow.
Your SlideShare is downloading. ×

Lotus Forms Webform Server 3.0 Overview & Architecture

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Loading in …3
×

Check these out next

1 of 80 Ad

Lotus Forms Webform Server 3.0 Overview & Architecture

Download to read offline

This presentation provides a functional and technical overview of Lotus Forms Server - Webform Server 3.0. It includes several architecture diagrams as well as an overview of how Webform Server transforms XFDL and XForms forms into HTML and JavaScript forms for display in a browser.

This presentation includes:

* What’s new in 3.0
* About Webform Server
* Architecture Overview
* Scaling Webform Server
* Creating a Servlet
* Creating a Portlet
* Differences Between Webform Server and Viewer
* Form-based Settings
* Document Accessibility Wizard

This presentation provides a functional and technical overview of Lotus Forms Server - Webform Server 3.0. It includes several architecture diagrams as well as an overview of how Webform Server transforms XFDL and XForms forms into HTML and JavaScript forms for display in a browser.

This presentation includes:

* What’s new in 3.0
* About Webform Server
* Architecture Overview
* Scaling Webform Server
* Creating a Servlet
* Creating a Portlet
* Differences Between Webform Server and Viewer
* Form-based Settings
* Document Accessibility Wizard

Advertisement
Advertisement

More Related Content

Slideshows for you (20)

Viewers also liked (20)

Advertisement

Similar to Lotus Forms Webform Server 3.0 Overview & Architecture (20)

More from ddrschiw (20)

Advertisement

Recently uploaded (20)

Lotus Forms Webform Server 3.0 Overview & Architecture

  1. 1. Webform Server 3.0 Overview and Architecture
  2. 2. Agenda <ul><li>What’s new in 3.0 </li></ul><ul><li>About Webform Server </li></ul><ul><li>Architecture Overview </li></ul><ul><li>Scaling Webform Server </li></ul><ul><li>Creating a Servlet </li></ul><ul><li>Creating a Portlet </li></ul><ul><li>Differences Between Webform Server and Viewer </li></ul><ul><li>Form-based Settings </li></ul><ul><li>Document Accessibility Wizard </li></ul>
  3. 3. What’s New in 3.0
  4. 4. What’s new in 3.0? <ul><li>Support for iSeries (under PASE) server side </li></ul><ul><li>Support for Firefox 2.0 on Mac and Vista for client side </li></ul><ul><li>Supports JavaScript API </li></ul><ul><li>Must use SQL database for Access Control Database </li></ul><ul><ul><li>Allows ACS to be clustered to provide failover mechanism </li></ul></ul><ul><ul><li>Supported DB: DB2, Cloudscape (Apache Derby) </li></ul></ul><ul><li>Print to PDF, PDF/A </li></ul><ul><li>PKI and Authenticated Clickwrap Signing Support </li></ul><ul><li>Performance Improvements </li></ul><ul><ul><li>Templating </li></ul></ul><ul><ul><li>On Demand Page Loading (ODPL) </li></ul></ul><ul><li>Added BIDI support (Hebrew and Arabic) </li></ul>
  5. 5. About Webform Server
  6. 6. What is Webform Server? <ul><li>A Zero Footprint Forms Solution </li></ul><ul><ul><li>Lotus Forms are rendered directly in a web browser as DHTML. </li></ul></ul><ul><ul><ul><li>Uses same XFDL files as Viewer. </li></ul></ul></ul><ul><ul><ul><li>XFDL forms are converted to DHTML, then sent to user. </li></ul></ul></ul><ul><ul><ul><li>DHTML is converted back to XFDL when user submits form. </li></ul></ul></ul><ul><ul><li>Forms looks almost exactly as they do in the Viewer. </li></ul></ul><ul><ul><ul><li>Most notable difference is the toolbar Webform Server provides, although this toolbar can be removed if desired. </li></ul></ul></ul><ul><ul><li>Removes the need to deploy and manage the Viewer. </li></ul></ul><ul><ul><ul><li>Forms are accessible to all users, including general public. </li></ul></ul></ul>
  7. 7. What is Webform Server <ul><li>A Cross-Platform Fill Experience </li></ul><ul><ul><li>Supports both Windows and Macintosh. </li></ul></ul><ul><ul><ul><li>IE 6.0, Windows 2000 sp4, Windows XP sp1, sp2 </li></ul></ul></ul><ul><ul><ul><li>IE 7.0 for Windows XP sp2, (New)Vista </li></ul></ul></ul><ul><ul><ul><li>Firefox 1.5, and 2.0 Windows and Macintosh </li></ul></ul></ul><ul><ul><li>Provides a cross-platform front-end for forms applications. </li></ul></ul><ul><ul><ul><li>Can be used as forms front-end for applications, just like Viewer. </li></ul></ul></ul><ul><li>An Internationalized product </li></ul><ul><ul><li>Supports G0, G1, and G2, and some G3 languages. </li></ul></ul><ul><ul><li>(New in 3.0) Support for 18 Arabic Locales and 1 Hebrew Locale </li></ul></ul><ul><ul><li>All Webform Server interface elements reflect language selected. </li></ul></ul><ul><ul><li>Forms remain in the language they were designed – does not translate forms. </li></ul></ul>
  8. 8. Where does it work? <ul><li>Server Support </li></ul><ul><ul><li>Supports WAS V 6.0.2 and 6.1.0 (dropped 5.1) </li></ul></ul><ul><ul><li>Supports Portal V 6.0.1 (dropped 5.1.0.1 – 6.0.0) </li></ul></ul><ul><ul><ul><li>(New) Multiple forms may appear on a portal page at same time </li></ul></ul></ul><ul><li>Platform Support </li></ul><ul><ul><li>Server is supported on: </li></ul></ul><ul><ul><ul><li>AIX 5.2, 5.3 (pSeries 32bit) w/ XL C/C++ Final 7 Runtime PTF or later </li></ul></ul></ul><ul><ul><ul><li>Solaris 9 – 10 (SPARC 32bit) </li></ul></ul></ul><ul><ul><ul><li>Linux RH ES/AS 4.0 (Intel 32bit) </li></ul></ul></ul><ul><ul><ul><li>SUSE Linux Enterprise 10 (32-bit intel) </li></ul></ul></ul><ul><ul><ul><li>MS Windows 2000 Server SP4 and 2003 Server Standard Ed. (Intel) </li></ul></ul></ul><ul><ul><ul><li>iSeries (PASE) 5.3, 5.4 </li></ul></ul></ul>
  9. 9. How does it work? <ul><li>Works as either a servlet or a portlet (JSR 168) </li></ul><ul><ul><li>You code a servlet/portlet that extends the Webform Server framework. </li></ul></ul><ul><ul><li>Servlet/portlet processes the XFDL form. </li></ul></ul><ul><ul><li>Translation of form to HTML is ‘invisible’ to the servlet/portlet application. </li></ul></ul><ul><li>Automatically detects Viewer </li></ul><ul><ul><li>If the end-user has the Viewer installed, it will serve XFDL – if not, HTML. </li></ul></ul><ul><ul><li>You can force HTML if you prefer. </li></ul></ul><ul><li>Provides accessibility support </li></ul><ul><ul><li>Provides support for enhanced focus indicator (as in Viewer) and JAWS screen reader - V7.10. </li></ul></ul>
  10. 10. How does it look? <ul><li>Almost exactly like Viewer, except: </li></ul><ul><ul><li>Some differences in form appearance due to nature of HTML widgets. </li></ul></ul><ul><ul><li>Only 6 buttons on toolbar. </li></ul></ul><ul><li>Intended to replicate look and feel of Viewer </li></ul><ul><ul><li>Maintains “sign what you see” philosophy. </li></ul></ul><ul><ul><li>Forms signed in Webform Server will look the same when inspected in Viewer, and vice versa. </li></ul></ul>
  11. 11. How does it look?
  12. 12. How does it look? <ul><li>Open Form – opens form from local file system. </li></ul><ul><li>Save Form – saves form to local file system. </li></ul><ul><li>Print Form – prints form to local printer. </li></ul><ul><li>Refresh Form – refreshes data model and redraws form. </li></ul><ul><li>Toggle Accessibility Mode – enables enhanced focus indicator and screen readers. </li></ul><ul><li>Enter Wizard Mode – displays fields one page at a time (accessibility) </li></ul><ul><li>About – provides version information for Webform Server. </li></ul>
  13. 13. What is Webform Server Not? <ul><li>Webform Server is not a zero-cost Viewer replacement. </li></ul><ul><ul><li>Does not provide all of the functionality of the Viewer. </li></ul></ul><ul><ul><ul><li>Differences are discussed in detail later. </li></ul></ul></ul><ul><ul><li>Imposes a heavier load on the server. </li></ul></ul><ul><ul><ul><li>Forms must be translated before they can be served to the user. </li></ul></ul></ul><ul><ul><ul><li>Increased traffic between server and client. </li></ul></ul></ul><ul><ul><li>Requires development of a servlet/portlet application. </li></ul></ul>
  14. 14. Architecture Overview
  15. 15. How does Webform Server work? Logging Service Shared File Space C L I E N T Access Control DB Portal/Application Server Portlet/Servlet Framework XFDL Forms Portlet/Servlet WPF API Application Server Webform Server Translator
  16. 16. How does Webform Server work (Request HTML)? Logging Service Shared File Space GET request HTML response C L I E N T Access Control DB Portal/Application Server Portlet/Servlet Framework XFDL Forms Portlet/Servlet WPF API Application Server Webform Server Translator
  17. 17. How does Webform Server work (Request Form)? Logging Service Shared File Space XFDL response GET request DHTML DHTML C L I E N T Access Control DB Portal/Application Server Portlet/Servlet Framework XFDL Forms Portlet/Servlet WPF API Application Server Webform Server Translator
  18. 18. How does Webform Server work (Submit Form)? Logging Service Shared File Space XFDL response Post DHTML DHTML XFDL request DHTML C L I E N T DHTML Access Control DB Portal/Application Server Portlet/Servlet Framework XFDL Forms Portlet/Servlet WPF API Application Server Webform Server Translator
  19. 19. How does Webform Server work (AJAX Updates)? Logging Service Shared File Space C L I E N T Ajax User Event Ajax Client Forwarder Ajax User Event Change list returned (Ajax) User Event Forwarder ‘ Running’ Form notified of event Change list retrieved and sorted XML change list created Change list (Ajax) Changes made to HTML Form Cache (Memory) Access Control DB Portal/Application Server Portlet/Servlet Framework XFDL Forms Portlet/Servlet WPF API Application Server Translator
  20. 20. How does Webform Server work (XForms Submit)? C L I E N T Ajax User Event Ajax Client Forwarder Ajax User Event Change list returned (Ajax) User Event Forwarder ‘ Running’ Form notified of event Form Updated with New Data XML change list created Change list (Ajax) Changes made to HTML Web Service Or XML over HTTP Request Response Do XForms Submit Portal/Application Server Portlet/Servlet Framework XFDL Forms Portlet/Servlet WPF API Application Server Translator
  21. 21. Scaling Webform Server
  22. 22. Webform Server Scalability <ul><li>Vertical Scaling </li></ul><ul><ul><li>You can deploy multiple Translators to the same machine, and the machine will be able to respond to the same level of requests, but with better response times. </li></ul></ul><ul><li>Horizontal Scaling </li></ul><ul><ul><li>You can deploy many Translator machines as a cluster behind a load balancer </li></ul></ul><ul><ul><li>Supports WAS ND (Network Deployment) </li></ul></ul><ul><ul><li>You can deploy many App Server machines as a cluster – and they each can point to a single load balancer as their Translator – session affinity must be enabled so that the same translator responds to every request for a given form. </li></ul></ul><ul><li>Many Translators can share the same Log Server </li></ul><ul><ul><li>Log Server can be replicated – but rarely required. </li></ul></ul><ul><li>Translators should share the same Access Control DB </li></ul><ul><ul><li>Access Control DB can be replicated, but single access point is required (virtual IP). </li></ul></ul><ul><li>Translators should share the same Shared File Cache </li></ul><ul><ul><li>Normally a networked file share </li></ul></ul><ul><ul><li>Each Translator (or multi-translator machine) can have its own Shared File Cache </li></ul></ul>
  23. 23. Webform Server Architecture Browser Optional Cluster Server Optional Cluster Server Logging Service Shared File Space How does it scale? Access Control DB Access Control DB Portal/Application Server Webform Server Translator Portal/Application Server Webform Server Translator Portal/Application Server Portlet/Servlet Wrapper XFDL Forms Portlet/Servlet PE API Portal/Application Server Portlet/Servlet Wrapper XFDL Forms Portlet/Servlet PE API Portal/Application Server Portlet/Servlet Wrapper XFDL Forms Portlet/Servlet PE API Portal/Application Server Webform Server Translator
  24. 24. Signature Support <ul><li>New to 3.0 is the ability for users to be able to sign using their Generic RSA or CryptoAPI based certificates, or Authenticated Clickwrap. </li></ul><ul><li>An ActiveX control is automatically installed the first time a user requests to sign. ActiveX control provides certificate selection and signing functionality. </li></ul><ul><li>Once installed, user can select certificate (from IE Store only) and form will be signed – but no overlap and layout tests are done (Viewer only). </li></ul><ul><li>ActiveX control performs signing client side – certificate is not transported. </li></ul>
  25. 25. Print to PDF <ul><li>Default is still to print to PNG. </li></ul><ul><li>Must change translator.properties file to enable printing to PDF or PDF/A </li></ul><ul><li>Can set printOutputFormat to one of: </li></ul><ul><ul><li>png — Outputs a PNG file (default). </li></ul></ul><ul><ul><li>pdf — Outputs a PDF file. </li></ul></ul><ul><ul><li>pdfa — Outputs a PDF archive file. </li></ul></ul><ul><ul><li>gif — Outputs a GIF file. </li></ul></ul>
  26. 26. Creating a Servlet
  27. 27. Creating a Servlet <ul><li>Extend IBMWorkplaceFormsServerServlet class </li></ul><ul><ul><li>Provided as part of Webform Server framework. </li></ul></ul><ul><ul><li>Extends the HttpServlet that is normally used for servlets. </li></ul></ul><ul><li>Write your servlet as normal </li></ul><ul><ul><li>Your servlet will work with an XFDL file, it will never see HTML. </li></ul></ul><ul><ul><li>Your servlet can call the Workplace Forms API, or any other APIs. </li></ul></ul><ul><li>Servlet can serve both HTML and XFDL </li></ul><ul><ul><li>By default, Webform Server will auto-detect Viewer and serve the right file type. </li></ul></ul><ul><ul><li>Functions useHTML and useXFDL allow you to set a specific response type. </li></ul></ul>
  28. 28. Creating a Servlet <ul><li>Set up your web.xml file to include Webform Server configuration </li></ul><ul><ul><li>Detailed in Administration Guide. </li></ul></ul><ul><li>Package your servlet as a war file </li></ul><ul><ul><li>Package your application along with some key supporting files (jars). </li></ul></ul><ul><ul><li>Package can also contain the forms you want to serve to users. </li></ul></ul><ul><li>Deploy your servlet to your application server </li></ul>
  29. 29. Templating <ul><li>Normally, a web application uses our API to load a blank form, pre-populate it, and then the form is sent to the Translator, who it turn loads the form in the API again. Very expensive. </li></ul><ul><li>Most web applications serve the same form(s), but might pre-populate the with user data before serving the form out to the user. </li></ul><ul><li>(New in 3.0) You can tell the Translator what forms your application is going to be serving out. These forms are called Templates. </li></ul><ul><li>The Translator will then build a cache of instances for each Template, and as instances of that form are used up, the Translator will replenish its cache automatically. </li></ul><ul><li>Even when template cache is exhausted under load, resources (images, etc) are shared between template instances, so memory utilization is more efficient. </li></ul><ul><li>Additional classes and methods have been added to the framework to handle Templates: TemplateManager. </li></ul>
  30. 30. Templating Interface <ul><li>Call getTemplateManager() to get a TemplateManager Object. </li></ul><ul><li>TemplateManager has the following method: </li></ul><ul><ul><li>addFormTemplate() - add a form as a Template to the Translator </li></ul></ul><ul><ul><li>There are more methods, but don’t use them just yet. </li></ul></ul><ul><li>To use an instance of a template, call </li></ul><ul><ul><li>this.setTemplateId(response, template id) </li></ul></ul><ul><ul><li>This informs the translator that you want to send an instance of that template to the user. </li></ul></ul><ul><li>Prepopulation </li></ul><ul><ul><li>this.addXFormsInstance() will add the passed XForms instance data into the template instance before it is passed to the user </li></ul></ul><ul><li>See JavaDocs in infoCenter for further details </li></ul>
  31. 31. Template Example <ul><li>public class MyServlet extends IBMWorkplaceFormsServerServlet </li></ul><ul><li>public void init() </li></ul><ul><li>{ </li></ul><ul><li>FileInputStream fis = new FileInputStream(aTemplateFile); </li></ul><ul><li>this .getTemplateManager().addFormTemplate(“TemplateID_123”, fis); </li></ul><ul><li>} </li></ul><ul><li>public void doGet() </li></ul><ul><li>{ </li></ul><ul><li>this .setFilename(response, someFileName); </li></ul><ul><li>this .setFormName(response, “someFormName&quot;); </li></ul><ul><li>response.setContentType(&quot;application/vnd.xfdl&quot;); </li></ul><ul><li>this .setTemplateId(response, “TemplateID_123”); </li></ul><ul><li>// could also call this.addXFormsInstance() to pre-populate form </li></ul><ul><li>} </li></ul>
  32. 32. Samples Show Templates in Action <ul><li>Both Servlet and Portlet Sample Code have been updated in 3.0 to show how to use Templates </li></ul><ul><li>New FormTemplates Directory has been added. </li></ul><ul><li>Any forms placed into SampleForms/FormTemplates directory will be pushed as a Template to the Translator. </li></ul><ul><li>Compare the response time between a form loaded as a template, and the old fashioned way. </li></ul><ul><ul><li>The larger the form, the more effective Templating is. </li></ul></ul>
  33. 33. translator.properties and Templates <ul><li>translator.properties file has poolSize property that controls the number of instances (per Template) the template cache is supposed to have available. (default setting is 1) </li></ul><ul><li>If you have 5 template forms, and poolSize = 4, then the translator will attempt to keep 5 * 4 = 20 forms in the template cache. </li></ul><ul><li>fcCacheSize – The maximum number of forms a translator will keep in memory at any given time – default 30 </li></ul><ul><ul><li>The number of template instances counts towards this number </li></ul></ul><ul><ul><li>In memory concurrent users = fcCacheSize – number of template instances </li></ul></ul><ul><ul><li>Do not allow number of template instances > fcCacheSize </li></ul></ul><ul><li>If form cache is maxed, and it needs more room, translator will evict either user forms or templates from cache as follows </li></ul><ul><ul><li>If template instances > user forms – it will evict a template instance </li></ul></ul><ul><ul><li>If user forms > template instances – it will evict a user form </li></ul></ul><ul><ul><li>This ratio will be configurable in a later release. </li></ul></ul>
  34. 34. Exercise: Altering Sample Servlet <ul><li>In this exercise, we will load the sample servlet provided into Eclipse, understand what it does, modify it, and deploy the resulting application to WAS. </li></ul><ul><li>The modification will consist of adding a hidden datestamp field to the form, then reading that field with the servlet and storing the submitted form in a folder based on the datestamp. </li></ul><ul><li>This will give you a quick look at the basic process of creating a servlet-based Webform Server application. </li></ul>
  35. 35. Examining the Sample Servlets <ul><li>3 servlets: FormViewServlet, FormListServlet, SampleUtilities </li></ul>
  36. 36. FormListServlet <ul><li>FormListServlet provides a list of forms (one form in this example) in an HTML page for the user to select, with options for forcing Viewer, forcing HTML, or auto-detect Viewer. </li></ul><ul><ul><ul><li>Parameters passed to FormViewServlet determine this: mode=xfdl, mode=HTML. Leaving out mode parameter results in auto-detect. </li></ul></ul></ul>
  37. 37. FormViewServlet <ul><li>FormViewServlet extends IBMWorkplaceFormsServerServlet. This is where the “work” happens. </li></ul><ul><ul><li>doGet method sends form to user </li></ul></ul><ul><ul><li>doPost method accepts form as submission and writes the form out to a directory </li></ul></ul><ul><ul><li>handleReplaceAll method accepts a xformsreplaceall action from the form and returns the text of the xforms:submit in a new browser window </li></ul></ul><ul><li>New sample code to show how Templating is done. </li></ul><ul><ul><li>loadFormTemplates method shows an example of how to tell the Translator what forms your application is going to use as Templates </li></ul></ul>
  38. 38. Creating a Portlet
  39. 39. Creating a Portlet <ul><li>Extend IBMWorkplaceFormsServerPortlet class </li></ul><ul><ul><li>Provided as part of Webform Server framework. </li></ul></ul><ul><ul><li>Extends the GenericPortlet that is normally used for portlets. </li></ul></ul><ul><ul><li>You implement a doViewEx method and a processActionEx method, which extend the normal doView and processAction methods. </li></ul></ul><ul><li>Write your portlet as normal </li></ul><ul><ul><li>Your portlet will work with an XFDL file, it will never see HTML. </li></ul></ul><ul><ul><li>Your portlet can call the Workplace Forms API, or any other APIs. </li></ul></ul><ul><li>(New) Many Forms can be displayed on a single portal page </li></ul>
  40. 40. Creating a Portlet <ul><li>Portlet can serve both HTML and XFDL </li></ul><ul><ul><li>By default, Webform Server will auto-detect Viewer and serve the right file type. </li></ul></ul><ul><ul><li>Functions useHTML and useXFDL allow you to set a specific response type. </li></ul></ul><ul><li>Set up your portal.xml to include Webform Server configuration </li></ul><ul><ul><li>Detailed in Administration Guide. </li></ul></ul><ul><li>Package your portlet as a war file </li></ul><ul><ul><li>Package your application along with some key supporting files (jars). </li></ul></ul><ul><ul><li>Package can also contain the forms you want to serve to users. </li></ul></ul>
  41. 41. Creating a Portlet <ul><li>Deploy your portlet to your application server </li></ul><ul><ul><ul><li>All steps are documented in more detail in the Webform Server Administration Guide. Examples shipped with product are a good starting point. </li></ul></ul></ul>
  42. 42. Communicating Between Portlets <ul><li>Portlets often need to communicate with each other </li></ul><ul><ul><li>One portlet may present a list of all forms, and a second may display the form the user selects. </li></ul></ul><ul><ul><li>First portlet must tell the second which form has been selected. </li></ul></ul><ul><li>Session beans are one approach </li></ul><ul><ul><li>User selects a form, which triggers processActionEx of first portlet. </li></ul></ul><ul><ul><li>Portlet writes details about which form was selected to a session bean. </li></ul></ul><ul><ul><li>Once the portlet’s action is finished, all portlets update. </li></ul></ul><ul><ul><li>As part of update, second portlet runs doViewEx, which reads the information from the session bean. </li></ul></ul><ul><ul><li>Second portlet then loads and displays the correct form. </li></ul></ul><ul><li>Other approaches are also possible </li></ul><ul><ul><li>JavaScript API </li></ul></ul>
  43. 43. JavaScript API <ul><li>Both Viewer and Webform Server support the the JavaScript API. </li></ul><ul><li>JavaScript normally exists in main html or jsp page, where forms or other html pages exist within frames or div tags. </li></ul><ul><li>You must include the LF_XFDL.js and LF_FormNodeP.js in your web application, and then load them in any html page that wishes to use the JavaScript API as follows: </li></ul><ul><ul><li><SCRIPT TYPE=&quot;text/javascript&quot; SRC=&quot;LF_XFDL.js&quot;></SCRIPT> </li></ul></ul><ul><ul><li><SCRIPT TYPE=&quot;text/javascript&quot; SRC=&quot;LF_FormNodeP.js&quot;></SCRIPT> </li></ul></ul><ul><li>Files are found in </li></ul><ul><ul><li>C:rogram FilesBMotus Formserver.0ebform Serveredist </li></ul></ul>
  44. 44. JavaScript API Example / Exercise <ul><li>To setup the example, you must have a running Webform Server with the Sample Servlet running. </li></ul><ul><li>Place the LF_XFDL.js and LF_FormNodeP.js files in the root of the Servlet Sample war file: </li></ul><ul><ul><li>C:AS DIRnstalledAppsrofileebformSampleApp.earamples.war </li></ul></ul><ul><li>Place the js_example.html and top_frame.html file in the same directory </li></ul><ul><li>Navigate to the js_example.html file through the servlet sample </li></ul><ul><ul><li>http://localhost:8085/Samples/js_example.html </li></ul></ul><ul><li>In the lower frame, open the preapprovalForm.xfdl file in the webform server </li></ul><ul><li>You should then be able to click the buttons in the upper frame, and see how the JavaScript API can interact with a live running form under the webform server. </li></ul>
  45. 45. Differences Between Viewer and Webform Server
  46. 46. About the Differences <ul><li>Webform Server generally replicates Viewer functionality. </li></ul><ul><li>But, Webform Server cannot do everything the Viewer does. </li></ul><ul><li>These differences are caused by a number of factors, including: </li></ul><ul><ul><li>HTML has certain limitations that are difficult to overcome. </li></ul></ul><ul><ul><li>JavaScript cannot be used to replicate all functionality. </li></ul></ul><ul><ul><li>Webform Server requires the user to have a constant connection to network. </li></ul></ul>
  47. 47. Opening and Saving Forms <ul><li>Forms are typically opened from a web site and submitted back to that site, however… </li></ul><ul><li>User can open XFDL forms from local computer </li></ul><ul><ul><li>Assumes you provide proper link or leave “open” button active on toolbar. </li></ul></ul><ul><ul><li>XFDL form is uploaded to server and converted to DHTML for user. </li></ul></ul><ul><li>User can save forms on local computer </li></ul><ul><ul><li>Assumes you leave the “save” button active on toolbar. </li></ul></ul><ul><ul><li>XFDL version of form is downloaded to user and saved locally. </li></ul></ul><ul><ul><li>Allows for “ad hoc” routing of forms. </li></ul></ul>
  48. 48. Form Layout and Printing <ul><li>Form Layout </li></ul><ul><ul><li>Looks almost exactly like Viewer. </li></ul></ul><ul><ul><li>Some slight differences due to nature of HTML widgets. </li></ul></ul><ul><ul><li>Some widgets not supported: </li></ul></ul><ul><ul><ul><li>calendar, slider, RTF fields </li></ul></ul></ul><ul><li>Printing </li></ul><ul><ul><li>Print version is based on XFDL file, not HTML. </li></ul></ul><ul><ul><li>PNG image of form is generated by server and sent to end-user for printing. </li></ul></ul><ul><ul><li>Browser imposes it’s own margins on the page, so printable area might be slightly smaller than Viewer. </li></ul></ul><ul><ul><ul><li>Form is scaled to account for this. </li></ul></ul></ul><ul><ul><li>Best to use new 3.0 PDF printing to better avoid these issues. </li></ul></ul>
  49. 49. Type Checking and Attachments <ul><li>Type checking is passive, not predictive </li></ul><ul><ul><li>The user’s data is not checked until they move the focus to another item </li></ul></ul><ul><ul><li>If the data does not match the formatting, it is flagged as an error </li></ul></ul><ul><li>Attachments </li></ul><ul><ul><li>User can only attach one file to the form at a time </li></ul></ul><ul><ul><li>May dictate different form design that used in Viewer </li></ul></ul>
  50. 50. Actions and Computes <ul><li>Actions are very limited </li></ul><ul><ul><li>Actions will not repeat properly </li></ul></ul><ul><ul><li>Actions that are set to run once will run every time the page is refreshed </li></ul></ul><ul><li>Computes are supported through Ajax, but have some limitations </li></ul><ul><ul><li>Some event model computes (activated in popup/combo, keypress, mouseover, printing) are not supported. </li></ul></ul><ul><ul><li>Other event model computes (focused, focuseditem) can be turned on or off through the Translator’s configuration file. </li></ul></ul><ul><ul><li>Most computes happen real-time without a refresh, but some automatically trigger a refresh. </li></ul></ul><ul><li>New to 3.0 is better support for dirtyFlag </li></ul>
  51. 51. Submissions and Email <ul><li>Submissions do not support multiple URLs </li></ul><ul><ul><li>Submission will only send data to one URL, regardless of the version of your form. </li></ul></ul><ul><li>Submissions and computed URLs </li></ul><ul><ul><li>For servlets, computed URLs are supported, but only if they submit to the server that is running Webform Server </li></ul></ul><ul><ul><li>For portlets, computed URLs are not supported </li></ul></ul><ul><li>Email is not directly supported </li></ul><ul><ul><li>No email toolbar button. </li></ul></ul><ul><ul><li>Submit buttons with an email URL will not work. </li></ul></ul><ul><ul><li>Users must save the form locally, then attach the form to a standard email. </li></ul></ul>
  52. 52. Signatures and Accessibility <ul><li>Only Clickwrap, Authenicated Clickwrap, CryptoAPI, and Generic RSA signatures are supported </li></ul><ul><ul><li>Can create and inspect Clickwrap signatures no matter what browser. </li></ul></ul><ul><ul><li>IE required to support Authenticated Clickwrap and CryptoAPI based signatures. </li></ul></ul><ul><li>Accessibility similar to Viewer </li></ul><ul><ul><li>Supports JAWS screen reader (as opposed to MSAA compliant). </li></ul></ul><ul><ul><li>Supports enhanced focus indicator and keyboard shortcuts. </li></ul></ul><ul><ul><li>Does not support high contrast mode. </li></ul></ul><ul><ul><li>Supports additional W3C accessibility mode (discussed later) </li></ul></ul>
  53. 53. XML Data Model and XForms <ul><li>XML Data Model is supported, with some exceptions/differences </li></ul><ul><ul><li>Can configure whether data model is updated automatically, or only when user clicks update button. </li></ul></ul><ul><ul><li>Smartfill feature is not supported. </li></ul></ul><ul><ul><li>Web Services are not supported in XML Data Model (but are in XForms). </li></ul></ul><ul><li>XForms is supported, with some exceptions/differences </li></ul><ul><ul><li>XForms submissions that try to replace the entire data model are ignored. </li></ul></ul><ul><ul><li>XForms submissions will cause a redraw of the form (unlike Viewer). </li></ul></ul>
  54. 54. Other Differences <ul><li>XFDL support </li></ul><ul><ul><li>Webform Server supports XFDL 6.0 and later (Viewer is 5.0 and later) </li></ul></ul><ul><li>Calendar Widget </li></ul><ul><ul><li>Converted to date field in Webform Server </li></ul></ul><ul><li>Inactive Cells </li></ul><ul><ul><li>Webform Server omits inactive cells in IE, but shows them in Firefox </li></ul></ul><ul><ul><li>Viewer shows inactive cells in both browsers </li></ul></ul><ul><li>Rich Text Fields </li></ul><ul><ul><li>Converted to plain text fields in Webform Server </li></ul></ul>
  55. 55. Other Differences <ul><li>Schema Validation </li></ul><ul><ul><li>Restricted to server-side validation in Webform Server </li></ul></ul><ul><li>Slider Item </li></ul><ul><ul><li>Not supported. </li></ul></ul><ul><li>Smartfill </li></ul><ul><ul><li>Not supported. </li></ul></ul><ul><ul><li>Can create similar effect with XForms submission. </li></ul></ul><ul><li>Spellchecking </li></ul><ul><ul><li>Not supported. </li></ul></ul>
  56. 56. Other Differences <ul><li>Viewer Functions (viewer package) </li></ul><ul><ul><li>Not supported. </li></ul></ul><ul><ul><li>Includes functions such as messageBox, setCursor, and so on. </li></ul></ul><ul><li>Viewer Settings (ufv_settings option) </li></ul><ul><ul><li>Supports menu, with some differences from Viewer (discussed later). </li></ul></ul><ul><ul><li>Supports all of the format error settings (print, save, sign, and submit). </li></ul></ul><ul><ul><li>Ignores all other settings. </li></ul></ul><ul><li>List Item </li></ul><ul><ul><li>If text in cells is wider than list, text is truncated (Viewer provides scrollbars). </li></ul></ul>
  57. 57. Other Differences <ul><li>Web Services </li></ul><ul><ul><li>Only supported under XForms. </li></ul></ul><ul><ul><li>Use XForms submit to send/receive Web Services data. </li></ul></ul><ul><li>Viewer Extensions (.ifx files) </li></ul><ul><ul><li>Supported on server-side only. </li></ul></ul><ul><li>Zoom </li></ul><ul><ul><li>Not supported. </li></ul></ul><ul><li>Requirements option </li></ul><ul><ul><li>Not supported. </li></ul></ul>
  58. 58. Other Differences <ul><li>“ file” URIs </li></ul><ul><ul><li>Not support for XFDL submission or XForms submissions </li></ul></ul>
  59. 59. Form-based Settings
  60. 60. About Form-based Settings <ul><li>Individual forms can control Webform Server in the following ways: </li></ul><ul><ul><li>Can control which buttons are on the toolbar. </li></ul></ul><ul><ul><li>Can control whether forms can be printed, saved, signed, or submitted when they contain formatting errors. </li></ul></ul><ul><li>These settings are specific to a single form </li></ul><ul><ul><li>The form itself controls Webform Server. </li></ul></ul><ul><ul><li>The next form in the sequence can make different settings if desired. </li></ul></ul><ul><li>Can include as many settings as needed </li></ul>
  61. 61. About Form-based Settings <ul><li>Settings are placed within the ufv_settings option </li></ul>... <globalpage sid=&quot;global&quot;> <global sid=&quot;global&quot;> <ufv_settings> setting 1 setting 2 ... </ufv_settings> </global> </globalpage> ... Each setting is a child of the ufv_settings option ufv_settings is a child of the global item in the global page (or the global item of any page)
  62. 62. Inheritance <ul><li>Pages inherit ufv_settings from the form global </li></ul><ul><li>ufv_settings on individual pages override any form global settings </li></ul><ul><ul><li>Note that ufv_settings acts as a single option for inheritance – either all settings are inherited or no settings are inherited </li></ul></ul><ul><ul><li>This means that a single setting on a page will override all settings in the form global </li></ul></ul>
  63. 63. ufv_settings: menu <ul><li>Sets which buttons are available in the Webform Server toolbar </li></ul><ul><ul><li>Can control all buttons except About button, or hide toolbar altogether </li></ul></ul><ul><ul><li>Does not affect controls added to the form itself, such as save and print buttons </li></ul></ul><ul><li>Three valid settings for each button: </li></ul><ul><ul><li>on – the button works normally </li></ul></ul><ul><ul><li>off – the button is visible, but inactive </li></ul></ul><ul><ul><li>hidden – the button is hidden, and all other buttons shift left in the toolbar </li></ul></ul>
  64. 64. ufv_settings: menu <ul><li>Default </li></ul><ul><ul><li>All buttons are on. </li></ul></ul><ul><li>Location: form global, page global </li></ul>
  65. 65. ufv_settings: menu <ul><li>Each button is represented by its own keyword </li></ul><ul><ul><li>Open Form – open </li></ul></ul><ul><ul><li>Save Form – save </li></ul></ul><ul><ul><li>Print Form – print </li></ul></ul><ul><ul><li>Refresh Form – refresh </li></ul></ul><ul><ul><li>Toggle Accessibility Mode – accessibility </li></ul></ul><ul><ul><li>Entire toolbar - toolbelt </li></ul></ul><ul><li>Cannot control the About button. </li></ul><ul><ul><li>Preserves product branding. </li></ul></ul>
  66. 66. ufv_settings: menu <ul><li><ufv_settings> </li></ul><ul><li><menu> </li></ul><ul><li><save>off</save> </li></ul><ul><li><print>off</print> </li></ul><ul><li><accessibility>hidden</accessibility> </li></ul><ul><li></menu> </li></ul><ul><li></ufv_settings> </li></ul><ul><li><ufv_settings> </li></ul><ul><li><menu> </li></ul><ul><li> <visisble>hidden</visible> </li></ul><ul><li></menu> </li></ul><ul><li></ufv_settings> </li></ul>Turns the save and print buttons off, and hides the accessibility button completely Hides toolbar completely
  67. 67. ufv_settings: printwithformaterrors <ul><li>Controls whether the user can print when there are type checking errors in the form </li></ul><ul><li>Three settings </li></ul><ul><ul><li>permit – the user can print despite type checking errors </li></ul></ul><ul><ul><li>warn – the user is warned that there are errors, and is asked if they want to print anyway </li></ul></ul><ul><ul><li>deny – the user is informed that there are errors, and is not allowed to print </li></ul></ul><ul><li>Default: warn </li></ul><ul><li>Location: form global, page global </li></ul>
  68. 68. ufv_settings: printwithformaterrors <ul><li><ufv_settings> </li></ul><ul><li><printwithformaterrors>permit</printwithformaterrors> </li></ul><ul><li></ufv_settings> </li></ul>Allows the user to print when there are type checking errors; does not warn the user
  69. 69. ufv_settings: savewithformaterrors <ul><li>Controls whether the user can save when there are type checking errors in the form </li></ul><ul><li>Three settings </li></ul><ul><ul><li>permit – the user can save despite type checking errors </li></ul></ul><ul><ul><li>warn – the user is warned that there are errors, and is asked if they want to save anyway </li></ul></ul><ul><ul><li>deny – the user is informed that there are errors, and is not allowed to save </li></ul></ul><ul><li>Default: warn </li></ul><ul><li>Location: form global, page global </li></ul>
  70. 70. ufv_settings: savewithformaterrors <ul><li><ufv_settings> </li></ul><ul><li><savewithformaterrors>permit</savewithformaterrors> </li></ul><ul><li></ufv_settings> </li></ul>Allows the user to save when there are type checking errors; does not warn the user
  71. 71. ufv_settings: signwithformaterrors <ul><li>Controls whether the user can sign when there are type checking errors in the form </li></ul><ul><li>Three settings </li></ul><ul><ul><li>permit – the user can sign despite type checking errors </li></ul></ul><ul><ul><li>warn – the user is warned that there are errors, and is asked if they want to sign anyway </li></ul></ul><ul><ul><li>deny – the user is informed that there are errors, and is not allowed to sign </li></ul></ul><ul><li>Default: warn </li></ul><ul><li>Location: form global, page global </li></ul>
  72. 72. ufv_settings: signwithformaterrors <ul><li><ufv_settings> </li></ul><ul><li><signwithformaterrors>permit</signwithformaterrors> </li></ul><ul><li></ufv_settings> </li></ul>Allows the user to sign when there are type checking errors; does not warn the user
  73. 73. ufv_settings: submitwithformaterrors <ul><li>Controls whether the user can submit when there are type checking errors in the form </li></ul><ul><li>Three settings </li></ul><ul><ul><li>permit – the user can submit despite type checking errors </li></ul></ul><ul><ul><li>warn – the user is warned that there are errors, and is asked if they want to submit anyway </li></ul></ul><ul><ul><li>deny – the user is informed that there are errors, and is not allowed to submit </li></ul></ul><ul><li>Default: warn </li></ul><ul><li>Location: form global, page global </li></ul>
  74. 74. ufv_settings: submitwithformaterrors <ul><li><ufv_settings> </li></ul><ul><li><submitwithformaterrors>permit</submitwithformaterrors> </li></ul><ul><li></ufv_settings> </li></ul>Allows the user to submit when there are type checking errors; does not warn the user
  75. 75. Document Accessibility Wizard
  76. 76. About the Wizard <ul><li>Based on W3C Web Content Accessibility Guidelines v1.0 </li></ul><ul><ul><li>Accessibility guidelines for page layout in HTML </li></ul></ul><ul><ul><li>W3C Recommendation as of May 5, 1999 </li></ul></ul><ul><li>A new mode in Webform Server </li></ul><ul><ul><li>“ Wizard” view that only shows one form item at a time </li></ul></ul><ul><ul><li>User steps from item to item, going forward or backward </li></ul></ul><ul><ul><li>Prints error messages on page, rather than using “fly over” text (easier to read with screenreader) </li></ul></ul><ul><ul><li>Uses no javascript (part of W3C specification) </li></ul></ul>
  77. 77. Normal Mode vs. Wizard Mode <ul><li>Normal mode displays whole form </li></ul><ul><li>Type checking is automatically performed through javascript </li></ul><ul><li>Wizard mode displays one item at a time </li></ul><ul><li>Type checking performed when user moves to next item (which submits current data) </li></ul><ul><li>No reliance on javascript </li></ul><ul><li>Toggled by Wizard button on toolbar </li></ul>
  78. 78. Labels for Items <ul><li>Labels are constructed by combining the following elements (in order): </li></ul><ul><ul><li>Item’s acclabel option </li></ul></ul><ul><ul><li>Item’s help option (text from associated help item) </li></ul></ul><ul><ul><li>Item’s label option </li></ul></ul><ul><li>You must design the form to account for this – requires accessibility messages to be added to form </li></ul>
  79. 79. Error Messages <ul><li>Formatting errors are found when the user tries to move to the next item </li></ul><ul><li>If an error is found, the item is redrawn with the error text above the label </li></ul><ul><li>Errors are constructed from the following messages (in order): </li></ul><ul><ul><li>Signature lock error </li></ul></ul><ul><ul><li>Format error </li></ul></ul><ul><ul><li>Format message </li></ul></ul><ul><li>Users cannot move to the next item until the error is resolved </li></ul>
  80. 80. Questions?

Editor's Notes

×