Re: SubComponents activate Validation at the first time
"Jerry W. Walker" <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Sako, The validation methods should not be triggered by passing data to a subcomponent, whether you pass that data by setting the subcomponent's iVars from Main, whether you use takeValueForKey or whether you set up and use the bindings in WOBuilder for the subcomponent. Validation should only be occurring if you are explicitly messaging one of the validation methods for one of your EOCustomObjects, or you are implicitly activating them by triggering an save somehow. Regards, Jerry On Feb 27, 2006, at 10:21 AM, WebObjects wrote: > Hello, > > I am using Components, something like: > ---------------------------------------------------- > Main > SubCompoent > Texts, strings, etc... > End SubCompoent > End Main > ---------------------------------------------------- > > The problem I have: The user opens the page to the first time. > By passing the data from the Main to SubComponent The validation is > executed because of setXXXX methods "i guess". > The method validationFailedWithException passes a message like > "Name" is not allowed to be null. This happens by displaying the > Page at the first time. > > It is correct because the "Name" is still NULL of couarse, but this > is because the user didnt have the ability to put any data. > > However, anybody has an idea, what do i miss or make wrong? thank you. > > Sako. > _______________________________________________ > WebObjects-dev mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems [email protected] 203 278-4085 office _______________________________________________ WebObjects-dev mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/webobjects-dev