[
https://issues.jboss.org/browse/SEAMFORGE-286?page=com.atlassian.jira.plu...
]
George Gastaldi commented on SEAMFORGE-286:
-------------------------------------------
This is my metawidget.xml:
{code:xml}
<?xml version="1.0"?>
<metawidget xmlns="http://metawidget.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://metawidget.org
http://metawidget.org/xsd/metawidget-1.0.xsd" version="1.0">
<htmlMetawidget xmlns="java:org.metawidget.faces.component.html">
<inspector>
<compositeInspector xmlns="java:org.metawidget.inspector.composite"
config="CompositeInspectorConfig">
<inspectors>
<array>
<propertyTypeInspector
xmlns="java:org.metawidget.inspector.propertytype"/>
<metawidgetAnnotationInspector
xmlns="java:org.metawidget.inspector.annotation"/>
<java5Inspector xmlns="java:org.metawidget.inspector.java5"/>
<facesInspector xmlns="java:org.metawidget.inspector.faces"/>
<jpaInspector xmlns="java:org.metawidget.inspector.jpa"
config="JpaInspectorConfig">
<propertyStyle>
<javaBeanPropertyStyle
xmlns="java:org.metawidget.inspector.impl.propertystyle.javabean"
config="JavaBeanPropertyStyleConfig">
<privateFieldConvention>
<format>{0}</format>
</privateFieldConvention>
</javaBeanPropertyStyle>
</propertyStyle>
</jpaInspector>
<!-- Only if using Bean Validation
-->
<beanValidationInspector
xmlns="java:org.metawidget.inspector.beanvalidation">
<!-- Only if you want to annotate the private fields, not the getters
-->
<propertyStyle>
<javaBeanPropertyStyle
xmlns="java:org.metawidget.inspector.impl.propertystyle.javabean"
config="JavaBeanPropertyStyleConfig">
<privateFieldConvention>
<format>{0}</format>
</privateFieldConvention>
</javaBeanPropertyStyle>
</propertyStyle>
</beanValidationInspector>
</array>
</inspectors>
</compositeInspector>
</inspector>
<widgetBuilder>
<compositeWidgetBuilder
xmlns="java:org.metawidget.widgetbuilder.composite"
config="CompositeWidgetBuilderConfig">
<widgetBuilders>
<array>
<overriddenWidgetBuilder
xmlns="java:org.metawidget.faces.component.widgetbuilder"/>
<readOnlyWidgetBuilder
xmlns="java:org.metawidget.faces.component.html.widgetbuilder"/>
<!-- Only if using RichFaces
<richFacesWidgetBuilder
xmlns="java:org.metawidget.faces.component.html.widgetbuilder.richfaces"/>-->
<htmlWidgetBuilder
xmlns="java:org.metawidget.faces.component.html.widgetbuilder"
config="HtmlWidgetBuilderConfig"/>
</array>
</widgetBuilders>
</compositeWidgetBuilder>
</widgetBuilder>
<!-- Only if using RichFaces
<layout>
<tabPanelLayoutDecorator
xmlns="java:org.metawidget.faces.component.html.layout.richfaces"
config="TabPanelLayoutDecoratorConfig">
<layout>
<simpleLayout xmlns="java:org.metawidget.faces.component.layout"/>
</layout>
</tabPanelLayoutDecorator>
</layout>
-->
</htmlMetawidget>
</metawidget>
{code}
The following error occurs when just upgrading without changing any XML:
{code}
java.io.IOException: java.lang.NoSuchMethodException: class
org.metawidget.inspector.beanvalidation.BeanValidationInspector.setPropertyStyle(JavaBeanPropertyStyle)
org.metawidget.faces.component.UIMetawidget$EncodeBeginSupport.encodeBegin(UIMetawidget.java:1396)
org.metawidget.faces.component.UIMetawidget.encodeBegin(UIMetawidget.java:675)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:853)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
{code}
Upgrade to Metawidget 1.30
--------------------------
Key: SEAMFORGE-286
URL:
https://issues.jboss.org/browse/SEAMFORGE-286
Project: Seam Forge
Issue Type: Library Upgrade
Reporter: George Gastaldi
Metawidget 1.30 contains some breaking changes.
Here is the guide for migrating it:
http://blog.kennardconsulting.com/2011/08/metawidget-125-to-130-migration...
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira