RapidSpellWInline can only work with textboxes that have the “id” attribute set in HTML. To have
Struts output an “id” attribute, the “styleId” attribute must be set to some value in the JSP tag.
Eg.
<html:textarea property="title" styleId="tb12"/>
<RapidSpellWeb:rapidSpellWInline id="rswi1" textComponentID="tb12"/>
This works well, but when attempting to use with an Iterator tag, a runtime expression is needed to set
the styleId, see below.
<%
int i=0;
String launchers = "";
%>
<logic:iterate id="myCollectionElement" name="list2">
<bean:write name="myCollectionElement" /><br />
<%
i++;
String id="tb"+i;
String rswiID="r"+id;
launchers +=rswiID+",";
%>
Field: <html:textarea property="title" indexed="true"
styleId="<%=id%>"/>
<br />
<br />
<RapidSpellWeb:rapidSpellWInline
id="<%=rswiID%>"
textComponentID="<%=id%>"
rsMultipleID="rswm"
/>
</logic:iterate>
<%//pull off trailing comma
launchers=launchers.substring(0, launchers.length()-1);
%>
<RapidSpellWeb:rapidSpellWebMultiple id="rswm"
rapidSpellWebLaunchers="<%=launchers%>"
showFinishedMessage="false"
/>