• NotesURL action appears to be no longer of type "url"

    By Lee A Jacobson 2 decades ago

    It appears that in CompLib V2 that the "NotesURL" action, in the "Notes URL Processor" component, is no longer of type "url". It indicates it should be of type "url" in the documentation, however, when trying to wire something to the "NotesURL" action, it shows it is of type "string".



    For example, I can no longer wire the built-in "Selected Notes Document Url" property to the "NotesURL" action.

    • Good catch

      By Jo Grant 2 decades ago

      Well found. Sorry, that got past my testing.

      I found the problem. In the com.ibm.cadmo.core project, com.ibm.cademo.core.ComponentViewPart class, line 449. It is:

          String val = element.getAttribute(&quot;key&quot;);<br/>
      

      and should be

          String val = element.getAttribute(key);<br/>
      

      That fault will cause all properties and actions with non-string types to come out as strings. I've made the fix but I need to run a full regression before I post it (because it is in core). If you are using 8.0.2 you can turn off strict type checking when wiring and it will still let you wire it. Or, of you are playing with the source, you can make the above change yourself.

      Thanks for spotting this!

      Jo