Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-11857

Cannot use nxl:widgetType with only 'value' or 'field'

    XMLWordPrintable

    Details

      Description

      I use a widget template (single_document_suggestion_widget_template.xhtml), which contains {field} to reference the defined field.

      Using it via nxl:widgetType in a xhtml template (outside any widget / layout) with only field:

      <nxl:widgetType name="damSingleDocumentSuggestion" mode="edit"
        field="#{damImportActions.selectedImportFolderId}"
        pageProviderName="damImportFolders"/>
      

      I end up with the following error when submitting the form:

      value="#{field}": Illegal Syntax for Set Operation
      

      Using it with only value:

      <nxl:widgetType name="damSingleDocumentSuggestion" mode="edit"
        value="#{damImportActions.selectedImportFolderId}"
        pageProviderName="damImportFolders"/>
      

      I end up with the following error when submitting the form:

      value="#{field}": ValueExpression is a literal and not writable: null
      

      Using:

      <nxl:widgetType name="damSingleDocumentSuggestion" mode="edit"
        value="#{damImportActions}"
        field="selectedImportFolderId"
        pageProviderName="damImportFolders"/>
      

      => It works.

      Replacing all occurrences of field by fieldOrValue in the template, and using:

      <nxl:widgetType name="damSingleDocumentSuggestion" mode="edit"
        value="#{damImportActions.selectedImportFolderId}"
        pageProviderName="damImportFolders"/>
      

      => It works.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours
                  3h
                  Remaining:
                  Remaining Estimate - 3 hours
                  3h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.