[MAGNOLIA-6129] CompositeField cannot hold a BasicUploadField Created: 17/Mar/15 Updated: 15/Apr/16 Resolved: 15/Jul/15 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 5.3.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Adi De Masi | Assignee: | Sang Ngo Huu |
| Resolution: | Not an issue | Votes: | 0 |
| Labels: | support | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 2d 2.5h | ||
| Original Estimate: | 0.75d | ||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||
| Date of First Response: | |||||
| Sprint: | Sprint 1 (Vietnam) | ||||
| Description |
Dialog will crash with: Caused by: java.lang.ClassCastException: info.magnolia.ui.vaadin.integration.NullItem cannot be cast to info.magnolia.ui.vaadin.integration.jcr.JcrNodeAdapter |
| Comments |
| Comment by Sang Ngo Huu [ 15/Jul/15 ] |
|
At current, CompositeField uses default transformerClass info.magnolia.ui.form.field.transformer.composite.CompositeTransformer, to use BasicUploadField in composite, one have to change transfromer to info.magnolia.ui.form.field.transformer.composite.DelegatingCompositeFieldTransformer by adding transformerClass property under composite field configuration. Reference link: https://documentation.magnolia-cms.com/display/DOCS/Transforming+field+values#Transformingfieldvalues-Combiningdelegatingtransformers |