Solved

html logic tags - checking for a collection size greater than 1

Posted on 2011-02-21
2
279 Views
Last Modified: 2012-05-11
I have a collection that I showing on my jsp page.  Im using a html:select tag and I also default the first value to "Please select a filter".  I want this selection to be totally hidden if there are none.  I was trying to use the html tag notEmpty but still shows the selection.  I know the consoleFilters selection  has no entries.  ConsoleFilters has one attribute, filterName.

Current code that is not working....

<logic:notEmpty name="CONSOLEFILTERS" property= "filterName">
     <tr>
           <td>            
        <html:select property="filterNameSelected" style="width: 200px;">
              <html:option value="ALL">Please Select a Filter</html:option>
              <html:options collection="CONSOLEFILTERS" property="filterName" labelProperty="filterName"/>
         </html:select>
            </td>
        </tr>
</logic:notEmpty>
0
Comment
Question by:TheVeee
2 Comments
 
LVL 9

Accepted Solution

by:
ioanton earned 500 total points
Comment Utility
Try by removing the property attribute:

<logic:notEmpty name="CONSOLEFILTERS">
0
 
LVL 5

Author Closing Comment

by:TheVeee
Comment Utility
CHA-CHING, Thanks!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now