Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-953

Support for Code Examples in Trinidad Components, Validators, and Converters tagdocs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.6-plugins
    • 1.2.7-plugins
    • 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>

      Attachments

        1. trinidad-maven2.patch
          27 kB
          Gary Kind

        Activity

          People

            matzew Matthias Wessendorf
            garykind Gary Kind
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: