adfemg
  1. adfemg
  2. ADFEMG-78

ADF declarative component : title-attribute or titleattribute

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Labels:
      None

      Description

      hi

      While creating or working with an ADF declarative component in JDeveloper 11.1.1.6.0 the JDeveloper design-time never seems to warn about invalid attribute names (like "title-attribute" with a dash-character).

      Only at compile time there are lots of errors, but they don't really give a clear hint to what is wrong.
      For example, when using ...

          <af:xmlContent>
            <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
              <!-- ... -->
              <attribute>
                <attribute-name>title-attribute</attribute-name>
                <attribute-class>java.lang.String</attribute-class>
                <default-value>titleattribute-default-value</default-value>
              </attribute>
              <!-- ... -->
          </af:xmlContent>
      

      ... the JDeveloper "Compiler - Log" reports ...

      D:\screencast\ADFLibraryDependencyApps-v0.01\ADFLibraryDependencyApps\SomeComponentApp\SCViewController\classes\.jsps\somecomponentapp\component\SomeComponentTag.java
      Error(26,23):  '(' expected
      Error(26,24):  invalid method declaration; return type required
      Error(26,55):  ')' expected
      Error(26,65):  <identifier> expected
      Error(42,33):  ';' expected
      Error(42,43):  <identifier> expected
      Error(44,42):  ';' expected
      Error(44,56):  <identifier> expected
      Error(26,56):  cannot find class attribute
      Error(42,34):  cannot find class attribute
      Error(44,43):  cannot find class ATTRIBUTE_KEY
      Error(17,12):  cannot return a value from method whose result type is void
      Error(27,17):  cannot find variable attribute
      Error(27,29):  cannot find variable title
      Error(27,35):  cannot find variable attribute
      Error(33,16):  cannot find variable attribute
      Error(34,38):  cannot find variable ATTRIBUTE_KEY
      Error(34,60):  cannot find variable attribute
      Error(39,12):  cannot find variable attribute
      
      • (q1) Is it possible to create an enhancement request to improve the JDeveloper design-time to warn about invalid attribute names for ADF declarative components?

      many thanks
      Jan Vervecken

        Activity

        Jan Vervecken created issue -
        chriscmuir made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Incomplete [ 4 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jan Vervecken
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: