Author: dan.j.allen
Date: 2009-05-14 23:27:51 -0400 (Thu, 14 May 2009)
New Revision: 10913
Added:
branches/community/Seam_2_1/examples/metawidget/booking/resources/WEB-INF/metawidget.xml
branches/community/Seam_2_1/examples/metawidget/dvdstore/resources/WEB-INF/metawidget.xml
branches/community/Seam_2_1/examples/metawidget/groovybooking/resources/WEB-INF/metawidget.xml
Removed:
branches/community/Seam_2_1/examples/metawidget/booking/resources/WEB-INF/inspector-config.xml
branches/community/Seam_2_1/examples/metawidget/dvdstore/resources/WEB-INF/inspector-config.xml
branches/community/Seam_2_1/examples/metawidget/groovybooking/resources/WEB-INF/inspector-config.xml
Modified:
branches/community/Seam_2_1/examples/build.xml
branches/community/Seam_2_1/examples/metawidget/booking/view/book.xhtml
branches/community/Seam_2_1/examples/metawidget/booking/view/confirm.xhtml
branches/community/Seam_2_1/examples/metawidget/booking/view/hotelview.xhtml
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/account.xhtml
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/card.xhtml
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/contact.xhtml
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/book.xhtml
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/confirm.xhtml
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/hotel.xhtml
Log:
upgrade to metawidget 0.75 since there are crucial API changes we want people to adopt
from day 1
Modified: branches/community/Seam_2_1/examples/build.xml
===================================================================
--- branches/community/Seam_2_1/examples/build.xml 2009-05-14 09:24:59 UTC (rev 10912)
+++ branches/community/Seam_2_1/examples/build.xml 2009-05-15 03:27:51 UTC (rev 10913)
@@ -587,14 +587,14 @@
<target name="getmetawidget-war" if="metawidget-war.lib">
<copyInlineDependencies id="metawidget" scope="runtime"
todir="${lib.dir}">
- <dependency groupId="org.metawidget" artifactId="metawidget"
version="0.7"/>
+ <dependency groupId="org.metawidget" artifactId="metawidget"
version="0.75"/>
</copyInlineDependencies>
</target>
<target name="getmetawidget-ear" if="metawidget-ear.lib">
<copyInlineDependencies id="metawidget" scope="runtime"
todir="${lib.dir}">
- <dependency groupId="org.metawidget"
artifactId="metawidget-frontend" version="0.7"/>
- <dependency groupId="org.metawidget"
artifactId="metawidget-backend" version="0.7"/>
+ <dependency groupId="org.metawidget"
artifactId="metawidget-frontend" version="0.75"/>
+ <dependency groupId="org.metawidget"
artifactId="metawidget-backend" version="0.75"/>
</copyInlineDependencies>
</target>
Deleted:
branches/community/Seam_2_1/examples/metawidget/booking/resources/WEB-INF/inspector-config.xml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/booking/resources/WEB-INF/inspector-config.xml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/booking/resources/WEB-INF/inspector-config.xml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -1,16 +0,0 @@
-<?xml version="1.0"?>
-<inspector-config
xmlns="http://metawidget.org/inspector-config"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://metawidget.org/inspector-config
http://metawidget.org/inspector-config/inspector-config-1.0.xsd"
version="1.0">
-
- <compositeInspector xmlns="java:org.metawidget.inspector.composite"
config="CompositeInspectorConfig">
- <inspectors>
- <metawidgetAnnotationInspector
xmlns="java:org.metawidget.inspector.annotation"/>
- <propertyTypeInspector
xmlns="java:org.metawidget.inspector.propertytype"/>
- <facesInspector xmlns="java:org.metawidget.inspector.faces"/>
- <jpaInspector xmlns="java:org.metawidget.inspector.jpa"/>
- <hibernateValidatorInspector
xmlns="java:org.metawidget.inspector.hibernate.validator"/>
- </inspectors>
- </compositeInspector>
-
-</inspector-config>
\ No newline at end of file
Added:
branches/community/Seam_2_1/examples/metawidget/booking/resources/WEB-INF/metawidget.xml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/booking/resources/WEB-INF/metawidget.xml
(rev 0)
+++
branches/community/Seam_2_1/examples/metawidget/booking/resources/WEB-INF/metawidget.xml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -0,0 +1,39 @@
+<?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/metawidget-1.0.xsd" version="1.0">
+
+ <htmlMetawidget xmlns="java:org.metawidget.faces.component.html">
+ <rendererType>
+ <string>div</string>
+ </rendererType>
+ <parameter>
+ <string>divStyleClasses</string>
+ <string>entry,label,required,input,error errors</string>
+ </parameter>
+ <widgetBuilder>
+ <compositeWidgetBuilder
xmlns="urn:java:org.metawidget.widgetbuilder.composite"
config="CompositeWidgetBuilderConfig">
+ <widgetBuilders>
+ <list>
+ <richFacesWidgetBuilder
xmlns="java:org.metawidget.faces.component.html.widgetbuilder.richfaces"/>
+ <htmlWidgetBuilder
xmlns="java:org.metawidget.faces.component.html.widgetbuilder"/>
+ </list>
+ </widgetBuilders>
+ </compositeWidgetBuilder>
+ </widgetBuilder>
+ <inspector>
+ <compositeInspector xmlns="java:org.metawidget.inspector.composite"
config="CompositeInspectorConfig">
+ <inspectors>
+ <list>
+ <metawidgetAnnotationInspector
xmlns="java:org.metawidget.inspector.annotation"/>
+ <propertyTypeInspector
xmlns="java:org.metawidget.inspector.propertytype"/>
+ <facesInspector xmlns="java:org.metawidget.inspector.faces"/>
+ <jpaInspector xmlns="java:org.metawidget.inspector.jpa"/>
+ <hibernateValidatorInspector
xmlns="java:org.metawidget.inspector.hibernate.validator"/>
+ </list>
+ </inspectors>
+ </compositeInspector>
+ </inspector>
+ </htmlMetawidget>
+
+</metawidget>
\ No newline at end of file
Modified: branches/community/Seam_2_1/examples/metawidget/booking/view/book.xhtml
===================================================================
--- branches/community/Seam_2_1/examples/metawidget/booking/view/book.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++ branches/community/Seam_2_1/examples/metawidget/booking/view/book.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -6,7 +6,7 @@
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:a="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
-
xmlns:m="http://metawidget.org/faces/richfaces"
+
xmlns:m="http://metawidget.org/faces"
template="template.xhtml">
<!-- content -->
@@ -28,9 +28,7 @@
<s:validateAll>
- <m:metawidget value="#{booking}" rendererType="div"
validatorClass="org.metawidget.faces.component.validator.RequiredValidator">
- <f:param name="divStyleClasses"
value="entry,label,required,input,error errors"/>
- </m:metawidget>
+ <m:metawidget value="#{booking}"
validatorClass="org.metawidget.faces.component.validator.RequiredValidator"/>
</s:validateAll>
Modified: branches/community/Seam_2_1/examples/metawidget/booking/view/confirm.xhtml
===================================================================
--- branches/community/Seam_2_1/examples/metawidget/booking/view/confirm.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++ branches/community/Seam_2_1/examples/metawidget/booking/view/confirm.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -4,7 +4,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib"
-
xmlns:m="http://metawidget.org/faces/richfaces"
+
xmlns:m="http://metawidget.org/faces"
template="template.xhtml">
<!-- content -->
@@ -18,8 +18,7 @@
<ui:include src="hotelview.xhtml"/>
- <m:metawidget value="#{booking}" rendererType="div"
readOnly="#{true}">
- <f:param name="divStyleClasses"
value="entry,label,required,input"/>
+ <m:metawidget value="#{booking}" readOnly="#{true}">
<h:outputText value="#{booking.total}"/>
<m:stub value="#{booking.creditCardExpiryMonth}"/>
<m:stub value="#{booking.creditCardExpiryYear}"/>
Modified: branches/community/Seam_2_1/examples/metawidget/booking/view/hotelview.xhtml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/booking/view/hotelview.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/booking/view/hotelview.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -2,10 +2,8 @@
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:m="http://metawidget.org/faces/richfaces">
+
xmlns:m="http://metawidget.org/faces">
- <m:metawidget value="#{hotel}" rendererType="div"
readOnly="#{true}">
- <f:param name="divStyleClasses"
value="entry,label,required,input"/>
- </m:metawidget>
+ <m:metawidget value="#{hotel}" readOnly="#{true}"/>
</ui:composition>
Deleted:
branches/community/Seam_2_1/examples/metawidget/dvdstore/resources/WEB-INF/inspector-config.xml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/dvdstore/resources/WEB-INF/inspector-config.xml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/dvdstore/resources/WEB-INF/inspector-config.xml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -1,22 +0,0 @@
-<?xml version="1.0"?>
-<inspector-config
xmlns="http://metawidget.org/inspector-config"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://metawidget.org/inspector-config
http://metawidget.org/inspector-config/inspector-config-1.0.xsd"
version="1.0">
-
- <compositeInspector xmlns="java:org.metawidget.inspector.composite"
config="CompositeInspectorConfig">
- <inspectors>
- <metawidgetAnnotationInspector
xmlns="java:org.metawidget.inspector.annotation"/>
- <propertyTypeInspector
xmlns="java:org.metawidget.inspector.propertytype"/>
- <facesInspector xmlns="java:org.metawidget.inspector.faces"/>
- <jpaInspector xmlns="java:org.metawidget.inspector.jpa"/>
- <hibernateValidatorInspector
xmlns="java:org.metawidget.inspector.hibernate.validator"/>
- <jbpmInspector xmlns="java:org.metawidget.inspector.jbpm"
config="JbpmInspectorConfig">
- <files>
- <string>checkout.jpdl.xml</string>
- <string>newuser.jpdl.xml</string>
- </files>
- </jbpmInspector>
- </inspectors>
- </compositeInspector>
-
-</inspector-config>
\ No newline at end of file
Added:
branches/community/Seam_2_1/examples/metawidget/dvdstore/resources/WEB-INF/metawidget.xml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/dvdstore/resources/WEB-INF/metawidget.xml
(rev 0)
+++
branches/community/Seam_2_1/examples/metawidget/dvdstore/resources/WEB-INF/metawidget.xml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -0,0 +1,38 @@
+<?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/metawidget-1.0.xsd" version="1.0">
+
+ <htmlMetawidget xmlns="java:org.metawidget.faces.component.html">
+ <parameter>
+ <string>labelStyle</string>
+ <string>text-align: left; font-weight: normal</string>
+ </parameter>
+ <parameter>
+ <string>messageStyleClass</string>
+ <string>cntError</string>
+ </parameter>
+ <inspector>
+ <compositeInspector xmlns="java:org.metawidget.inspector.composite"
config="CompositeInspectorConfig">
+ <inspectors>
+ <list>
+ <metawidgetAnnotationInspector
xmlns="java:org.metawidget.inspector.annotation"/>
+ <propertyTypeInspector
xmlns="java:org.metawidget.inspector.propertytype"/>
+ <facesInspector xmlns="java:org.metawidget.inspector.faces"/>
+ <jpaInspector xmlns="java:org.metawidget.inspector.jpa"/>
+ <hibernateValidatorInspector
xmlns="java:org.metawidget.inspector.hibernate.validator"/>
+ <jbpmInspector xmlns="java:org.metawidget.inspector.jbpm"
config="JbpmInspectorConfig">
+ <inputStreams>
+ <list>
+ <resource>checkout.jpdl.xml</resource>
+ <resource>newuser.jpdl.xml</resource>
+ </list>
+ </inputStreams>
+ </jbpmInspector>
+ </list>
+ </inspectors>
+ </compositeInspector>
+ </inspector>
+ </htmlMetawidget>
+
+</metawidget>
\ No newline at end of file
Modified:
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/account.xhtml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/account.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/account.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -35,9 +35,6 @@
<h:form id="NewAccountForm">
<m:metawidget>
- <f:param name="labelStyle" value="text-align: left;
font-weight: normal"/>
- <f:param name="messageStyleClass"
value="cntError"/>
-
<m:metawidget value="#{customer.userName}"
inspectFromParent="true" rendererType="simple"/>
<m:metawidget value="#{customer.password}"
inspectFromParent="true" rendererType="simple"/>
<m:metawidget value="#{editCustomer.passwordVerify}"
inspectFromParent="true" rendererType="simple"/>
Modified:
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/card.xhtml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/card.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/card.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -25,9 +25,6 @@
<h:form id="NewAccountForm">
<m:metawidget>
- <f:param name="labelStyle" value="text-align: left;
font-weight: normal"/>
- <f:param name="messageStyleClass"
value="cntError"/>
-
<m:metawidget value="#{customer.creditCardType}"
inspectFromParent="true" rendererType="simple"/>
<m:metawidget value="#{customer.creditCard}"
inspectFromParent="true" rendererType="simple"/>
<m:stub value="#{customer.creditCardMonth}">
Modified:
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/contact.xhtml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/contact.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/dvdstore/view/newuser/contact.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -26,8 +26,6 @@
<h:form id="NewAccountForm">
<s:validateAll id="ValidateAll">
<m:metawidget value="#{customer}"
validatorClass="org.metawidget.faces.component.validator.RequiredValidator">
- <f:param name="labelStyle" value="text-align: left;
font-weight: normal"/>
- <f:param name="messageStyleClass"
value="cntError"/>
<m:stub value="#{customer.userName}"/>
<m:stub value="#{customer.password}"/>
Deleted:
branches/community/Seam_2_1/examples/metawidget/groovybooking/resources/WEB-INF/inspector-config.xml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/groovybooking/resources/WEB-INF/inspector-config.xml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/groovybooking/resources/WEB-INF/inspector-config.xml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -1,26 +0,0 @@
-<?xml version="1.0"?>
-<inspector-config
xmlns="http://metawidget.org/inspector-config"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://metawidget.org/inspector-config
http://metawidget.org/inspector-config/inspector-config-1.0.xsd"
version="1.0">
-
- <compositeInspector xmlns="java:org.metawidget.inspector.composite"
config="CompositeInspectorConfig">
- <inspectors>
- <metawidgetAnnotationInspector
xmlns="java:org.metawidget.inspector.annotation"
config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
- <propertyStyle>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</propertyStyle>
- </metawidgetAnnotationInspector>
- <propertyTypeInspector xmlns="java:org.metawidget.inspector.propertytype"
config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
- <propertyStyle>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</propertyStyle>
- </propertyTypeInspector>
- <facesInspector xmlns="java:org.metawidget.inspector.faces"
config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
- <propertyStyle>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</propertyStyle>
- </facesInspector>
- <jpaInspector xmlns="java:org.metawidget.inspector.jpa"
config="JpaInspectorConfig">
- <propertyStyle>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</propertyStyle>
- </jpaInspector>
- <hibernateValidatorInspector
xmlns="java:org.metawidget.inspector.hibernate.validator"
config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
- <propertyStyle>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</propertyStyle>
- </hibernateValidatorInspector>
- </inspectors>
- </compositeInspector>
-
-</inspector-config>
\ No newline at end of file
Added:
branches/community/Seam_2_1/examples/metawidget/groovybooking/resources/WEB-INF/metawidget.xml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/groovybooking/resources/WEB-INF/metawidget.xml
(rev 0)
+++
branches/community/Seam_2_1/examples/metawidget/groovybooking/resources/WEB-INF/metawidget.xml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -0,0 +1,59 @@
+<?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/metawidget-1.0.xsd" version="1.0">
+
+ <htmlMetawidget xmlns="java:org.metawidget.faces.component.html">
+ <rendererType>
+ <string>div</string>
+ </rendererType>
+ <parameter>
+ <string>divStyleClasses</string>
+ <string>entry,label,required,output,error errors</string>
+ </parameter>
+ <widgetBuilder>
+ <compositeWidgetBuilder
xmlns="urn:java:org.metawidget.widgetbuilder.composite"
config="CompositeWidgetBuilderConfig">
+ <widgetBuilders>
+ <list>
+ <richFacesWidgetBuilder
xmlns="java:org.metawidget.faces.component.html.widgetbuilder.richfaces"/>
+ <htmlWidgetBuilder
xmlns="java:org.metawidget.faces.component.html.widgetbuilder"/>
+ </list>
+ </widgetBuilders>
+ </compositeWidgetBuilder>
+ </widgetBuilder>
+ <inspector>
+ <compositeInspector xmlns="java:org.metawidget.inspector.composite"
config="CompositeInspectorConfig">
+ <inspectors>
+ <list>
+ <metawidgetAnnotationInspector
xmlns="java:org.metawidget.inspector.annotation"
config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
+ <propertyStyle>
+ <class>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</class>
+ </propertyStyle>
+ </metawidgetAnnotationInspector>
+ <propertyTypeInspector
xmlns="java:org.metawidget.inspector.propertytype"
config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
+ <propertyStyle>
+ <class>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</class>
+ </propertyStyle>
+ </propertyTypeInspector>
+ <facesInspector xmlns="java:org.metawidget.inspector.faces"
config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
+ <propertyStyle>
+ <class>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</class>
+ </propertyStyle>
+ </facesInspector>
+ <jpaInspector xmlns="java:org.metawidget.inspector.jpa"
config="JpaInspectorConfig">
+ <propertyStyle>
+ <class>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</class>
+ </propertyStyle>
+ </jpaInspector>
+ <hibernateValidatorInspector
xmlns="java:org.metawidget.inspector.hibernate.validator"
config="org.metawidget.inspector.impl.BaseObjectInspectorConfig">
+ <propertyStyle>
+ <class>org.metawidget.inspector.impl.propertystyle.groovy.GroovyPropertyStyle</class>
+ </propertyStyle>
+ </hibernateValidatorInspector>
+ </list>
+ </inspectors>
+ </compositeInspector>
+ </inspector>
+ </htmlMetawidget>
+
+</metawidget>
\ No newline at end of file
Modified: branches/community/Seam_2_1/examples/metawidget/groovybooking/view/book.xhtml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/book.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/book.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -6,7 +6,7 @@
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:a="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
-
xmlns:m="http://metawidget.org/faces/richfaces"
+
xmlns:m="http://metawidget.org/faces"
template="template.xhtml">
<!-- content -->
@@ -18,13 +18,11 @@
<h:form id="booking">
<fieldset>
- <m:metawidget value="#{hotel}" rendererType="div"
readOnly="#{true}">
- <f:param name="divStyleClasses"
value="entry,label,required,output"/>
- </m:metawidget>
+ <m:metawidget value="#{hotel}" readOnly="#{true}"/>
<s:validateAll>
- <m:metawidget value="#{booking}" rendererType="div"
validatorClass="org.metawidget.faces.component.validator.RequiredValidator">
+ <m:metawidget value="#{booking}"
validatorClass="org.metawidget.faces.component.validator.RequiredValidator">
<f:param name="divStyleClasses"
value="entry,label,required,input,error errors"/>
</m:metawidget>
Modified:
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/confirm.xhtml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/confirm.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/confirm.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -4,7 +4,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib"
-
xmlns:m="http://metawidget.org/faces/richfaces"
+
xmlns:m="http://metawidget.org/faces"
template="template.xhtml">
<!-- content -->
@@ -16,12 +16,9 @@
<h:form id="confirm">
<fieldset>
- <m:metawidget value="#{hotel}" rendererType="div"
readOnly="#{true}">
- <f:param name="divStyleClasses"
value="entry,label,required,output"/>
- </m:metawidget>
+ <m:metawidget value="#{hotel}" readOnly="#{true}"/>
- <m:metawidget value="#{booking}" rendererType="div"
readOnly="#{true}">
- <f:param name="divStyleClasses"
value="entry,label,required,output"/>
+ <m:metawidget value="#{booking}" readOnly="#{true}">
<h:outputText value="#{booking.total}"/>
<m:stub value="#{booking.creditCardExpiryMonth}"/>
<m:stub value="#{booking.creditCardExpiryYear}"/>
Modified: branches/community/Seam_2_1/examples/metawidget/groovybooking/view/hotel.xhtml
===================================================================
---
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/hotel.xhtml 2009-05-14
09:24:59 UTC (rev 10912)
+++
branches/community/Seam_2_1/examples/metawidget/groovybooking/view/hotel.xhtml 2009-05-15
03:27:51 UTC (rev 10913)
@@ -4,7 +4,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib"
-
xmlns:m="http://metawidget.org/faces/richfaces"
+
xmlns:m="http://metawidget.org/faces"
template="template.xhtml">
<!-- content -->
@@ -14,9 +14,7 @@
</div>
<div class="section">
- <m:metawidget value="#{hotel}" rendererType="div"
readOnly="#{true}">
- <f:param name="divStyleClasses"
value="entry,label,required,output"/>
- </m:metawidget>
+ <m:metawidget value="#{hotel}" readOnly="#{true}"/>
</div>
<div class="section">