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

Fix lists of integers after JSF2 migration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF02, 7.1
    • Component/s: Layouts & Widgets

      Description

      Steps to reproduce:

      • in Studio, create a document with a schema field of type "integer", multiple
      • drag& drop this field to the creation layout, leave default configuration and save
      • create the document from Nuxeo, and fill values for this field

      The following error appears on the widget:

      document_create:nxl_layout_File2_create:nxw_ints:nxw_ints_input: An error occurred when processing your submitted information.
      

      The following stack trace is visible in logs:

      Dec 16, 2014 5:33:53 PM javax.faces.webapp.PreJsf2ExceptionHandlerFactory$PreJsf2ExceptionHandler log
      SEVERE: document_create:nxl_layout_File2_create:nxw_ints:nxw_ints_input: An error occurred when processing your submitted information.
      java.lang.ArrayStoreException
      	at java.util.ArrayList.toArray(ArrayList.java:390)
      	at org.nuxeo.ecm.core.api.model.impl.ArrayProperty.normalize(ArrayProperty.java:63)
      	at org.nuxeo.ecm.core.api.model.impl.AbstractProperty.setValue(AbstractProperty.java:292)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.setPropertyValue(DocumentModelImpl.java:1443)
      	at org.nuxeo.ecm.platform.el.DocumentModelResolver.setValue(DocumentModelResolver.java:228)
      	at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)
      	at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)
      	at org.jboss.el.parser.AstBracketSuffix.setValue(AstBracketSuffix.java:75)
      	at org.jboss.el.parser.AstValue.setValue(AstValue.java:84)
      	at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
      	at org.nuxeo.ecm.platform.ui.web.binding.alias.AliasValueExpression.setValue(AliasValueExpression.java:117)
      	at org.jboss.el.parser.AstIdentifier.setValue(AstIdentifier.java:65)
      	at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
      	at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
      	at javax.faces.component.UIInput.updateModel(UIInput.java:832)
      	at org.nuxeo.ecm.platform.ui.web.component.list.UIEditableList.processUpdates(UIEditableList.java:1101)
      	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1286)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: