ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Pandit" <ssumitpan...@gmail.com>
Subject Getting problem in <add-error...> & <check-error>
Date Wed, 06 Feb 2008 06:58:03 GMT
Hello All,

Look at this code :-

controller entry :-
    <request-map uri="showFixedAssetDepreciation">
        <security https="true" auth="true"/>
        <event type="simple" invoke="calculateFixedAssetDepreciation"
        <response name="success" type="view"
        <response name="depreciationMtdNotAvail" type="request"
        <response name="error" type="view"

For such responce i use following code in simple method :-
    <add-error><fail-property resource="AccountingUiLabels"
     <check-errors error-code="depreciationMtdNotAvail"/>

After execution of these lines the code is returned successfully and request
"depreciationMethodAssignment" is called properly but the error message
which I added is not being displayed.  But if I simply use <check-errors/>
than the added error is displayed properly.

Can some one suggest me that if i missed something.

Thanks for suggestion.

Sumit Pandit

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message