Skip to main content

Migration from GWT

This page maps GWT viewer concepts to their React UI equivalents. Use it as a reference when evaluating or planning a migration. Features marked "Not yet available" are on the React UI roadmap.

Concept mapping

GWT viewerReact UINotes
Standalone application (arender-ui-springboot)npm package embedded as Web ComponentSee Getting started
<iframe> embed<arender-element> Web ComponentSee Web Component
window.arender.jsapiwindow.ARender / element.ARenderSee Web Component — JavaScript API
.properties filesHTML attributes, JavaScript APISee Configuration
Connector JARs (bundled in viewer)Provider microservices (separate containers)See Providers
Visual profilesNot yet available
PluginsNot yet available
XML bean configurationNot applicableReact UI has no Spring context in the frontend
ARender.html customizationCSS variablesLight DOM, standard CSS applies
arender-custom-js.jswindow.ARender API
/arendergwt/ servlet endpointsBroker API directlyNo viewer-side servlet layer
Server-side annotation storage configSame (backend is shared)XFDF, JDBC, or REST storage
Rendition propertiesSame (backend is shared)Broker and rendition services are unchanged

What stays the same

The entire backend stack is shared between both viewers:

  • Document Service Broker — same image, same configuration
  • Document Converter, Document Renderer, Document Text Handler — unchanged
  • Annotation storage — XFDF files, JDBC, or REST, configured on the backend
  • Rendition properties — all document processing settings
  • Licensing — same license file

You do not need to change your backend deployment when switching viewers.

What changes

  • Delivery model: The GWT viewer is a standalone Spring Boot application; the React UI is an npm package embedded in your application
  • Embedding: <iframe> pointing to the viewer URL becomes <arender-element> in the host page DOM
  • JavaScript API: arender.jsapi.* namespace becomes window.ARender.* (2 methods: openDocument, openDocumentByUrl)
  • Configuration: .properties files become HTML attributes and JavaScript calls
  • Connector model: Java JARs in the viewer classpath become standalone provider microservices
  • Network: The host application must proxy or allow cross-origin requests to the broker (see CORS and reverse proxy)

Migration checklist

  1. Install the arender-ui npm package (or a framework wrapper) in your host application
  2. Replace <iframe> embeds with <arender-element> Web Component
  3. Set up a reverse proxy or CORS configuration for the broker API routes
  4. Update JavaScript integrations to use the window.ARender / element.ARender API
  5. If using repository connectors (Alfresco, FileNet), deploy the corresponding provider microservice and register it in the broker
  6. Test core workflows: viewing, annotation, search, redaction
  7. Verify features you depend on are available in the React UI (see key capabilities)