<< Back to previous view

[ADFEMG-78] ADF declarative component : title-attribute or titleattribute Created: 16/Dec/12  Updated: 05/Nov/13  Resolved: 05/Nov/13

Status: Closed
Project: adfemg
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jan Vervecken Assignee: Unassigned
Resolution: Incomplete Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags:
Participants: chriscmuir and Jan Vervecken

 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



 Comments   
Comment by chriscmuir [ 16/Dec/12 11:39 PM ]

ER 16007815 raised.

Comment by Jan Vervecken [ 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

Comment by chriscmuir [ 15/Jul/13 04:12 AM ]

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

CM.

Comment by chriscmuir [ 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.

Generated at Fri Apr 18 14:01:41 UTC 2014 using JIRA 4.0.2#472.