A working, though a bit ugly solution is this:
instead of <tr> use
<span jwcid="@Insert" value="ognl:startTag" raw="ognl:true/>
and later on, instead of </tr> use
<span jwcid="@Insert" value="ognl:endTag" raw="ognl:true/>
and in your page (or component) class add:
public String getStartTag() {return "<tr>";}
public String getEndTag() {return "</tr>";}
>From Jorge Quiroga <[EMAIL PROTECTED]>:
> Hello:
>
> I'm trying to organize some objects via For into a <table>, but the
> number of columns is user defined, then I thought to use the index
> property to open and close the <tr> tag but this error appears:
>
> Could not parse template context:/WEB-INF/MainForm.html.
>
> Because
>
> Closing tag </tr> on line 297 is improperly nested with tag <span> on
> line 296.
>
> the HTML is:
>
> <table>
> <span jwcid="[EMAIL PROTECTED]" index="ognl:numIter"
> source="ognl:paramSelected" value="ognl:param">
> <span jwcid="@If" condition="(numIter % paramColumns)==0">
> <tr> //This is valid
> </span>
> <td>
> //Here some components
> </td>
> <span jwcid="@If" condition="(numIter % paramColumns)==0">
> </tr> // Here is the problem because isn't appropiate
> </span>
> </span>
> </table>
>
> I'll try to do the next with the same results
>
> <table>
> <span jwcid="[EMAIL PROTECTED]" index="ognl:numIter"
> source="ognl:paramSelected" value="ognl:param">
> <tr>
> <td>
> //Some components
> </td>
> <span jwcid="@If" condition="(numIter % paramColumns)==0">
> </tr> // Here is the problem because isn't appropiate
> <tr>
> </span>
> </tr>
> </span>
> </table>
>
> paramColumns indicate the number of columns that the table should have.
>
> Exists a way to escaping this </tr>, I know that Tap analize the HTML,
> and of course you cannot close a tag in an "unbalanced manner" (in this
> case I "must" to close the <span> not the <tr>) but if you see the
> logic, the resultant HTML code is "balanced"
>
> Thanks
>
> JQ
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]