Working with ADF EntityObject metadata in runtime

Greetings.
Could anyone tell me how can i get a list of EntityObject Attributes in runtime and receive a "label" parameter values from them (attributes)?

User,
First of all, you should ask yourself if you really want to be working with View Objects in your code and not EO's. If you are working in the View layer, you almost certainly want to be using VO's and not EO's.
For VO's, you can call getAttributeDefs() to get an array of AttributeDef's. You can then call getUIHelper() on each AttributeDef to get an AttributeHints object, which would have the labels, etc.
Similar capability exists for EO's, but, as I said above, you almost certainly want to be interacting with VO's and not EO's - perhaps you can share your use case so we can further clarify.
John

Similar Messages

  • Work with ADF Library jar file

    Hi
    My English isn't very good
    I use jdeveloper11.1.1.3.0
    I want to work with ADF Library jar file.
    I created two generic application. In each application I have a View Obj(one for employees table and one for department table ) and added them to App Module,
    then I made a ADF Library jar file for each application: adflib_emp, adflib_dep
    Then I created two separated application and in each application I created a BTF .
    In emp_TF1 I added adflib_emp jar file to application and in dep_TF2 I added adflib_dep jar file to application.
    These two applications work well. Then I created ADF Library jar file for each of these applications named: adflib_TF_1 and adflib_TF_2
    Finally I designed a main page to use these two jar file(adflib_TF_1 , adflib_TF_2). I added thses two jar file to application and then I dragged and dropped each TF to main page as a region:
    <af:panelSplitter id="ps1" splitterPosition="500">
    <f:facet name="first">
    <af:region value="#{bindings.emp_TF1.regionModel}" id="r1"/>
    </f:facet>
    <f:facet name="second">
    <af:region value="#{bindings.dep_TF2.regionModel}" id="r2"/>
    </f:facet>
    </af:panelSplitter>
    When I run main application both TF show employees table, but one TF should shows department table and the other one should shows employees table.
    I read oracle document and created my application on base of it. But I don't know why this happen and how to solve it?
    Habib
    Edited by: Habib Eslami on Apr 7, 2013 8:46 PM

    Hi,
    most likely the names of the application modules are not different but the same, which means you have a naming problem. Application modules (if they should be used as is) must have a unique name
    Frank

  • Browser back button not working with ADF Application integrated with SSO

    I have integrated an adf application with Oracle SSO Authentication. Application is running fine.
    Though, while navigating between pages, using browser back button , it is not redirecting the url properly
    Should Redirect it to : http://<hostname>:<port>/<contex-root>/<servlet>/<id>
    Presently Redirecting it to :http://<hostname>:<port>/<contex-root>
    As, directory browsing is not allowed, there is Error 403--Forbidden .
    Can anybody tell what changes needs to be made to make browser back button work.

    In some of the documentation I have read, they have mentioned that using the back button in a browser doesn't work too well with any JSF type of application (not just ADF and Jdeveloper apps).
    http://docs.oracle.com/cd/E15051_01/web.1111/b31974/web_form.htm#CFHHJGJH
    Instead, they suggest using buttons on the form.
    There is a video on using navigation between forms that may be of value: http://www.youtube.com/watch?v=bsPtmRID5XI&feature=plcp
    Stuart
    Edited by: Stuart Fleming on Sep 11, 2012 5:30 AM

  • Application not working with MS ACCESS DB at runtime

    I have problem with my application that working properly at runtime( via visual studio ) and update data grid of windows form .net . But after publish the application and run this then , I am getting following error as shown in image. Please help me , how
    to solve it , I do a lot of search , not able to find any solution on that. Error come when running the application.
    Application coded in VB.NET, Visual Studio 2013, MS ACCESS 2013
    Connectionstring : Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\labprofiles.mdb;User Id=admin;Password=;
    [or Persist Security Info=True or Persist Security Info=false ]

    Hello,
    To set the path use
    SetData and GetData to retrieve the current path
    AppDomain.CurrentDomain.SetData("DataDirectory", "Your path")
    AppDomain.CurrentDomain.GetData("DataDirectory").ToString
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Can't get Struts validator to work with ADF 10.1.3.36.73 in Jdev 10.1.3.0.4

    I am attempting to use the "How to Use the Struts Validator Plug-in with JDeveloper 10g" written by Duncan in a JDeveloper 10.1.3.0.4 application with standard model/ViewController projects. I am using JSP/Struts/ADF technologies.
    I have performed the below:
    Struts Config:
    <form-bean name="surveyDataForm" type="oracle.adf.controller.v2.struts.forms.BindingContainerValidationForm" className="oracle.adf.controller.struts.forms.BindingContainerValidationFormConfig"/>
    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
    </plug-in>
    In the validation.xml:
    <!DOCTYPE form-validation
    PUBLIC "-//Apache Software Foundation//
    DTD Commons Validator Rules
    Configuration 1.0//EN"
    "http://jakarta.apache.org/
    commons/dtds/validator_1_0.dtd">
    <form-validations>
    <formset>
    <form name="surveyDataForm">
    <field property="EmpName" depends="required">
    <arg0 key="survey.name"/>
    </field>
    <field property="DateOfService" depends="required">
    <arg0 key="survey.service.date"/>
    </field>
    <field property="ReloContractor" depends="required">
    <arg0 key="survey.relo.contract"/>
    </field>
    </form>
    </formset>
    </form-validations>
    And in my JSP, I have:
    <script type="text/javascript">
    <html:javascript formName="surveyDataForm"/>
    </script>
    <html:form action="/survey.do" onsubmit="return validateSurveyDataForm(this)">
    (The validation-rules.xml was copied from the JDev install jakarta-struts folder).
    I can now see the Javascript showing up in my JSP page, but I don't have a method generated for validateSurveyDataForm or any form like this. I didn't think I had to create this. Also, even without the Javascript, the validator is not called because the JBO errors for required are still showing up. The only thing I have not done is included the modelReference in the Form Bean definition in the struts-config.xml. I'm not sure this will work, or even what to populate this with, as the UIModel.xml is replaced by PageDef.xml and DataBindings.cpx changes.
    Anyone have any ideas?
    Shay

    Only have one network; wireless. On it's own, the MacBook can use wifi to surf the net and Apple TV can watch movie previews from Apple via wifi.
    It did work about two months ago. I haven't used it since then for home sharing but have used the Apple TV on its own.
    I read the Troubleshooting page on Apple Support. It involves turning various things on and off, which I did

  • Problem in working with adf task flow..

    hi all i m trying to run jsf page using adf task flow it is giving me belove error and not running the page what should i do now?
    Target URL -- http://localhost:7101/Myapp-ViewController-context-root/faces/head.jsf
    <ViewHandlerImpl> <_checkTimestamp> Apache Trinidad is running with time-stamp checking enabled. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1
    javax.faces.view.facelets.FaceletException: Error Parsing //C:/JDeveloper/system11.1.2.2.39.61.83.1/o.j2ee/drs/Myapp/ViewControllerWebApp.war/head.jsf: Error Traced[line: 21] <Line 21, Column 26>: XML-20121: (Fatal Error) End tag does not match start tag 'af:panelSplitter'.
         at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:394)
         at com.sun.faces.facelets.compiler.SAXCompiler.doMetadataCompile(SAXCompiler.java:377)
         at com.sun.faces.facelets.compiler.Compiler.metadataCompile(Compiler.java:130)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory.createMetadataFacelet(DefaultFaceletFactory.java:319)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory.access$200(DefaultFaceletFactory.java:92)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory$2.newInstance(DefaultFaceletFactory.java:168)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory$2.newInstance(DefaultFaceletFactory.java:166)
         at com.sun.faces.facelets.impl.DefaultFaceletCache$2.newInstance(DefaultFaceletCache.java:94)
         at com.sun.faces.facelets.impl.DefaultFaceletCache$2.newInstance(DefaultFaceletCache.java:89)
         at com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:99)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:114)
         at com.sun.faces.facelets.impl.DefaultFaceletCache.getMetadataFacelet(DefaultFaceletCache.java:135)
         at com.sun.faces.facelets.impl.DefaultFaceletCache.getMetadataFacelet(DefaultFaceletCache.java:62)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:252)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:201)
         at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:114)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:749)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <LifecycleImpl> <_reportFailureForMissingViewRoot> ADF_FACES-30179:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.
    javax.faces.view.facelets.FaceletException: Error Parsing //C:/JDeveloper/system11.1.2.2.39.61.83.1/o.j2ee/drs/Myapp/ViewControllerWebApp.war/head.jsf: Error Traced[line: 21] <Line 21, Column 26>: XML-20121: (Fatal Error) End tag does not match start tag 'af:panelSplitter'.
         at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:394)
         at com.sun.faces.facelets.compiler.SAXCompiler.doMetadataCompile(SAXCompiler.java:377)
         at com.sun.faces.facelets.compiler.Compiler.metadataCompile(Compiler.java:130)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory.createMetadataFacelet(DefaultFaceletFactory.java:319)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory.access$200(DefaultFaceletFactory.java:92)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory$2.newInstance(DefaultFaceletFactory.java:168)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory$2.newInstance(DefaultFaceletFactory.java:166)
         at com.sun.faces.facelets.impl.DefaultFaceletCache$2.newInstance(DefaultFaceletCache.java:94)
         at com.sun.faces.facelets.impl.DefaultFaceletCache$2.newInstance(DefaultFaceletCache.java:89)
         at com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:99)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:114)
         at com.sun.faces.facelets.impl.DefaultFaceletCache.getMetadataFacelet(DefaultFaceletCache.java:135)
         at com.sun.faces.facelets.impl.DefaultFaceletCache.getMetadataFacelet(DefaultFaceletCache.java:62)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:252)
         at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:201)
         at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:114)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:749)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:346)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Hi,
    Do you see this?
    javax.faces.view.facelets.FaceletException: Error Parsing //C:/JDeveloper/system11.1.2.2.39.61.83.1/o.j2ee/drs/Myapp/ViewControllerWebApp.war/head.jsf: Error Traced[line: 21] <Line 21, Column 26>: XML-20121: (Fatal Error) End tag does not match start tag 'af:panelSplitter'.Check out the code and end af:panelSplitter.
    -Arun

  • What will exactly not work when I work with ADF application on IE9 browser.

    Can anyone help me in understanding which feature of an ADF version doesn't work on IE9.( Ex:Inputcombolist)

    This bug was fixed in JDeveloper 11.1.1.6.0.
    For JDeveloper 11.1.1.5.0, patch 11850659 is downloadable from "My Oracle Support" (MOS).
    For more information, see Note 1420818.1 - In IE9, Input Components Lose Their Values When Using an af:inputFile on the Same Form - that we published in MOS

  • Finally, MyFaces 1.0.8 works with ADF EA12

    Downloaded the new release of MyFaces 1.0.8 and ADF EA12. Finally, they collaborate well in a single project, which gives you a nice Tiles support feature
    and a large set of custom GUI components. It is awesome.

    Dagnabit, you stole our thunder! :)
    FWIW, I have found one bug in EA12 that affects ADF Faces input components (you'll see some FacesExceptions being thrown from ApplicationImpl.createConverter()); it's fixed in the forthcoming EA13. But, yes, both sides of this picture have ironed out the bugs that were blocking the combination. Thanks for the kind words.
    -- Adam Winer
    ADF Faces architect

  • How to get JDev 10.1.2/ADF working with MS SQL Server Identity Column

    Hello JDevTeam & JDevelopers,
    I want to use JDev/ADF with a MS SQL Server 2005 database that contains tables employing IDENTITY Columns.
    Using JDev/ADF and DBSequence with an Oracle database employing before triggers/sequences accomplishes what I am trying to do except I want to accomplish the same thing using a MSSQL Server 2005 database. Unfortunately I cannot change the database.
    I have been able to select records but I am unable to insert records (due to my lack of knowledge) when using MS/SQL Server Identity Columns with JDev/ADF.
    The following are the steps taken thus far.
    Step1: Create table named test in the 2005 MSSQL Server (see script below).
    Step2: Register 3rd Party JDBC Driver with JDeveloper; Using use Tools/Manage Libraries. Create a new entry in User Libraries with the following;
         Library Name     = Ms2005Jdbc
         Class Path     = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu\sqljdbc.jar
         (note: Latest TYPE 4 JDBC driver for Microsoft SQL Server 2005 - free at http://msdn.microsoft.com/data/ref/jdbc/)
    Step3:Create New Database Connection;
         Connection Name = testconn1
         Type = Third Party JDBC Driver
         Authentication Username = sa, Password = password, Check Deploy Password
         Connection
              Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver     
              Library = Ms2005Jdbc     
              Classpath = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu
              URL = jdbc:sqlserver://192.168.1.151:1433;instanceName=sqlexpress;databaseName=test
         Test Connection = Success!
    Step5: Create a new application workspace using Web Application default template
    Step6: In Model project, Create new Business Components Diagram.
    Step7: Create new Entity Object. Goto to connections/testconn1, open tables and drag table test onto the diagram.
    Step8: Generate Default Data Model Components by right-clicking on Entity Object. Except all the defaults.
    When I test the Appmodule I select the view object and can scroll through all the records without error. If I try to insert a record, I get JBO-27014: Attribute testid in test is required.
    Going back to the EntityObject I deselect the Mandatory attribute and re-run the test. Now when I try to insert it accepts the value for testname but it does not update the PK testid like it would using an "JDev/ADF/DBSequence/Oracle database/before trigger/sequence" solution.
    Going back to the EntityObject and selecting refresh on insert does not solve this problem either. Changing the URL connection string and adding "SelectMethod=cursor" did not help and changing the SQl Flavor to SQLServer produced errors in the Business Components Browser. I've tried overriding isAttributeChanged() and other things as well.
    I am totally stuck! Can anyone provide a solution?
    Thanks for you help,
    BG...
    Create table named test
    use [testdb]
    go
    set ansi_nulls on
    go
    set quoted_identifier on
    go
    create table [test](
         [testid] [int] identity(0,1) not null,
         [testname] [nvarchar](50) collate sql_latin1_general_cp1_ci_as not null,
    constraint [pk_test] primary key nonclustered
         [testid] asc
    )with (pad_index = off, ignore_dup_key = off) on [primary]
    ) on [primary]

    Figured it out!
    When using the MS SQL Server 2000 Database with the MS JDBC 2000 Driver you specify the SQL Flavor to SQLServer. However setting the SQL Flavor to SQLServer with MS SQL Server 2005 Database and the MS JDBC 2005 Driver will *** fail ***.
    When working with the MS SQL Server 2005 Database and the MS JDBC 2005 Driver you set the SQL Flavor to SQL92 and the Type Map to Java.
    If using a named instance like I am you would specify the URL = jdbc:sqlserver://<db host ip address>:<listening port>;instanceName=<your instance name>;selectMethod=cursor;databaseName=<your database name> (note: leave out the < >)
    The 2005 Driver Class is different then the 2000 and is specified as com.microsoft.sqlserver.jdbc.SQLServerDriver
    Note: In a default MS SQL Server 2005 installation the listening port will change *** everytime *** the host is restarted! You can override this though.
    For the primary key you need to deselect the Mandatory attribute in the EntityObject editor.
    Set Refresh on insert/update = no.
    Set Updateable = never.
    Now my Primary Keys which get their values from the Identity Column are working with ADF in a predictable way.
    Simple enough but I have been away from this stuff for awhile.
    BG...

  • Working with WebCenter Portal & ADF Skin Editor Together

    Hi all.
    I want to ask to webcenter community developers about the best practice to work with ADF Skin Editor for WebCenter Apps.
    I usually deployed my ADF Skin JAR Libraries as Shared Libs and consumed them from pure ADF Applications without problems.
    However, in WebCenter Portal Framework Applications resources are readed at MDS Path: /oracle/webcenter/portalapp/skins/... (like portal-skin.css) or at the shared lib called oracle.webcenter.skin
    My objetive is to provide more Skin's to WebCenter Portal Application from ADF JAR Librarys created by ADF Skin Editor and be selectable (like /oracle/webcenter/portalapp/skins/... resources) in Runtime in Administration page.
    How can i achieve it easly? (Please don't provide off doc, i read it).
    Have i to override SkinPhaseListener of WebCenter to read from another locations?.
    Thanks.

    Hi.
    Finally for WebCenter Portal Applications we are using ADF Skin Editor as support to skin ADF Components.
    When we've got our skin defined in ADF Skin Editor then copy to CSS file under MDS folder (/oracle/webcenter/portalapp...) and create a Portal Resource of it.
    If you want to deploy your ADF Skins as Shared Libs or included directly to WebCenter Portal App as ADF JAR Library then you'll see that they don't appear at Runtime to be selectable in admin page.
    If you want these skins be selectable at runtime you have to register them in generic-resources.xml manually.
    PD: Setting trinidad skins at "FINEST" level debug you can see what trinidad-skins is WebCenter loading.
    I hope this help you.
    PD: Your problem is little different because you are in WebCenter Spaces.
    Regards.

  • How to work with Bangla in ADF (Jdeveloper 11g Release 2)

    Hi
    I am Jahid From Bangladesh. Recently I am working with ADF (Oracle Jdeveloper 11g). I am working with a project like newsroom service. I need to extract bangla and other language text from other site. So i need to work with Multiple language in ADF specially with Bangla. Can anybody help me specifically step by step. I am new in ADF just beginner.
    Thanks in advance.
    Jahid
    Analyst Programmer
    IBCS-PRIMAX (Bangladesh) Ltd.

    You application character set should be unicode
    this can help http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_global.htm#CHDGCAFI

  • Jar file import problem with ADF application

    Hi Everyone,
    I am using Jdev 11g with integrated WLS. I have an ADF application and is trying to integrate JasperReport in it. I added the JasperReport JAR file in the project properties -> Libraries and Classpath, and checked it for "export" and "Deployed by Default'. I have my JasperReport codes in my managed bean
    as follows
    +public String cb1_action() {+
    +try {+
    +JasperDesign design = JRXmlLoader.load("C:/JDeveloper/mywork/ReentryApplication/ViewController/public_html/jasper/testReport.jrxml");+
    +JasperReport report = JasperCompileManager.compileReport(design);+
    +....+
    +}+
    +}+
    I am able to compile the managed bean class successfully. However when I run the application, I got a stack of errors like this,
    +[2009-10-08T11:31:59.910-04:00] [DefaultServer] [ERROR] [] [javax.enterprise.resource.webcontainer.jsf.application] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: test123] [ecid: 0000IGollZuB5EirL4YBUA1AnVop00000L,0] [APP: ReentryApplication] java.lang.RuntimeException: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:[[+
    +C:\Documents and Settings\MISSP29\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\testReport_1255015914097_607807.java:4: package net.sf.jasperreports.engine does not exist+
    +import net.sf.jasperreports.engine.*;+
    +....+
    It appears that the JAR file is not picked up at the runtime correctly. I tried a simple Main class with the same codes and JAR file added, it works fine. Does anyone know what I am missing within the ADF application?
    Any helps would be appreciated.
    Thanks,
    John
    Edited by: john wang on Oct 8, 2009 9:24 AM

    Timo,
    Thanks you for your prompt response.
    1. I checked The following folder (I assume this is where it supposes to be). The JAR file is there.
    C:\Documents and Settings\MISSP29\Application Data\JDeveloper\system11.1.1.1.33.54.07\o.j2ee\drs\ReentryApplication\ReentryApplication-ViewController-webapp\WEB-INF\lib
    2. I did not do anything about deployment descriptor. Since I run my application within JDev integrated WLS, I did not do anything about deployment setting. Do I need do something with deployment descriptor if I want to import additional JAR files here? With my experience with 10g, to add a JAR file within JDev, all I need to do is to add it through project properties ->libraries.
    3. I agree with your absolute path comment. This is a test of how JasperReport works with ADF application. I will work it out later.
    Thanks,
    -John

  • How to work with commit handling

    Dear All,
    an ADF Face page(jspx) calls a JSP page, which open a document in a browser window, in the same application. i wanna work with commit handling on the save button so that jsp page gets called ONLY if the commit succeeds jspx page(a ‘Transaction completed’ message (JHS-00100) is recieved). NOT if recieving a ‘No changes to save message’ (JHS-00101) or any other error message. could someone tell me how to implement it?
    regards
    Jerry

    Hi,
    if working with ADF, you can create a operation binding for the commit operation. If you check if the commit operation in ADF is enabled then you should get false if there is no data to commit. So you don't have to wait for the message.
    Frank

  • Issue with adf projectGantt showing popus

    hi all
    am working with adf projectGantt using page template every thing goes perfectly but when I want to see task properties for example or modify the time axis reliated popus never appear (when i dont use templates every thing gonna be alright :s)
    i'll be very thankful if any one could help
    this is my gantt.jspx with template
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <!--h:inputHidden value="#{typeBean.init}"/-->
    <f:view>
    <af:document title="Project Gantt"
    binding="#{templateBindings.documentComponent}" theme="medium"
    id="d">
    <af:form id="form">
    <af:pageTemplate id="gant" viewId="/tagDemoTemplate.jspx">
    <!-- Document Title -->
    <f:attribute name="documentTitle" value="Project Gantt"/>
    <!-- Tag Name -->
    <f:facet name="first1">
    <af:image source="/images/d.png"
    inlineStyle="width:1400px;heigth:150px"/>
    <!--f:subview id="enteteTache">
    <jsp:include page="/entete.jspx"/>
    </f:subview-->
    </f:facet>
    <f:facet name="auxiliaryGlobal">
    <f:subview id="menuTache">
    <jsp:include page="/MenuProjet.jspx"/>
    </f:subview>
    </f:facet>
    <f:facet name="top1">
    <af:navigationPane id="nav1" hint="tabs">
    <af:commandNavigationItem id="tagGuideTab" text="Projet Assigné"
    shortDesc="Description détaillée du projet, diagramme de gantt, tâches, etc."
    selected="true"
    actionListener="#{navigationBean.navigationItemAction}"
    action="assigne"/>
    <af:commandNavigationItem id="componentSkinningTab"
    text="Resources Consommées"
    shortDesc="Utilisation des ressources utilisées"
    selected="false"
    actionListener="#{navigationBean.navigationItemAction}"
    action="consommation"/>
    <af:commandNavigationItem id="ressTab"
    text="Resources Prévisionnelles"
    shortDesc="Utilisation des ressources prévisionnelles"
    selected="false"
    actionListener="#{navigationBean.navigationItemAction}"
    action="prevision"/>
    <af:commandNavigationItem id="fileExplorerTab" text="Aide"
    shortDesc="Aide et description du projet"
    selected="false" action="fileExplorer"/>
    </af:navigationPane>
    </f:facet>
    <f:facet name="center">
    <af:panelGroupLayout layout="scroll" id="pg1">
    <f:facet name="separator">
    <af:separator id="sep"/>
    </f:facet>
    <dvt:projectGantt id="mygantt" startTime="2010-01-01"
    endTime="2011-12-31" var="task"
    value="#{tacheBean.model}" rendered="true"
    dataChangeListener="#{tacheBean.handleDataChanged}"
    actionListener="#{tacheBean.handleAction}"
    showCurrentDate="true" showMenuBar="true"
    labelPlacement="inside"
    binding="#{tacheBean.gantt}"
    taskbarFormatManager="#{tacheBean.taskbarFormatManager}"
    backgroundColor="#F5F5F5"
    nonWorkingDaysColor="#FFE4B5"
    nonWorkingDaysOfWeek="#{tacheBean.nonWorkingDays}"
    taskSelectionListener="#{tacheBean.handleTaskSelected}"
    doubleClickListener="#{tacheBean.handleDoubleClick}">
    <f:facet name="toolbar">
    <af:toolbar id="toolbar">
    <af:group>
    <af:commandToolbarButton partialSubmit="false"
    icon="/images/new_ena.png"
    id="bt_creer"
    actionListener="#{tacheBean.nouveau}"
    shortDesc="Créer une Tâche"
    disabledIcon="/images/new_ena_002.png">
    <af:showPopupBehavior popupId="popupDialog"/>
    </af:commandToolbarButton>
    <af:panelGroupLayout layout="default" id="pgl1"
    theme="dark">
    <af:popup id="popupDialog">
    <h:inputHidden value="#{tacheBean.init}"/>
    <h:inputHidden value="#{typeBean.init}"/>
    <af:panelWindow modal="true" title="Ajout Tâche"
    id="panelWindow1"
    inlineStyle="height:300px; width:400px;">
    <af:panelGroupLayout id="pgl2">
    <center>
    <af:panelBox text="Ajout" id="pb1"
    titleHalign="left"
    inlineStyle="height:300px; width:400px;"
    background="medium"
    showDisclosure="false"
    showHeader="always"
    icon="/images/new_ena.png">
    <table id="t1" width="525" border="0"
    cellpadding="1" height="233">
    <tr>
    <td align="left">
    <af:outputLabel value="Nom :" id="ol8"
    visible="true"
    showRequired="true"/>
    </td>
    <td align="left" width="80">
    <af:inputText id="it1" rows="1"
    value="#{tacheBean.task.taskName}"
    requiredMessageDetail="Champ Obligatoire"
    shortDesc="Le Nom de la tâche"
    autoSubmit="true"
    autoTab="true"/>
    </td>
    </tr>
    <tr>
    <td align="left" width="80">
    <af:outputLabel value="Label :" id="ol6"
    visible="true"
    showRequired="true"/>
    </td>
    <td align="left" width="80">
    <af:inputText id="it2"
    value="#{tacheBean.task.label}"/>
    </td>
    </tr>
    <tr>
    <td align="left" width="80">
    <af:outputLabel value="Id Parent :"
    id="ol5" visible="true"
    showRequired="true"/>
    </td>
    <td align="left" width="80">
    <af:selectOneChoice id="soc1"
    inlineStyle="width:80px"
    valueChangeListener="#{tacheBean.changeAttributes}">
    <f:selectItems id="si1"
    value="#{tacheBean.selectItems}"/>
    </af:selectOneChoice>
    </td>
    </tr>
    <tr>
    <td align="left" width="80">
    <af:outputLabel value="Rien :" id="rien"
    visible="true"
    showRequired="true"/>
    </td>
    <td align="left" width="80">
    <af:inputText id="rien2"
    partialTriggers="soc2 si2"/>
    </td>
    </tr>
    <tr>
    <td align="left" width="80">
    <af:outputLabel value="Type :" id="ol4"
    visible="true"
    showRequired="true"/>
    </td>
    <td align="left" width="80">
    <af:selectOneChoice id="soc2"
    valueChangeListener="#{typeBean.changeAttributes}"
    autoSubmit="true"
    rendered="true">
    <f:selectItems id="si2"
    value="#{typeBean.selectItems}"/>
    </af:selectOneChoice>
    </td>
    </tr>
    <tr>
    <td align="left" width="80">
    <af:outputLabel value="Date Début :"
    id="ol3" visible="true"
    showRequired="true"/>
    </td>
    <td align="left" width="80">
    <af:inputDate id="id1"/>
    </td>
    </tr>
    <tr>
    <td align="left" width="80">
    <af:outputLabel value="Date Fin :"
    id="ol2" visible="true"
    showRequired="true"/>
    </td>
    <td align="left" width="80">
    <af:inputDate id="id2"/>
    </td>
    </tr>
    <tr>
    <td align="left" width="80">
    <af:outputLabel value="Durée :" id="ol1"
    visible="true"
    showRequired="true"/>
    </td>
    <td align="left" width="80">
    <af:inputText id="it8" rows="1"
    requiredMessageDetail="Champ Obligatoire"
    shortDesc="Le Nom de la tâche"
    autoSubmit="true"
    autoTab="true"/>
    </td>
    </tr>
    <tr>
    <td> </td>
    <td align="center" width="80">
    <h:panelGrid columns="2">
    <af:commandButton inlineStyle="width:80px"
    id="insertion"
    text="Ajouter"
    actionListener="#{tacheBean.ajoutTache}"
    immediate="true"
    visible="true"></af:commandButton>
    <af:commandButton inlineStyle="width:80px"
    id="annuler"
    text="Annuler"
    immediate="true"
    visible="true"></af:commandButton>
    </h:panelGrid>
    </td>
    </tr>
    </table>
    </af:panelBox>
    </center>
    </af:panelGroupLayout>
    </af:panelWindow>
    </af:popup>
    </af:panelGroupLayout>
    <af:commandToolbarButton partialSubmit="false"
    shortDesc="Mettre à jour la Tâche"
    disabledIcon="/images/edit_dis.png"
    icon="/images/edit16.png"></af:commandToolbarButton>
    <af:commandToolbarButton partialSubmit="false"
    shortDesc="Supprimer une Tâche"
    icon="/images/delete16.png"
    disabledIcon="/images/delete_dis.png"/>
    <af:separator id="sep1"/>
    <af:commandToolbarButton partialSubmit="false"
    shortDesc="Impression"
    icon="/images/print_ena.png"
    disabledIcon="/images/print_ena.png"/>
    <af:separator id="sep2"/>
    <af:commandToolbarButton partialSubmit="false"
    shortDesc="Couper"
    icon="/images/cut_ena.png"
    disabledIcon="/images/cut_dis.png"/>
    <af:commandToolbarButton partialSubmit="false"
    shortDesc="Copier"
    icon="/images/copy_ena.png"
    disabledIcon="/images/copy_dis.png"/>
    <af:commandToolbarButton partialSubmit="false"
    shortDesc="Coller"
    icon="/images/paste_dis.png"
    disabledIcon="/images/paste_dis.png"/>
    </af:group>
    </af:toolbar>
    </f:facet>
    <f:facet name="menuBar">
    <af:menuBar>
    <af:menu text="Custom Menu">
    <af:commandMenuItem partialSubmit="false" text="Item 1"/>
    <af:commandMenuItem partialSubmit="false" text="Item 2"/>
    <af:commandMenuItem partialSubmit="false" text="Item 3"/>
    </af:menu>
    </af:menuBar>
    </f:facet>
    <f:facet name="major">
    <dvt:timeAxis scale="months" id="monthx"/>
    </f:facet>
    <f:facet name="minor">
    <dvt:timeAxis scale="weeks" id="weeks"/>
    </f:facet>
    <f:facet name="nodeStamp">
    <af:column headerText="Id Tâche" id="c2">
    <af:outputText value="#{task.taskId}" id="taskId"/>
    </af:column>
    </f:facet>
    <af:column headerText="Nom Tâche" id="nom">
    <af:outputText value="#{task.taskName}"/>
    </af:column>
    <af:column headerText="Date Debut">
    <af:outputText value="#{task.startTime}" id="debut"/>
    </af:column>
    <af:column headerText="Date Fin">
    <af:outputText value="#{task.endTime}" id="end"/>
    </af:column>
    <dvt:ganttLegend keys="#{tacheBean.legendKeys}"
    labels="#{tacheBean.legendLabels}"/>
    </dvt:projectGantt>
    </af:panelGroupLayout>
    </f:facet>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

    hi,
    previously i asked that question about how can i get date with time fallowed by am/pm in table fields for that your post is useful.
    now have some of doubt about same thing, as we achieved like in table (date with time by am/pm) i need to get in query panel because in search criteria i not bale to search time filtering I'm able to filter with date only
    its not allowing to change to search in design time( we know adf query wont allow design time modification as my knowledge) please suggest how can i change or any other way to create search instead of creating declarative
    search modification.
    and one more question i have how can i count number of rows displayed in table which displayed in search table if we want display no.of row displayed in table.
    Thanks
    Shankar

  • Problem with ADF BC 11G and datasource : javax.naming.NameNotFoundException

    Hi,
    My application works with ADF BC 10G but does not work with ADF BC 11g. In both cases I use the same data source.
    My application uses only the BC4J from ADF.
    The setting of the datasource in my EAR is only in the web.xml and weblogic.xml, as in 10g version.
    What have I forgotten?
    Thanks.
    ## Detail 0 ##
    javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name: jdbc/datasource
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
    The setting is :
    web.xml
         <resource-ref>
              <description>JDBC connection</description>
              <res-ref-name>jdbc/datasource</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref>
    weblogic.xml
    <weblogic-web-app>
         <description>Web Application</description>
         <weblogic-version></weblogic-version>
         <reference-descriptor>
              <resource-description>
                   <res-ref-name>jdbc/datasource</res-ref-name>
                   <jndi-name>jdbc/datasource</jndi-name>
              </resource-description>
         </reference-descriptor>
    </weblogic-web-app>
    this code finds the datasource :
    InitialContext initialContextForDatasource = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) initialContextForDatasource.lookup("java:comp/env/jdbc/datasource");
    There is no error in the logs about data source
    Edited by: jdev user on Nov 24, 2010 11:16 AM
    Edited by: jdev user on Nov 25, 2010 10:59 AM

    A change in the problem :
    This code finds the datasource :
    InitialContext initialContextForDatasource = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) initialContextForDatasource.lookup("java:comp/env/jdbc/datasource");
    There is no error in the log about data source :
    <BEA-001124> <Created Connection Pool named DS .>
    <BEA-001174> <Creating Data Source named DS , JNDI Name = jdbc/datasource.>
    <BEA-001512> <Data Source DS has been successfully created.>
    but the applicationModule don't find the data source :
    ## Detail 0 ##
    javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name: jdbc/datasource
         at oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1404)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
         at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:329)
    Edited by: jdev user on Nov 25, 2010 1:40 PM

Maybe you are looking for