Writes a group of name/value pairs to the URL or the parent tag.
<netui:parameterMap
map="string_mapObject" />
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.
map | 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. | ||||||
|
|||||||
|
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
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/netui/parameterMap/index.jsp
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/binaryFlow/detailsDocumentContent.jsp
[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/netui_databinding/grid/detailsItems.jsp