ADF Mobile: impossible to import classes

Hello

I use JDeveloper 11.1.2.4.0

I am currently unable to import the classes created in happy (controller) application in a class from the happy view (controller).

Why is this happening?

Thank you

Daniel

Hi, Daniel.

This is because ApplicationController is not in the classpath for ViewController.

To change this, open the properties of the project for ViewController...

.. then create a dependence on the build output ApplicationController, as shown below.



Best regards


Frédéric Desbiens

Senior Product Manager

Mobility and development tools

Twitter: @BlueberryCoder

blog: http://blogs.oracle.com/blueberry

Tags: Java

Similar Questions

  • ADF Mobile Client: Error when trying to import javax.microedition. *.

    Hello

    JDev throws errors at compile time when I try to deploy a sample Client Mobile ADF application.
    These errors are related to the import of javax.microedition.io. *.

    Error (11,29): javax.microedition.io package does not exist
    Error (12,29): javax.microedition.io package does not exist
    Error (180,9): could not find class HttpConnection
    Error (191,27): cannot find class HttpConnection
    Error (191,42): cannot find variable connector
    Error (250,49): inconvertible types
    Error (303,40): cannot find variable HttpConnection

    Guidance on the way in which these errors could be solved?

    Is there a wireless JDev extension to be installed to fix these errors related to J2ME?

    For JDev 10 g, I could find such an extension called JWE here: http://www.oracle.com/technology/products/iaswe/archive/developer/index.html
    I couldn't find any similar extension for JDeveloper 11.1.3.

    Kind regards
    Prasad.

    Hi, I just want to assure you - have you installed the ADF MObile Client extension yet? Visit JDev-Help-Check for updates official Oracle Extensions and updates and find the Extension of Oracle ADF MObile Client in the list. Check it out, download it and then restart JDev. It seems that the extension is not installed, is not able to load J2ME libraries.

    If you downloaded the extension already, please go to properties-libraries and classpath of the project and then see if the sample application makes reference to third party libraries, for example something RIM. If so, please check the path to the library.

    Once you have installed the extension, you can also access the customer Mobile ADF Developer's guide - it contains all the documentation around what you need to install first. Please take a look and see what you install - at the very least, you need to install BlackBerry JDE if you want to deploy for BlackBerry and Windows Mobile Emulator, if you want to test the application on Windows Mobile. Finally, if you need to synchronize the data, then you must also install Oracle Database Server Lite for MObile.

    Thank you

    Joe Huang

  • ADF Mobile: Could not find property inputvalue in class Java.Math.BigDecimal

    I tried to add an element of input text to display in the list like below and received an error message when you navigate away from the text entry field.

    "Can't find property inputvalue in class Java.Math.BigDecimal.

    Can someone show me some pointers on what's wrong with the code below.

    JDEV Version: 11.1.2.4

     <amx:listView var="row" value="#{bindings.Empdtls.collectionModel}"
                            fetchSize="#{bindings.Empdtls.rangeSize}" styleClass="adfmf-listView-insetList"
                            id="lv1" editMode="true">
                <amx:listItem id="li1">
                  <amx:tableLayout width="100%" id="tl1">
                    <amx:rowLayout id="rl1">
                      <amx:cellFormat width="10px" id="cf3"/>
                      <amx:cellFormat width="60%" height="43px" id="cf2">
                        <amx:outputText value="#{row.ClassCode}" id="ot3"/>
                      </amx:cellFormat>
                      <amx:cellFormat width="10px" id="cf4"/>
                      <amx:cellFormat width="40%" halign="end" id="cf1">
                        <amx:inputText value="#{row.bindings.Salary.inputValue}" simple="true" id="it41"/>
                      </amx:cellFormat>
                    </amx:rowLayout>
                  </amx:tableLayout>
                </amx:listItem>
              </amx:listView>
    

    Hello

    #{row.bindings.Salary.inputValue) is not an affair in ADF Mobile Access.} Use #{rank. Salary} instead.

    Frank

  • Impossible to write a topic in the forum of the ADF Mobile Preview

    Hello

    I am unable to make a new thread in the ADF Mobile overview.

    He invites me after the message "" error: you do not have permission to view the requested forum or category. "."

    What should be the reason?
    Kind regards
    Ajay Sharma

    Because this forum was originally for ADF Mobile Preview, it now seems to have been closed.
    The "Overview" aspect is what you should note on the topics of the forum here.
    (Apparently, the software evolves beyond 'preview' stage).

    The forum seems to have been closed on 19 October 2012.

    There is a post announcing at the top of this forum...
    + 'Where to post ADF Mobile specific issues now?' +
    https://forums.Oracle.com/forums/Ann.jspa?annID=1872

    This announcement States:
    "If please take advantage of the ADF/JDeveloper Forum (https://forums.oracle.com/forums/forum.jspa?forumID=83) and include ADF Mobile in the title."

    Then...
    Just use the normal forum and do not forget to register 'ADF Mobile' in the title of your ad.

  • ADF Mobile: Can't update thread timer outputText...

    Hello

    I'm rather new on ADF Mobile and I write an application where I need a timer to update the screen at different intervals. But for some reason any the outputText is not being updated on the wire from the timer. The following code reflects the code in my application that does not work:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < amx:view xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "xmlns:amx =" " http://xmlns.Oracle.com/ADF/MF/AMX "" "

    ' xmlns:dvtm = ' http://xmlns.Oracle.com/ADF/MF/AMX/DVT "> "

    < amx:panelPage id = "pp1" >

    < amx:facet name = "header" >

    < amx:outputText value = "Header" id = "ot1" / >

    < / amx:facet >

    < amx:facet = "primary" name >

    < amx:commandButton id = "cb1" / >

    < / amx:facet >

    < amx:facet = "secondary" name >

    < amx:commandButton id = "cb2" / >

    < / amx:facet >

    < amx:outputText value = "#{bindings.name.inputValue}" id = "ot3" / > "

    < amx:commandButton text = "commandButton1" id = "cb3" actionListener = "#{MrBean.buttonPushed}" / >

    < / amx:panelPage >

    < / amx:view >

    mobile plan;

    import java.util.Timer.

    java.util.TimerTask to import;

    Import javax.el.ValueExpression;

    Import oracle.adfmf.amx.event.ActionEvent;

    Import oracle.adfmf.framework.api.AdfmfJavaUtilities;

    public class {Antoine

    Timer;

    public MrBean() {}

    {} public void buttonPushed (ActionEvent actionEvent)

    ValueExpression svarErRigtigt = AdfmfJavaUtilities.getValueExpression ("#{bindings.name.inputValue}", String.class);

    svarErRigtigt.setValue (AdfmfJavaUtilities.getAdfELContext (), "push button");

    Timer = new Timer();

    Timer.Schedule (new RemindTask(), 3 * 1000);

    }

    class RemindTask extends TimerTask {}

    public void run() {}

    ValueExpression svarErRigtigt = AdfmfJavaUtilities.getValueExpression ("#{bindings.name.inputValue}", String.class);

    svarErRigtigt.setValue (AdfmfJavaUtilities.getAdfELContext (), "New thing happening");

    Timer.Cancel ();

    }

    }

    }

    So when I push the button and then "pushed" shows on the screen, but the "new thing happening" message does not display after 3 seconds as expected. Can someone explain why this is and how to fix the code so that it works (I tested the run method is called after 3 seconds when trying to include a statement System.exit (0)). Thank you

    AdfmfJavaUtilities.flushDataChangeEvent () is mentioned here:

    http://docs.Oracle.com/CD/E37975_01/doc.111240/e24475/amxbinding.htm#ADFMF1615

    Provider and property change listeners are discussed in Chapter 8 of the guide:

    http://docs.Oracle.com/CD/E37975_01/doc.111240/e24475/amxbinding.htm#CHDHFGAF

    He thinks the reason why overview AMX works currently in Linux is that it uses JavaFX under the hood and there are problems with the implementation on this platform. I checked an internal construction of the next version of the extension, which runs on top of JDeveloper 12 c. The AMX preview worked properly on my Oracle Linux 6.4 VM. Of course, it is not an official statement by Oracle and our plans can change at any time.

    Best regards

    Frédéric.

  • ADF Mobile | using secure web services


    Hi all

    I'm pretty new to ADF Mobile, I use JDev 11.1.2.4.

    In my Mobile application I want to use the secure web service.

    Here's what I do:

    1. creation of a data control based on the WSDL binding.

    2. get the web service methods in the data control.

    3. during the race, I'm getting that error "oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client from server SOAP fault: Missing < wsse: Security > in the SOAP header.

    When trying to run the WSDL binding in SOAP UI, I need set request username and passwordproperties, then only I will be able to invoke this web service.

    Here, my question is where can I set these properties for the data control to the web service ?

    Please suggest.

    Thank you

    Vieu

    Hi Shay,

    Thank you very much for the reply, I'm able to resolve the problem with the approach mentioned user guide.

    I forgot to set it up for the first time: ADF Mobile allows you to specify a custom provider class in your DataControls.dcx file. This custom class extends oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider . You can use it to specify an implementation of the SoapHeader[] getAdditionalSoapHeaders() method

    Example 9-1 shows how to extend the SOAPProvider and create a custom header has shown in example 9-2

    package provider.ebs.soap;

    Import oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider;

    Import oracle.adfinternal.model.adapter.webservice.provider.soap.SoapHeader;

    SerializableAttribute public class EBSSOAPProvider extends SOAPProvider {}

    SoapHeader public getAdditionalSoapHeaders() {}]

    SoapHeader header [] = SoapHeader News [2];

    SoapHeader token = null;

    SoapHeader user = null;

    SoapHeader pass = null;

    header [0] = new SoapHeader ("http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/",

    "SOAHeader");

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "Responsibility."

    'SYSTEM_ADMINISTRATOR'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "RespApplication,"

    'SYSADMIN'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "SecurityGroup."

    'STANDARD'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "NLSLanguage,"

    'AMERICAN'));

    header [0] .addChild (new SoapHeader)

    "http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

    "Org_Id."

    "0"));

    header [1] = (new) SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    'Security');

    Token = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "UsernameToken");

    User = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "Username."

    "sysadmin");

    pass = new (SoapHeader

    "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

    "Password."

    "sysadmin");

    Header [1]. AddChild (Token);

    token.addChild (user);

    token.addChild (pass);

    Returns the header;

    }

    }

    Kind regards

    Vieira

  • Deployment on ADF Mobile (Android emulator) problem

    Nice day

    I use Jdeveloper 11.1.2.3.0

    I have a problem when deploying my app on the Android emulator. Here is the log:

    [13: 54:56] update Android profile dependencies with FAR profiles created from application projects...

    [13: 54:56]-deployment began.  ----

    [13: 54:56] the target platform's (Android).

    [13: 54:56] early deployment of ADF Mobile application 'FirstMobileApp' in Android using «TestProfile» profile

    [13: 54:56] check the State of the Android Debug Bridge server...

    [13: 54:56] Server Android Debug Bridge already running.

    [13:55] check a single Android emulator is online and connected to the ADB server...

    [13:55] early deployment of ADF Mobile application 'FirstMobileApp' in Android using «TestProfile» profile

    [13:55] analysis of the dependence running...

    [13:55] building...

    [13:55] deployment of 3 profiles...

    [13: 55:01] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar

    [13: 55:01] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar

    [13: 55:01] start preparing the package...

    [13: 55:07] check the Application Controller project exists...

    [13: 55:07] checking dependencies of applications...

    [13: 55:07] Validation of the application XML files...

    [13: 55:07] Validation of the XML files in the ApplicationController project...

    [13: 55:07] Validation of the XML files in the ViewController project...

    [13: 55:08] copy of FARs in the application of the Mobile ADF framework...

    [13: 55:08] far from the source of the copy: ViewController...

    [13: 55:08] copy by far the source: ApplicationController...

    [13: 55:08] copy of resource files java framework...

    [13: 55:24] copy of the common javascript files...

    [13: 55:38] deployment of counting files...

    [13: 55:38] copy of the application image files...

    [13: 55:38] copy of the ADF Mobile configuration files...

    [13: 55:38] .adf files...

    [13: 55:38] copy of file security related to the application of the Mobile ADF framework...

    [13: 55:38] Creation of preferences Android XML files...

    [13: 55:39] creating AndroidManifest.xml file...

    [13: 55:39] Creation of unsigned Android application file...

    [13: 55:50] compile the file of the Android resource identifier...

    [13: 55:52] create file classes.dex Android since the class files...

    [13: 55:54] run command line: ['C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat»,--dex,--keep-classes,--output="C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes.dex', C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\AND_ksoap.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\Container.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\IDMMobileSDK.jar] C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\logging_dalvik_release.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\phonegap.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\vmchannel_dalvik_release.jar]

    [13: 55:54] "" C:\Windows\system32\java.exe"" is not recognized as an internal or external, order

    [13: 55:54] operable program or batch file.

    [13: 55:54] command-line execution failed (return code: 1).

    [13: 55:54] run command line: 'C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat»--dex--keep-classes--output="C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes.dex' C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\AND_ksoap.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\Container.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\IDMMobileSDK.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\logging_dalvik_release.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\ framework\build\ jar\phonegap.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\vmchannel_dalvik_release.jar

    [13: 55:54] undeployment.

    [13: 55:54] - incomplete deployment.

    [13: 55:54] deployment failed due to one or more errors returned by "C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat".  What follows is a summary of the returned error:

    Command-line execution failed (return code: 1).

    You have Java 1.6 installed SDK? If Yes, can you specify the environment variable JAVA_HOME for this?

    See you soon

    AJ

  • ADF mobile application deployment: the Android Dalvik (.dex) file does not exist. (oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)

    Nice day

    I use Jdeveloper 11.1.2.3.0

    I'm getting following error when deploying my first app on the android emulator, please help me solve this problem. The exception log is the:

    [10: 50:12] update Android profile dependencies with FAR profiles created from application projects...

    [10: 50:12]-deployment began.  ----

    [10: 50:12] the target platform's (Android).

    [10: 50:12] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive2."

    [10: 50:12] check the State of the Android Debug Bridge server...

    [10: 50:17] Server Android Debug Bridge started.

    [10: 50:17] check a single Android emulator is online and connected to the ADB server...

    [10: 50:17] early deployment of ADF Mobile 'FirstMobileApp' to Android application using the profile "ANDROID_MOBILE_NATIVE_archive2."

    [10: 50:17] analysis of the dependence running...

    [10: 50:17] building...

    [10: 50:17] deployment of 3 profiles...

    [10: 50:17] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar

    [10: 50:18] wrote the Archives Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar

    [10: 50:18] start preparing the package...

    [10: 50:18] check the Application Controller project exists...

    [10: 50:18] checking dependencies of applications...

    [10: 50:18] Validation of the application XML files...

    [10: 50:18] Validation of the XML files in the ApplicationController project...

    [10: 50:18] Validation of the XML files in the ViewController project...

    [10: 50:18] copy of FARs in the application of the Mobile ADF framework...

    [10: 50:18] far from the source of the copy: ViewController...

    [10: 50:18] copy by far the source: ApplicationController...

    [10: 50:18] copy of model Android...

    [10: 50:48] copy of the framework resource files...

    [10: 50:48] copy of resource files java framework...

    [10: 50:57] copy of the common javascript files...

    [10: 51:02] deployment of counting files...

    [10: 51:02] copy of the application image files...

    [10: 51:02] copy of the ADF Mobile configuration files...

    [10: 51:02] .adf files...

    [10: 51:03] copy of file security related to the application of the Mobile ADF framework...

    [10: 51:03] Creation of preferences Android XML files...

    [10: 51:03] creating AndroidManifest.xml file...

    [10: 51:03] Creation of unsigned Android application file...

    [10: 51:31] compile the file of the Android resource identifier...

    [10: 51:33] create file classes.dex Android since the class files...

    [10: 51:33] update of Android application file not signed with content file and .adf DEX...

    [10: 51:33] Server Android Debug bridge closure...

    [10: 51:33] undeployment.

    [10: 51:33] - incomplete deployment.

    [10: 51:33] the Android Dalvik (.dex) file does not exist. (oracle.adfmf.framework.dt.deploy.android.deployers.ApkDeployer)

    Hello

    I found the answer to this error, it's like actually had reinstalled Studio Android, whereby a new directory has been created with the software, called SDK as sdk1. And in my tools-> preferences, path of the plate-shape and tools platform was given as the sdk (old directory). Now, I've updated the path in the new directory as sdk1 and it works fine.

    Best regards,

    Julien

  • Frustration on impossible to import files of jasper in my managed Bean?

    Mr President.

    I manage not to import from jasper and binding file in my bean managed in my application.

    My application look like this

    Jasper folder app folder.gif

    The folder contains files

    Jasper lib.gif

    The Application looks like

    jasper report app.gif

    The bean code is as

    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.sql.Connection;
    import java.util.HashMap;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import javax.sql.DataSource;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
    import net.sf.jasperreports.engine.util.JRLoader;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.binding.BindingContainer;
    
    
    
    
    public class JasperBean
    {
      public JasperBean()
      {
      }
    
    
      public String runReportAction()
      {
        DCIteratorBinding empIter = (DCIteratorBinding) getBindings().get("EmployeesView1Iterator");
        String empId = empIter.getCurrentRow().getAttribute("EmployeeId").toString();
        Map m = new HashMap();
        m.put("employeeId", empId);
        try
        {
          runReport("empReport.jasper", m);
        }
        catch (Exception e)
        {
        }
        return null;
      }
    
    
      public BindingContainer getBindings()
      {
        return BindingContext.getCurrent().getCurrentBindingsEntry();
      }
    
      public Connection getDataSourceConnection(String dataSourceName)
          throws Exception
        {
          Context ctx = new InitialContext();
          DataSource ds = (DataSource)ctx.lookup(dataSourceName);
          return ds.getConnection();
        }
    
      private Connection getConnection() throws Exception
      {
        return getDataSourceConnection("hrDS");
      }
    
      public  ServletContext getContext()
        {
          return (ServletContext)getFacesContext().getExternalContext().getContext();
        }
      public  HttpServletResponse getResponse()
        {
          return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
        }
      public static FacesContext getFacesContext()
        {
          return FacesContext.getCurrentInstance();
        }
      public void runReport(String repPath, java.util.Map param) throws Exception
      {
        Connection conn = null;
        try
        {
          HttpServletResponse response = getResponse();
          ServletOutputStream out = response.getOutputStream();
          response.setHeader("Cache-Control", "max-age=0");
          response.setContentType("application/pdf");
          ServletContext context = getContext();
          InputStream fs = context.getResourceAsStream("/reports/" + repPath);
          JasperReport template = (JasperReport) JRLoader.loadObject(fs);
          template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
          conn = getConnection();
          JasperPrint print = JasperFillManager.fillReport(template, param, conn);
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          JasperExportManager.exportReportToPdfStream(print, baos);
          out.write(baos.toByteArray());
          out.flush();
          out.close();
          FacesContext.getCurrentInstance().responseComplete();
        }
        catch (Exception jex)
        {
          jex.printStackTrace();
        }
        finally
        {  
          close(conn);
        }
      }
    
      public void close(Connection con)
       {
         if (con != null)
         {
           try
           {
             con.close();
           }
           catch (Exception e)
           {
           }
         }
       }
    }
    
    
    

    I am unable to get the import to

      DCIteratorBinding empIter = (DCIteratorBinding) getBindings().get("EmployeesView1Iterator");
          JasperReport template = (JasperReport) JRLoader.loadObject(fs);
          template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
    JasperPrint print = JasperFillManager.fillReport(template, param, conn);
    JasperExportManager.exportReportToPdfStream(print, baos);
    
    
    

    Mr President, I'll be very grateful for any guidance on this topic.

    Concerning

    User, tell us your version of Jdev, please!

    It is insufficient to simply add the jar in a folder in the workspace. You must create a new library in your project or in the world at Jdev do you use the library in all projects.

    Open your project and select the node of the library and classpath. Here, you click on the new button, give the library a name like jasper and that each of the jars to your classpath registration record. If you have a jar source and doc, you can add them too. Select the check box by default deploy. Save the new library and add it to the project.

    Now recompile the project and it should work. If you still see red underlines in your editor, close Jdev, delete the class of each project file in the workspace and start Jdev.

    Timo

  • ADF Mobile: Create contact

    I am trying to add the functionality of contact to create my mobile app and followed the instructions here - http://www.youtube.com/watch?v=kpkJDeRH2ys

    I created a bean managed and added the following code:

    {} public void newPhoneContact (ActionEvent actionEvent)

    DeviceManager device = DeviceManagerFactory.getDeviceManager ();

    Contact = new Contact();

    ContactName, contactName = new ContactName();

    contactName.setFamilyName ("Doe");

    contactName.setGivenName("John");

    contact.setName (contactName);

    ContactField phoneNo = new ContactField();

    phoneNo.setType ("mobile");

    phoneNo.setValue("815-000-0000");

    ContactField [] phoneNos = new ContactField [] {phoneNo};

    contact.setPhoneNumbers (phoneNos);

    Contact newContact = device.createContact (contact);

    }

    When I run the application, nothing happens, and there is no error message in the logs. Page AMX code is:

    "< amx:commandButton id ="cb6' icon="/images/add_contact.png '.

    actionListener="#{viewScope.newContact.newPhoneContact}"/ >

    I don't know if I'm missing something here.

    Any help is appreciated.

    Thank you

    I checked this with success in JDev ADF Mobile 11.1.2.4.39.64.64 against XCode 5.0.2 & iOS Simulator 7.0 11.1.2.4.0 and separately 4.2.2 Android API level 17.  It works on both platforms.

    Please indicate which versions of platforms and software that you use, you deploy too.  More information the better.  It is also important on iOS when first invited to allow the application to access the contacts on the unit you click Yes.

    CM.

  • ADF Mobile | call web service from Java. non-reflecting values in the AMX page

    Hi all

    I am using JDEv11124 with ADF Mobile extensions39.62.64.

    My use case is as follows.

    1. my application has 2 Pages a. Login home b.

    2. in the user login Page between user name and click on the "submit" button.

    3. on the homepage I displayed the company they joined.

    4. in the "submit" button is clicked, action defined in the support bean method will be called.

    5. by supporting the action bean method, I'll call the method of the Web Service to validate the entered user name, if the entered user name is valid, that I have to post its company name in the home page.

    6. I am moving back from the web service of datacontrol in Home.amx page

    7. calling web services from Java as follows:

    GenericType = result

    (GenericType) AdfmfJavaUtilities.invokeDataControlMethod ("Comp", null, "getCompany",

    pNames, params,

    PTypes);

    System.out.println ("after the call to the service" + result.getAttributeCount ());

    8. in the Java class, I get the response correctly (as the company designating the username entered as 'SOCIETY'), where when I navigate to the home page, I don't see any results for the method return (name of the company that dropped like OutputText in Home.amx)

    Did I miss something for this. or something more that I need to do to make it work?

    Please suggest.

    Thank you

    Vieira

    Hi all

    I was able to achieve this by executing my method in bean support.

    This code is as follows:

    AdfELContext adfELContext = AdfmfJavaUtilities.getAdfELContext ();

    MethodExpression me =.

    () AdfmfJavaUtilities.getMethodExpression

    "#{bindings.retreiveLocationInformation.execute}".

    (, Object.class, Class [] {}) new;

    me. Invoke (adfELContext, new Object [] {});

    Thanks to Luc Bors WebLog Luc Bors Weblog: ADF Mobile: implementation of "Pull to refresh" model

    Kind regards

    Vieira

  • ADF Mobile EL substring

    Hello!

    I shows this method (https://blogs.oracle.com/adf/entry/string_manipulation_functions_inside_el) that you import jstl functions and use the fn:substring, fn:length, etc.

    but I am applying it in an AMX:PAGE, but it does not work there at - it a way to apply the substring, indexOf to EL in adf mobile?

    line 48 shows: I tried #{fn:substring(row.url,0,5)} I need and I get 'number invalid EL incorrect Expression of the operands'}

    <?xml version="1.0" encoding="UTF-8" ?>
    <amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
              xmlns:fn="http://java.sun.com/jsp/jstl/functions"  
              xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
              xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
        <amx:panelPage id="pp1">
            <amx:facet name="header">
                <amx:outputText value="Bienvenido #{pageFlowScope.usuario.nombres}" id="ot1"/>
            </amx:facet>
            <amx:facet name="primary">
                <amx:commandButton id="cb1" actionListener="#{viewScope.bLogin.salirAplicacion}"
                                   icon="/resources/img/out.png" iconPosition="trailing"/>
            </amx:facet>
            <amx:facet name="secondary">
                <amx:commandButton id="cb2" action="GO_LOGIN" icon="/resources/img/lock.png" iconPosition="trailing"/>
            </amx:facet>
            <amx:outputText value="#{deviceScope.device.name}" id="ot4"/>
            <amx:outputText value="#{deviceScope.device.platform}" id="ot5"/>
            <amx:outputText value="#{deviceScope.device.version}" id="ot6"/>
            <amx:outputText value="#{deviceScope.device.os}" id="ot7"/>
            <amx:outputText value="#{deviceScope.device.model}" id="ot8"/>
            <amx:outputText value="#{deviceScope.hardware.networkStatus}" id="ot9"/>
            <amx:outputText value="#{deviceScope.hardware.screen.width}" id="ot10"/>
            <amx:outputText value="#{deviceScope.hardware.screen.height}" id="ot11"/>
            <amx:outputText value="#{deviceScope.hardware.screen.availableWidth}" id="ot12"/>
            <amx:outputText value="#{deviceScope.hardware.screen.availableHeight}" id="ot13"/>
            <amx:tableLayout id="tl1" shortDesc="features-table" inlineStyle="width:100%;">
                <amx:rowLayout id="rl1">
                    <amx:cellFormat id="cf1" shortDesc="features-column" inlineStyle="width:100%;">
                        <amx:panelGroupLayout id="pgl1" layout="wrap">
                                <amx:iterator var="row" value="#{bindings.Return.collectionModel}" id="i1">
                                <amx:panelGroupLayout id="plam2" inlineStyle="width:33%;display:inline-block;"
                                                      halign="center" valign="middle">
                                    <amx:tableLayout id="tl2">
                                        <amx:rowLayout id="rl2">
                                            <amx:cellFormat id="cf2" halign="center" valign="middle">
                                                <amx:commandLink id="cl1" >
                                                    <amx:image id="i2" source="data:image/jpg;base64,#{pageFlowScope.usuario.img}"
                                                               inlineStyle="width:40px;height:40px"/>
                                                   <!-- <amx:setPropertyListener from="#{row.id}" 
                                                                             to="#{pageFlowScope.FeatureId}" type="action"/>-->
                                                </amx:commandLink>
                                            </amx:cellFormat>
                                        </amx:rowLayout>
                                        <amx:rowLayout id="rl3">
                                            <amx:cellFormat id="cf3" halign="center" valign="middle">
                                                <amx:commandLink id="cl2">
                                                    <amx:outputText value="#{fn:substring('hi how are you?',0,5)}" id="ot2"/>
                                                  <!--   <amx:setPropertyListener from="#{row.id}"
                                                                             to="#{pageFlowScope.FeatureId}" type="action"/>-->
                                                </amx:commandLink>
                                            </amx:cellFormat>
                                        </amx:rowLayout>
                                    </amx:tableLayout>
                                    <amx:spacer id="s2" height="25"/>
                                </amx:panelGroupLayout>
                            </amx:iterator>
                        </amx:panelGroupLayout>
                    </amx:cellFormat>
                </amx:rowLayout>
            </amx:tableLayout>
            
        </amx:panelPage>
    </amx:view>
    

    AMX pages aren't JSF you cannot use just other JSF/JSP features in them.

    A better approach would probably be to manipulating strings in a bean of support and have card field to this value of bean.

  • Strange ClassCastException ADF Mobile application

    Hello experts,

    I use JDev 11.1.2.4

    I have a custom provider class who is in charge of some elements by invoking the bean applicationScope method.

    I try to turn my right to selectItems object. I could list object essentially right, but suddenly face ClassCastException. But I could not find a solution on the internet.

    I know that these classes are exactly the same. (but increasingly I see on that package debugging time and range has no differences, as seen)

    Where is the problem? I read on the internet something about Chargers of different classes, but I couldn't reach first cause or solution.

    Please helpme

    brgds

    package com.accmee.mobile.supplier;

    import com.accmee.mobile.pojo.ServiceCategory;

    import com.acme.structure.util.datalist.SimpleListSupplier;

    import java.util.ArrayList;

    to import java.util.Collection;

    import java.util.List;

    Import javax.el.MethodExpression;

    Import oracle.adfmf.framework.api.AdfmfJavaUtilities;

    Import oracle.adfmf.javax.faces.model.SelectItem;

    SerializableAttribute public class ServiceCategorySupplier extends SimpleListSupplier

    {

    public ServiceCategorySupplier (boolean blankItemApplied)

    {

    Super (blankItemApplied);

    }

    public ServiceCategorySupplier()

    {

    Super();

    }

    Public Sub loadList()

    {

    Try

    {

    MethodExpression = me AdfmfJavaUtilities.getMethodExpression ("#{applicationScope.loginBean.loadCategories}", List.class, new class [] {}); / * This method of bean applicationScope loads via webservice consume via JavaAPI and works correctly returns the list with items * /.

    List categories = (List) me.invoke (AdfmfJavaUtilities.getAdfELContext (), new Object [] {});

    itemList.addAll (getConvertedToSelectItemList (categories, true)); Here password parameter in the method which is facing exceptional

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    }

    }

    public String getListName()

    {

    return of the 'categories ';

    }

    public static Collection getConvertedToSelectItemList (list, boolean blankItemApplied)

    {

    Collection convertedCollection = new ArrayList();

    SelectItem selectItem = null;

    If (blankItemApplied)

    {

    selectItem = new SelectItem();

    convertedCollection.add (selectItem);

    }

    for (int i = 0; i < list.size (); i ++)

    {

    ServiceCategory superEntity = (ServiceCategory) list.get (i); Here's the ClassCastException, this bird exception line

    selectItem = getConvertedToSelectItem (superEntity);

    convertedCollection.add (selectItem);

    }

    Return convertedCollection;

    }

    public static getConvertedToSelectItem (superEntity ServiceCategory) SelectItem

    {

    SelectItem selectItem = new SelectItem();

    selectItem.setLabel (superEntity.getName ());

    selectItem.setValue (superEntity);

    return selectItem;

    }

    }

    I had to change my approach. So, I changed returnType loadCategories method for GenericType instead of my custom class.

    Then it worked like that.

    SerializableAttribute public class ServiceCategorySupplier extends SimpleListSupplier

    {

    public ServiceCategorySupplier (boolean blankItemApplied)

    {

    Super (blankItemApplied);

    }

    public ServiceCategorySupplier()

    {

    Super();

    }

    Public Sub loadList()

    {

    Try

    {

    MethodExpression = me AdfmfJavaUtilities.getMethodExpression ("#{applicationScope.loginBean.loadCategories}", List.class, new class [] {});

    List categories = (List) me.invoke (AdfmfJavaUtilities.getAdfELContext (), new Object [] {});

    list.addAll (categories);

    loadItemList();

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    throw new AdfException (e.getMessage (), AdfException.ERROR);

    }

    }

    Public Sub loadItemList()

    {

    SelectItem selectItem = null;

    itemList = new SelectItem [list.size ()];

    ServiceCategory serviceCategory = null;

    for (int i = 0; i)<>

    {

    GenericType (GenericType) = list.get (i) serviceCategoryType;

    serviceCategory (ServiceCategory) = GenericTypeBeanSerializationHelper.fromGenericType (ServiceCategory.class, serviceCategoryType);

    selectItem = getConvertedToSelectItem (serviceCategory);

    itemList [i] = selectItem;

    }

    }

    public static getConvertedToSelectItem (superEntity ServiceCategory) SelectItem

    {

    SelectItem selectItem = new SelectItem();

    selectItem.setLabel (superEntity.getName ());

    selectItem.setValue (superEntity.getId ());

    return selectItem;

    }

    public String getListName()

    {

    return of the 'categories ';

    }

    }

  • ADF mobile user interface design

    Hello

    I am developing a small application using ADF mobile. The main screen is divided into two vertical and left pane shows other tables and right shows a graph.

    Can someone tell me please what layout (formlayout, pagelayout, tableLayout) to use to generate the amx above page.


    presentation of the sample:


    Header 1
    table chart
    Header 1 Header 2
    graph

    Hey shravan.

    I can try and start helping you out or at least give you some options.

    But first, what camera do you mainly be used? A tablet or mobile device? Now, it is important, depending on what device and what components allows you to build the page it can make the left and right different component.

    Separation of the front left and right, you could a component PanelSplitter, but be aware depending on the device you use, it will make differently. that is to say on a Tablet (iPad), it will show the pane on the left and right, but on a mobile phone (cell phone), it allows you to hide the left pane, but has a toggle button that will slide to the right and reveal the left pane. It comes to the expected behavior of the panelSplitter component.

    The panelGroupLayout component that of exactly it, shows the components on the page «»

    The components carefully aligned panelFormLayout similar, i.e. input text fields

    Hope that gives you a starting point

  • ADF Mobile Apple rejection (terminateWithStatus)

    Hi ADF Mobile community,

    We receive a rejection of Apple for an application that was written with Jdeveloper 11.1.2.4 (it is listed below). Can someone shed some light on how to find and fix the problem?

    Thank you

    -asa

    Apple
    2.5

    We found that your application uses non-public APIs one or more, which is not in accordance with the App Store Review Guidelines. The use of non-public API is not permitted, because it can lead to a poor user experience should change these API.

    We have found the following non-public API/s in your application:

    _terminateWithStatus:

    If you have defined methods in your source code with the same names as the above API, we suggest to change your method names so that they face is no longer Apple private API to avoid in your current application reported in future submissions.

    In addition, one or more of the above API may reside in a static library attached to your application. If you do not have access to the source of the library, you can search for the binary compiled using 'channels' or 'otool' command line tools. The tool 'strings' can produce a list methods that appeals to the library and the ' otool - ov "will result in Objective-C class structures and their methods defined. These techniques can help you to refine where the problematic code.

    We appreciate that you might have made precautions in your code to use the non-public APIs, however, there is no way of correctly or completely predict how an API may be changed and what effects these changes can have. For this reason, we do not allow the use of non-public API in applications from the App Store.

    Hi, Asa, even if we have solved this outside of this thread, I would formally respond to this topic to close the discussion.

    The version the most recent update of the ADF Mobile extension solved that problem.  There should be an update to the extension of the ADF Mobile in the center of update of JDeveloper.  To get the update, go to the JDeveloper - Help - Check For Updates menu item - official Oracle Extensions and updates, and you should see an extension of the ADF Mobile 11.1.2.4.39.64.44.  You will need to download the extension, restart JDev, and then go to the Build menu item - clean to clean the ancient artifacts of deployment.  You can re - deploy the application.  No changes in the application are necessary - change is in the runtime only, and you can resubmit the application to the AppStore.

    After you apply this hotfix, there are several known approvals of applications for ADF based Mobile that has verified the fix.

    Thank you

    Joe Huang

Maybe you are looking for

  • My Apple ID has been hacked and I'm documents as well as telephone booths

    Hello my Apple ID has been hacked my contacts of the Iran and activation of the locking mode and turn on find my iPhone, I lost my looks like what should I do to prove my identity as owner's phone and I stopped the documents as well as phone boxes he

  • Satellite P500 - noise varies and is too quiet

    Hello again, I had some problems with speakers this time.Since there are Harmon/Kardon speakers installed in the computer, the sound itself is fine.However, it is not. Sound is too quiet, even if I listen to music on the max volume.As well, I noticed

  • My partion recovery disk may be damaged.

    HP G61 laptop Product no.: VY441EA #ABU Dear Sir/Madam As you can see above the discription of my laptop. My recovery disc, may be corrupt or not, what allows to back up my files.  It shows red. While the Local disc indicates green. Hopefully, you ca

  • How to migrate from Windows XP to Windows 7 non-destructively?

    How to migrate from Windows XP to Windows 7 to non-destructively?... meaning is there a way to do this without backup data (on the XP disk), the Windows 7 upgrade and then restore the XP backup data? Moreover, since the structures of folders (I am to

  • What is the difference between $9.99 and $19.99 CC Photoshop?

    Hey.I'm buying Photoshop but I don't know which one I should choose between the $9.99 or $19.99.Y at - it a big difference?Thanks in advance