Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The documentation of the <strong><a href="http://stripes.sourceforge.net/docs/current/taglib/stripes/options-collection.html" rel="nofollow noreferrer">options-collection</a></strong> tag says:</p> <blockquote> <p>Writes a set of <code>&lt;option value="foo"&gt;bar&lt;/option&gt;</code> tags to the page based on the contents of a <code>Collection</code>, <code>Iterable</code> or <code>Array</code>. Each element in the collection is represented by a single option tag on the page. Uses the label and value attributes on the tag to name the properties of the objects in the <code>Collection</code> that should be used to generate the body of the HTML option tag and the value attribute of the HTML option tag respectively. If either (or both) of the label or value properties are omitted the item itself will be used for the label/value instead - this is done to support collections of simple types like Strings and Numbers.</p> <p>E.g. a tag declaration that looks like:</p> <pre><code>&lt;stripes:options-collection collection="${cats}" value="catId" label="name"/&gt; </code></pre> <p>would cause the container to look for a <code>Collection</code> called "cats" across the various JSP scopes and set it on the tag. The tag would then proceed to iterate through that collection calling <code>getCatId()</code> and <code>getName()</code> on each cat to produce HTML option tags.</p> </blockquote> <p>A <strong><a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" rel="nofollow noreferrer"><code>java.util.List</code></a></strong> being a <strong><code>Collection</code></strong>, just pass it to the <code>collection</code> attribute of the mentioned tag. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload