Issue Details (XML | Word | Printable)

Key: ADFEMG-78
Type: Bug Bug
Status: Closed Closed
Resolution: Incomplete
Priority: Major Major
Assignee: Unassigned
Reporter: Jan Vervecken
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
adfemg

ADF declarative component : title-attribute or titleattribute

Created: 16/Dec/12 08:16 PM   Updated: 05/Nov/13 02:11 AM   Resolved: 05/Nov/13 02:11 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags:
Participants: chriscmuir and Jan Vervecken


 Description  « Hide

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



chriscmuir added a comment - 16/Dec/12 11:39 PM

ER 16007815 raised.


Jan Vervecken added a comment - 17/Dec/12 07:02 PM

Thank you for the update Chris.

  • about "ER 16007815 raised."
    • On My Oracle Support I have been able to find enhancement request 16007815, "DT WARNING FOR INVALID DECLARATIVE COMPONENT ATTR NAMES".

regards
Jan Vervecken


chriscmuir added a comment - 15/Jul/13 04:12 AM

No progress to date. Sent email internally to give the request a poke.

CM.


chriscmuir added a comment - 05/Nov/13 02:11 AM

I'm going to mark this issue as incomplete leaving the internal teams to triage and schedule the fix based on their own priorities. At this stage I've sent enough internal emails to try and get traction, and it's not worth my while to continue to revisit that here.

CM.