[OS-JIRA] Created: (WOL-526) ComponentEditor binding validation not recognising keypaths of child entities from inherited parent

From: Simon McLean (JIRA) ("Simon)
Date: Fri Jul 06 2007 - 09:51:51 EDT

  • Next message: Kieran Kelleher: "Re: [OS-JIRA] Created: (WOL-526) ComponentEditor binding validation not recognising keypaths of child entities from inherited parent"

    ComponentEditor binding validation not recognising keypaths of child entities from inherited parent
    ---------------------------------------------------------------------------------------------------

                     Key: WOL-526
                     URL: http://issues.objectstyle.org/jira/browse/WOL-526
                 Project: WOProject/WOLips
              Issue Type: Bug
              Components: wolips
        Affects Versions: 3.3.* (nightly build please specify)
             Environment: Eclipse 3.3.0
    WOLips 3.3.4144
                Reporter: Simon McLean

    We have quite a few instances where we have, say, an array that contains objects of different entities all of which have a common parent (inheritance). We bind an object of the parent's type to the repetition. ComponentEditor validation is reporting errors when a keypath that is specific to a child of the parent is called.

    For Example, I have AbstractVoucher which has child entities AirVoucher, CarVoucher etc. AirVoucher has a keypath "airline", which CarVoucher doesn't. And CarVoucher has "carType" and AirVoucher doesn't

    If i bind an array of vouchers to a repetition, and an object of type AbstractVoucher (called aVoucher) to the "item" binding, and then bind strings within the repetition to aVoucher.airline and aVoucher.carType, ComponentEditor will mark them as errors.

    Technically they are errors, but webobjects figures it out and forgives me, so i think ComponentEditor ought to too.

    Alternatively maybe we could introduce annotations to tell ComponentEditor to not validate certain bindings ?

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Fri Jul 06 2007 - 09:52:46 EDT