netui:html Tag

<netui:html> Tag

Generates an <html> tag and performs error handling within its body.

Syntax

<netui:html
    [dir="string_dir"]
    [scopeId="string_scopeId"]
    [useLocale="boolean_useLocale"] />

Description

Generates an <html> tag and performs error handling within its body.

JavaScript

The <netui:html> tag writes out the following JavaScript functions. These functions are used to map the tagId attributes specified in <netui> tags to the id attributes that are written to the rendered HTML tags.

Some application containers may alter the id attribute of the rendered HTML tags to ensure that all elements on the page have a unique id. (Portal containers can sometimes do this.) In such cases a mapping is created between the tagId's and actual id's rendered in the HTML tags. The following functions are used to return the rendered id values based on the tagId values.

 
 function getNetuiTagName(id, tag) {
     if (scopeId == "") 
         return netui_names[id];
     else
         return netui_names[portletId__id]; }

 function getScopeId(tag) {
     if (tag == null) return "";
     if (tag.scopeId != null) return tag.scopeId;
         return getScopeId(tag.parentElement); }
 

Attributes

dirThe direction of the HTML, left-to-right (LTR) or right-to-left (RTL).
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

scopeIdThe id that is associated with the script methods.
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

useLocaleA boolean specifying whether the html output should include xml:lang=defaultLocale.getLanguage().
 
RequiredSupports runtime expression evaluationData bindable
NoNoNo

Sample

In this sample, the <html> tag uses the default locale and the direction of the HTML is defined as left-to-right (LTR).
      <netui:html dir="LTR" useLocale="true"  />