[ 
http://jira.nuxeo.org/browse/NXP-2453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37373#action_37373
 ] 

Anahide Tchertchian commented on NXP-2453:
------------------------------------------

The exception occurs when I hit the save button and the value is not stored in 
the document.

-------------------------
Extract from the schema :
  <xs:simpleType name="dateListList">
    <xs:list itemType="xs:date"/>
  </xs:simpleType>
  <xs:element name="dateList" type="skdocEmfFt:dateListList"/>

-------------------------
Extract from the layout :
      <widget name="dateList" type="list">
        <translated>true</translated>
        <labels>
          <label 
mode="any">org.skinsoft.skdoc.ft.label.SkdocEmfFt.multipleDate.dateList</label>
        </labels>
        <fields>
          <field>skdocEmfFt:dateList</field>
        </fields>
        <subWidgets>
          <widget name="dateList_item" type="datetime">
            <translated>true</translated>
            <labels>
              <label mode="any"></label>
            </labels>
            <fields>
              <field></field>
            </fields>
            <properties widgetMode="any">
              <property 
name="pattern">#{nxu:basicDateAndTimeFormater()}</property>
            </properties>
          </widget>
        </subWidgets>
      </widget>

---------------
The exception :

16:28:46,163 ERROR [STDERR] java.lang.ArrayStoreException
16:28:46,164 ERROR [STDERR]     at java.lang.System.arraycopy(Native Method)
16:28:46,164 ERROR [STDERR]     at 
java.util.ArrayList.toArray(ArrayList.java:306)
16:28:46,164 ERROR [STDERR]     at 
org.nuxeo.ecm.core.api.model.impl.ArrayProperty.normalize(ArrayProperty.java:71)
16:28:46,164 ERROR [STDERR]     at 
org.nuxeo.ecm.core.api.model.impl.AbstractProperty.setValue(AbstractProperty.java:309)
16:28:46,164 ERROR [STDERR]     at 
org.nuxeo.ecm.core.api.model.impl.AbstractProperty.setValue(AbstractProperty.java:325)
16:28:46,164 ERROR [STDERR]     at 
org.nuxeo.ecm.core.api.impl.DataModelImpl.setData(DataModelImpl.java:103)
16:28:46,164 ERROR [STDERR]     at 
org.nuxeo.ecm.core.api.impl.DocumentModelImpl.setProperty(DocumentModelImpl.java:689)
16:28:46,164 ERROR [STDERR]     at 
org.nuxeo.ecm.platform.ui.web.resolver.DocumentModelResolver.setValue(DocumentModelResolver.java:200)


> Fix edition of an array of dates
> --------------------------------
>
>                 Key: NXP-2453
>                 URL: http://jira.nuxeo.org/browse/NXP-2453
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 5.1.4, 5.2 M1
>            Reporter: Anahide Tchertchian
>            Assignee: Anahide Tchertchian
>             Fix For: 5.1.5
>
>
> When creating or editing an array of dates (simple field), submit makes the 
> page crash.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to