Hello, thanks to all for the help given. My web page has many nodes. Each of them represents a treeview "expand (i.e., + )" and "collapsed (i.e., -). Therefore, a Collection can be either collapsed or in collapsing state if that Collection is not empty. If users want to collpase a Collection, the application makes a trip to the database to retrieve the elements in that Collection. Each of the node is coded as shown below (I show one of the Collection(s) I have and I do not want to repeat all of them):
<logic:notEmpty name="ActivityForm" property="contactCollection"> <bean:define id="contactEntityType" value="contact" /> <logic:equal name="ActivityForm" property="expandContact" value="true"> <html:link action="/ntts/rfi/expandCollapseActivityView.do" paramId="entitySection" paramName="contactEntityType" styleClass="actionLink"> <img src="../../images/arrow_expanded.gif" border="0" alt="collapsed"> <span class="sectionHeader"> <bean:message bundle="rfi" key="activity.category.contact" /> </span> </html:link> </logic:equal> <logic:equal name="ActivityForm" property="expandContact" value="false"> <html:link action="/ntts/rfi/expandCollapseActivityView.do" paramId="entitySection" paramName="contactEntityType" styleClass="actionLink"> <img src="../../images/arrow_collapsed.gif" border="0" alt="expand"> <span class="sectionHeader"> <bean:message bundle="rfi" key="activity.category.contact" /> </span> </html:link> </logic:equal> <span> [<bean:size id="contactCollectionSize" name="ActivityForm" property="contactCollection"/><bean:write name="contactCollectionSize"/>]</span> </logic:notEmpty> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]