Support for Code Examples in Trinidad Components, Validators, and Converters
tagdocs
------------------------------------------------------------------------------------
Key: TRINIDAD-953
URL: https://issues.apache.org/jira/browse/TRINIDAD-953
Project: MyFaces Trinidad
Issue Type: New Feature
Reporter: Gary Kind
Attachments: trinidad-maven.patch
Tag docs generated by the maven-faces-plugin and maven-tagdoc-plugin did not
include the ability to easily have code usage examples. With the changes I
have made this is now easily done. For example (pardon the pun), in a
component xml file:
<faces-config>
<component>
...
<component-extension>
<mfp:long-description>
...
</mfp:long-description>
<mfp:example>
<mfp:source-description>This example shows how to use
....</mfp:source-description>
<mfp:source-code>
<![CDATA[
<tr:form>
<tr:inputText id="test" label="myLabel/>
...
</tr:form>
]]>
</mfp:source-code>
</mfp:example>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.