Unable to apply css to ADF Mobile application

Hello all,
I have developed an ADF Mobile application for Android platform using JDeveloper 11.1.2.3.0. I have deployed it to the emulator and checked all its basic functionalities. But I would now like to apply some css to the application. I have also made the necessary changes required in the adfmf-config.xml file and the adfmf-skins.xml file.
The adfmf-skins.xml file looks like this:
*<?xml version="1.0" encoding="UTF-8" ?>*
*<adfmf-skins xmlns="http://xmlns.oracle.com/adf/mf/skin">*
*<skin-addition>*
*<skin-id>mobileFusionFx</skin-id>*
*<style-sheet-name>css/my_css.css</style-sheet-name>*
*</skin-addition>*
*</adfmf-skins>*
The my_css.css file is also created properly in the resources folder of the project. The my_css.css file looks like this:
body
background-color: Yellow;
color: Yellow;
font-family: Arial, Helvetica, sans-serif;
h1
color: navy;
font-family: Arial, Helvetica, sans-serif;
font-size: x-large;
font-weight: bolder;
text-transform: capitalize;
h2
color: navy;
font-family: Arial, Helvetica, sans-serif;
font-size: large;
font-weight: bolder;
text-transform: capitalize;
h3
color: navy;
font-family: Arial, Helvetica, sans-serif;
font-size: large;
font-weight: lighter;
text-transform: capitalize;
*.userbody {*
background-color: Yellow;
color: Yellow;
font-family: Arial, Helvetica, sans-serif;
But I am unable to apply the css in my pages. I have used the keyword styleclass="userbody" as <amx:panelPage id="pp1" styleClass="userbody">, but its still not working.
Please help me to address this issue.
Thanks in advance.

Hi,
Check
http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/getting_started.htm
http://docs.oracle.com/cd/E35521_01/doc.111230/e24475.pdf

Similar Messages

  • Issues in ADF mobile application using Trinidad components

    I am facing the following issues when developing a mobile application using trinidad components :
    Jdev version : 11.1.1.6
    1) I dont see a date component using trinidad components? The dev guide http://docs.oracle.com/cd/E23943_01/web.1111/e10140/sup_comp.htm says that tr:inputDate is supported but when i try to drag a data field to jsf page i don't see an option for Trinidad date component. so i went ahead and created an af:inputDate in the page. But the date selection dialog doesnt open up.
    2) i tried using 'Rendered' for conditional rendering of a component but it does not work or refresh immediately, the same problem is solved in my adf application using visible property but looks like there is no 'Visible' property for Trinidad components. any work around?
    3) i wanted to have a 'create insert' call in my task flow before launching the page. Since Task flows are not supported in ADF mobile application, i have added 'ADF Faces' also into my project and created task flow and jsff page as i do for a adf web application the only diff being the usage of trinidad components in my jsff page. is this fine? Also can we mix trinidad components and adf components into the same page?
    4) I have a tr:inputText on a clob input text field which i am updating in ADF page using a clob converter class. Same thing i cannot do for trinidad text as it is resulting in null pointer exception. any solution to update clob fields into database which uses tr:inputText compents.
    Help to solve any one of the above issues (by quoting serial no) would be highly appreciated. Thanks.

    >
    4) I have a tr:inputText on a clob input text field which i am updating in ADF page using a clob converter class. Same thing i cannot do for trinidad text as it is resulting in null pointer exception. any solution to update clob fields into database which uses tr:inputText compents.
    wht is the stack trace.. when is it giving null pointer exception.. explain
    >
    Below is the code for an inputText component based on a CLOB Field.
    <tr:inputText value="#{bindings.ObsComments.inputValue}"
                        label="#{bindings.ObsComments.hints.label}"
                        required="#{bindings.ObsComments.hints.mandatory}"
                        columns="#{bindings.ObsComments.hints.displayWidth}"
                        maximumLength="#{bindings.ObsComments.hints.precision}"
                        id="it4" rows="4" binding="#{ObsMobileBean.obsComments}"
                        showRequired="#{bindings.WoNeeded.attributeValue eq 'Y'}"
                        partialTriggers="sbc1" converter="ClobConverter">
            <f:validator binding="#{bindings.ObsComments.validator}"/>
          </tr:inputText>When i try to render the page it self i face this error initially.
    >
    java.lang.NullPointerException
         at sfi.apps.sso.mobileUi.util.ClobConverter.getAsString(ClobConverter.java:41)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ValueRenderer.getConvertedString(ValueRenderer.java:63)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.EditableValueRenderer.getConvertedString(EditableValueRenderer.java:163)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer.renderContent(SimpleInputTextRenderer.java:364)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleInputTextRenderer.encodeAllAsElement(SimpleInputTextRenderer.java:121)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encodeAll(FormElementRenderer.java:109)
         at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:435)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.renderFieldCellContents(InputLabelAndMessageRenderer.java:146)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer._renderFieldCell(LabelAndMessageRenderer.java:492)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:359)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(InputLabelAndMessageRenderer.java:124)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:911)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:48)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1419)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1338)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:170)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:290)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:255)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:312)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:137)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelHeaderRenderer.encodeAll(PanelHeaderRenderer.java:133)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
         at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:278)
         at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:300)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:69)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:142)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:151)
         at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:78)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         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:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         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)
    >
    Now if i remove the tag converter="ClobConverter" then the page renders fine but when i try to submit the values back into the database, then i got the error
    >
    Cannot convert <entered text> of type class java.lang.String to class oracle.jbo.domain.ClobDomain
    >
    My clob converter class is registered in faces-config.xml file and the code for it is also pasted below for reference:
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import javax.faces.convert.ConverterException;
    import oracle.jbo.domain.ClobDomain;
    public class ClobConverter implements Converter {
        public ClobConverter() {
        public Object getAsObject(FacesContext context, UIComponent component,
                                  String value) {
            if (context == null || component == null) {
                throw new NullPointerException("FacesContext and UIComponent can not be null");
            if (value == null) {
                return null;
            try {
                return new ClobDomain(value);
            } catch (Exception ex) {
                final String message =
                    String.format("Unable to convert boolean value \"%s\" into a oracle.jbo.domain.Number",
                                  value);
                throw new ConverterException(message, ex);
        public String getAsString(FacesContext context, UIComponent component,
                                  Object value) {
            if (context == null || component == null) {
                throw new NullPointerException("FacesContext and UIComponent can not be null");
            return value.toString();
    }

  • Error while deploying the ADF Mobile application to the Android Emulator.

    Hi,
    I'm getting an error when trying to deploying a basic helloworld ADF mobile application to my Android sdk emulator which is already running as below.
    I'm not able to make anything from this limited log. Can anyone have a look and help me with what could be wrong.
    Any kind of suggestions are most welcome.
    [06:09:30 PM] Print the version of this tool (1.7).
    [06:09:30 PM] dx --help
    [06:09:30 PM] Print this message.
    [06:09:30 PM] Command-line execution failed (Return code: 1)
    [06:09:30 PM] Command-line executed: "D:\1_DevCore\android_sdk\adt-bundle-windows-x86_64-20130219\sdk\platform-tools\dx.bat" dex debug keep-classes output="D:\jdevuserhome\111230\ADFMobile\MyMobileApps\ MyMobileApp01\ MyMobileApp01\deploy\ANDROID_MOBILE_NATIVE_archive1\classes.dex" D:\jdevuserhome\111230\ADFMobile\MyMobileApps\ MyMobileApp01\ MyMobileApp01\deploy\ANDROID_MOBILE_NATIVE_archive1\classes D:\jdevuserhome\111230\ADFMobile\MyMobileApps\ MyMobileApp01\ MyMobileApp01\deploy\ANDROID_MOBILE_NATIVE_archive1\framework\build\jar\AND_ksoap.jar D:\jdevuserhome\111230\ADFMobile\MyMobileApps\ MyMobileApp01\ MyMobileApp01\deploy\ANDROID_MOBILE_NATIVE_archive1\framework\build\jar\Container.jar D:\jdevuserhome\111230\ADFMobile\MyMobileApps\ MyMobileApp01\ MyMobileApp01\deploy\ANDROID_MOBILE_NATIVE_archive1\framework\build\jar\IDMMobileSDK.jar D:\jdevuserhome\111230\ADFMobile\MyMobileApps\ MyMobileApp01\ MyMobileApp01\deploy\ANDROID_MOBILE_NATIVE_archive1\framework\build\jar\logging_dalvik_release.jar D:\jdevuserhome\111230\ADFMobile\MyMobileApps\ MyMobileApp01\ MyMobileApp01\deploy\ANDROID_MOBILE_NATIVE_archive1\framework\build\jar\phonegap.jar D:\jdevuserhome\111230\ADFMobile\MyMobileApps\ MyMobileApp01\ MyMobileApp01\deploy\ANDROID_MOBILE_NATIVE_archive1\framework\build\jar\vmchannel_dalvik_release.jar
    [06:09:30 PM] Shutting down Android Debug Bridge server...
    [06:09:30 PM] Deployment cancelled.
    [06:09:30 PM] ---- Deployment incomplete ----.
    [06:09:30 PM] Deployment failed due to one or more errors returned by 'D:\1_DevCore\android_sdk\adt-bundle-windows-x86_64-20130219\sdk\platform-tools\dx.bat'. The following is a summary of the returned error(s):
    Command-line execution failed (Return code: 1)
    Thanks,
    Bhasker

    I'm not able to make anything from this limited log.
    For Android emulator logs run the following command.
    adb logcat
    logcat | Android Developers

  • Displaying Image from ADF BC (BLOB Column) in ADF Mobile Application

    I have made an ADF BC over a database. Now I want to use that ADF BC's data control in my ADF Mobile App to display image stored in a blob column in the database!
    How should I got about it?
    Regards,
    Muhammad Zaheer

    Sir,
    I have exposed it through web services and I'm using the Web Service data control in my mobile application but the blob column is shown as output text in the data control. Now I don't know how to display the image from the blob column in my ADF mobile application.
    Looking forward for your help.
    Thank you.

  • How to implememnt sync capabulity in Oracle ADF mobile Application?

    Hi All,
    I am trying to implement once ADF mobile application which will capable of bout offline and online  synchronization.
    right now I am crated direct online accessible application and offline accessible application.
    my use-case is something like:when I login into application I need to full data from webservices and inserted into local DB. so that if network is not available I can work on local DB.
    later point once I have network I need to capable of update(Sync) to actual DB.
    I have tried one sample download from net and trying to execute but its not able to full data.
    can you please guide me any other configurations need to do for achieve this use-case. or end to end sample for the same.
    Regards
    Shankar

    Read Steven Davelaar's article http://www.ateam-oracle.com/going-mobile-with-adf-implementing-data-caching-and-syncing-for-working-offline/
    Timo

  • Customizing JD Edwards E9.1 ADF Mobile Application

    Hi
    I would like to find out, if anyone has been able or know how to customize jd edwards adf mobile application
    To be more specific, I have modified the ProcurementManager business service (JP430000) to render more fields from F4311 - Purchase Order Detail Table
    When testing the business service through SOAPUI and in JDeveloper 11.1.1..5.0 all is well
    But I cant seem to get the fields to show on the PurchaseOrderApproval ADF application details.jspx page
    Your help with highly appreciated
    Much Thanks

    Hi,
    You Can create custom tables on DB2 through JDE EnterpriseOne 8.12 and you can have the tables to be accessed from Webservices also but you have to be very careful about the integrity of the application before giving such access.
    You can customize JDEdwards Application UI and it is available in
    JD Edwards EnterpriseOne Tools 8.98 Development Tools: Form Design Aid Guide
    as you have to customize the Form on which you need the corresponding link.
    Please let me know if you need any further information.

  • Saving Captured picture from ADF Mobile Application into Remote Database

    Hi,
    I am developing adf mobile application by using Device Demo Application from ADF Mobile Samples.I had deployed this application into Android mobile and capturing picture.
    My Question is how can i save this captured pictured into Remote Database.
    Could any one help on this!!!
    Thanks in advance!!
    Regards
    Amar
    Edited by: 973755 on Nov 28, 2012 7:46 AM
    Edited by: 973755 on Nov 28, 2012 7:47 AM

    Hi Joe,
    Thanks for the reply!!
    As per your instructions i created two classes 1.GetConnection.java and 2.PictureBean.java
    in GetConnection.java i written following code
    package Picture;
    import java.sql.Connection;
    import java.sql.SQLException;
    import oracle.adfmf.framework.api.AdfmfJavaUtilities;
    public class GetConncetion {
    public GetConncetion() {
    super();
    protected static Connection conn = null;
    public static Connection getConnection() throws Exception {
    if (conn == null) {
    try {
    // create a database connection
    String Dir = AdfmfJavaUtilities.getDirectoryPathRoot(AdfmfJavaUtilities.ApplicationDirectory);
    String connStr = "jdbc:oracle:thin:@fusion.networks.com:1521:fusion"+Dir+"/DeviceDemo.db" ;
    conn = new SQLite.JDBCDataSource(connStr).getConnection();
    System.out.println("connection*******"+conn);
    } catch (SQLException e) {
    // if the error message is "out of memory",
    // it probably means no database file is found
    System.err.println(e.getMessage());
    return conn;
    and in PictureBean.java the following code i modified..
    package Picture;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import oracle.adf.model.datacontrols.device.DeviceManager;
    import oracle.jdbc.pool.OracleDataSource;
    public class PictureBean {
    public PictureBean() {
    super();
    String src;
    private int quality = 25;
    private int destination = DeviceManager.CAMERA_DESTINATIONTYPE_FILE_URI;
    private int source = DeviceManager.CAMERA_SOURCETYPE_PHOTOLIBRARY;
    private boolean allowEdit = false;
    private int encoding = DeviceManager.CAMERA_ENCODINGTYPE_JPEG;
    private int targetWidth = 0;
    private int targetHeight= 0;
    public void setQuality(int quality) {
    this.quality = quality;
    public int getQuality() {
    return quality;
    public void setDestination(int destination) {
    this.destination = destination;
    public int getDestination() {
    return destination;
    public void setSource(int source) {
    this.source = source;
    public int getSource() {
    return source;
    public void setAllowEdit(boolean allowEdit) {
    this.allowEdit = allowEdit;
    public boolean getAllowEdit() {
    return allowEdit;
    public boolean isAllowEdit() {
    return allowEdit;
    public void setEncoding(int encoding) {
    this.encoding = encoding;
    public int getEncoding() {
    return encoding;
    public void setTargetWidth(int targetWidth) {
    this.targetWidth = targetWidth;
    public int getTargetWidth() {
    return targetWidth;
    public void setTargetHeight(int targetHeight) {
    this.targetHeight = targetHeight;
    public int getTargetHeight() {
    return targetHeight;
    public String GetSource(String result) {
    String src = "";
    if( getDestination() == DeviceManager.CAMERA_DESTINATIONTYPE_DATA_URL ) {
    src = "data:image/gif;base64,";
    src = src + result;
    System.out.println("src value in GetSource is "+src);
    return src;
    public void setSource(String result) {
    PictureBean pb1=new PictureBean();
    String src = "data:image/gif;base64,";
    if( getDestination() == DeviceManager.CAMERA_DESTINATIONTYPE_DATA_URL ) {
    src = "data:image/gif;base64,";
    src = src + result;
    public String GetSource(){
    return src;
    public boolean savePicture() throws Exception {       
    boolean ret=false;
    PictureBean pb=new PictureBean();
    String pic= pb.GetSource();
    try{
    Connection conn=GetConncetion.getConnection();
    conn.setAutoCommit(false);
    String insertSQL ="INSERT INTO IMAGE(ID,PIC) VALUES(?,?)";
    PreparedStatement pStmt = conn.prepareStatement(insertSQL);
    pStmt.setInt(1, 1);
    pStmt.setString(2,pic);
    pStmt.execute();
    conn.commit();
    ret = true;
    }catch (SQLException e) {
    System.err.println(e.getMessage());
    } catch (Exception e) {
    System.err.println(e.getMessage());
    return ret;
    and i created one button in Result.amx page and in Action Listener i had given #{bindings.savePicture.execute} and deployed into Android mobile.But i am neither getting error nor getting save picture into database.
    while i run PictureBean.java class alone the following exception occurred.
    "E:\ADF R2\jdk160_24\bin\javaw.exe" -client -classpath "C:\JDeveloper\mywork\DeviceDemo\.adf;C:\JDeveloper\mywork\DeviceDemo\ViewController\classes;E:\OracleJdbc\ojdbc14_g.jar;E:\OracleJdbc\ojdbc14.jar;E:\OracleJdbc\ojdbc.jar;C:\Users\Amar\Downloads\ojdbc6_g.jar;C:\Users\Amar\Downloads\ojdbc6.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-faces-databinding-rt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adf-share-support.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-ca.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share.ca_11.1.1\adf-share-base.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adflogginghandler.jar;E:\ADF R2\oracle_common\modules\oracle.idm_11.1.1\identitystore.jar;E:\ADF R2\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar;E:\ADF R2\oracle_common\modules\groovy-all-1.6.3.jar;E:\ADF R2\oracle_common\modules\oracle.ldap_11.1.1\ojmisc.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\commons-el.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\jsp-el-api.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\oracle-el.jar;E:\ADF R2\oracle_common\modules\oracle.xmlef_11.1.1\xmlef.jar;E:\ADF R2\oracle_common\modules\oracle.bali.share_11.1.1\share.jar;E:\ADF R2\modules\com.bea.core.apache.xercesImpl_2.8.1.jar;E:\ADF R2\modules\javax.activation_1.1.0.0_1-1.jar;E:\ADF R2\modules\javax.mail_1.1.0.0_1-4-1.jar;E:\ADF R2\modules\glassfish.jaxb_1.0.0.0_2-1-12.jar;E:\ADF R2\modules\javax.xml.bind_2.1.1.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adftransactionsdt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-dt-at-rt.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adfdt_common.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\adflibrary.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\db-ca.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\jdev-cm.jar;E:\ADF R2\oracle_common\modules\oracle.adf.security_11.1.1\adf-share-security.jar;E:\ADF R2\oracle_common\modules\oracle.adf.security_11.1.1\adf-controller-security.jar;E:\ADF R2\oracle_common\modules\oracle.adf.share_11.1.1\adfsharembean.jar;E:\ADF R2\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;E:\ADF R2\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\bc4j-mbeans.jar;E:\ADF R2\oracle_common\modules\oracle.javatools_11.1.1\resourcebundle.jar;E:\ADF R2\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-api.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-common.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-ee.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-internal.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-unsupported-api.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jps-manifest.jar;E:\ADF R2\oracle_common\modules\oracle.jps_11.1.1\jacc-spi.jar;E:\ADF R2\oracle_common\modules\oracle.pki_11.1.1\oraclepki.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_core.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_cert.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_xmlsec.jar;E:\ADF R2\oracle_common\modules\oracle.osdt_11.1.1\osdt_ws_sx.jar;E:\ADF R2\oracle_common\modules\oracle.iau_11.1.1\fmw_audit.jar;E:\ADF R2\modules\javax.security.jacc_1.0.0.0_1-1.jar;E:\ADF R2\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;E:\ADF R2\oracle_common\modules\oracle.mds_11.1.1\oramds.jar;E:\ADF R2\modules\javax.servlet_1.0.0.0_2-5.jar;E:\ADF R2\modules\javax.jsp_1.2.0.0_2-1.jar;E:\ADF R2\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;E:\ADF R2\oracle_common\jlib\commons-cli-1.0.jar;E:\ADF R2\oracle_common\modules\oracle.dms_11.1.1\dms.jar;E:\ADF R2\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;E:\ADF R2\oracle_common\modules\oracle.javacache_11.1.1\cache.jar;E:\ADF R2\oracle_common\modules\oracle.ucp_11.1.0.jar;E:\ADF R2\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;E:\ADF R2\oracle_common\modules\oracle.javatools_11.1.1\javatools-nodeps.jar;E:\ADF R2\modules\javax.management_1.2.1.jar;E:\ADF R2\modules\javax.management.j2ee_1.0.jar;E:\ADF R2\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;C:\Users\Amar\Downloads\commons-codec-1.7-bin.zip;C:\Users\Amar\Downloads\commons-codec-1.7-src.zip;E:\ADF R2\oracle_common\modules\oracle.adf.model_11.1.1\dvt-databindings-mds.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\dvt-databindings.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\dvt-facesbindings.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\trinidad-api.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\trinidad-impl.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-api-11.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-impl-11.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-dynamic-faces.jar;E:\ADF R2\oracle_common\modules\oracle.adf.view_11.1.1\adf-faces-changemanager-rt.jar;E:\ADF R2\oracle_common\modules\oracle.facesconfigdt_11.1.1\facesconfigmodel.jar;E:\ADF R2\oracle_common\modules\oracle.facesconfigdt_11.1.1\taglib.jar;E:\ADF R2\modules\glassfish.el_1.0.0.0_2-1.jar;E:\ADF R2\oracle_common\modules\oracle.jsf_2.0\jsf-api.jar;E:\ADF R2\oracle_common\modules\oracle.jsf_2.0\jsf-impl.jar;E:\ADF R2\modules\glassfish.jstl_1.2.0.1.jar;C:\Users\Amar\Downloads\jndi-properties.jar.zip;C:\Users\Amar\Downloads\jndi-1.2.1.jar.zip;C:\Users\Amar\Downloads\h2-1.3.149.jar.zip;C:\Users\Amar\Downloads\Android\h2-1.3.149.zip;C:\Users\Amar\Downloads\Android\android\app;C:\Users\Amar\Downloads\Android\android;C:\Users\Amar\Downloads\Android" -Djavax.net.ssl.trustStore=C:\Users\Amar\AppData\Local\Temp\trustStore7108102737679976193.jks Picture.PictureBean
    Source value is null
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/adfmf/framework/api/AdfmfJavaUtilities
         at Picture.GetConncetion.getConnection(GetConncetion.java:24)
         at Picture.PictureBean.savePicture(PictureBean.java:140)
         at Picture.PictureBean.main(PictureBean.java:189)
    Caused by: java.lang.ClassNotFoundException: oracle.adfmf.framework.api.AdfmfJavaUtilities
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         ... 3 more
    Process exited with exit code 1.
    i already imported AdfmfJavaUtilities package dont know why it showing exception.
    and while i am debugging the GetConnection.java value of 'Dir' is null.i am not getting what is the AdfmfJavaUtilities.ApplicationDirectory?
    Could you help on this!!
    Thanks & Regards
    Amar

  • Creating new feature in ADF mobile application creates unnecessary folders

    Hi,
    Jdev 11.1.2.3.0 with ADF mobile extension
    Windows 7, 64 bit.
    When I create a new feature in a ADF mobile application and change the name of the feature in the create wizard Jdeveloper creates some unnecessary folders.
    e.g.:
    - Default package of the mobile application is "com.name.mobile"
    - I entered the feature name "testFeature1" in the create-feature wizard.
    --> follwing folders has been created:
    - com.name.mobile.tes
    - com.name.mobile.testFeature1
    In some of my tests up to 4 directories has been created for 1 new feature.
    I have opened windows file explorer parallel to Jdeveloper and opened the folder where the sub-folders for the feature will be created.
    So I was able to see at which action the folders are created.
    It definitelly happens when using backspace key!
    Sometime it happens then the last character has been deleted from the name field and sometimes it happens earlier.
    Problem:
    =======
    I have created an SR on metalink for this but unfortunatelly the support engineer is not able to reproduce the isse on his machine.
    So I installed Jdev on a new machine and on this new machine I also could NOT reproduce the isse.
    On my own machine I can still reproduce the issue.
    What I have done so far:
    =================
    - I have already re-installed Jdev on my own machine from scratch (deleted all existing Jdev files and folders).
    - Restarted my computer
    - I use the standard JDK shipped with Jdev 11.1.2.3.0.
    - created several new test applications with Jdev. In each application I can reproduce the issue.
    Maybe someone else already has noticed similar issues?
    Does someone has any ideas what may be wrong on my Jdev installation?
    regards
    Peter

    user12190920 wrote:
    I write command tail -f /var/log/system.log in terminal. And I get following output.
    May 6 11:32:42 evosys-iMacs-iMac.local manager[507]: Obj-C [CH-1, State=created ableToSend=Yes]: Message arrived - VMMessage [
    type: Plain[0x00]
    prinorty: 2
    channelID: -1
    messageID: 3
    length: 137
    body: {41, 44, 46, 4D, 53, 47, 20, 31, 30, 30, 30, 30, 20, 20, 20, 35, 31, 31, 20, 20, 20, 35, 31, 31, 20, 20, 20, 20, 20, 30, 20, 20, 20, 31, 30, 31, 7B, 22, 72, 65, 73, 75, 6C, 74, 22, 3A, 5B, 5D, 2C, 22, 64, 61, 74, 61, 43, 68, 61, 6E, 67, 65, 45, 76, 65, 6E, 74, 22, 3A, 7B, 22, 76, 61, 72, 69, 61, 62, 6C, 65, 43, 68, 61, 6E, 67, 65, 73, 22, 3A, 7B, 22, 76, 69, 65, 77, 53, 63, 6F, 70, 65, 22, 3A, 7B, 22, 2E, 6E, 75, 6C, 6C, 22, 3A, 74, 72, 75, 65, 7D, 7D, 2C, 22, 70, 72, 6F, 76, 69, 64, 65, 72, 43, 68, 61, 6E, 67, 65, 73, 22, 3A, 7B, 7D, 7D, 7D}
    But I have no idea that what is meaning of above,
    Thanks in Advance.The message in your body is hexadecimal. When converted (replace the , by a space) to string is becomes readable:
    ADFMSG 10000 511 511 0 101{"result":[],"dataChangeEvent":{"variableChanges":{"viewScope":{".null":true}},"providerChanges":{}}}

  • Oracle ADF Mobile Applications

    Dear Experts,
    Please tell me details of which mobile set is compatiable/suitable for Oracle ADF Mobile Applications. as I am working on Oracle ADF.
    I have to test some Oracle ADF Mobile Applications on mobile.
    Thanks in Advance.
    Shiv Naresh Gupta
    08795317510

    Excerpts from http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfmobilefaq-1866697.pdf
    Both iOS (5.x and above) and Android (2.3.x and above) devices are
    supported. Furthermore, both the tablet and smart phones running
    these mobile operating systems are supported.So basically any handset which supports this version of OS should do. Please check how to deploy etc. in the docs to get more idea.

  • Oracle ADF Mobile application is very slow in Android

    Hi
    I am new to oracle ADF.
    When I tried to deploy an application in an android device it takes a lot of time to deploy as well as every button click in the application takes more time to load. Is there any way to speed up the deployment process ?

    And this one as well
    ADF Mobile: Android performance is very slow - when will this be fixed?

  • Need pointers on how to use SQLite in  ADF Mobile applications

    Hey,
    I am trying to develop an ADF mobile App. I am new to ADF mobile. I went through some of the tutorials but still need some clarification on how to use SQLite inside the application. Can i get a Data control out of it? Or is it just to read and write data .
    that brings me to the other question, Is the 'demo.db' i.e the db file which represents the Database, supposed to be packaged as a resource with the application?
    Pls give me some info abt this.. If you can provide me links with this information, it would be of great help.
    Thanks,
    Jithesh

    You can expose a java class containing methods (select, update, ...) as a Data Control.
    Yes, you need to add your .db as a resource.
    Here a blog post about SQLite in ADF Mobile:
    http://adf4beginners.blogspot.be/2013/03/adf-mobile-sqlite-in-adf-mobile.html

  • Is it possible to call a task flow present in 1 ADF Mobile Application to another ADF Mobile Application?

    In ADF Mobile, I want to call a task flow present in application1 to a different application2 on click of a button. Is it possible?

    Hi,
    This is my code to call the package.
    String amDef = "model.service.DAFService";
    String config = "DAFServiceLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
         CallableStatement cstmt = null;
         String stmt = "begin call CP_DAF_PKG.DAF_PROCESS(?,?,?,?,?,?,?,?,?); end; ";
         cstmt = getDBTransaction().createCallableStatement(stmt,0);
    But in this case, I am getting
    oracle.jbo.InvalidOwnerException: JBO-25301: Application module is not a root app module but has no parent
    I understand the reason for this error. I need to call the
    createcallableStatement from the application module that I have above.
    Something like am. (call the package)
    But not sure about any method which does that..
    Please let me know if you know the way to solve it.
    Thanks,
    Venki

  • Error testing ADF Mobile application - bootstrap.html _anomFunkMap.f34

    Hi,
    I am testing ADF Mobile with a latest beta build JDEVADF_11.1.2.2.0_GENERIC_120302.0214.6145 and trying to build a simple test using a model based on an Oracle schema, a ADF Mobile Taskflow defined as a feature and deployed to the IOSPhoneSimulator.
    When I launch the application it has an error:
    bootstrap.html
    JavaScript Callback _anomFunkMap.f34 Threw Exception: TypeError: 'undefined' is not an object.
    Can someone provide some tips to try to isolate this issue?
    Has anyone had a similar problem?
    Regards
    Sydney

    Since you are an internal Oracle employee using an internal (non-public) build, you should be using a forum that is internal and non-public.
    John

  • ADF Mobile application and DMS synchronization

    Hi all,
    I'm working on a demo based on a multi-platform mobile application working mostly offline (using a local database which must be manually synced when the device is online).
    I've started watching at ADF Mobile Framework and Oracle Database Mobile Server.
    Now I'm a little confused about how these two components interact each others.
    Looking at some video/documentation I see that using ADF MF I can create a mobile APP for iOS/Android writing pure java code. Then I can deploy the application using a deployment profile to obtain my application, ready to be installed on my device.
    The question is, how my mobile app can be kept synced to a MW running DMS?
    I've read Invoking Synchronization in Applications With the Mobile Sync APIs,  Using an Android Application on the SQLite Mobile Client , Integrate ADFm applications into Database Mobile Server
    but I didn't get how that is supposed to work.
    It seems like I have to add osync_me.jar library to my project, set parameters for my ose.ini file (using SetParam.run) then create a OSESession and use sync() method. This is supposed to get from DMS delta modification and put into it my modifications performed locally.
    That's it? Do I need something more?
    Here How to Integrate Oracle Adf Mobile App and DMS? there's a very similar question without public response, is there any detailed documentation about this topic?
    thank you all

    Thank you for the answer.
    The link you suggested is the one where I've found http://www.oracle.com/technetwork/database/database-mobile-server/documentation/dmstoadfm-2228124.pdf
    Looking at that document it seems I should import libraries, edit programmatically ose.ini and than invoke OSESession.sync() using my user e pass as stated in my previous post, and everything is supposed to work fine.
    But I'm a bit confused because looking at more tutorials and documentation I saw more steps like application publication through mobile server (packaging wizard), installation of oracle update app on mobile device and so on... and I didn't get what these steps are useful for and if they are mandatory for ADFm developed app too? (I'm referring to Database Mobile Server Demonstration - YouTube for example)
    Thank you

  • ADF Mobile - insert data into oracle db from oracle adf mobile application

    Hi,
    I have to insert data from mobile into oracle database 11g(not in local sqlite database), can somebody tell me how to do it?
    Thanks,
    Anshul

    Hi, Anshul, one common way is to expose DB data as ADF BC, and then add a service interface on top of ADF BC. This would allow the ADF Mobile app to access server DB through ADF BC. There may be other mechanisms to access server-side DB - I think APEX also expose some REST interface to Oracle DB as well. Another option is to use TopLink - TopLink can also expose some REST services.
    Thanks,
    Joe Huang

Maybe you are looking for

  • Voicemail not working in CUPC

    Everyone has CUPC 8.6 installed with CUPS 8.5, CUC 8.5 and CUCM 8.5 servers.  Anyone who logs into CUPC are unable to listen to their voicemail through it.  Show server health gives "VoiceMail Error. The server has rejected the provided credentials.

  • Tiff placed in Indesign and set to Multiply mode - potential problems?

    I am set to send a file to print and would appreciate any heads up on any potential problems. It's a simple file: cmyk yellow background colour with a bog standard Tiff of black line artwork. Because the Tiff is black artwork on a white background I'

  • Audio interface problem with Waveburner...wil not send audio to MoTU 828mk3

    When using Waveburner with a new MOTU 828Mk3 interface. the audio refuses to play via the 828 despite it being selected in the Audio Device window. It defaults to sending audio to my second display screen. Is there a re-set somewhere? It works fine w

  • IMac broken. trying to diagnose problem.

    So my neighbors iMac is pretty old I do not know exactly what model. It still starts up but and makes the noise but nothing shows up on the screen. my first reaction was the lcd screen. I tried to boot it from a external hdd (I held option when start

  • IPhoto/iPod and Syncing Albums

    Using OS X.3.9 and iPhoto 6.x: When I sync iPhoto with my new iPod (video), will I be able to browse the photos on the iPod by the same Album names used in iPhoto? Will the iPod list my Albums? For example, can I present a slideshow of a certain Albu