Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.6-plugins
-
None
Description
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>