BrowserField2 help - page does not not (OS5)

Hi all

I'm new to the development of Blackberry, please go easy on me :-)

I am trying to build a simple application to WebView, but some of the links need to open in the default browser instead of the application. I've got fine by using the command BrowserField2 of loading web pages, but when I try to replace all the ProtocolController, I get is the error "error calling content for. I can't find much in the way of complete examples, if anyone has any ideas what I am doing wrong?

public final class MyScreen extends MainScreen
{
    private BrowserField _browserField;
    private boolean _documentLoaded = false;
    private BrowserFieldRequest _request;

    public MyScreen()
    {
        ProtocolController myController = new MyProtocolController(_browserField);

        BrowserFieldConfig config = new BrowserFieldConfig();

        // Web page loads fine if you comment out this line
        config.setProperty(BrowserFieldConfig.CONTROLLER, myController);

        _browserField = new BrowserField(config);
        add(_browserField);

        try
        {
            _browserField.requestContent("http://www.google.com/");
        }
        catch(Exception e)
        {
            deleteAll();
            add(new LabelField("ERROR:\n\n"));
            add(new LabelField(e.getMessage()));
        }
    }

    public class MyProtocolController extends ProtocolController {
    public MyProtocolController(BrowserField browserField){super(browserField);
    }

    public InputConnection handleResourceRequest(BrowserFieldRequest request) throws Exception {
        return super.handleResourceRequest(request);
    }
    public void handleNavigationRequest(BrowserFieldRequest request) throws Exception {
        // TODO: check if link should open Blackberry browser, if not then allow page to load in BrowserFiled2
        super.handleNavigationRequest(request);
    }
    }
}

Thank you

Tim

solved my problem.

It turns out that I tried to use _browserField before it was created in this line: -.

ProtocolController myController = new MyProtocolController (_browserField);

everything works now :-)

Tags: BlackBerry Developers

