public class PlaceList
extends atg.core.i18n.PlaceList
The class is initialized by providing a list of strings in the property
strings, alternating codes and display names. For example,
this properties file demonstrates initializing an instance of PlaceList
with a (partial) list of US states:
$class=atg.commerce.util.PlaceList $description=A list of states and territories that we can ship to strings=\ AK, Alaska,\ MA, Massachusetts,\ ME, Maine,\ NH, New Hampshire
places property and iterating over it with a droplet
like ForEach. The places property is an
array, each of whose elements has properties named code
and displayName.
This example shows how you might use a PlaceList in a JHTML page:
<droplet bean="/atg/dynamo/droplet/ForEach">
<param name="array" value="bean:/com/acme/store/shipping/States.places">
<oparam name="outputStart">
We can ship to the following states:<p>
<ol>
</oparam>
<oparam name="outputEnd">
</ul>
</oparam>
<oparam name="output">
<li><valueof param="element.code"/> - <valueof param="element.displayName"/>
</oparam>
<oparam name="empty">
We can't ship anything anywhere. What good are we?
</oparam>
</droplet>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
PlaceList() |
getPlaceForCode, getPlaces, getStrings, setStrings, updatePlacesaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning