Am 25.10.2012 05:13, schrieb Ken in Nashua:
Folks,
Ok I implement an if component. And upon condition I render some markup...
ESCAPE IT...?
CALL JAVA METHOD...?
SPECIFY DIRECT MARKUP ?
i tried each...
<t:If test="atNewRow">
</tr><tr> <!-- yeilds exception below
-->
</t:If>
This would be correct, if...
Well...
Tapestry is not PHP. It is not assembling text together, but forces to
maintain correct XML syntax (producing HTML in XML flavor, which is
correct).
Even Tapestry templates (.tml) are and have to be valid XML.
Your code above is not, and that's why you get, while it's correct not
to escape markup here, you get the exception.
I'm not sure why you need this "atNewRow" test; you didn't explain what
you want to do; but to create a table, do it in a corresponding loop and
keep XML syntax intact.
regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org