On May 2, 2007, at 10:53 AM, Guillaume Lerouge wrote:
Hi,
You should check the FAQClassSheet page.
You will find that the code looks something like:
<dl>
#foreach($prop in $class.properties)
<dt> *${prop.prettyName}* </dt>
<dd>$doc.display($prop.getName()) </dd>
</dl>
That is, it takes the properties you choose to use and displays them as a list of words with their definitions below using these tags: http://www.w3.org/TR/html401/struct/lists.html#h-10.3
If instead you want the results to be displayed as a table, you should change the html on the FAQClassSheet to this:
<table border="1" cellspacing="0" cellpadding="10">
#foreach($prop in $class.properties)
<tr>
<td> *${prop.prettyName}* </td>
<td>$doc.display($prop.getName())</td>
</tr>
#end
</table>
or even better:
{table}
Property | Value
#foreach($prop in $class.properties)
*${prop.prettyName}* | doc.display($prop.getName())
#end
{table}
That said I don't recall us changing anything since beta 1 but maybe I just don't recall. If there's something wrong in the FAQ tutorial please let us know so that we can fix it.