Your SlideShare is downloading. ×
0
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Download presentation
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Download presentation

760

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
760
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Webform Server’s toolbar only includes 6 buttons: open, save, print, refresh, accessibility mode, and about. (These are discussed later.) Webform Server removes the need for the Viewer by providing a central site that can serve HTML versions of XFDL forms to users. While there are some minimum browser requirements (discussed later), this can include the general public or any computer-based audience.
  • Group 0 = (1 language, 12 locales) English (12 locales) en Australia = en-AU Belgium = en-BE Canada = en-CA Hong Kong = en-HK India = en-IN Ireland = en-IE New Zealand = en-NZ Philippines = en-PH Singapore = en-SG South Africa = en-ZA United Kingdom = en-GB United States = en-US Group 1 = (9 languages, 38 locales) French (5 locales) fr Belgium = fr-BE Canada = fr-CA France = fr-FR Luxemburg = fr-LU Switzerland = fr-CH German (4 locales) de Austria = de-AT Germany = de-DE Luxemburg = de-LU Switzerland = de-CH Italian (2 locales) it Italy = it-IT Switzerland = it-CH Portuguese (1 locale) Brazil = pt-BR Spanish (20 locales) es Argentina = es-AR Bolivia = es-BO Chile = es-CL Colombia = es-CO Costa Rica = es-CR Dominican Republic = es-DO Ecuador = es-EC El Salvador = es-SV Guatemala = es-GT Honduras = es-HN Mexico = es-MX Nicaragua = es-NI Panama = es-PA Paraguay = es-PY Peru = es-PE Puerto Rico = es-PR Spain = es-ES United States = es-US Uruguay = es-UY Venezuela = es-VE Simplified Chinese (2 locales) zh-Hans China = zh-Hans-CN Singapore = zh-Hans-SG Traditional Chinese (2 locales) zh-Hants Taiwan = zh-Hant-TW Hong Kong = zh-Hant-HK Japanese (1 locale) ja Japan = ja-JP Korean (1 locale) ko South Korea = ko-KR Group 2 = (12 languages, 13 locales) Czech (1 locale) cs Czech Republic = cs-CZ Danish (1 locale) da Denmark = da-DK Dutch (2 locales) nl Belgium = nl-BE The Netherlands = nl-NL Finnish (1 locale) fi Finland = fi-FI Greek (1 locale) el Greece = el-GR Hungarian (1 locale) hu Hungary = hu-HU Norwegian Bokmål (1 locale) nb Norway = nb-NO Polish (1 locale) pl Poland = pl-PL Portuguese (1 locale) pt Portugal = pt-PT Russian (1 locale) ru Russia = ru-RU Swedish (1 locale) sv Sweden = sv-SE Turkish (1 locale) tr Turkey = tr-TR Group 3 = (4 languages, 4 locales) Croatian (1 locale) hr Croatia = hr-HR Slovak (1 locale) sk Slovakia = sk-SK Slovenian (1 locale) sl Slovenia = sl-SI Romanian (1 locale) ro Romania = ro-RO
  • Platform support has been expanded for the 2.6 version to include AIX and Solaris. The installer has also been improved, and will do a lot of the WAS setup for you. Even setup database if installing in Cloudscape. Webform Server no longer supports the use of Tomcat (as it did in 2.5).
  • Webform Server requires you to write either a servlet or a portlet application. In either case, this application must both serve the form to the user and process the user’s response. The servlet/portlet extends the framework that is provided by Webform Server (rather than the normal servlet and portlet classes). As a result, Webform Server is able to automatically convert the form between XFDL and HTML when necessary. The servlet/portlet will automatically query the end-user’s computer to see if they have the Viewer installed. If they do, Webform Server will not translate the form – it will send XFDL so that the user can work in the more fully-featured Viewer. If they do not have the Viewer, Webform Server will send HTML for their browser. Webform Server also provides support for accessibility needs. This includes the enhanced focus indicator that the Viewer uses (a small black box that appears at the upper-left corner of the item that has the focus) and screen reading support for the JAWS screen reader.
  • Forms that are translated to HTML look almost exactly as they do in the Viewer. There are some slight differences because Webform Server uses standard HTML widgets, and in some cases those widgets differ slightly from the XFDL versions. However, for the most part it is difficult to tell the difference between the two forms. Just like the Viewer, Webform Server adds a toolbar to the form. However, because Webform Server has more limited functionality than the Viewer, this toolbar only has 6 buttons (described later). It’s worth noting that this duplication in appearance is entirely intentional. While it may be useful to render slightly different appearances in HTML, or to allow user’s to apply their own style sheets, this would defeat the “sign what you see” philosophy that underlies Workplace Forms. Essentially, forms that are signed in Webform Server should look exactly the same when inspected in the Viewer, and vice versa. If they did not, the overall security and authenticity of the form could be called into question.
  • Even complex forms look just like they would in the Viewer.
  • The toolbar offers the following functionality: Open Form – this opens a form from the local file system. In this case, Webform Server uploads the XFDL version of the form to the server. It then translates the form into HTML, and sends the user the first page. Save Form – this saves the form to the local file system. In this case, Webform Server sends the entire XFDL form to the user. This does not save HTML. Print Form – this prints the form to a local printer. In this case, Webform Server generates a PNG image of the form from the XFDL version, then sends the PNG to the end-user. The end-user then uses the normal browser print dialog to print the image. Toggle Accessibility Mode – this enables the enhanced focus indicator and screen reader support. The enhanced focus indicator is a small black square that appears at the top-left corner of the item that currently has the focus. Screen reader support is limited to the JAWS screen reader. About – this opens a dialog that provides version information for Webform Server.
  • The Pieces: Client – This is the end-user. In a typical scenario, they use a web browser to surf to a website that has forms they can work with. Portal/Application Server – This is the application server that hosts the servlet/portlet application you have built for Webform Server. Your application runs within the Webform Server framework, and may make calls to the Workplace Forms API. Application Server – This is the application server that runs the Translator component of Webform Server. This is the part that does the actual translation of XFDL to HTML. It can run on the same server as your portlet/servlet, but is more commonly placed on a second server. Access Control Service – This provides fail-over support for the system. The Access Control Service tracks which users are using which form instances, and ensures that in a clustered environment, the user can fail-over successfully. Logging Service – The logging services is used both by all other components: your portlet/servlet, the Translator, and the Access Control Service. It provides basic logging capabilities through log4j. Shared File Cache – This is simply a file area that is used by the Translator to store temporary files. When a form is opened by Webform Server, the original XFDL is stored and maintained in the Shared File Cache.
  • When you first try to open a form through Webform Server, the Framework first tries to determine whether you have the Viewer installed. This process follows these steps: A bounce mechanism sends a small piece of JavaScript to the client. This JavaScript contains a small XFDL form. The JavaScript asks the client browser to open the form. If the post is successful, then the Viewer is installed. If the Viewer is installed, the JavaScript examines the headers of the post to see if the right version of the Viewer is installed. The JavaScript sends the results to the Framework, which sets its own session flags accordingly. Once these flags are set for the session, no further attempts to detect the Viewer are attempted.
  • Next, the Framework carries out the original request as follows: The get request goes to the portlet/servlet. The portlet/servlet loads an XFDL form and sends it as the response. The Framework intercepts the XFDL response and forwards it to the Translator. The Translator converts the form to DHTML, and sends it back to the Framework. The Framework sends the response to the user.
  • When a form is submitted the following actions occur: The DHTML form is submitted to the portlet/servlet. The Framework intercepts the form when it comes in and passes it to the Translator. The Translator transfers the data from the DHTML form to the original XFDL form, then sends an XFDL response back to the portlet/servlet. The portlet/servlet processes the form and loads a response forms, which it sends back to the user. The Framework intercepts the response form and sends it to the Translator. The Translator converts the response form to DHTML and sends it back to the Framework. The Framework passes the DHTML form to the client.
  • Webform Server uses Ajax (Asynchronous JavaScript And XML) to communicate with the Translator for small updates. This allows dynamic updating based on formatting, type checking, computed changes to the form, and so on, without redrawing the form in the client browser. When an update event occurs, the following steps are taken: Ajax recognizes a user event on the client that requires an update, and sends an update request to the framework (or Forwarder Servlet in Portal). The request is read in by the Framework (or Forwarder) and forwards it to the Translator. The Translator replicates the event in the copy of the XFDL form it is running in memory, and retrieves the list of changes that need to be made. The Translator then creates a list of XML changes that are required, and sends that list back to the Forwarder. The Forwarder passes the change list through the Framework and back to the client. Ajax updates the HTML form as required.
  • Webform Server uses Ajax (Asynchronous JavaScript And XML) to communicate with the Translator for small updates. This allows dynamic updating based on formatting, type checking, computed changes to the form, and so on, without redrawing the form in the client browser. When an update event occurs, the following steps are taken: Ajax recognizes a user event on the client that requires an update, and sends an update request to the framework (or Forwarder Servlet in Portal). The request is read in by the Framework (or Forwarder) and forwards it to the Translator. The Translator replicates the event in the copy of the XFDL form it is running in memory, and this time sees that an XForms submit needs to occur. The Translator extracts the appropriate instance data from the form, and submits the data to the appropriate URL. The Translator receives the response, and places any new data in the form. The Translator then creates a list of XML changes that are required, and sends that list back to the Forwarder. The Forwarder passes the change list through the Framework and back to the client. If changes effect layout (create more items, remove items, etc), then page refresh is done. If changes are only to data, then no page refresh is done. Ajax updates the HTML form as required.
  • Multiple Shared File Cache’s helps limit the effects of a possible single point of failure. Where if the Shared File Cache went down in a single Shared File Cache architecture, the entire system goes down – compared to a system with 3 boxes, each box has 3 translators running, and each box had its own shared file cache (shared between the 3 translators on that box). If one of the shared file cache’s went down, the other 2 translator boxes would remain active and receive any new requests. Any current session in the failed file cache box would be lost
  • Typical scaling of Webform Server allows for replication of the servlet/portlet server, as well as replication of the Translator Server. For example, you could have one Portal backed by 3 Translators, or 3 Portals and 3 Translators, or any other combination. The Access Control Database may also be replicated. The Logging Service and Shared file cache are not typically replicated (although the Logging Service could be).
  • There are a few portions of this servlet that are not used by the example form. The code to handle an xforms-replace-all, for example, is not used by this form. If time permits, it is worthwhile to find or create a form that uses this code to demonstrate what it does.
  • In a normal Portal, you have several different portlets, some of which may need to communicate with each other. This is fairly easy to achieve using session beans. Each portlet can write to or read from these session beans as necessary, allowing them to pass information between each other. This is especially useful with forms. For instance, one portlet may need to tell another portlet which form to load. Or one portlet may need to pass some data to another portlet, which then populates the form it’s displaying with that data.
  • Opening forms from the local file system actually uploads the XFDL version of that form to Webform Server’s shared file cache. The form in the cache is then translated into HTML and sent back to the user so that they can work with it in their browser. Saving forms to the local file system actually downloads the XFDL version of that form to the user’s computer. The XFDL version is updated based on the user’s most recent changes to the HTML, then sent down as a single, up-to-date file. This allows users to route the form via email to other people, who can then re-open the form in Webform Server if required.
  • Form Layout : Forms may look slightly different in Webform Server than they do in the Viewer simply because the HTML widgets used to the draw the form may have slight differences from our standard XFDL widgets. However, in general it’s very difficult to tell the difference between the two forms. Webform server does not support certain widgets: Calendar widgets are replaced with date fields. The slider widget is not supported at all. RTF fields are replaced with plain text fields. Printing : When a form is printed, Webform Server first returns the HTML and updates the XFDL version based on the user’s most recent changes. Webform Server then uses the XFDL version of the form to create a PNG image. This image reflects what you would see in the Viewer. This image is then sent to the user, who sees the browser print dialog open. Because browsers impose their own margins on a printed page, the form might be scaled slightly to account for this, and may be a slightly different size than it would if it had been printed from the Viewer.
  • Type checking : All type checking in Webform Server is passive. This means that the checks are applied after the user tries to move the focus to the next item. Incorrect data is flagged as an error with a red color and a dialog that informs the user of the error. Attachments : Because you can only attach one document at a time, you may need to redesign your form to account for this. Forms that require the user to attach 20 documents may become very tedious through this interface.
  • Actions : Very limited, as described. Computes : Computes have been greatly improved over the 2.5 version. Through Ajax, they can now update automatically without a compete page redraw. However, this sort of update is not always possible, so those computes that still require a redraw will trigger the redraw automatically.
  • Submissions : Submissions will only send data to one URL. Version 6.0 through 6.5 of XFDL offered support for multiple URLs, but Webform Server does not reflect this. Version 7.0 XFDL restricts submissions to a single URL anyway. If you are computing URLs, make sure that your computes result in appropriate destinations. If using a servlet, your computed URL must go back to the same server that is hosting the servlet. If you are using a portlet, you cannot compute the URL. Email : Webform Server does offer direct support for email. There is no email button in the toolbar, and email buttons in the form itself (eg. Submit buttons with an email URL) will not work. If user’s need to email a form, they must save the form to their local file system, then attach the form a regular email.
  • Smartfill : You can write user data to/from disk using an XForms submit. This can replicate the behavior offered by Smartfill, but will not include the same user warnings that the Smartfill feature provided. For example, the user will not be warned that data is being written to disk or read from disk, unless you take special measures to replicate these sorts of warnings through other XForms functionality.
  • Web Services : Web Services are only supported in XForms forms. The submission data for a web service is wrapped into an XForms submit, complete with the soap envelope. When a response is received, Webform Server will replace a portion of the data model with that response, which will automatically populate the form with that data. Viewer Extensions : Viewer extensions are only supported on the client-side. This means that the extensions cannot perform tasks that would directly affect the user interface. For example, an extension cannot open its own dialog box. However, they can perform functions that indirectly affect the UI, such as setting values in the form that are displayed to the user.
  • Transcript

    • 1. Webform Server 3.5.1 Overview and Architecture
    • 2. Agenda <ul><li>What’s new in 3.5.1 </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. Prerequisites <ul><li>Students should have a basic understanding of the Lotus Forms (previously Workplace Forms) suite of software, including: </li></ul><ul><ul><li>What XFDL is </li></ul></ul><ul><ul><li>How the Viewer works </li></ul></ul><ul><li>Students should also have a basic understanding of servlet/portlet architectures </li></ul>
    • 4. What’s New in 3.5.1
    • 5. What’s new in 3.5.1? (1 of 2) <ul><li>New Installer </li></ul><ul><ul><li>Single installer allows for installation of any or all products: Webform Server, API, Forms Services Platform, Turbo. </li></ul></ul><ul><li>Support for zLinux </li></ul><ul><li>XFDL 7.7 Language </li></ul><ul><li>IBM Mashup Center widget </li></ul><ul><ul><li>Webform Server ships with a Mashup widget that allows you to connect any Lotus Forms form to other widgets in a mashup. </li></ul></ul><ul><li>WebSphere Application Server 7.0 </li></ul><ul><ul><li>Support has been added for WebSphere Application Server 7.0 </li></ul></ul><ul><li>XHTML output </li></ul><ul><ul><li>You can configure Webform Server to produce valid XHTML 1.0 Strict output. See the Configuring a servlet and Configuring a portlet topics for more information. </li></ul></ul><ul><li>Print Output Format </li></ul><ul><ul><li>Forms printed via Webform Server can now have their print output format controlled at the form or application level, instead of depending on the configuration of the Webform Server translator applying its output format setting to the form. </li></ul></ul>
    • 6. What’s new in 3.5.1? (2 of 2) <ul><li>Support for modifiable ufv_setting </li></ul><ul><ul><li>Previously this option was only supported in Viewer. This will make the form readonly. </li></ul></ul><ul><li>GZIP compressed JavaScript </li></ul><ul><ul><li>To decrease page loading time, Webform Server now sends compressed JavaScript to Web browsers that accept gzip content encoding. </li></ul></ul><ul><li>Font caching </li></ul><ul><ul><li>Modifications to the font caching mechanism can improve overall server performance and reduces memory usage. </li></ul></ul><ul><li>Improved PNG encoder </li></ul><ul><ul><li>This improves performance of printing and rendering of forms with images. </li></ul></ul><ul><li>Resolved APARs </li></ul><ul><ul><li>Technote lists all resolved APARs -> http:// </li></ul></ul>
    • 7. About Webform Server
    • 8. 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>
    • 9. 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, 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>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>Form remain in the language they were designed – does not translate forms. </li></ul></ul>
    • 10. Where does it work? <ul><li>Server Support </li></ul><ul><ul><li>Supports WAS V 6.0.2, 6.1.0 and 7.0 </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>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>
    • 11. 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>
    • 12. 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>
    • 13. How does it look?
    • 14. 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>
    • 15. 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>
    • 16. Architecture Overview
    • 17. 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
    • 18. 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
    • 19. 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
    • 20. 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
    • 21. 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
    • 22. 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
    • 23. Scaling Webform Server
    • 24. 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>
    • 25. 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
    • 26. Signature Support <ul><li>Users can 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>
    • 27. 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>
    • 28. Creating a Servlet
    • 29. 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>
    • 30. 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>
    • 31. 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>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>
    • 32. 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>
    • 33. 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>
    • 34. Samples Show Templates in Action <ul><li>Both Servlet and Portlet Sample Code have been updated in 3.5.1 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>
    • 35. translator.properties and Templates <ul><li>translator.properties file has poolSize property that controls the number of instances (per Template) the form 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 templates in the form 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><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>
    • 36. 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>
    • 37. Examining the Sample Servlets <ul><li>3 servlets: FormViewServlet, FormListServlet, SampleUtilities </li></ul>
    • 38. 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>
    • 39. 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>
    • 40. Creating a Portlet
    • 41. 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>Many Forms can be displayed on a single portal page </li></ul>
    • 42. 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>
    • 43. 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>
    • 44. 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>
    • 45. 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:Program FilesIBMLotus FormsServer3.5Webform Server edist </li></ul></ul>
    • 46. 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:WAS DIRinstalledAppsprofileWebformSampleApp.earSamples.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>
    • 47. Differences Between Viewer and Webform Server
    • 48. 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>
    • 49. 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>
    • 50. 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>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 or PDF 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 PDF printing to better avoid these issues. </li></ul></ul>
    • 51. 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>
    • 52. 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>dirtyFlag ** </li></ul>
    • 53. 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>
    • 54. 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>
    • 55. 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 will cause a redraw of the form (unlike Viewer). </li></ul></ul>
    • 56. 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>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>
    • 57. 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>
    • 58. 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, but ufv_modifialble. </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>
    • 59. 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>
    • 60. Other Differences <ul><li>“ file” URIs </li></ul><ul><ul><li>Not supported for XFDL submission or XForms submissions </li></ul></ul>
    • 61. Form-based Settings
    • 62. 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>
    • 63. 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)
    • 64. 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>
    • 65. 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>
    • 66. 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>
    • 67. 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><ul><ul><li>But can hide toolbar completely. </li></ul></ul>
    • 68. 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
    • 69. ufv_settings: modifiable <ul><li>Default </li></ul><ul><ul><li>on. </li></ul></ul><ul><li>Location: form global </li></ul>
    • 70. ufv_settings: modifiable <ul><li><ufv_settings> </li></ul><ul><li><modifiable>on</modifiable> </li></ul><ul><li></ufv_settings> </li></ul><ul><li><ufv_settings> </li></ul><ul><li><modifiable>off</modifiable> </li></ul><ul><li></ufv_settings> </li></ul>Allows the user to edit this form The user can not edit this form. It is read only
    • 71. 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>
    • 72. 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
    • 73. 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>
    • 74. 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
    • 75. 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>
    • 76. 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
    • 77. 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>
    • 78. 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
    • 79. Document Accessibility Wizard
    • 80. 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 screen reader) </li></ul></ul><ul><ul><li>Uses no JavaScript (part of W3C specification) </li></ul></ul>
    • 81. 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>
    • 82. 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>
    • 83. 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>
    • 84. Questions?

    ×