Re: [Wonder-disc] any way to clear or hide component error marks?

From: David LeBer (dleber_wode..odeferous.com)
Date: Sat Aug 23 2008 - 16:41:51 EDT

  • Next message: Lachlan Deck: "Re: [Wonder-disc] any way to clear or hide component error marks?"

    On 23-Aug-08, at 4:27 PM, Ray Kiddy wrote:

    >
    > I wish this kind of thing did not distract me as much as it does. It
    > does distract me, though. And sometimes I just really need to get it
    > to stop.
    >
    > A couple of things in a WOComponent will cause the red (X) indicator
    > to show up for the component, and these are not errors. First, I will
    > sometimes have an EOEnterpriseObject instance, or something of that
    > ilk, named foo, and I have:
    >
    > <wo:str value="$foo.someAttribute" />

    So foo is an EOEnterpriseObject not a specific Entity (a Person or
    Product etc)?

    Then you can try <wo:str value="$foo.someAttribute//VALID" />

    If not (ie: if foo *is* an instance of Person) and you asking for an
    attribute it has (ie: firstName) and WOLips is still complaining, try
    cleaning your projects, and if that doesn't work try closing the
    project and reopening. You may need to touch the complaining component
    afterwards to get the warning to clear.

    > The object will return a value for the "someAttribute" key, but I
    > cannot get eclipse to shut up about it. Second, I sometimes implement
    > handleQueryForUnknownKey() in the WOComponent itself, so I can have
    > any key I want to there and, again, it is not an error and again I
    > cannot get eclipse to shut up about it.

    Again, the //VALID syntax should work.

    Or look at:

    Eclipse -> Preferences -> WOLips -> Binding Validation and Binding
    Validation Rules my rules look like this:




    > I have looked through the doc (from http://wiki.objectstyle.org/
    > confluence/display/WOL/Home), but not very recently. I had found the
    > other ways that are documented to quiet eclipse about other things.
    > But I do not see anything about this. Any suggestions would be
    > appreciated.
    >
    > cheers - ray

    ;david

    --
    David LeBer
    Codeferous Software
    'co-def-er-ous' adj. Literally 'code-bearing'
    site: 	http://codeferous.com
    blog: 	http://davidleber.net
    profile:	http://www.linkedin.com/in/davidleber
    twitter:	http://twitter.com/rebeld
    --
    Toronto Area Cocoa / WebObjects developers group:
    http://tacow.org
    



    This archive was generated by hypermail 2.0.0 : Sat Aug 23 2008 - 16:42:42 EDT