[OS-JIRA] Created: (WOL-1136) OGNL binding values with html entities in string literals are getting flagged as errors

From: Faizel Dakri (JIRA) ("Faizel)
Date: Fri Dec 11 2009 - 19:37:55 EST

  • Next message: Ray Kiddy: "why the Component Editor is so un-helpful..."

    OGNL binding values with html entities in string literals are getting flagged as errors
    ---------------------------------------------------------------------------------------

                     Key: WOL-1136
                     URL: http://issues.objectstyle.org/jira/browse/WOL-1136
                 Project: WOProject/WOLips
              Issue Type: Bug
              Components: WOLips General
             Environment: Mac OS X 10.6 / Eclipse 3.4.1 / WOLips 3.4.5868
                Reporter: Faizel Dakri
                Priority: Minor

    OGNL bindings that include html entities in strings literals are getting flagged as errors by the Component Editor. For example, the following component definition in a .wod file gets flagged as an error on the displayString binding:

    <pre>
    MasterEdits: MPVCheckboxMatrix {
        list = editTypeList;
        item = editTypeIterator;
        selections = selectedEditTypes;
        maxColumns = 2;
        displayString = ~editTypeIterator.description + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
        escapeHTML = false;
    }
    </pre>

    The error I get reads "The binding value '&nbsp' can only appear after an '=' or a 'xxx:'" and I get multiple lines of errors, one for each occurrence of the '&nbsp;' string. I've also tried appending the "//VALID" string to the end of the binding, but that does not seem to help in this case. I have also included both the '&' and ';' character as allowed binding characters in my Eclipse preferences.

    If I change the binding value so that no html entities are present (by removing all '&' and ';' characters), then things validate just fine. My WOLips preferences are:

    I have WOLips preferences set to:

            Validate WOD / Inline Bindings : YES
            Validate Binding Values : YES
            Use Inline Bindings : YES
            Validate OGNL : YES

    -- 
    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 Dec 11 2009 - 19:38:45 EST