Re: Marking inline bindings valid

From: Thomas (webobject..oomeranet.com.au)
Date: Fri May 30 2008 - 16:33:55 EDT

  • Next message: Mike Schrag: "Re: Marking inline bindings valid"

    Mike,

    sorry if I sent this twice. Eclipse froze my computer yet again* and I
    can't tell if it was sent...

    Thanks for the quick response. However, the following inline bindings,
    using Wonder, still give the same validation errors:

    timeZone="~displayedJourney.flights[0].timeZone // VALID"
    timeZone="~displayedJourney.flights[0].timeZone //VALID"

    componentHTML = "~session.currentSite.notice('Region
    Editor').content // VALID"

    urlExtra="~'&plan=' + aPlan.uniqueIdentifier // VALID"

    I'm using Eclipse 3.3.3r33 with WOLips 3.3.5187

    Am I right in assuming that you can't use inline //VALID with OGNL? I
    have created .wod files for these and moved the definition into them,
    and //VALID works there.

    * has anybody else seen this problem? MacBook Pro with (then) 10.5.2
    and WO 5.4.1; with gradually increasing frequency, eventually up to
    once an hour, the entire user interface freezes with the death
    beachball, although Eclipse is still serving the WO application I am
    debugging. Only option is a hard reboot. I then upgrade to the latest
    nightly of WOLips, and the problem goes away, then comes back after a
    week or so and the cycle repeats. Yes, I've done the full hardware
    test, and the computer is fine.

    BTW, which version of Eclipse should I be using for the latest nightly
    WOLips?

    Regards
    Thomas

    On 30/05/2008, at 8:32 AM, Mike Schrag wrote:

    >> I have many HTML-only components that have inline bindings that do
    >> not validate, and I think //VALID only works in the .wod file. How
    >> do I mark them as valid?
    > You can only do this with Wonder inline bindings, but:
    >
    > name = "$whatever // VALID"
    >
    >> Or even better, is there a way to validate them correctly? the
    >> offending bindings are:
    >>
    >> timeZone="~displayedJourney.flights[0].timeZone" (says there is
    >> no key "timeZone" in this component)
    > No, this is super annoying to write a validator for. If someone
    > else wants to take it on, I'm fine with that. Maybe you can use
    > OGNL API's to get class metadata without having actual instances.
    >
    >> componentHTML = "~session.currentSite.notice('Region
    >> Editor').content" (says there is no key "content")
    > Same as above.
    >
    >> urlExtra="~'&plan=' + aPlan.uniqueIdentifier" (says & has to be
    >> escaped, although it is)
    > This seems like a bug.
    >
    >> - is there some way to default to inline bindings when clicking the
    >> component buttons in the tool bar?
    > File a WOLips request to save the setting of that checkbox.
    >
    >> - why does the insertion point move to the next line when I type,
    >> eg, "<wo:if co[ctl-space]" so I end up with:
    >>
    >> <wo:if condition=""
    >> [insert point here]
    > I don't get this behavior ... I get <wo:if condition="{cursor}"
    >
    > ms
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri May 30 2008 - 16:34:50 EDT