Velocity
  1. Velocity
  2. VELOCITY-447

add documentation to explain precedence for resolving property

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      document

      Description

      The Velocity user guide is not clear about the precedence for resolving the property of a variable. As in the UberspectImpl.java code, the precedence to resolve a property should be something like in this order:

      getbar()
      getBar()
      get("bar")
      isBar()

      This information will be very useful to the user. I suggest that this is added to the user guide under the "Properties" section.

        Activity

        Hide
        Henning Schmiedehausen added a comment -

        It will be in the upcoming docbook User Guide. In fact I've just written the chapter about this and it will contain this information. Thanks for suggesting.

        Show
        Henning Schmiedehausen added a comment - It will be in the upcoming docbook User Guide. In fact I've just written the chapter about this and it will contain this information. Thanks for suggesting.
        Hide
        Will Glass-Husain added a comment -

        marking for version 1.6 so we can track this

        Show
        Will Glass-Husain added a comment - marking for version 1.6 so we can track this
        Hide
        Nathan Bubna added a comment -

        The user guide in its current form looks pretty explicit on this matter already. See user-guide.xml lines 579-601. I don't see how it would be improved.

        Show
        Nathan Bubna added a comment - The user guide in its current form looks pretty explicit on this matter already. See user-guide.xml lines 579-601. I don't see how it would be improved.

          People

          • Assignee:
            Henning Schmiedehausen
            Reporter:
            Jian Chen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development