I've just asked for this to be added to the JDeveloper 10.1.2 Release Notes Addendum, but just in case it helps someone else out there I'm posting it here. A few users on OTN have already run into the issue and have been able to avoid it with the advice given here...
Data Actions Extending DataForwardAction Change to Data Pages Incorrectly (Bug 4113412)
When you customize the basic ADF Data Action, their custom action class should directly or inditectly extend the DataAction class in the oracle.adf.controller.struts.actions package. On the other hand, when you customize an action for an ADF Data Page it should directly or indirectly extend the DataForwardAction class in that same package. Additionally for data pages, JDeveloper associates the action to its related page by recording the name of the page in the value of the parameter attribute of the Struts action in your struts-config.xml file. In contrast, plain data actions which are not data pages do not have a parameter attribute recorded.
In 9.0.5.2 and 10.1.2 it is possible for users to accidentally create a custom data action class which incorrectly extends the DataForwardAction class instead of the correct DataAction class. This was harmless in 9.0.5.2, but in 10.1.2 a data action whose custom action class extends DataForwardAction instead of just DataAction has an undesireable side-effect when the Struts page flow diagram is opened the first time in each JDeveloper session. JDeveloper 10.1.2 notices that the action extends DataForwardAction and assumes that you meant it to be a data page. It then notices this presumed data page is missing its required parameter attribute, so JDeveloper 10.1.2 adds a parameter="unknown" attribute for it. This can have the unwanted side effect of making your data action nodes in the diagram turn into data page nodes.
The way to avoid the problem is to insure that your custom data action classes that are not intended to be data pages:
- Extend DataAction instead of DataForwardAction
- Do not have a parameter attribute in their corresponding struts-config.xml <action> element entry
12:55:02 PM
|