Home > Contents > Index >
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

proxy:tojson

Streams all store items as json data.

Syntax

Parameters

store (required)
A string designating the data store previously created using proxy:createstore.

total (required)
The total number of items in the store.

Description

This tag is meant to be used in conjunction with the proxy:createstore and proxy:addstoreitem tags.
It streams all store items added with proxy:addstoreitem as json data consumable by dojo widgets such as the data grid widget.

Note

The tag attribute total represents the overall number of items that this store can return, which may not match the number of items added through proxy:addstoreitem, since the widget associated to the store might be paginating through the store items.

Example

The following example assumes that:
<%-- streams all items in the store as json --%>
<proxy:tojson store="assets" total='<%=ics.GetVar("totalNb")%>' />

See Also

proxy:createstore
proxy:addstoreitem
proxy:register

  Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.