Ho there, can someone explain how to make this code working??
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/struts-jquery-tags" prefix="sj"%>
<s:iterator value="familiari" var="entry">
<sj:accordion id="familiare<s:property value="#entry.index" />">
<sj:accordionItem title="abc">
content
</sj:accordionItem>
</sj:accordion>
</s:iterator>
this row does not work:
<sj:accordion id="familiare<s:property value="#entry.index" />">
See http://code.google.com/p/struts2-jquery/wiki/AccordionTag
You need to provide a list for your accordion item. I don’t know what
familiariis but if you are iterating through it, I assume it’s a list of some kind so you can try:If you are looking to iterate over a list and provide a form within each accordion. You can try something like the following: