OpenWGA 7.10 - OpenWGA Concepts and Features

Design and development » Design configuration

Tab "Mappings"

In this tab you can map keys to resources provided by your design.

screenshot_54.png

The media keys is the type of resource you will most likely need to map. If you create WebTML modules in a media key that is none of the default media keys of OpenWGA (html, xml, pdf) you need to declare it here in section "Media keys":

  • Click button "add" to add an entry to the declared media keys
  • In column "key" specify the media key
  • In column "Mime type" specify the MIME Content Type that the OpenWGA server should send when publishing WebTML modules of this media ke
  • Check column "Binary output" if this media key puts out binary data rather than textual data. This can only be accomplished when it uses WebTML elements that put out binary data
  • Check column "Use HTTP login" if it is not appropriate to use a HTML page when asking the user for login data. Instead OpenWGA will use HTTP basic authentication. This is most likely neccessary when the intended clients for this media type are not capable of rendering HTML pages.


In section Encoder Mappings you can register additional WebTML encoders that come with your design. WebTML encoders are creates as Java classes implementing a special interface. If the JAR libraries you bring with your design contain such an encoder implementation you will need to register them here to use them in WebTML.

  • Click button "add" to add a new entry to the declared mappings
  • Under "Encoder name" give the name by which your encoder should be available in WebTML-Attribute "encode". Use alphanumeric characters only.
  • Under "Implementation class" give the full qualified name of the Java class implementing the WebTML encoder interface


In section Element Mappings you can register additional WebTML elements that come with your design. WebTML elements are creates as Java classes implementing a special interface. If the JAR libraries you bring with your design contain such an element implementation you will need to register them here to use them in WebTML.

  • Click button "add" to add a new entry to the declared mappings
  • Under "Element name" give the name by which your element should be available via WebTML-Attribute "name" in tag <tml:element>. Use alphanumeric characters only.
  • Under "Implementation class" give the full qualified name of the Java class implementing the WebTML element interface