<netui:parameterMap> Tag

Writes a group of name/value pairs to the URL or the parent tag.

Syntax

<netui:parameterMap
    map="map" />

Description

Writes a group of name/value pairs to the URL or the parent tag.

The <netui:parameterMap> can be nested inside of the <netui:anchor> , <netui:button> , <netui:form> , and <netui:image> tags.

You can dynamically determine the value of the <netui:parameterMap> tag by pointing the map attribute at a java.util.HashMap object.

Attributes
map
Required: Yes  |   Supports runtime evaluation: Yes  |   Data bindable:

A data binding expression pointing to a java.util.Map of parameters. The expression can point at any implementation of the java.util.Map interface, including java.util.AbstractMap , java.util.HashMap , java.util.Hashtable , etc.

 
Example

Assume that there is a java.util.HashMap object in the Controller file.

      public HashMap hashMap = new HashMap();
      hashMap.put("q", "Socrates");
      hashMap.put("lr", "lang_el");
      hashMap.put("as_qdr", "m3");

The following set of tags will read the HashMap object and generate a link with a set of URL parameters.

      <netui:anchor href="http://www.google.com/search">
          Search Greek language web sites updated in the last three months with the query "Socrates".
          <netui:parameterMap map="{pageFlow.hashMap}"/>
      </netui:anchor>

The URL produced appears as follows:

      http://www.google.com/search?lr=lang_el&q=Socrates&as_qdr=m3