Using the form fragment:
<t:form t:id="form">
<t:beaneditor object="billing" model="billingModel"/>
<t:checkbox t:id="shippingDifferent" t:mixins="triggerfragment"
fragment="showshipping" />
<t:label for="shippingDifferent">Separate Ship To?</t:label>
<t:formfragment t:id="showshipping" visible="shippingDifferent">
<t:beaneditor object="shipping" model="shippingModel"/>
</t:formfragment>
<t:beaneditor object="payment" model="paymentModel"/>
</t:form>
I keep getting this error:
org.apache.tapestry5.ioc.internal.util.TapestryException
Parameter(s) 'TriggerFragment.fragment' are required for
org.apache.tapestry5.corelib.components.Checkbox, but have not been bound.
Also Class reloading seems to not work well for me and I tried using JRebel
(6.4) but it seems to not reload anything not even templates? My Rebel file
looks like this if anyone has any suggestions
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com
http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
<classpath>
<dir name="C:/projects/tapestry/site/build/resources/main">
</dir>
<dir name="C:/projects/tapestry/site/build/classes/main">
</dir>
</classpath>
<web>
<link target="/">
<dir name="C:/projects/tapestry/site/src/main/webapp">
</dir>
</link>
<link target="/WEB-INF/classes">
<dir name="C:/projects/tapestry/site/src/main/resources">
</dir>
</link>
</web>
</application>
With bean edit form is it possible to group certain fields?
For instance my form has a first and last name I would like to put them on the
same row but it throws a error if I try and do something like this:
<t:beaneditor object="billing" model="billingModel">
<div class="row">
<div class="col-md-6">
<p:propname1>
<t:textfield ..../>
</p:propname1>
</div>
<div class="col-md-6">
<p:propname2>
<t:textfield ..../>
</p:propname2>
</div>
</div>
</t:beaneditor>