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

Fix listing_main_file_size_widget when JSFOptim disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 8.2
    • Fix Version/s: None
    • Component/s: Seam / JSF UI
    • Tags:
    • Backlog priority:
      500
    • Team:
      AT

      Description

      1) retrieve nuxeo 8.2 sources
      2) go to the nuxeo-sample-project folder
      3) patch with patch -p1 -i NXP-19753-BUG-nuxeo-sample-project-release-8.2-main_file_size_listing-widget-broken.patch (attached)
      4) mvn clean install
      5) stop 8.2 server
      6) copy target/nuxeo-sample-project-8.2.jar to $NX8_HOME/nxserver/bundles
      7) start the server
      8) in studio, go to Listings & Views / Content View / DefaultContentListingInNavigation
      9) go to Results tab
      10) in Additional Results Column, add widget Main File Size
      11) click Save
      12) on the server in Admin / Update Center / Nuxeo Studio, click Update
      13) in Workspace create a Workspace named testOptimWorkspace
      14) create a Folder named testFolder
      15) create 2 or 3 files with a main attachment
      16) on the testFolder content view click Edit Results Columns and add the Main File Size column
      17) main file size is now displayed
      18) stop the server
      19) go to the nuxeo-sample-project folder
      20) edit src/main/resources/OSGI-INF/configuration-contrib.xml and comment the following lines:

      <property name="nuxeo.jsf.listings.useRepeatRenderTime">false</property>
      <property name="nuxeo.jsf.actions.removeActionOptims">true</property>
      

      21) mvn clean install
      22) copy target/nuxeo-sample-project-8.2.jar to $NX8_HOME/nxserver/bundles
      23) start the server
      24) update as in step step 12
      25) add size column as in step 16
      26) the size column is not displayed and no error either in the UI or in the logs

      Notice it works fine with the common:Size attribute which uses the widget Integer.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m