Hi Magnolians,

Just a heads up on an issue we found today using a Blossom paragraph in a
STK Template. We had a Spring/Blossom form object containing a property
"parent", representing a parent of a family; therefore we were passing
parameters such as "parent.firstname", for example.

As it turns out, because STKTemplateModel also has a property “parent” (or
at least a getParent() method), the following exception was thrown when
attempting to map the request parameters to this object in the
STKTemplateModel:

Caused by: java.lang.IllegalArgumentException: No bean specified
                at
org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(Propert
yUtilsBean.java:751)
                at
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:93
7)
                at
org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
                at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
                at
info.magnolia.module.templating.AbstractRenderable.newModel(AbstractRenderab
le.java:85)
                at
info.magnolia.module.templating.AbstractRenderer.newModel(AbstractRenderer.j
ava:106)
                at
info.magnolia.module.templatingkit.renderers.STKTemplateRenderer.newModel(ST
KTemplateRenderer.java:108)
                at
info.magnolia.module.templating.AbstractRenderer.render(AbstractRenderer.jav
a:70)
                ... 96 more

Typically the code would stop nicely when it doesn't find a object to map
the request parameters to; so this is only a problem if you use the same
property names.
 
While it was a difficult problem to find, the fix is pretty easy, just
change the name of your Spring form property to something else :)


Cheers,
 Brad
        

Brad Kazazes  |  Bundles IT

W: (03) 9600 4424  |  M: 0402 018 722  |  E: [email protected] 
Melbourne, VIC, 3000 





----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to