Hi all,
I was trying to add on a field to the Person entity, and to make this field a compulsory field. I added a check in the "person" map processor in the PartyMapProcs.xml as below: <process field="nric"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyNricMissing"/></not-empty></process> and the relevant message in the PartyUiLabels.xml However when i try to test run, the form can actually be submitted although i didn't put in anything in the nric field. I found that for the First Name and Last Name field, during creation, i can leave it blank, while in the update screen an error will be prompt. There was this attribute override being stated in the services.xml for updatePerson service, while there are none for the createPerson service: <override name="firstName" optional="false"/> <override name="lastName" optional="false"/> Which leads me to ask, is the error handling in the PartyMapProcs.xml not working? or am i missing something to make it work? Some pointer please, thanks! FooShyn |
Hi all,
I was trying to add on a field to the Person entity, and to make this field a compulsory field. I added a check in the "person" map processor in the PartyMapProcs.xml as below: <process field="nric"><copy/><not-empty><fail-property resource="PartyUiLabels" property="PartyNricMissing"/></not-empty></process> and the relevant message in the PartyUiLabels.xml However when i try to test run, the form can actually be submitted although i didn't put in anything in the nric field. I found that for the First Name and Last Name field, during creation, i can leave it blank, while in the update screen an error will be prompt. There was this attribute override being stated in the services.xml for updatePerson service, while there are none for the createPerson service: <override name="firstName" optional="false"/> <override name="lastName" optional="false"/> Which leads me to ask, is the error handling in the PartyMapProcs.xml not working? or am i missing something to make it work? Some pointer please, thanks! FooShyn |
Administrator
|
In reply to this post by Foo Shyn Chung
Hi,
All: It seems weird to me that updatePerson has those fields mandatory and not createPerson. I don't see any obvious reason to not have them consistent. So I think we should fix that. FooShyn: For your problem you should follow the same way and add your field as mandatory not only in your customisation of PartyMapProcs but also in createPerson/updatePerson Jacques From: "Foo Shyn Chung" <[hidden email]> > Hi all, > > I was trying to add on a field to the Person entity, and to make this field > a compulsory field. > > I added a check in the "person" map processor in the PartyMapProcs.xml as > below: > > <process field="nric"><copy/><not-empty><fail-property > resource="PartyUiLabels" property="PartyNricMissing"/></not-empty></process> > > and the relevant message in the PartyUiLabels.xml > > However when i try to test run, the form can actually be submitted although > i didn't put in anything in the nric field. I found that for the First Name > and Last Name field, during creation, i can leave it blank, while in the > update screen an error will be prompt. > > There was this attribute override being stated in the services.xml for > updatePerson service, while there are none for the createPerson service: > > <override name="firstName" optional="false"/> > <override name="lastName" optional="false"/> > > > Which leads me to ask, is the error handling in the PartyMapProcs.xml not > working? or am i missing something to make it work? > > Some pointer please, thanks! > > FooShyn > |
Hi Jacques,
Thanx for the answer. I'm just wondering, isn't the PartyMapProcs method should act as a filter itself, and prompt the relevant error message from the fail-property resource if it encounters error? But in this case it seems like it didn't work. I'm asking this because if the fail-property is working then there's a better way to manage the error messages from my point of view. Thanx FooShyn On Wed, Aug 31, 2011 at 11:23 AM, Jacques Le Roux < [hidden email]> wrote: > Hi, > > All: It seems weird to me that updatePerson has those fields mandatory and > not createPerson. I don't see any obvious reason to not have them > consistent. > So I think we should fix that. > > FooShyn: For your problem you should follow the same way and add your field > as mandatory not only in your customisation of PartyMapProcs but also in > createPerson/updatePerson > > Jacques > > From: "Foo Shyn Chung" <[hidden email]> > > Hi all, >> >> I was trying to add on a field to the Person entity, and to make this >> field >> a compulsory field. >> >> I added a check in the "person" map processor in the PartyMapProcs.xml as >> below: >> >> <process field="nric"><copy/><not-**empty><fail-property >> resource="PartyUiLabels" property="PartyNricMissing"/><** >> /not-empty></process> >> >> and the relevant message in the PartyUiLabels.xml >> >> However when i try to test run, the form can actually be submitted >> although >> i didn't put in anything in the nric field. I found that for the First >> Name >> and Last Name field, during creation, i can leave it blank, while in the >> update screen an error will be prompt. >> >> There was this attribute override being stated in the services.xml for >> updatePerson service, while there are none for the createPerson service: >> >> <override name="firstName" optional="false"/> >> <override name="lastName" optional="false"/> >> >> >> Which leads me to ask, is the error handling in the PartyMapProcs.xml not >> working? or am i missing something to make it work? >> >> Some pointer please, thanks! >> >> FooShyn >> >> |
Administrator
|
Please answer only on user ML...
The dev ML thread was opened for another reason, and I received also this message thru the OFBiz MLs, no needs to put my email on I will have a look later... Jacques From: "Foo Shyn Chung" <[hidden email]> > Hi Jacques, > > Thanx for the answer. I'm just wondering, isn't the PartyMapProcs method > should act as a filter itself, and prompt the relevant error message from > the fail-property resource if it encounters error? But in this case it seems > like it didn't work. > > I'm asking this because if the fail-property is working then there's a > better way to manage the error messages from my point of view. > > Thanx > FooShyn > > On Wed, Aug 31, 2011 at 11:23 AM, Jacques Le Roux < > [hidden email]> wrote: > >> Hi, >> >> All: It seems weird to me that updatePerson has those fields mandatory and >> not createPerson. I don't see any obvious reason to not have them >> consistent. >> So I think we should fix that. >> >> FooShyn: For your problem you should follow the same way and add your field >> as mandatory not only in your customisation of PartyMapProcs but also in >> createPerson/updatePerson >> >> Jacques >> >> From: "Foo Shyn Chung" <[hidden email]> >> >> Hi all, >>> >>> I was trying to add on a field to the Person entity, and to make this >>> field >>> a compulsory field. >>> >>> I added a check in the "person" map processor in the PartyMapProcs.xml as >>> below: >>> >>> <process field="nric"><copy/><not-**empty><fail-property >>> resource="PartyUiLabels" property="PartyNricMissing"/><** >>> /not-empty></process> >>> >>> and the relevant message in the PartyUiLabels.xml >>> >>> However when i try to test run, the form can actually be submitted >>> although >>> i didn't put in anything in the nric field. I found that for the First >>> Name >>> and Last Name field, during creation, i can leave it blank, while in the >>> update screen an error will be prompt. >>> >>> There was this attribute override being stated in the services.xml for >>> updatePerson service, while there are none for the createPerson service: >>> >>> <override name="firstName" optional="false"/> >>> <override name="lastName" optional="false"/> >>> >>> >>> Which leads me to ask, is the error handling in the PartyMapProcs.xml not >>> working? or am i missing something to make it work? >>> >>> Some pointer please, thanks! >>> >>> FooShyn >>> >>> > |
Ops sorry...i simply click on the Reply box on my gmail below and it was
defaulted to Reply to all... Apologies... On Wed, Aug 31, 2011 at 5:45 PM, Jacques Le Roux < [hidden email]> wrote: > Please answer only on user ML... > > The dev ML thread was opened for another reason, and I received also this > message thru the OFBiz MLs, no needs to put my email on > > I will have a look later... > > > Jacques > > From: "Foo Shyn Chung" <[hidden email]> > >> Hi Jacques, >> >> Thanx for the answer. I'm just wondering, isn't the PartyMapProcs method >> should act as a filter itself, and prompt the relevant error message from >> the fail-property resource if it encounters error? But in this case it >> seems >> like it didn't work. >> >> I'm asking this because if the fail-property is working then there's a >> better way to manage the error messages from my point of view. >> >> Thanx >> FooShyn >> >> On Wed, Aug 31, 2011 at 11:23 AM, Jacques Le Roux < >> [hidden email]> wrote: >> >> Hi, >>> >>> All: It seems weird to me that updatePerson has those fields mandatory >>> and >>> not createPerson. I don't see any obvious reason to not have them >>> consistent. >>> So I think we should fix that. >>> >>> FooShyn: For your problem you should follow the same way and add your >>> field >>> as mandatory not only in your customisation of PartyMapProcs but also in >>> createPerson/updatePerson >>> >>> Jacques >>> >>> From: "Foo Shyn Chung" <[hidden email]> >>> >>> Hi all, >>> >>>> >>>> I was trying to add on a field to the Person entity, and to make this >>>> field >>>> a compulsory field. >>>> >>>> I added a check in the "person" map processor in the PartyMapProcs.xml >>>> as >>>> below: >>>> >>>> <process field="nric"><copy/><not-****empty><fail-property >>>> resource="PartyUiLabels" property="PartyNricMissing"/><**** >>>> /not-empty></process> >>>> >>>> and the relevant message in the PartyUiLabels.xml >>>> >>>> However when i try to test run, the form can actually be submitted >>>> although >>>> i didn't put in anything in the nric field. I found that for the First >>>> Name >>>> and Last Name field, during creation, i can leave it blank, while in the >>>> update screen an error will be prompt. >>>> >>>> There was this attribute override being stated in the services.xml for >>>> updatePerson service, while there are none for the createPerson service: >>>> >>>> <override name="firstName" optional="false"/> >>>> <override name="lastName" optional="false"/> >>>> >>>> >>>> Which leads me to ask, is the error handling in the PartyMapProcs.xml >>>> not >>>> working? or am i missing something to make it work? >>>> >>>> Some pointer please, thanks! >>>> >>>> FooShyn >>>> >>>> >>>> >> |
Administrator
|
In reply to this post by Jacques Le Roux
Which version are you using, did you trunk demo?
Jacques From: "Jacques Le Roux" <[hidden email]> > Please answer only on user ML... > > The dev ML thread was opened for another reason, and I received also this message thru the OFBiz MLs, no needs to put my email on > > I will have a look later... > > Jacques > > From: "Foo Shyn Chung" <[hidden email]> >> Hi Jacques, >> >> Thanx for the answer. I'm just wondering, isn't the PartyMapProcs method >> should act as a filter itself, and prompt the relevant error message from >> the fail-property resource if it encounters error? But in this case it seems >> like it didn't work. >> >> I'm asking this because if the fail-property is working then there's a >> better way to manage the error messages from my point of view. >> >> Thanx >> FooShyn >> >> On Wed, Aug 31, 2011 at 11:23 AM, Jacques Le Roux < >> [hidden email]> wrote: >> >>> Hi, >>> >>> All: It seems weird to me that updatePerson has those fields mandatory and >>> not createPerson. I don't see any obvious reason to not have them >>> consistent. >>> So I think we should fix that. >>> >>> FooShyn: For your problem you should follow the same way and add your field >>> as mandatory not only in your customisation of PartyMapProcs but also in >>> createPerson/updatePerson >>> >>> Jacques >>> >>> From: "Foo Shyn Chung" <[hidden email]> >>> >>> Hi all, >>>> >>>> I was trying to add on a field to the Person entity, and to make this >>>> field >>>> a compulsory field. >>>> >>>> I added a check in the "person" map processor in the PartyMapProcs.xml as >>>> below: >>>> >>>> <process field="nric"><copy/><not-**empty><fail-property >>>> resource="PartyUiLabels" property="PartyNricMissing"/><** >>>> /not-empty></process> >>>> >>>> and the relevant message in the PartyUiLabels.xml >>>> >>>> However when i try to test run, the form can actually be submitted >>>> although >>>> i didn't put in anything in the nric field. I found that for the First >>>> Name >>>> and Last Name field, during creation, i can leave it blank, while in the >>>> update screen an error will be prompt. >>>> >>>> There was this attribute override being stated in the services.xml for >>>> updatePerson service, while there are none for the createPerson service: >>>> >>>> <override name="firstName" optional="false"/> >>>> <override name="lastName" optional="false"/> >>>> >>>> >>>> Which leads me to ask, is the error handling in the PartyMapProcs.xml not >>>> working? or am i missing something to make it work? >>>> >>>> Some pointer please, thanks! >>>> >>>> FooShyn >>>> >>>> >> |
I was using 10.4...no i didn't trunk demo.
Thanx FooShyn On Sat, Sep 3, 2011 at 6:15 AM, Jacques Le Roux < [hidden email]> wrote: > Which version are you using, did you trunk demo? > > Jacques > > From: "Jacques Le Roux" <[hidden email]> > > Please answer only on user ML... >> >> The dev ML thread was opened for another reason, and I received also this >> message thru the OFBiz MLs, no needs to put my email on >> >> I will have a look later... >> >> Jacques >> >> From: "Foo Shyn Chung" <[hidden email]> >> >>> Hi Jacques, >>> >>> Thanx for the answer. I'm just wondering, isn't the PartyMapProcs method >>> should act as a filter itself, and prompt the relevant error message from >>> the fail-property resource if it encounters error? But in this case it >>> seems >>> like it didn't work. >>> >>> I'm asking this because if the fail-property is working then there's a >>> better way to manage the error messages from my point of view. >>> >>> Thanx >>> FooShyn >>> >>> On Wed, Aug 31, 2011 at 11:23 AM, Jacques Le Roux < >>> [hidden email]> wrote: >>> >>> Hi, >>>> >>>> All: It seems weird to me that updatePerson has those fields mandatory >>>> and >>>> not createPerson. I don't see any obvious reason to not have them >>>> consistent. >>>> So I think we should fix that. >>>> >>>> FooShyn: For your problem you should follow the same way and add your >>>> field >>>> as mandatory not only in your customisation of PartyMapProcs but also in >>>> createPerson/updatePerson >>>> >>>> Jacques >>>> >>>> From: "Foo Shyn Chung" <[hidden email]> >>>> >>>> Hi all, >>>> >>>>> >>>>> I was trying to add on a field to the Person entity, and to make this >>>>> field >>>>> a compulsory field. >>>>> >>>>> I added a check in the "person" map processor in the PartyMapProcs.xml >>>>> as >>>>> below: >>>>> >>>>> <process field="nric"><copy/><not-****empty><fail-property >>>>> resource="PartyUiLabels" property="PartyNricMissing"/><**** >>>>> /not-empty></process> >>>>> >>>>> and the relevant message in the PartyUiLabels.xml >>>>> >>>>> However when i try to test run, the form can actually be submitted >>>>> although >>>>> i didn't put in anything in the nric field. I found that for the First >>>>> Name >>>>> and Last Name field, during creation, i can leave it blank, while in >>>>> the >>>>> update screen an error will be prompt. >>>>> >>>>> There was this attribute override being stated in the services.xml for >>>>> updatePerson service, while there are none for the createPerson >>>>> service: >>>>> >>>>> <override name="firstName" optional="false"/> >>>>> <override name="lastName" optional="false"/> >>>>> >>>>> >>>>> Which leads me to ask, is the error handling in the PartyMapProcs.xml >>>>> not >>>>> working? or am i missing something to make it work? >>>>> >>>>> Some pointer please, thanks! >>>>> >>>>> FooShyn >>>>> >>>>> >>>>> >>> > |
Administrator
|
Then I'd recommend either to switch to trunk or R11.04. It works correctly in both versions.
Or to introduces needed changes from them into 10.04, if you really need this release... Jacques From: "Foo Shyn Chung" <[hidden email]> >I was using 10.4...no i didn't trunk demo. > > Thanx > FooShyn > > On Sat, Sep 3, 2011 at 6:15 AM, Jacques Le Roux < > [hidden email]> wrote: > >> Which version are you using, did you trunk demo? >> >> Jacques >> >> From: "Jacques Le Roux" <[hidden email]> >> >> Please answer only on user ML... >>> >>> The dev ML thread was opened for another reason, and I received also this >>> message thru the OFBiz MLs, no needs to put my email on >>> >>> I will have a look later... >>> >>> Jacques >>> >>> From: "Foo Shyn Chung" <[hidden email]> >>> >>>> Hi Jacques, >>>> >>>> Thanx for the answer. I'm just wondering, isn't the PartyMapProcs method >>>> should act as a filter itself, and prompt the relevant error message from >>>> the fail-property resource if it encounters error? But in this case it >>>> seems >>>> like it didn't work. >>>> >>>> I'm asking this because if the fail-property is working then there's a >>>> better way to manage the error messages from my point of view. >>>> >>>> Thanx >>>> FooShyn >>>> >>>> On Wed, Aug 31, 2011 at 11:23 AM, Jacques Le Roux < >>>> [hidden email]> wrote: >>>> >>>> Hi, >>>>> >>>>> All: It seems weird to me that updatePerson has those fields mandatory >>>>> and >>>>> not createPerson. I don't see any obvious reason to not have them >>>>> consistent. >>>>> So I think we should fix that. >>>>> >>>>> FooShyn: For your problem you should follow the same way and add your >>>>> field >>>>> as mandatory not only in your customisation of PartyMapProcs but also in >>>>> createPerson/updatePerson >>>>> >>>>> Jacques >>>>> >>>>> From: "Foo Shyn Chung" <[hidden email]> >>>>> >>>>> Hi all, >>>>> >>>>>> >>>>>> I was trying to add on a field to the Person entity, and to make this >>>>>> field >>>>>> a compulsory field. >>>>>> >>>>>> I added a check in the "person" map processor in the PartyMapProcs.xml >>>>>> as >>>>>> below: >>>>>> >>>>>> <process field="nric"><copy/><not-****empty><fail-property >>>>>> resource="PartyUiLabels" property="PartyNricMissing"/><**** >>>>>> /not-empty></process> >>>>>> >>>>>> and the relevant message in the PartyUiLabels.xml >>>>>> >>>>>> However when i try to test run, the form can actually be submitted >>>>>> although >>>>>> i didn't put in anything in the nric field. I found that for the First >>>>>> Name >>>>>> and Last Name field, during creation, i can leave it blank, while in >>>>>> the >>>>>> update screen an error will be prompt. >>>>>> >>>>>> There was this attribute override being stated in the services.xml for >>>>>> updatePerson service, while there are none for the createPerson >>>>>> service: >>>>>> >>>>>> <override name="firstName" optional="false"/> >>>>>> <override name="lastName" optional="false"/> >>>>>> >>>>>> >>>>>> Which leads me to ask, is the error handling in the PartyMapProcs.xml >>>>>> not >>>>>> working? or am i missing something to make it work? >>>>>> >>>>>> Some pointer please, thanks! >>>>>> >>>>>> FooShyn >>>>>> >>>>>> >>>>>> >>>> >> > |
Administrator
|
In reply to this post by Foo Shyn Chung
I did it for you in R10.04 at r1165122
Jacques From: "Jacques Le Roux" <[hidden email]> > Then I'd recommend either to switch to trunk or R11.04. It works correctly in both versions. > Or to introduces needed changes from them into 10.04, if you really need this release... > > Jacques > > From: "Foo Shyn Chung" <[hidden email]> >>I was using 10.4...no i didn't trunk demo. >> >> Thanx >> FooShyn >> >> On Sat, Sep 3, 2011 at 6:15 AM, Jacques Le Roux < >> [hidden email]> wrote: >> >>> Which version are you using, did you trunk demo? >>> >>> Jacques >>> >>> From: "Jacques Le Roux" <[hidden email]> >>> >>> Please answer only on user ML... >>>> >>>> The dev ML thread was opened for another reason, and I received also this >>>> message thru the OFBiz MLs, no needs to put my email on >>>> >>>> I will have a look later... >>>> >>>> Jacques >>>> >>>> From: "Foo Shyn Chung" <[hidden email]> >>>> >>>>> Hi Jacques, >>>>> >>>>> Thanx for the answer. I'm just wondering, isn't the PartyMapProcs method >>>>> should act as a filter itself, and prompt the relevant error message from >>>>> the fail-property resource if it encounters error? But in this case it >>>>> seems >>>>> like it didn't work. >>>>> >>>>> I'm asking this because if the fail-property is working then there's a >>>>> better way to manage the error messages from my point of view. >>>>> >>>>> Thanx >>>>> FooShyn >>>>> >>>>> On Wed, Aug 31, 2011 at 11:23 AM, Jacques Le Roux < >>>>> [hidden email]> wrote: >>>>> >>>>> Hi, >>>>>> >>>>>> All: It seems weird to me that updatePerson has those fields mandatory >>>>>> and >>>>>> not createPerson. I don't see any obvious reason to not have them >>>>>> consistent. >>>>>> So I think we should fix that. >>>>>> >>>>>> FooShyn: For your problem you should follow the same way and add your >>>>>> field >>>>>> as mandatory not only in your customisation of PartyMapProcs but also in >>>>>> createPerson/updatePerson >>>>>> >>>>>> Jacques >>>>>> >>>>>> From: "Foo Shyn Chung" <[hidden email]> >>>>>> >>>>>> Hi all, >>>>>> >>>>>>> >>>>>>> I was trying to add on a field to the Person entity, and to make this >>>>>>> field >>>>>>> a compulsory field. >>>>>>> >>>>>>> I added a check in the "person" map processor in the PartyMapProcs.xml >>>>>>> as >>>>>>> below: >>>>>>> >>>>>>> <process field="nric"><copy/><not-****empty><fail-property >>>>>>> resource="PartyUiLabels" property="PartyNricMissing"/><**** >>>>>>> /not-empty></process> >>>>>>> >>>>>>> and the relevant message in the PartyUiLabels.xml >>>>>>> >>>>>>> However when i try to test run, the form can actually be submitted >>>>>>> although >>>>>>> i didn't put in anything in the nric field. I found that for the First >>>>>>> Name >>>>>>> and Last Name field, during creation, i can leave it blank, while in >>>>>>> the >>>>>>> update screen an error will be prompt. >>>>>>> >>>>>>> There was this attribute override being stated in the services.xml for >>>>>>> updatePerson service, while there are none for the createPerson >>>>>>> service: >>>>>>> >>>>>>> <override name="firstName" optional="false"/> >>>>>>> <override name="lastName" optional="false"/> >>>>>>> >>>>>>> >>>>>>> Which leads me to ask, is the error handling in the PartyMapProcs.xml >>>>>>> not >>>>>>> working? or am i missing something to make it work? >>>>>>> >>>>>>> Some pointer please, thanks! >>>>>>> >>>>>>> FooShyn >>>>>>> >>>>>>> >>>>>>> >>>>> >>> >> |
Wow..Thanx a lot Jacques...
Thanx FooShyn On Mon, Sep 5, 2011 at 6:42 AM, Jacques Le Roux < [hidden email]> wrote: > I did it for you in R10.04 at r1165122 > > > Jacques > > From: "Jacques Le Roux" <[hidden email]> > >> Then I'd recommend either to switch to trunk or R11.04. It works correctly >> in both versions. >> Or to introduces needed changes from them into 10.04, if you really need >> this release... >> >> Jacques >> >> From: "Foo Shyn Chung" <[hidden email]> >> >>> I was using 10.4...no i didn't trunk demo. >>> >>> Thanx >>> FooShyn >>> >>> On Sat, Sep 3, 2011 at 6:15 AM, Jacques Le Roux < >>> [hidden email]> wrote: >>> >>> Which version are you using, did you trunk demo? >>>> >>>> Jacques >>>> >>>> From: "Jacques Le Roux" <[hidden email]> >>>> >>>> Please answer only on user ML... >>>> >>>>> >>>>> The dev ML thread was opened for another reason, and I received also >>>>> this >>>>> message thru the OFBiz MLs, no needs to put my email on >>>>> >>>>> I will have a look later... >>>>> >>>>> Jacques >>>>> >>>>> From: "Foo Shyn Chung" <[hidden email]> >>>>> >>>>> Hi Jacques, >>>>>> >>>>>> Thanx for the answer. I'm just wondering, isn't the PartyMapProcs >>>>>> method >>>>>> should act as a filter itself, and prompt the relevant error message >>>>>> from >>>>>> the fail-property resource if it encounters error? But in this case it >>>>>> seems >>>>>> like it didn't work. >>>>>> >>>>>> I'm asking this because if the fail-property is working then there's a >>>>>> better way to manage the error messages from my point of view. >>>>>> >>>>>> Thanx >>>>>> FooShyn >>>>>> >>>>>> On Wed, Aug 31, 2011 at 11:23 AM, Jacques Le Roux < >>>>>> [hidden email]> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>>> >>>>>>> All: It seems weird to me that updatePerson has those fields >>>>>>> mandatory >>>>>>> and >>>>>>> not createPerson. I don't see any obvious reason to not have them >>>>>>> consistent. >>>>>>> So I think we should fix that. >>>>>>> >>>>>>> FooShyn: For your problem you should follow the same way and add your >>>>>>> field >>>>>>> as mandatory not only in your customisation of PartyMapProcs but also >>>>>>> in >>>>>>> createPerson/updatePerson >>>>>>> >>>>>>> Jacques >>>>>>> >>>>>>> From: "Foo Shyn Chung" <[hidden email]> >>>>>>> >>>>>>> Hi all, >>>>>>> >>>>>>> >>>>>>>> I was trying to add on a field to the Person entity, and to make >>>>>>>> this >>>>>>>> field >>>>>>>> a compulsory field. >>>>>>>> >>>>>>>> I added a check in the "person" map processor in the >>>>>>>> PartyMapProcs.xml >>>>>>>> as >>>>>>>> below: >>>>>>>> >>>>>>>> <process field="nric"><copy/><not-******empty><fail-property >>>>>>>> resource="PartyUiLabels" property="PartyNricMissing"/><****** >>>>>>>> /not-empty></process> >>>>>>>> >>>>>>>> and the relevant message in the PartyUiLabels.xml >>>>>>>> >>>>>>>> However when i try to test run, the form can actually be submitted >>>>>>>> although >>>>>>>> i didn't put in anything in the nric field. I found that for the >>>>>>>> First >>>>>>>> Name >>>>>>>> and Last Name field, during creation, i can leave it blank, while in >>>>>>>> the >>>>>>>> update screen an error will be prompt. >>>>>>>> >>>>>>>> There was this attribute override being stated in the services.xml >>>>>>>> for >>>>>>>> updatePerson service, while there are none for the createPerson >>>>>>>> service: >>>>>>>> >>>>>>>> <override name="firstName" optional="false"/> >>>>>>>> <override name="lastName" optional="false"/> >>>>>>>> >>>>>>>> >>>>>>>> Which leads me to ask, is the error handling in the >>>>>>>> PartyMapProcs.xml >>>>>>>> not >>>>>>>> working? or am i missing something to make it work? >>>>>>>> >>>>>>>> Some pointer please, thanks! >>>>>>>> >>>>>>>> FooShyn >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> >>>> >>> > |
Free forum by Nabble | Edit this page |