Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Struts iterator -

pesho318i

2008-11-28

Replies: Find Java Web Hosting

Author LoginPost Reply

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!

--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.