Now, I have another problem:
My iterator generates <tr>some content</tr>
I want to give id="bla-bla" to my generated raws of table.

For example iterator makes 5 iterations, I get 5 rows (<tr>some
content</tr>), but I want to set id attribute for them:
<tr id="MyGeneratedRow0">some content</tr>
<tr id="MyGeneratedRow1">some content</tr>
<tr id="MyGeneratedRow2">some content</tr>
<tr id="MyGeneratedRow3">some content</tr>
<tr id="MyGeneratedRow4">some content</tr>

I use this code:
<s:iterator value="lawDraft.docs" id="doc" status="document">
     <s:param name="rawMainDocIdParam" value="attachedMainDocRow<s:property
value="document.index"/>"/>
     <tr id="%{#rawMainDocIdParam}">
          some content
     </tr>
</s:iterator>

The problem is: I'm trying to access status (starts from 0) of iterator,
I've tried
<s:param name="rawMainDocIdParam" value="attachedMainDocRow<s:property
value="document.index"/>"/>
I get error: "No information about attribute tag document.index"
I've tried 
<s:param name="rawMainDocIdParam" value="attachedMainDocRow<s:property
value="#document.index"/>"/>
and
<s:param name="rawMainDocIdParam" value="attachedMainDocRow<s:property
value="%{#document.index}"/>"/>
In both cases I get error "Can't convert to xml document.index"

Any suggestions, please, can't understand mistake.
-- 
View this message in context: 
http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterator%29-tp18614028p18685569.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to