Toplink  model generates wrong Data Control type in JDev

I have a model project using Toplink in JDev, and I create Data Control by right clicking on the Java class. The problem is the created <DataControl> in DataControls.dcx used to be
SubType="DCTopLink",
but now it became
SubType="DCJavaBean"
I don't know how to make it to become SubType="DCTopLink" rather than manually change the DataControls.dcx file.
Anyone has any idea?

No luck with new projects. I created a new workspace - selected JSP, Struts, ADF. Created one App Mod in the Model. Created One ViewObject based on a simple select query. Added the ViewObject to the AppMod. Opened the struts-config.xml under the ViewController project. Dragged a DataPage from the component palette. Double clicked the new page. Completed the wizard with default selections. Opened the new JSP in design view. My Data Control Palette shows the app mod with the view under it. I try to drag the View onto the page, and the circle-slash icon appears and does not allow it to be dropped on the page. I can't drag out the attributes, operations, or anything at all from the Data Control Palette. I don't see any text printed on the Java console run from jdev.exe.

Similar Messages

  • How do I generate a Data Control?

    I am using ADF and i made view. I also made an entity class based on this view. I also made a view class. But how do i then create the data control for this class so that I can show the data in my jsp-page?

    You need to have an application module and in its data model, expose the views you want to be available as Data Controls.

  • Data Control Palette in Jdev 10.1.3

    I have a struts project, and an ADF model project in my workspace. I created a new Data Page. My Data Control Palette shows the ADF components available from my Model Project. But, I cannot drag anything onto the page like it seems to be possible from the documentation:
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/ADFBindingPrimer/index.html
    I know the screenshots are for 10.1.2 but I expect it to be similar. I don't see the "Drag and Drop As" dropdown. Nor do I see a UI model tab in the structure pane. Am I missing something?

    No luck with new projects. I created a new workspace - selected JSP, Struts, ADF. Created one App Mod in the Model. Created One ViewObject based on a simple select query. Added the ViewObject to the AppMod. Opened the struts-config.xml under the ViewController project. Dragged a DataPage from the component palette. Double clicked the new page. Completed the wizard with default selections. Opened the new JSP in design view. My Data Control Palette shows the app mod with the view under it. I try to drag the View onto the page, and the circle-slash icon appears and does not allow it to be dropped on the page. I can't drag out the attributes, operations, or anything at all from the Data Control Palette. I don't see any text printed on the Java console run from jdev.exe.

  • Adaptive RFC 2 Model generates wrong Dictionary Type - Exception

    Hi Experts,
    We use CE7.1 EHP1 SP3 Pat0000. When generating a Webdynpro Model for a Bapi which uses a Attribute Domain based on a CHAR1 type the Java Datatype choosen is always a "boolean". At runtime this causes a "com.sap.tc.cm.base.exception.BaseModelRuntimeException: Class 'java.lang.String' of new attribute value is not assignment compatible for attribute 'Fltype' of type 'boolean' in model ... ".
    This happens during unmarshalling from JCo Record and i haven't found a workaround yet (except changing the BAPI datatype which is not possible in this case). In our opinion this is a bug in RFC2 model generation because every ABAP Domain based on a CHAR1 field leads to a Java Attribute of type Boolean (even with a specified valueset, so that this attribute is not meant to be a kind of boolean).
    Generating an "old style" RFC Model (which is now deprecated) works fine and the generated Java datatype is String with the correct valueset from the Abap dictionary metadata.
    You can test this behaviour with the well known Bapi_Sflight_Getdetail flight example.
    Any ideas for a workaround or if this is a bug when it gets fixed?
    Regards
    Michael

    Hi Michael
    If your Issue is still not solved;
    I actually have the same problem within a migration from arfc1 to arfc2.
    After some tests and many times of troubleshooting, I created the whole
    model again and reimported in into each public part and recreated nearly
    the whole context (because of the structure-usage) - but it doesn't help!
    Even after a redeployment and a restart of the j2ee, the model doesn't work propery!
    I tried to get some information out of sap Note: 1310216
    But nothing realy helpful was in there...
    >I'm using a sap-standard structure (HRP1001) because of that, i can't edit the structure very easy..
    Has someone else the same problem?
    Best Regards
    Marco
    Some further informations: [BAPI_EQUI_GETDETAIL issue|BAPI_EQUI_GETDETAIL issue]

  • I am unable to to publish to BC i keep getting a type error:  Don't know how to generate rendered data for type.  Can someone help me fix this?

    Been having this problem all day now. i just installed the new version

    Can you please send an email to us at [email protected] along with a link to this thread and the .muse file? You can upload it to Adobe Send or Dropbox and include a download link. Thanks!

  • URGENT ! JDEV 10.1.2 Problem with data control generated from session bean

    I got a problem with data control generated from session bean which return a collection of data transfer object.
    The dto's seem to be correct. The session bean load correctly the data into and the object's are plenty of data. Using the console to display the dto content is ok.
    When generating a data control from this session bean and associate the dto included in the collection only the first object level and one-to-one dto object are correctly setted in the data control. Object that represent collection into the dto (one-to-many foreign key) are setted as collection with an iterator but the structure of the object is not setted. I don't know how to associate this second level of collection with the dto bean class to obtain the attributes definition.
    I created a case with hr schema like the hrApp demo application in the tutorial with departments and employees table. I got the same problem.
    Is it a bug ?
    It exists a workaround to force the data control to understand the collection data structure ?
    Help is welcome ! this is urgent !!!

    we found the problem by assigning the child dto bean class to the node representing the iterator in the xml file corresponding to the master dto.

  • Bug in Data control generation against top link xml mapping class

    I encountered serious problem when generating data control from a revised version of our xml schema (top link classes).
    We change the structure by inserting element representing a node before the element that occurs more than once.
    The structure is now
    <xs:element name="classification-language-list">
    <xs:annotation>
    <xs:documentation xml:lang="fr">Liste des langues supportées par la classification</xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
    <xs:sequence>
    <xs:element name="classification-language" type="classification-languageType" maxOccurs="unbounded">
    <xs:annotation>
    <xs:documentation xml:lang="fr">Langue gerée par la classification</xs:documentation>
    </xs:annotation>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    As you can see the element that represent the list is not inherited from a type. It is described locally in the schema. This mean that top link generate a class in the parent implementation class. In our case classification-language-list is defined in the interface ClassificationType.java and in the class ClassificationTypeImpl.java.
    The data control xml file for Classification class is as below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="10.1.3.39.14"
    id="Classification"
    BeanClass="classification.toplinkInterface.Classification"
    Package="classification.toplinkInterface" isJavaBased="true">
    <Attribute Name="schemaVersion" Type="java.lang.String"/>
    <AccessorAttribute id="classificationCategoryList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationCategoryListType"/>
    <AccessorAttribute id="classificationEntryList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationEntryListType"/>
    <AccessorAttribute id="classificationExternalSystemList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationExternalSystemListType"/>
    <AccessorAttribute id="classificationLanguageList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationLanguageListType"/>
    <AccessorAttribute id="classificationNameList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationNameListType"/>
    <AccessorAttribute id="classificationVersionList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationVersionListType"/>
    </JavaBean>
    The data control xml file for ClassificationLanguageListType class is as below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="10.1.3.39.14"
    id="ClassificationLanguageListType"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationLanguageListType"
    Package="classification.toplinkInterface.ClassificationType"
    isJavaBased="true">
    <Attribute Name="schemaVersion" Type="java.lang.String"/>
    <AccessorAttribute id="classificationCategoryList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationCategoryListType"/>
    <AccessorAttribute id="classificationEntryList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationEntryListType"/>
    <AccessorAttribute id="classificationExternalSystemList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationExternalSystemListType"/>
    <AccessorAttribute id="classificationLanguageList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationLanguageListType"/>
    <AccessorAttribute id="classificationNameList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationNameListType"/>
    <AccessorAttribute id="classificationVersionList" IsCollection="false"
    BeanClass="classification.toplinkInterface.ClassificationType.ClassificationVersionListType"/>
    </JavaBean>
    This last data control definition is completely wrong.
    Here is the corresponding interface in ClassificationType.java:
    public interface ClassificationLanguageListType
    java.util.List<ClassificationLanguageType> getClassificationLanguage();
    The type was added manually.
    Here is the corresponding interface
    public interface ClassificationLanguageType
    public void setClassificationLanguageCode(java.lang.String value);
    public java.lang.String getClassificationLanguageCode();
    public void setClassificationLanguageLabel(java.lang.String value);
    public java.lang.String getClassificationLanguageLabel();
    It seem like a big bug ... in data control generation

    Solve the problem by generating a data control for the implementation class also. This will cause the data control xml file to be created for the java class also (if not only the interface will have a data control xml file generated).

  • JDev 10.1.3 and data control

    I didn't find the data control palette in JDev 10.1.3. Does it mean data control are not yet implemented in this preview or do i something wrong ?
    Is it possible to obtain a version with data control implemented. We only use this portion of adf with ejb.

    thanks
    i'm a little bit confused by the fact that jsf in 10.1.3 preview use managed bean (instead of data control) to get/put data from the model layer.
    we are using entity bean and session facade. In 9.0.5.2 we are using dto and data control to generate our jsp.
    we are currently testing/discovering jsf and search the best way to efficiently generate our ui's
    what is right way for jsf
    a) managed bean (if it is possible with session bean)
    b) data control when/if available
    and why ?

  • Bug in generation of Data Controls

    Hi,
    I have a method that returns a Map&lt;Integer,Integer>. JDeveloper generated a Data Control for it (right-click + Create Data Control).
    Here's the relevant section of the resulting XML:
        &lt;Attribute Name="totalDeclared" IsUpdateable="0"
                   Type="java.util.Map&amp;lt;java.lang.Integer,java.lang.Integer>"/>When I ran the application, I was amazed to get this:
    Caused by: java.lang.StackOverflowError
        at java.lang.ClassLoader.findLoadedClass0(Native Method)
         at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:922)
         at oracle.classloader.PolicyClassLoader.findCachedClass(PolicyClassLoader.java:1201)
         at oracle.classloader.SearchPolicy$FindLoadedClass.getClass(SearchPolicy.java:33)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1289)
         at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:68)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1289)
         at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:68)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1289)
         at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:68)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1289)
         at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:68)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:164)However, if I remove the "&amp;lt;java.lang.Integer,java.lang.Integer>" part from the Data Control:
        &lt;Attribute Name="totalDeclared" IsUpdateable="0"
                   Type="java.util.Map"/>then the program gets back to normal and I get no errors.
    So, could anybody tell me if this is a (known) bug or what?
    And most importantly, is there a workaround for this thing? I find it EXTREMELY bad to have to edit the Data Control by hand every time it is generated. Besides, I'm certainly not the only person in the project and it makes no sense to have to teach everybody to make manual modifications to the Data Controls.
    Best regards,
    Bisser

    Can you paste the code for a simple class that will show this behavior?

  • Need help in URL Service Data Control

    Hi Everyone,
    I'm working on JDev11gUp2, ADF-RC
    I am using URL Service Data Control to fetch data from CSV File and i got success but I need to know that is there any way to pass File Connection URL Dynamically at run time, As i know we have to provide URL string at design time, but i have multiple files to pass at run time , Then?
    And one more question that Once the data is uploaded into af:Table from my CSV file. then after Any data change in CSV file must reflect in af:table with that change like other iterator refresh functionality. but I'm not able to do that, Simple question is, How to Re fetch the data from CSV file at run time?
    Your answer would be really appreciated as it would really help me.
    Thanks
    Fizzz...

    Hi Fizz,
    Not sure of the answer to your specific question. A couple of thoughts, though:
    You could try putting some code in a backing bean action listener to get the data control from an iterator binding (where you have added an iterator binding to your page definition) and then using the debugger to inspect the runtime type of the data control returned - then look to see if that type has a setURL method.
    [url http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/adv_data_controls005.htm]this link talks about creating your own data control type - where you could certainly expose a method to set a URL. More work, but you have complete control.
    Hope this at least gives you an idea or two.
    John

  • Using UCM data controls in ADF application

    Using *.6 Jdeveloper/UCM/Protal Application/UCM
    Calling all the experts in Webcenter/Spaces/UCM/ADF.
    We have a requirement to design search inteface for Documents stored in UCM for Webcenter Portal and Spaces application.
    Our approach is
    Design simple ADF application (no security/templates)
    Bounded task flows using fragments.
    Framents to use UCM data controls (provided by oracle)
    UCM data control definition is extended to use custom metadata.
    package the application.
    Added as ADF library jar to portal application
    Added as Shared Library to Spaces application.
    Question.
    Is this approach sound?
    Does UCM data controls provide all the functionality, for example if we want to read a option list for custom metadata or need custom metadata in return table?
    Can we add other methods to UCM data control provided by Oracle or should we create different one?
    Is there good documentation for such requirements. We have acces Webcenter developers guide which throws some light on UCM data controls.
    Let me know if more clarity is needed...
    Regards

    Hi.
    One of my last components was a custom "Document Explorer" and I used for first time JCR Data Control (Custom UCM Data Control provided by Oracle).
    Sharing my experience I did something similar to you:
    1) Create a ADF Bounded Task Flow and test it individually.
    2) Add generated ADF JAR Library to WebCenter Spaces shared-lib.
    3) Add your Task Flow to Resource Catalog.
    Challenges that I found using custom Data Control:
    1) When items retrieved are content/files all custom metadata can be retrieved OOTB.
    2) When retrieving folders don't provide custom metadata like files. I used RIDC with JCR Data Control to provide all the information relative to folders. If you don't need more information about folders than the name, URI and icons then is OK :).
    3) Using JCR Data Control registers in DataControls.dcx UCM Connection name used when generate JCR Data Control. After deploy your ADF JAR Library in WebCenter Spaces you'll have problems if you don't have a WebCenter Content Connection created with the same name. (Not talking about export UCM Connection with ADF JAR Library, Data Control uses a Connection name by itself :)).
    I added extra functionallity with RIDC (not extending JCR Data Control).
    I hope this help you.
    Regards.

  • ADF - New columns in DB table need to be reflected in Data Control Palette

    I am new to ADF. I am editing a JSF that does add and edit to data in database table. I added new columns to the table and need to modify the JSF accordingly.
    I have not been able to find info on how to take a new "snapshot" of the database table that will reflect my new columns in the DataBindings.cpx.
    Can someone steer me in the right direction?
    Thanks,
    Chris

    Chris,
    if your business service is ADF BC, then synchronize the EO with the database for it to pick up the changes. Once this is done, go to the VO and add the two new attributes. Right after that the data control palette will show the new entries.
    If you use EJB as a business service layer, change the entity classto expose the two attributes, re-generate the session facade ad then re-generate the data control.
    Frank

  • Nested AMs in Data Control Palette

    Hi,
    I have configured a root application module "RootAM" and a nested application module "NestedAM" in my data model. The Data Control Palette shows two top nodes for both AMs. The RootAM contains a childnode "NestedAM".
    + RootAM
    ---+ NestedAM
    ------+ NestedVO
    + NestedAM
    ---+ NestedVO
    When using the childnode "NestedAM" and its VOs in my bindings everthing works fine. But when using the top level node "NestedAM" and its VOs I get some strange behaviour accessing data. The VOs act as they belong to a different transaction/application.
    My Questions are:
    1.) Why does the Data Control Palette provide nested AMs as top level AMs? Using those AMs leads to some unexpected results.
    2.)
    The NestedAM depends on the RootAM. Why can it act as independent AM when using the top level node "NestedAM"?
    3.)
    How many instances of the NestedAM exist when I use both 'versions' (top level node and childnode) in my bindings?
    Thanks for your comments,
    Markus

    Markus,
    Good questions.
    Any ADF Application Module can be both a top-level service, as well as nested as a reusable component inside another application module.
    For the sake of argumet, let's call our two application modules AM1 and AM2.
    If you nest/reuse an instance of AM2 inside of AM1, it does not prevent AM2 from also being used on its own as a top-level ("root") application module. From the ADF data binding point of view, a top-level application module corresponds to a data control and its own application module pool. In contrast, nested application modules are simply a part of the implementation of the AM that includes them and don't have there own data control or their own application module pool.
    In my example above, if you use both AM1 and AM2 as data controls via drag and drop data binding, then the runtime behavior depends on which AM2 in the Data Control palette you drop. The Data Control palette will present both AM1 and AM2 as top-level data controls, but it will also present AM2 as a nested child node of the AM1 application module in which is it embedded. If you drop something from the top-level AM2 in the data control palette, it will create a data control for it and it will have its own AM2 application module pool. If instead you drop something from the AM2 node that is nested inside of the AM1 (top-level) node in the palette, it will not create a separate data control for AM2.
    So, to your questions...
    Why does the Data Control Palette provide nested AMs as top level AMs?
    All AM's show up as top-level data controls in the data control palette at present. Nested AM's show up indented inside their containing AM in the palette. Since the same AM can be used both ways, they both show up.
    I agree it could lead to user confusion, perhaps rather than automatically publishing all application modules as data controls, a separate "Create Data Control" step should be required so the developer would only publish the ones (s)he wants to be top-level data controls?
    The NestedAM depends on the RootAM. Why can it act as independent AM when using the top level node "NestedAM"?
    In general a nested AM does not depend on the AM that embeds a nested instance of it. Rather, the reverse is true. A containing, nesting AM depends on the AM instance it contains but not vice versa.
    How many instances of the NestedAM exist when I use both 'versions' (top level node and childnode) in my bindings?
    If you use both, then you'll have one instance that is a top-level AM and pooled as explained above, and another instance that is just an embedded part of the containing AM whenever it is used.

  • WebService data control data persistence issue

    Hi,
    We are using one Web Service data control on two jspx pages of application. The attributes from the data control are added on both the pages as data binding.
    Scenario:: We submit some data from Page1 using web service data control and move to Page2. Fill some data on Page2 and again submit the request to Web Service data control and after successful response move back to Page1. Same is repeated again and again for this scenario.
    Now the issue is, we submit some data from Page1, move to Page2, submit some data from Page2 and come back to Page1. If we repeat this process, then while submitting the data on Page1, the data that we submitted earlier on Page2 also get submitted, which is not expected. We only want to submit the data as per the binding on that page. Page1 is in unbounded taskflow and Page2 is in bounded taskflow.
    We have tried by setting possible values like :: CacheResults: false on iterator, Refresh condition: Ifneeded, UsePersistentStructure to false on data control. Also tried to reset and clear the data control using APIs and resetInputState on bindings. But nothing is working. The only method that is working is ClearForRecreate on Page1 iterator. But since its internal method this might not be good to use it. Also after using this we stated to receive intermittent error stating AttributeList$Itr can not be cast to String and some times argument is not an array exception.
    Please let me know, how i can ensure that correct data is sent to web service data control.
    Using JDev 11.1.1.6.
    Thanks

    Solved by removing the Share Data control option in taskflow.
    Thanks

  • How to create custom Data Control for Iterator?

    Hi,
    I have seen somewhere that is possible to customize set of data controls for all iterators in Data Controll Palette e.g. by adding custom data control (I remember JDev uses Velocity to display data controls). Is there any documentation or tutorial how to do it. Meybe any Oracle ACE will write some steps on his blog.
    Kuba

    I'm looking for any documentation or better some examples to customize files:
    jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/jsp_databinding_templates.xml
    jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/faces_creator_configuration.xml
    This customization may be very useful while developing appliations
    Kuba

Maybe you are looking for