Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14043

com.xpn.xwiki.api.Object#get(String) javadoc is misleading about the type used for display

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4.4, 9.1-rc-1
    • Fix Version/s: 9.3-rc-1, 8.4.5
    • Component/s: Scripting
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      According to its documentation com.xpn.xwiki.api.Object#get(String) is like com.xpn.xwiki.api.Object#display(String, 'view').

      This method's name is misleading since it doesn't return the Object's property value; it"s equivalent to display(String, String) (with type equals to view).

      But it behave like com.xpn.xwiki.api.Object#display(String).

      In the attached screenshot, a TagClass object has been created, and get called on its tags fields from its title and its content. The screenshot shows the result in Wysiwyg edit mode.

      Expectation would be to see the tags displayed, not to have an input box if the javadoc was true

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              softec Denis Gervalle
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: