I have a simple Buy/Sell prototype.

The seller accepts or rejects an offer.

@Property
@Persist
ProductTransaction mOrder;

@InjectPage
OrderCanceled mOrderCanceled;
 @InjectPage
OrderAccepted mOrderAccepted;
 @Inject
Session session;

Object onActionFromAccept(){
mOrder.Status = TrasactionSatus.Accepted;
session.save(mOrder);
 //deduct the volume from the biomass product
return mOrderAccepted;
}

<html  t:type="layout" title="" t:sidebarTitle="Manage Sites and Products"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd";
xmlns:p="tapestry:parameter">


<p>This order was placed by (user name)</p>

<p>Description of order</p>

<p><t:actionlink t:id="accept">Accept</t:actionlink></p>
<p><t:actionlink t:id="cancel">Cancel</t:actionlink></p>

</html>

When I press accept action link, I get the error:
uninitialized proxy passed to save()

It looks like I made a common error done by Tapestry 5 newbies, but I could
not find exiting threads on this issue.

Thanks for any help

Reply via email to