I am having a tough time getting my head around using tags in some
situations.  

 

This works (the forms tag is part of common controls, and is not part of
the problem):

     <logic:iterate name="configuration" id="ftr" indexId="ftrIdx">

            <forms:row>

              <forms:select width="100%">

                <forms:label>

                  <c:out value="${ftr.key.ftrCode}"/> 

                </forms:label>

                <c:forEach var="opt" items="${ftr.value}"><br>

                   <base:option key="${opt.optID}">

                         <c:out value="${opt.optCode}"/>

                   </base:option>

                </c:forEach>

              </forms:select>

            </forms:row>

     </logic:iterate>

 

But, if I replace the <c:forEach> with a <logic:iterate> like this:

     <logic:iterate name="configuration" id="ftr" indexId="ftrIdx">

            <forms:row>

              <forms:select width="100%">

 

                <forms:label>

                   <c:out value="${ftr.key.ftrCode}"/> 

                </forms:label>

 

                <logic:iterate id="opt" property="${ftr.value}"><br>

                   <base:option key="${opt.optID}">

                         <c:out value="${opt.optCode}"/>

                   </base:option>

                </logic:iterate>

 

              </forms:select>

            </forms:row>

     </logic:iterate>

 

I get the error "Cannot find bean: "${ftr.value}" in any scope".  Why?
In the inner iterate, I changed 'property' to 'collection' thinking that
would solve the problem, but, it did not.  BTW, the reason I am using
the logic:iterate in the outer loop is for the indexId attribute.

 

Thanks,

Scott

 

Virtual Systems International, Inc.
1400 Crescent Green / ste. 215
Cary, NC  27511

Phone:  (919) 319-0888
Fax: (919) 319-0884
[EMAIL PROTECTED]
www.virtual-systems.com <http://www.virtual-systems.com/> 

 

Reply via email to