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

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: