<s:autocompleter id="%{'friend' + #loop1.count'}" name="relationCB" ...
I think you might be disappointed with what you get though, I don't think an autocompleter with theme=simple does much On Fri, 2008-11-28 at 18:40 -0800, pesho318i wrote: > Hello :) > > I would like to generate multiple autocompleter elements using a struts > iterator. However, each autocompleter tag needs to store unique information, > like id (otherwise I would not be able to collect the information from the > different autocompleters when I "submit" the form) > > Here is how I try to achieve this: > > <s:form action="processInfo"> > <s:iterator value="friendInfoList" var="friendInfoEntry" status="loop1"> > <s:autocompleter id="friend#loop1.count" name="relationCB" > cssClass="relationCB" theme="simple" list="collection" /> > </s:iterator> > </s:form> > > i.e. I try to make use of the status attribute in order to make the id-s > unique. However, #loop1.count is not processed, but rather taken literally > as a string :( > > Can you give me a hint how I could create different id-s for the > autocompleteres. Or maybe there is another way to process the information > from the different autocomplete elements? > > Thank you! > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]