Similar Questions

  • Help page does not product drive

    Help page Activate the preview thumbnails of PDFs in Windows Explorer

    said that there is a checkbox "Allow the pdf thumbnail in Windows Explorer"

    on the edit/preferences/general page

    which is simply not there in my general page.

    Otherwise, the page is the help file.

    I just loaded the player to a new pc windows 10. And I've just updated via help search updates.

    He isn't here.

    then?

    Acrobat Reader DC is available here:

    Adobe Acrobat Reader DC install for all versions

  • Help-> Flex Start Page does not open the Start Page

    Help-> Flex Start Page does not start Page.

    I see several entries bug concerning this resolved, but no description of what I can do about it.

    I use Flex Builder Professional on Windows XP

    I heard that this may be due in Internet Explorer when the popup blocker is enabled. Turn it off so popups are allowed, and can load the Flex Start Page.

    If this post answers your question or assistance, please mark it as such.

  • Home page does not change!

    My home page has changed to http://search.findwide.com/v/10?guid={C764CB4C-DADB-47E9-83F6-A1585921345D} & noredirect = 1.
    I restored it by default, but the home page does not change.
    I uninstalled Firefox so that twice but the homepage does not change!
    It's boring. Please help me restore the default home page.
    Best

    See this - http://malwaretips.com/blogs/remove-findwide-search-virus/

  • When I click on the tab with a + on it, located next to the current tab, a new page does not open. If I click on 'New tab' in the file menu, a new tab do not ope

    When I click on the tab with a + on it, located next to the current tab, a new page does not open. If I click on 'New tab' in the file menu, a new tab does not open.

    Thanks for posting the details of your system. I'm skeptical about the "CompTool0234 Community Toolbar". Could you disable some add-ons and see if that helps.

    On this tab:

    Firefox orange (or the Tools menu) button > addons > Plugins category

    Disable «Conduit Plugin»

    On this tab:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    Disable the CompTool0234 community toolbar.

    Then very probably a link will appear to restart Firefox to make the change. Does make a difference?

  • Upgraded to v18 and default search home page does not work

    I've just updated to Firefox 18 and my default Firefox start page does not work. I type in a Word and press 'enter' or click on search and nothing happens.
    If I use the Google bar without problem.

    If there is a problem with the search through the default value: home page and then try to reset the search engine used on the subject: homepage.

    Reset the pref browser.startup.homepage_override.mstone through the context menu by default on the topic: config page and close and restart Firefox to restore the on: default home page.

    1. Open the topic: config page through the address bar
    2. Type in the filter bar: mstone
    3. Right-click on the browser.startup.homepage_override.mstone line, and then select: Reset
    4. Close and restart Firefox

    If this did not help, then remove the button Delete the chromeappsstore.sqlite file in the Firefox profile folder and repeat the foregoing.

  • Toshiba 4400 KE - download does not work - the page does not exist

    I bought a blu - ray Toshiba 4400 ke, which is smart TV. I have connected to the internet as youtube see preinstalled applications. But when I try to download, it tells me that the page does not exist and cannot enter cloud tv.

    I hope you can help me.
    Thank you

    Do you use the internet via LAN cable connection?
    Are you sure that you have configured the network settings correctly (network password)?

    I have a device similar to the House. It is not a Toshiba but the principle remains the same and network configuration is easy and I didn t notice any problem.

  • Family safety has blocked me and said the requested page does not exist, moved or is temp down.

    Original title: parental control

    Family safety has blocked me and said the requested page does not exist, moved or is temp down. Help me!!

    Hello April,

    Thank you for the information. For us to better visualize your main concern, please provide a screenshot of the message/code that you receive when you click on the family within your computer settings. To take a screenshot, you can follow the steps in the link/s below:

    I got a private message where you can securely download the screenshots. After downloading, please respond to this public thread for us to be warned.

    Visit us for your answer.

    Thank you.

  • "Review updates" Vista sp2 page does not load.

    My computer has windows Vista Home Premium sp2 32 x and updates are checked for every day. There are 2 updates important and 2 Optional updates listed at this time. When I try to "review updates" category either important or optional page does not load. It is a problem for several months now. I wonder what are these updates and why I am not able to view them. I am the administrator and the only user of this computer. It's not part of a corporation, company or home network...

    Hello

    I suggest that you follow these steps and check if the problem persists.

    Step 1:

    I would temporarily disable all security software and check if the problem persists.

     

    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software
     
    Note: Antivirus software can help protect your computer against viruses and other security threats.  In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
     
    Step 2:

    Test the issue in a clean boot State.

    Note: Follow step 7 to your computer as usual.

  • Scrolling the page does not properly respond to BlackBerry Curve9360

    Hello friend

    I have developed applications for BlackBerry (JqueryMobile, Phonegap) the application works fine in BlackBerry Torch 9800.

    But once I've installed in BlackBerry Curve9360, scrolling of the page does not properly, that I am not able to view the complete list of items and long text.

    Help, please

    I came up with the solution, the problem occurs because BlackBerry Curve 9360 isn't a touchscreen, there fore scroll doesn't work.

    In my applications, I add 2 pages "index.html."

    on the first page, you have to test if the device is not touch and redirect to the second page.

    Do not use the page for "BB Curve" scroll and any other animation like CSS "" - webkit - transform: translate3d "»

    The other js script go without a problem.

    The page "BB Curve" to redesign the html for use with the cursor,
    For example, the menu is smaller, the police is smaller.
    the size of the screen is fixed.
    Dimension height is better indicate a value min eg 300px
    etc...

  • Button to navigate to another page does not not work properly all the time.

    Hello

    I'm just starting to explore the ADF, I use Jdeveloper 12.1.3.0.0 and integrated weblogic server that comes with the IDE.

    I just created a simple application with a welcome page called Main.jsf and then 2 task bounded, streams called SearchStudentsFlow and Studenloansflow, each workflow has a jsf page. The home page has a single button that sends me to the first task flow, SearchStudentsFlow and I can see is the page in that workflow, AwardsSearch.jsf. Also in the AwardsSearch.jsf page I have a button that takes back me to the home page.

    The first problem I have is that when I run the application starting at the home page button in the works of the great homepage the first time, the button send me to the AwardsSearch.jsf , but once I decide to go back to the homepage and then click on the button to go to the first task flow the button does nothing. This happens whenever I decide to return to the home page of any page in my project.

    Also, I copied the entire previous project into a new project and I decided to use the ADF security infrastructure in this new project to create a log in page create users and give them different roles and levels of access.

    I created some users who have access to all pages and all the streams, but when I run the application starts the login page and I login successfully and go to the home page, the button on the home page does not work.


    I don't know why the button sometimes works, but not of others and also I do not know why when I use the login page, the button doesn't work. I don't know if these 2 problems are related or not.


    This is my code in the homepage:

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html>
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="Main.jsf" id="d1" binding="#{backingBeanScope.backing_Main.d1}">
            <af:form id="f1" binding="#{backingBeanScope.backing_Main.f1}">
                <af:panelGridLayout id="pgl1" binding="#{backingBeanScope.backing_Main.pgl1}">
                    <af:gridRow marginTop="5px" height="20%" id="gr1" binding="#{backingBeanScope.backing_Main.gr1}">
                        <af:gridCell marginStart="5px" width="34%" marginEnd="5px" id="gc1"
                                     binding="#{backingBeanScope.backing_Main.gc1}">
                            <af:image source="/images/NU_Logo_purple.jpg" shortDesc="Northwester University" id="i1"
                                      binding="#{backingBeanScope.backing_Main.i1}"
                                      inlineStyle="width:293px; height:197px;"/>
                        </af:gridCell>
                        <af:gridCell id="gc3" binding="#{backingBeanScope.backing_Main.gc3}" width="33%"/>
                        <af:gridCell id="gc4" binding="#{backingBeanScope.backing_Main.gc4}" width="33%"/>
                    </af:gridRow>
                    <af:gridRow id="gr3" binding="#{backingBeanScope.backing_Main.gr3}" height="10%">
                        <af:gridCell id="gc5" binding="#{backingBeanScope.backing_Main.gc5}"/>
                        <af:gridCell id="gc6" binding="#{backingBeanScope.backing_Main.gc6}">
                            <af:button text="Search Awards" id="b1" binding="#{backingBeanScope.backing_Main.b1}"
                                       action="goSearchAwards"/>
                        </af:gridCell>
                        <af:gridCell id="gc7" binding="#{backingBeanScope.backing_Main.gc7}"/>
                    </af:gridRow>
                    <af:gridRow marginTop="5px" height="70%" marginBottom="5px" id="gr2"
                                binding="#{backingBeanScope.backing_Main.gr2}">
                        <af:gridCell marginStart="5px" width="100%" marginEnd="5px" id="gc2"
                                     binding="#{backingBeanScope.backing_Main.gc2}"/>
                    </af:gridRow>
                </af:panelGridLayout>
            </af:form>
        </af:document>
        <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Main-->
    </f:view>
    

    And this is my code in the adfc-config. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="Main">
        <page>/Main.jsf</page>
      </view>
      <task-flow-call id="SearchStudentsFlow">
        <task-flow-reference>
          <document>/WEB-INF/SearchStudentsFlow.xml</document>
          <id>SearchStudentsFlow</id>
        </task-flow-reference>
      </task-flow-call>
      <control-flow-rule id="__3">
        <from-activity-id>Main</from-activity-id>
        <control-flow-case id="__5">
          <from-outcome>goSearchAwards</from-outcome>
          <to-activity-id>SearchStudentsFlow</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
      <managed-bean id="__4">
        <managed-bean-name>backing_AwardsSearch</managed-bean-name>
        <managed-bean-class>view.backing.AwardsSearch</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1AwardsSearch.jsf-->
      </managed-bean>
      <managed-bean id="__2">
        <managed-bean-name>backing_Main</managed-bean-name>
        <managed-bean-class>view.backing.Main</managed-bean-class>
        <managed-bean-scope>backingBean</managed-bean-scope>
        <!--oracle-jdev-comment:managed-bean-jsp-link:1Main.jsf-->
      </managed-bean>
    </adfc-config>
    

    No idea why the button does not work correctly all the time?

    Thanks in advance

    Play well!

    Now, we understand the problem and can help you solve it.

    The problem is that you dropped the home page in the flow of student loan and place you thinking that you must return to the point of departure, the unlimited workflow. Actually, you don't the sheet flow loan student but simply see the homepage as part of the loan flow. The navigation rules remain those defined in the flow of student loan. Now, when you click on a button to jump to the stream of research, the target is undefined zed you simply stay on the same page, the home page.

    To make your work use case, you set a return action in the flow of student loan that return to the caller, the flow of research which, in turn, will return to his name the workflow without terminals that hold the homepage. Remove the homepage of flow of charge to students. The case of navigation allows to navigate between the button and the new return action.

    In the adf of flow research a wild-card rule that accesses the return operation sends the return flow to the home page. You must remove the sailing time pointing to research prices for the return operation because it can use the same rule of navigation of wild-card then. Then, you add a Bach student load flow navigation rule to the scholarship search page. This navigation is used for the return actionto_searchStudents.

    Timo

  • After VO extension update the page for some fields on a page does not work

    After VO extension update the page for some fields on a page does not work. The message arrives the data are saved, but the values is the same as that of the former. And this happens with only a few fields, other fields are working well.

    Any pointer to solve problems will be of great help.

    Thank you in advance.

    Check if the standard VO has a RowImpl and it overrides the methods getter and setter for fields that is affected. If so, you will need to call super() in your custom extended RowImpl to call this logic.

    See the link below for how to call great from the extended RowImpl.

    Johny tips: OAF: transient attributes not getting filled extended vo

    Example Code:

    public String getAttribute1() {
       //return (String) getAttributeInternal("Attribute1");
      return super.getAttribute1();
     }
    

    If the above did not help, attach standard and custom VO files. We can have a look.

    See you soon

    AJ

  • After the upgrade from 5.5 to 6.1 VCenter Web Client vSphere page does not work?

    Dear expert;

    I need your help to solve my problem describe as below: -.

    After Upgrade VCenter from 5.5 to 6.1 the vSphere Client Web page does not work, so I need to solve

    Thank you.

    This problem is solved by using below command

    The '% VMWARE_PYTHON_BIN' list '%VMWARE_CIS_HOME%\VMware Services\lstool\scripts\lstool.py identity' - url http://localhost:7080/lookupservice/sdk - type vcenterserver > c:\psc_services.txt

    '% VMWARE_PYTHON_BIN' Unregister '%VMWARE_CIS_HOME%\VMware Services\lstool\scripts\lstool.py identity' - url http://localhost:7080/lookupservice/sdk - Service_ID id in step 4 - user "[email protected]" - password "XXXXX" - non-cocher-cert

  • Login page does not work

    Hello

    I developed the admin dashboard a simple for my project.


    http://BHC.edu.in/BHCNET/admin/login.php


    The login page works well in localhost. After the download on my site, the login page does not work.


    It shows that the user name and password is incorrect. Kindly help me.

    username : admin

    password: admin

    Here is my code.

    <? PHP

    session_start();

    ? >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > Untitled Document < /title >

    < / head >

    < body >

    < h1 align = "center" > welcome aboard the Admin! < / h1 >

    < img src = "Images/Admin - icon.png" width = "200" height = "200" style = "float: left;" Display: block; "class ="admin">

    < do action = "login.php" method = "post" name = 'loginform' id 'french' = > "

    < table width = "278" height = '174' border = '0' >

    < b >

    < td width = "102" height = "59" > < label > user name: < / label > < table >

    < td width = "187" > < input type = "text" name = "user name" placeholder = "Enter your name" / > < table >

    < /tr >

    < b >

    < td = "46" height > < label > password: < / label > < table >

    < td > < input type = "password" name = placeholder "password" = "Enter your password" / > < table >

    < /tr >

    < b >

    < td = "37" height > < input type = "submit" name = "login_but" id = "login" value = "Login" / > < table >

    < td > < p >

    < input type = "reset" value = "Reset" name = "reset_but" id = "reset" / >

    < /p > < table >

    < /tr >

    < /table >

    < / make >

    < / body >

    < / html >

    <? PHP

    If (isset($_POST['login_but']))

    {

    $name = mysql_real_escape_string($_POST['username']);

    $pass = mysql_real_escape_string($_POST['password']);

    $encrypt = md5 ($pass);

    include("include/Connection.php");

    $query = "select * from users_login where name = '$name' and password = '$pass'"; "

    $run_query = mysql_query ($query, $conn);

    If (mysql_num_rows ($run_query) > 0)

    {

    $_SESSION ['username'] = $name;

    echo 'window.open ('index.php', '_self') < script > < /script >';

    }

    on the other

    {

    echo "< script > alert ("user name or password is incorrect!") < /script > ';

    }

    }

    ? >

    Kindly help me.

    Thank you in advance.

    There are two things that stand out immediately as incorrect:

    • You call mysql_real_escape_string() before connecting to the database. The connection must come first.
    • You use the original functions of PHP MySQL. They have been deprecated and do not work on several servers. Use MySQLi .
  • SkillBuilders modal Page does not work in Apex 4.2

    Hi all

    I'm trying to set up an example in apex.oracle.com of an application developed in Apex 4.1 and Page modal SkillBuilders plugin does not work.

    To view this situation, I have created a version simplified the application, with only two pages, apex.oracle.com.

    Workspace: EDIAZJORGE
    User name: TEST
    Password: test123
    Application: 66464 - Modal Page sample

    When the loading of the Page 3, dynamic Action is performed to open the Page 2 (interactive report) the page modally, but it does not work (the modal page does not open).

    Please note that this works at the Apex 4.1 and the property incorporated into frames in my application is set to allow.

    I appreciate all help.

    Thank you

    Erick

    Published by: ediazjorge on January 30, 2013 15:20

    Bump!

    Erick,

    This is due to a change being made in the context of dynamic Actions in 4.2. Workaround for now is to change your load event of the resource on the DOM window object.

    It's working now. In the next version of the plug-in, you will be able to return to the (ready) Page Load event.

    Kind regards
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/

Maybe you are looking for