Am 08.11.2012 04:17, schrieb nhhockeyplayer nashua:
Hi Folks,

Tapestry is validating html markup in the templates.

<table>
     <tr>
         <td>
         </td>
     </tr>
</table>

If I specify something like this...
<table>
     <tr>
         <td>
         </td>
     ${someThingSpecial}
</table>

It flags the error... which can be nice to have.

But in that line I and to do something special... and crafty with my markup... 
from within my java class. I cant do anything special or crafty if tapestry is 
forcing me to put the html markup there.
sure?
there has to be a </tr> somewhere inside ${somethingSpecial}.
Either you generate additional columns only - then somethingSpecial ends with </tr> and you can pull that out to your template, or you generate additional rows as well, then there's a </tr> somewhere in the middle of somethingSpecial, and you may split somethingSpecial into two properties - easy to do, e.g. (not necessarily best choice) use two getters: somethingSpecialSameRow() { return somethingSpecial.SubString(...); } and sometingSpecialAfterRow()...; and change the template to
<table>
    <tr>
        <td></td>
        ${somethingSpecialSameRow}
    </tr>
    ${somethingSpecialAfterRow}
</table>
Is there a way to shut off this tag checking?
If you do that, the IMHO best benefit of tapestries template system is turned off: ensuring well formed xml and with that avoiding most common mistakes for generating clean and correct websites.

regards
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to