You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Kane Lo <ka...@spacesolutions.com> on 2007/05/17 12:51:15 UTC
location for the auto-fields-service
I have created a ProductPoint Service, and mostly is copied from UpdateProductPrice. However I have encounter a problem, when I use productPoint in the element auto-fields-service. It returns me such error,
org.ofbiz.base.util.GeneralException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.ClassCastException: java.lang.Double (java.lang.Double)
If I just change it to ProductPrice for the map-name like below. Then I get a result. May I know actually where is the map-name map to?
Under ProductForms.xml
<form name="UpdateProductPoint" type="list" target="updateProductPoint" title="" list-name="productPoints"
default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext">
<auto-fields-service service-name="updateProductPoint" map-name="productPrice"/>
<field name="productId"><hidden/></field>
<field name="fromDate" title="${uiLabelMap.CommonFromDateTime}" widget-style="tabletext"><display/></field>
<field name="lastUpdatedByText" title="${uiLabelMap.ProductLastModifiedBy}:" widget-style="tabletext">
<display description="[${lastModifiedByUserLogin}] ${uiLabelMap.CommonOn} ${lastModifiedDate}" also-hidden="false"/>
</field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field>
<field name="deleteLink" title="" widget-style="buttontext">
<hyperlink target="deleteProductPoint?productId=${productId}&fromDate=${fromDate}"
description="${uiLabelMap.CommonDelete}" also-hidden="false"/>
</field>
</form>
Re: location for the auto-fields-service
Posted by Kane Lo <ka...@spacesolutions.com>.
I think I have solved the problem. I have called a wrong field name in one
of those forms.
----- Original Message -----
From: "Kane Lo" <ka...@spacesolutions.com>
To: <us...@ofbiz.apache.org>
Sent: Thursday, May 17, 2007 6:51 PM
Subject: location for the auto-fields-service
I have created a ProductPoint Service, and mostly is copied from
UpdateProductPrice. However I have encounter a problem, when I use
productPoint in the element auto-fields-service. It returns me such error,
org.ofbiz.base.util.GeneralException: Error rendering screen
[component://common/widget/CommonScreens.xml#GlobalDecorator]:
java.lang.ClassCastException: java.lang.Double (java.lang.Double)
If I just change it to ProductPrice for the map-name like below. Then I get
a result. May I know actually where is the map-name map to?
Under ProductForms.xml
<form name="UpdateProductPoint" type="list" target="updateProductPoint"
title="" list-name="productPoints"
default-title-style="tableheadtext" default-widget-style="inputBox"
default-tooltip-style="tabletext">
<auto-fields-service service-name="updateProductPoint"
map-name="productPrice"/>
<field name="productId"><hidden/></field>
<field name="fromDate" title="${uiLabelMap.CommonFromDateTime}"
widget-style="tabletext"><display/></field>
<field name="lastUpdatedByText"
title="${uiLabelMap.ProductLastModifiedBy}:" widget-style="tabletext">
<display description="[${lastModifiedByUserLogin}]
${uiLabelMap.CommonOn} ${lastModifiedDate}" also-hidden="false"/>
</field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"
widget-style="smallSubmit"><submit button-type="button"/></field>
<field name="deleteLink" title="" widget-style="buttontext">
<hyperlink
target="deleteProductPoint?productId=${productId}&fromDate=${fromDate}"
description="${uiLabelMap.CommonDelete}"
also-hidden="false"/>
</field>
</form>