Re: [OS-JIRA] Created: (WOL-418) when a <WEBOBJECT ...></WEBOBJECT> is under a quote, the WOD editor thinks its missing

From: Mike Schrag (mschra..dimension.com)
Date: Tue May 08 2007 - 00:14:54 EDT

  • Next message: Guido Neitzer: "Re: [OS-JIRA] Created: (WOL-418) when a <WEBOBJECT ...></WEBOBJECT> is under a quote, the WOD editor thinks its missing"

    Yeah, I basically said the same thing in my comment on the bug:

    "I haven't made an official decision on what I want to do about this
    style. However, my _current_ position is "that's not (and will not
    be) supported by the component editor's validator". I know WO allows
    this, but it's nearly impossible to parse in any non-crazy way and
    still end up with some sort of valid dom on the other side. WO's
    parser gets away with this because it doesn't have to construct a DOM
    -- it just hunts for wo tags and mostly ignores the rest. Component
    Editor attempts to walk a fine line between reading and validating a
    DOM as well as parsing crazy mostly-broken-psuedo-"xml" in templates.
    I spent a while contemplating this case (because I had a couple of
    these in my own templates), talked with Chuck about it, and
    ultimately decided it's pretty evil that I had them at all and ended
    up changing them to WOGenericElements.

    If you want to discuss this further, it might be good to post it to
    the wolips list so we can get more input.

    Incidentally, there is also a similar case of this if you have a wo
    tag inside of a javascript string literal inside of a script tag. I
    classify this one as a bug, though, and something that we SHOULD
    support."

    On May 7, 2007, at 11:57 PM, Brendan Duddridge wrote:

    > You might want to use a WOGenericContainer instead. Or better yet,
    > use the new inline $syntax:
    >
    > <link rel="stylesheet" type="text/css" href="$myCssFile" />
    >
    > Generally putting a WebObjects tag inside another tag isn't a great
    > idea. I know, I've done it before and it always comes back to haunt
    > me sooner or later.
    >
    > ____________________________________________________________________
    > Brendan Duddridge | CTO | 403-277-5591 x24 | brenda..lickspace.com
    >
    > ClickSpace Interactive Inc.
    > Suite L100, 239 - 10th Ave. SE
    > Calgary, AB T2G 0V9
    >
    > http://www.clickspace.com
    >
    > On May 7, 2007, at 8:42 PM, Gavin Eadie (JIRA) wrote:
    >
    >> when a <WEBOBJECT ...></WEBOBJECT> is under a quote, the WOD
    >> editor thinks its missing
    >> ---------------------------------------------------------------------
    >> -----------------
    >>
    >> Key: WOL-418
    >> URL: http://issues.objectstyle.org/jira/browse/
    >> WOL-418
    >> Project: WOProject/WOLips
    >> Issue Type: Improvement
    >> Components: wolips
    >> Reporter: Gavin Eadie
    >> Priority: Minor
    >>
    >>
    >> With -- xxx.html:
    >>
    >> <link rel="stylesheet" type="text/css" href="<webobject
    >> name=StyleURL></webobject>">
    >>
    >> and -- xxx.wod:
    >>
    >> StyleURL: WOResourceURL {
    >> filename = "marketplace.css"; framework = "app";
    >> }
    >>
    >> WOD Editor reports: "There is no element named 'StyleURL" in your
    >> component HTML file." I assume because it'd under the quotes of
    >> the href="..."
    >>
    >> --
    >> 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 : Tue May 08 2007 - 00:15:18 EDT