Throw the error on a popup message

Hello

12.1.3 Jdev

I have to implement the change password functionality in one of my page. I created a link on my page saying 'Change Password '. When I click on this link a new window comes up with 2 password fields. When I click OK, it calls the method in the managed Bean. Everything works fine.

But I wanted to throw, and the error message when the entered password will not match. How can I throw the error message in the popup window without closing the popup.

I tried the codes, but what's going on here is the original popup is closed and a new popup comes up with the error message.

JboException ex = new JboException("Passwords are different. !!!!!"); 
           BindingContext bctx = BindingContext.getCurrent();
           ((DCBindingContainer)bctx.getCurrentBindingsEntry()).reportException(ex);

        FacesContext context = FacesContext.getCurrentInstance();
        FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, "Password are different.", "");
        context.addMessage(null, facesMessage);

I wanted are the popup Window with the password window should remain, an error message to show. (in another pop-up window or on the same pop-up window.)

Popup window code:

  <af:popup childCreation="deferred" autoCancel="disabled" id="popupPwd">
                                            <af:dialog id="d2" title="Change Password"
                                                       dialogListener="#{pageFlowScope.profileBean.changePassword}">
                                                <f:facet name="buttonBar"/>
                                                <af:panelFormLayout id="pfl4">
                                                    <f:facet name="footer"/>
                                                    <af:inputText label="New Password" id="it2" secret="true"
                                                                  value="#{pageFlowScope.profileBean.newPassword}"/>
                                                    <af:inputText label="Re-enter New Password" id="it12"
                                                                  secret="true"
                                                                  value="#{pageFlowScope.profileBean.newPassword1}"/>
                                                </af:panelFormLayout>
                                            </af:dialog>
                                        </af:popup>

See you soon

AJ

Check this blog Blog of the ADF (Application Development Framework) that shows how to do this.

Timo

Tags: Java

Similar Questions

  • HTTPS webservcie call forwarding Apache2 for weblogic throws the error message

    Dear Sir.

    I have a prob in invoking webservice deployed on WLS 10.3.4 via Apache2 server.

    Below is configured on machine apache httpd-dist file.

    < VirtualHost 10.xx.xx.18:443 >

    ....

    < IfModule weblogic_module >

    WebLogicCluster 10.xx.xx.30:8013

    Debugging now

    WLProxySSL OFF

    DynamicServerList WE

    WLLogFile /tmp/weblogic_ssl.log

    WLTempDir/tmp

    WLIOTimeoutSecs 1800

    DebugConfigInfo WE

    < / IfModule >

    < location TestApp >

    SetHandler weblogic-Manager

    < / location >

    < /TestWebService location >

    SetHandler weblogic-Manager

    < / location >

    < / VirtualHost >

    ProxyPreserveHost on

    ProxyRequests off

    SSLProxyEngine on

    The web application (TestApp) works very well when you call the https protocol.

    But for the service (TestWebService) web when calling using the https protocol, it throws the below error:

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server

    faultSubcode:

    faultString: weblogic.wsee.server.ServerURLNotFoundException: cannot resolve a URL for http/https

    faultActor:

    faultNode:

    faultDetail:

    {java.io} string: java.lang.RuntimeException: weblogic.wsee.server.ServerURLNotFoundException: cannot resolve a URL for http/https

    weblogic.wsee.server.ServerURLNotFoundException: cannot resolve a URL for http/https

    weblogic.wsee.server.ServerURLNotFoundException: cannot resolve a URL for http/https

    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)

    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)

    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)

    to com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$ FragmentContentDriver.next (XMLDocumentFragmentScannerImpl.java:2938)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)

    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)

    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)

    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)

    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)

    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)

    to com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$ JAXPSAXParser.parse (SAXParserImpl.java:522)

    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)

    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

    at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)

    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke (MustUnderstandChecker.java:62)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)

    at org.apache.axis.client.Call.invoke(Call.java:2748)

    at org.apache.axis.client.Call.invoke(Call.java:2424)

    at org.apache.axis.client.Call.invoke(Call.java:2347)

    at org.apache.axis.client.Call.invoke(Call.java:1804)

    When access us the WSDL url using the protocol https, it returns the wsdl XML properly. Just call to the method on the Web service throws the error.

    Here's the log of apache for ssl request errors.

    = New request: [HTTP/1.0 POST/TestWebService/TestService] =.

    Kills Sep 27 10:11:42 2013 < 655913775839021 > INFO: SSL is not configured

    Kills Sep 27 10:11:42 by 2013 < 655913775839021 > TestWebService/Uri/TestService

    Kills Sep 27 10:11:42 2013 < 655913775839021 > after trimming path: "TestWebService/TestService".

    Kills Sep 27 10:11:42 2013 < 655913775839021 > the string of final demand is "TestWebService/TestService".

    Kills Sep 27 10:11:42 2013 < 655913775839021 > host extracted serverlist is [10.xx.x.30]

    Kills Sep 27 10:11:42 lastIndex Initializing 2013 < 655913775839021 > = 0 to get a list of length = 1

    Kills Sep 27 10:11:42 2013 < 655913775839021 > getListNode: creates a new node for the server: id ='10.xx.x.30:8013 ' server_name ='10.xx.xx.18 ', port = "443"

    Kills Sep 27 10:11:42 will 2013 < 655913775839021 > get the data of publication of size = 388 clength = 0

    Kills Sep 27 10:11:42 2013 < 655913775839021 > try #0 out of a maximum of 5

    Kills Sep 27 10:11:42 2013 < 655913775839021 > attempts a connection grouped to '10.xx.xx.30/8013/8013 '.

    Kills Sep 27 10:11:42 2013 < 655913775839021 > getPooledConn: no more connections in the pool for Host [10.xx.xx.30] Port [8013] SecurePort [8013]

    Kills Sep 27 10:11:42 2013 < 655913775839021 > General list: try to connect to ' 10.xx.xx.30'/8013/8013 on line 2724 for "TestWebService/TestService".

    Kills Sep 27 10:11:42 2013 < 655913775839021 > INFO: new URL NON - SSL

    Kills Sep 27 10:11:42 2013 < 655913775839021 > Connect returns-1 and error no game to 150, msg '' ongoing Operation. ''

    Kills Sep 27 10:11:42 2013 < 655913775839021 > EINPROGRESS at connect() - selection

    Kills Sep 27 10:11:42 Port Local 2013 < 655913775839021 > of the socket is 37994

    Kills Sep 27 10:11:42 2013 < 655913775839021 > Remote Host 10.xx.xx.30 remote Port 8013

    Kills Sep 27 10:11:42 2013 < 655913775839021 > General list: created a new connection to ' 10.xx.xx.30'/8013 for 'TestWebService/TestService', port: 37994 Local

    Kills Sep 27 10:11:42 2013 < 655913775839021 > URL::parseHeaders: CompleteStatusLine set to [HTTP/1.1 500 Internal Server Error]

    Kills Sep 27 10:11:42 2013 < 655913775839021 > URL::parseHeaders: StatusLine value [500 Internal Server Error]

    Kills Sep 27 10:11:42 2013 < 655913775839021 > analyzed all headers OK

    Kills Sep 27 10:11:42 2013 < 655913775839021 > sendResponse(): r-> status = "500"

    Kills Sep 27 10:11:42 2013 < 655913775839021 > free old srvrList, id = [10.xx.xx.30:8013], [10.xx.xx.18] = server_name, server_port = [443]

    Kills Sep 27 10:11:42 Parsing 2013 < 655913775839021 > list cluster:-2116126659! 174266130! 7003! -1 | 1098407374! 174266142! 7013! -1

    Kills Sep 27 10:11:42 2013 < 655913775839021 > parseJVMID: analysis JVMID '-2116126659! 174266130! 7003! -1 | 1098407374! 174266142! 7013! -1 '

    Kills Sep 27 10:11:42 2013 < 655913775839021 > parseJVMID: in fact the analysis '-2116126659! 174266130! 7003! -1 '

    Kills Sep 27 10:11:42 2013 < 655913775839021 > ServerInfo struct to JVMID '-2116126659' populous '.

    Server details are:

    OrigHostInfo [10.99.23.18]

    isOrigHostInfoDNS [0]

    Host [10.99.23.18]

    Port [7003]

    SecurePort [0]

    Kills Sep 27 10:11:42 2013 < 655913775839021 > parseJVMID: analysis JVMID ' 1098407374! 174266142! 7013! -1 '

    Kills Sep 27 10:11:42 2013 < 655913775839021 > parseJVMID: in fact the analysis ' 1098407374! 174266142! 7013! -1 '

    Kills Sep 27 10:11:42 struct ServerInfo 2013 < 655913775839021 > for JVMID people ' 1098407374'

    Server details are:

    OrigHostInfo [10.99.23.30]

    isOrigHostInfoDNS [0]

    Host [10.99.23.30]

    Port [7013]

    SecurePort [0]

    Kills Sep 27 10:11:42 lastIndex Initializing 2013 < 655913775839021 > = 0 to get a list of length = 2

    Kills Sep 27 10:11:42 2013 < 655913775839021 > # a got a new list of server of length 2 #.

    Kills Sep 27 10:11:42 2013 < 655913775839021 > # #Response #: Srvr # [1] = [10.99.23.18:7003:0]

    Kills Sep 27 10:11:42 2013 < 655913775839021 > # #Response #: Srvr # [2] = [10.99.23.30:7013:0]

    Kills Sep 27 10:11:42 2013 < 655913775839021 > canRecycle: conn = 1 table = 500 = 0 clen = - 1 = 0 isCTE isKA

    Kills Sep 27 10:11:42 2013 < 655913775839021 > closeConn: URL.canRecycle () returns false, removal of URL "10.xx.xx.30/8013".

    Kills Sep 27 10:11:42 2013 < 655913775839021 > [TestWebService/TestService] processed

    Kindly help me to solve this problem,

    Zia

    Hello

    I solved this issue by disabling the option 'WebLogic plug-in enabled' field > Cluster > (select the clustrer) and Configuration > general tabe > advanced option.

    By disabling this option my webservice is working porperly. Re Apache runs correctly.

  • Can not stop the process after throwing the error in the OPS

    Dear Experts,

    I am oaf extension co page. I want to stop the process when getting the error after click on apply. I have written logic for error message

    if(vRowCount!= 0)

    {

    pageContext.writeDiagnostics (this, "vrowcoun t! 0 ", 1);

    throw new OAException ("xxThe number already exists", OAException.ERROR);

    }

    It throws the error as an exception, so that it continues the process. I would through error message and stop the process.

    Could someone explain to me how can I solve this problem?

    JDeveloper version: 10.1.3.3.0

    Thanks in advance.

    Here's the code extended co.

    package xxxpai.oracle.apps.ar.hz.components.address.webui;

    import java.sql. *;

    Import oracle.apps.ar.hz.components.address.webui.HzPuiAddressCreateUpdateCO;

    Import oracle.apps.fnd.common.MessageToken;

    Oracle.apps.fnd.framework import. *;

    Import oracle.apps.fnd.framework.server.OADBTransaction;

    Import oracle.apps.fnd.framework.webui.OADialogPage;

    Import oracle.apps.fnd.framework.webui.OAPageContext;

    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

    Import oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean;

    public class xxHzPuiAddressCreateUpdateCO extends HzPuiAddressCreateUpdateCO

    {

    public xxHzPuiAddressCreateUpdateCO()

    {

    }

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    super.processRequest (pageContext, webBean);

    }

    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)

    {

    If (PageContext.GetParameter ("Apply")! = null)

    {

    OAApplicationModule am2 = pageContext.getRootApplicationModule ();

    Connection con = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();

    pageContext.writeDiagnostics (this, "entered button1", 1);

    OAViewObject arvo = (OAViewObject) am2.findViewObject ("HzPuiPartySiteVO");

    String abtype = null;

    int vRowCount = 0;

    OAMessageLovInputBean vLOV = (OAMessageLovInputBean) webBean.findChildRecursive ("partySiteInformation0");

    If (vLOV! = null)

    {

    abtype = vLOV.getValue (pageContext) m:System.NET.SocketAddress.ToString ();

    pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("xxx view object is not null, abtype") .append (abtype) m:System.NET.SocketAddress.ToString (), 1);

    }

    pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("attribute is") .append (abtype).append("_").toString(), 1);

    Try

    {

    String s1 = (new StringBuilder()).append("").toString ().append("SELECT_no_active_plots_FROM_XXPAI_REF_PLOTS_CONTRCT_VW_where_ref_number_=").append (abtype);

    PreparedStatement vpreparedsatement = con.prepareStatement (s1);

    ResultSet vresultset = vpreparedsatement.executeQuery ();

    pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("Select is instruction") .append (s1) m:System.NET.SocketAddress.ToString (), 1);

    If (vresultset. Next())

    {

    vRowCount = vresultset.getInt (1);

    pageContext.writeDiagnostics (this, "vRowCount value is" + vRowCount, 1);

    vresultset. Close();

    vpreparedsatement. Close();

    }

    }

    catch (System.Exception e)

    {

    throw OAException.wrapperException (e);

    }

    pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("vRowCount xxxx") .append (vRowCount) m:System.NET.SocketAddress.ToString (), 1);

    If (vRowCount! = 0)

    {

    pageContext.writeDiagnostics (this, "vrowcoun t! 0 ", 1);

    throw new OAException ("xxThe number already exists", OAException.ERROR);

    }

    }

    super.processFormRequest (pageContext, webBean);

    }

    }

    Hi, I found the solution, I used chips by using the following code.

    MessageToken chips [] = {new MessageToken("ATTRIBUTE3","abtype")};

    OAException errorMessage = new OAException("AR","XX_CUSTOMER_PAGE",tokens,OAException.ERROR,null);

    pageContext.putDialogMessage (errorMessage);

    pageContext.writeDiagnostics(this,_(new_StringBuilder()).append ("xxx before you throw new OAException') .append (vRowCount) m:System.NET.SocketAddress.ToString (), 1);

    pageContext.writeDiagnostics (this, "error message is" + errorMessage, 1);

    pageContext.forwardImmediately ("OA.jsp?page=/oracle/apps/ar/cusstd/acctSite/webui/ArAcctSiteOverviewPG",

    NULL,

    OAWebBeanConstants.KEEP_MENU_CONTEXT,

    NULL,

    NULL,

    true,

    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);

    But, here, I want to update the record already exists, its getting eror

  • OAException.ERROR is not throwing the error

    Hi friends,

    I am faced with a particular problem. I extended the oracle.apps.per.selfservice.specialinformation.webui.SitNavigationBarCO CO.

    When the user clicks the next button, I perform a function and the return value and based on the return value that I throw the error. I am unable to call the function, and then, the function also returns a correct value. However I do not see the error message be lifted. I assume using OAException.ERROR the error pops up in the upper part and the user will not be able to navigate to the next page. Also, I enabled the logging and the function returns the value 'B '.

    Here's the code. Any ideas what I am doing wrong help. Apps version is 12.1.3

    Thank you

    ' Public Sub processFormRequest (OAPageContext oapagecontext, OAWebBean oawebbean)

    {

    super.processRequest (oapagecontext, oawebbean);

    If (oapagecontext. GetParameter ("HrNext")! = null) {}

    OAApplicationModule oaapplicationmodule = (oawebbean) oapagecontext.getApplicationModule;

    OADBTransaction oadbTrans = oaapplicationmodule.getTransaction ((OADBTransaction));

    String retValues = null;

    try {}

    userId int = oapagecontext.getUserId ();

    String idFlexNum = "50425;

    StringBuffer str = new StringBuffer();

    Str.Append ("BEGIN");

    Str.Append (": 1: = XX_CUSTOM_SIT.") VALIDATE_LOAN_REQUEST (»);

    Str.Append ("p_user_id = >: 2," "");

    Str.Append ("p_id_flex_num = >: 3" "");

    Str.Append (»); «) ;

    Str.Append ("END");

    OracleCallableStatement oraclecallablestatement = (OracleCallableStatement) oadbTrans.createCallableStatement (str.toString (), 1);

    oraclecallablestatement.setInt (2, userId);

    oraclecallablestatement.setInt (3, Integer.parseInt (idFlexNum));

    oraclecallablestatement.registerOutParameter (1, Types.VARCHAR);

    oraclecallablestatement. Execute();

    retValues = oraclecallablestatement.getString (1);

    oapagecontext.writeDiagnostics (this, "retValues:" + retValues, 2);

    } catch (Exception e) {}

    throw OAException.wrapperException (e);

    }

    If (retValues.equals ("A")) {}

    throw new OAException ("You are not eligible for loan based on your service", OAException.ERROR);

    }

    If (retValues.equals ('B')) {}

    throw new OAException ("You can't apply for loan more than 2 times", OAException.ERROR);

    }

    If (retValues.equals ("C")) {}

    throw new OAException ("Loan is false", OAException.ERROR);

    }

    }

    Dear all,

    This problem is solved after I put the following instructions.

    oapagecontext.putDialogMessage (new OAException (message, OAException.ERROR));

    oapagecontext.forwardImmediatelyToCurrentPage (null, true, null);

    I thank Rakesh for the solution. Is the thread that helped me

    https://forums.Oracle.com/message/3929589#392958

    Thank you

  • Power hexadecimal value for a color property node throws the error message

    Hi all

    First of all, thank you very much for all the help with a complete noob here.

    I'm just trying to figure out how to launch a hexadecimal value to a knot of material color to change the background color of a digital indicator. I think I have the right property, the numtext.bgcolor.

    I'm putting in a case structure in a simple example, to use a digital constant I put hex color code, I want... and it throws an error 1077.

    Here is a picture of what I'm trying to do and the error... any suggestions where I'm wrong?

    And the error:

    Thank you in advance,

    Cayenne

    The value that you entered is not valid, because it is too big. LabVIEW expects the RGB colors in the range: 000000 (black) FFFFFFh (white) and all combinations between the two. The number you see in the screen shot is greater, where the error.

    If you wan, as experience is gained, a color in a digital indicator (U32) box control and set the display for Hex format.

  • xmlrules throws the error message?

    Hi all

    I'm trying to load the numbers everywhere where the < figcap / > tag available. It works very well. but I create a textFrame for the legend of the figure and placeXML() to move the < figcap / >. It works only first occurrence and then throws an error as below.

    "Error: invalid structure for the current XML file iterator rules processor detected!"
    Please change the rules, so the structural changes happen after the child nodes have been treated (or ignored). "

    without xmlrules we can do. but it'll take too long to load almost 60 digits.

    What could be the problem with xmlrules and how to solve?

    Thank you

    Hall

    now I got it! I found the solution by the __skipChildren method.

  • Themebasedfoi.centerToTheme () call JavaScript throws the error message

    Hello

    I'm developing a CEP for a client and I'm really looking forward how it is easy to get a card set up and running. The map is created with the javascript api and runs in a browser window. The goal is to embed the map in the poet dashboard. And it works very well also. But I have a problem, that could be a sticking point: I want to focus the bounding box of the card around the time selected. Other selection of the time ist directed by parameters in the url and it works very well also.

    If I insert the line
    themebasedfoi.centerToTheme ();
    nothing happens and my browser error console produces the error

    This ._f249 is null
    http://intranetserver:7777/MapViewer/FSMC/jslib/oraclemaps.js <-Version: Ver11_B090225 line 10769
    and
    Keine Elemete found (not found items)
    http://myserver:7001/mapviever/mcserver <-my own mapserver

    My source to create the map is:
    <html>
        <head>
            <!--META http-equiv="Content-Type" content="text/html; charset:UTF-8"-->
            <script type="text/javascript" src="http://intranetserver:7777/mapviewer/fsmc/jslib/oraclemaps.js"></script>
            <script type="text/javascript">
                var baseURL = "http://myserver:7001/mapviewer";
                var baseMapEloc = null;
                var mapview;
    
                function display_map()  
                {
                    baseMapEloc = new MVMapTileLayer("elocation.world_map", "http://intranetserver:7777/mapviewer/mcserver");
    
                    mapview = new MVMapView(document.getElementById("map"), baseURL);
                    mapview.addBaseMapLayer(baseMapEloc);
    
                    // var mpoint = MVSdoGeometry.createPoint(10, 51, 8307);
                    // mapview.setCenter(mpoint);
                    // mapview.setZoomLevel(4);
                    // mapview.addNavigationPanel("east"); 
    
                    // mapview.setHomeMap(mpoint, 4);
    
                    var themebasedfoi = new MVThemeBasedFOI('foi_partner','apexws_kpatenge.theme_partner_bi','https://secure_intranetserver/mapviewer/foi');    
                    themebasedfoi.setBringToTopOnMouseOver(true);
    
    
                    var country = getURLParameter("COUNTRY_PARAM");
                    var partner = getURLParameter("NAME_PARAM");
                    var city = getURLParameter("CITY_PARAM");
    
                    var parameters;
    
                    themebasedfoi.setQueryParameters(country,partner,city);
    
                    mapview.addThemeBasedFOI(themebasedfoi);
                    themebasedfoi.centerToTheme();
    
                    mapview.display();
    
                }
    
                function getURLParameter (ParamName) 
                {
                    var strURLParamstrURLParamReturn = "";
                    var strHref = window.location.href;
                    if (strHref.indexOf("?") > -1 ) 
                    {
                        var strQueryStr = strHref.substr(strHref.indexOf("?"));
                        var aQueryStr = strQueryStr.split("&");
                        for (var iParam = 0; iParam < aQueryStr.length; iParam++ )
                        {
                            if (aQueryStr[iParam].indexOf(ParamName+"=")> -1)
                            {
                                var aParam = aQueryStr[iParam].split("=");
                                strURLParamReturn = aParam[1];
                                break;
                            }
                        }
                    }
                    return unescape(strURLParamReturn);
                }
            </script>
        </head>
        <body onLoad="javascript:display_map()">
             <div id="map" style="width: 500px; height: 450px;"></div>
        </body>
    </html>
    CenterToTheme() I only get a square gray, without the map displays correctly with the setHomePoint(), I get the right view for the map without query parameter.

    Thank you in advance for each tip that helps me solve this problem...

    Wolfgang

    Edited by: user10446099 the 25.03.2009 02:51

    There seems to be some problem with centerToTheme(); in any case, what you really need, is zoomToTheme(). In addition, the recommended approach is this:

      function init_map(){
      //create the theme:
      var themebasedfoi = new MVThemeBasedFOI(...);
    
      //setup your query parameters
      thembasedfoi.setQueryParameters(...);
    
      //tell MapViewer to automatically 'bound' the map extent to the results of this theme after it came back from server with FOI data:
    
      themebasedfoi.setBoundingTheme(true);
    
      //now add the theme to the MVMapView handle (which will initiate the theme AJAX request to the server):
      mapview.addThemeBasedFOI(themebasedfoi);
    
       //dont call themebasedfoi.zoomToTheme() or centerToTheme() here, as the theme may not have come back with FOI data (it's asynchornous!)
     }
    
      //call this function to force the map to zoom back to an already displayed theme-based foi layer (after the user has paned and zoomed couple times for instance)
    
      function zoomToTheme()
    {
      themebasedfoi.zoomToTheme();
    }
    

    for a live example you can see the #35 tutorial (leaping theme).

    LJ

  • HttpPushDemo throws the error of missing on real device resource

    I am trying to run the example of httppushdemo on a real device to test for problems with an application to push.  However, if I run the application in the device, I get the error "Missing resource com.rim.samples.device.resource.HTTPPushDemoRes.

    I looked everywhere to find out how to get the resource on the device and impossible to find a solution.  The documentation I found would lead me to believe that it should be compiled in the Cod.

    Why I'm so confused (and frustrated after a long day of our push to debug problems)

    Thank you

    -Bill

    In older levels (4.3 and earlier OS), RIM ran the code, so that the resources (labels field, the names of menu etc.) where in a separate package.  It's a good way to demonstrate how you could internationalize applications, but also everyone confused because putting the application on the device, you need to charge upward of the cod resources as well.

    At the latest OS (4.5 +), they do not do this.

    The demo of http push has not changed, so you can take the source of the 4.5 or later in a previous level JDE and compile it.  It will take so NOT all external files of cod.  That's what I recommend you do.

    However, for you to win download the JDE together for a single file, it is here:

    /**
     * HTTPPushDemo.java
     *
     * Copyright © 1998-2008 Research In Motion Ltd.
     *
     * Note: For the sake of simplicity, this sample application may not leverage
     * resource bundles and resource strings.  However, it is STRONGLY recommended
     * that application developers make use of the localization features available
     * within the BlackBerry development platform to ensure a seamless application
     * experience across a variety of languages and geographies.  For more information
     * on localizing your application, please refer to the BlackBerry Java Development
     * Environment Development Guide associated with this release.
     */
    
    package com.rim.samples.device.httppushdemo;
    
    import java.io.*;
    import javax.microedition.io.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.util.*;
    import net.rim.device.api.io.http.*;
    
    /**
     * The client side of a simple HTTP Push system.
     * This application will listen for image data on the specified port and
     * render the data when it arrives.
     */
    public class HTTPPushDemo extends UiApplication
    {
        // Constants ----------------------------------------------------------------
        private static final String URL = "http://:100"; // PORT 100.
        private static final int CHUNK_SIZE = 256;
    
        // Members ------------------------------------------------------------------
        private ListeningThread _listeningThread;
        private HTTPPushDemoScreen _mainScreen;
        private RichTextField _infoField;
        private RichTextField _imageField;
    
        public static void main(String[] args)
        {
            HTTPPushDemo theApp = new HTTPPushDemo();
            theApp.enterEventDispatcher();
        }
    
        // Constructor --------------------------------------------------------------
        public HTTPPushDemo()
        {
            _mainScreen = new HTTPPushDemoScreen();
            _mainScreen.setTitle(new LabelField("HTTP Push Demo" , LabelField.USE_ALL_WIDTH));
    
            _infoField = new RichTextField();
            _mainScreen.add(_infoField);
    
            _mainScreen.add(new SeparatorField());
    
            _imageField = new RichTextField();
            _mainScreen.add(_imageField);
    
            // Spin off the listening thread.
            _listeningThread = new ListeningThread();
            _listeningThread.start();
    
            _infoField.setText("HTTP Listen object started");
    
            pushScreen(_mainScreen);
        }
    
        // Inner Classes ------------------------------------------------------------
        private class ListeningThread extends Thread
        {
            private boolean _stop = false;
            private StreamConnectionNotifier _notify;
    
            public synchronized void stop()
            {
                _stop = true;
                try
                {
                    // Close the connection so the thread will return.
                    _notify.close();
                }
                catch (IOException e)
                {
                    System.err.println(e.toString());
                }
                catch (NullPointerException e)
                {
                    // The notify object likely failed to open, due to an IOException.
                }
            }
    
            public void run()
            {
    
                StreamConnection stream = null;
                InputStream input = null;
                MDSPushInputStream pushInputStream=null;
    
                while (!_stop)
                {
                try
                    {
    
                        // Synchronize here so that we don't end up creating a connection that is never closed.
                        synchronized(this)
                        {
                            // Open the connection once (or re-open after an IOException),  so we don't end up
                            // in a race condition, where a push is lost if it comes in before the connection
                            // is open again. We open the url with a parameter that indicates that we should
                            // always use MDS when attempting to connect.
                            _notify = (StreamConnectionNotifier)Connector.open(URL + ";deviceside=false");
                        }
    
                        while (!_stop)
                        {
    
                            // NOTE: the following will block until data is received.
                            stream = _notify.acceptAndOpen();
    
                            try
                            {
                                input = stream.openInputStream();
                                pushInputStream= new MDSPushInputStream((HttpServerConnection)stream, input);
    
                                // Extract the data from the input stream.
    
                                DataBuffer db = new DataBuffer();
                                byte[] data = new byte[CHUNK_SIZE];
                                int chunk = 0;
    
                                while ( -1 != (chunk = input.read(data)) )
                                {
                                    db.write(data, 0, chunk);
                                }
    
                                updateMessage(data);
    
                                // This method is called to accept the push.
                                pushInputStream.accept();
    
                                input.close();
                                stream.close();
    
                                data = db.getArray();
    
                            }
                            catch (IOException e1)
                            {
                                // A problem occurred with the input stream , however, the original
                                // StreamConnectionNotifier is still valid.
                                System.err.println(e1.toString());
    
                                if ( input != null )
                                {
                                    try
                                    {
                                        input.close();
                                    }
                                    catch (IOException e2)
                                    {
                                    }
                                }
    
                                if ( stream != null )
                                {
                                    try
                                    {
                                        stream.close();
                                    }
                                    catch (IOException e2)
                                    {
                                    }
                                }
                            }
                        }
    
                        _notify.close();
                        _notify = null;   
    
                    }
                    catch (IOException ioe)
                    {
                        // Likely the stream was closed. Catches the exception thrown by
                        // _notify.acceptAndOpen() when this program exits.
    
                        if ( _notify != null )
                        {
                            try
                            {
                                _notify.close();
                                _notify = null;
                            }
                            catch ( IOException e )
                            {
                            }
                        }
                    }
                }
            }
        }
    
        private void updateMessage(final byte[] data)
        {
            Application.getApplication().invokeLater(new Runnable()
            {
                public void run()
                {
                    // Query the user to load the received message.
                    String[] choices = {"Ok" , "Cancel" };
    
                    if ( 0 != Dialog.ask("New message received. Do you want to render it?" , choices, 0) )
                    {
                        return;
                    }
    
                    _infoField.setText("Text received - size:  " + data.length);
    
                    try
                    {
                       _imageField.setText(new String(data));
                    }
                    catch (Exception e)
                    {
                        Dialog.inform(e.toString());
                        System.err.println(e.toString());
                    }
                }
            });
        }
    
        protected void onExit()
        {
            // Kill the listening thread.
            _listeningThread.stop();
    
            try
            {
                _listeningThread.join();
            }
            catch (InterruptedException e)
            {
                System.err.println(e.toString());
            }
    
        }
    
        private class HTTPPushDemoScreen extends MainScreen
        {
    
            /**
             * @see net.rim.device.api.ui.Screen#close()
             */
            public void close()
            {
                onExit();
    
                super.close();
            }
        }
    }
    
  • Stop 124 how to determine what material throws the error?

    My computer is bluescreening everyday with the error 124.  Internet informs me that he is a "hardware error".  How can I determine what hardware is to throw?

    Error parameters are:
    (0x85b5a01c, 0xfe000000, 0 x 00000000, 0 00800400)

    There are also a memory dump file if it is useful to dig there.

    And Yes, I tried to get rid of the blue screen by running windows update, updated my drivers and reformat my hard drive and reinstall windows from scratch, it did not help, so do not waste my time suggesting such things.

    What version of Boot Camp?
    http://support.Apple.com/kb/DL1443

    Driver update Atheros AR938X version 10.0.0.45 released March 12, 2012
    http://www.Atheros.cz/Atheros-wireless-download.php?chipset=44&system=5

  • MERGER into slider throws the error message: ORA-01747

    Hi guys,.
    I'm new in PL/SQL and I'm taking the last row of a database table and add the same data in another table with the same structure, but for the ancestors of the current employee. Something like:

    Day EmpID LOB (key fields)
    12-1007-29

    EmpID has 24 and 95 ancestors. That's why in the destination table I have to insert (or update of status and idforum if these three key areas already exists):

    EmpID LOB day
    24 1007 29
    95-1007-29


    There are 4 tables:

    X - table base;
    Y - destination table (same structure as X);
    Z - the relationship between the employee and ancestor;
    W - plays the role of a temporary table, but is a real table - only for the MERGER;
    ============================================================================================
    create or replace
    PROCEDURE INSERT_PARENTS AS
    BEGIN

    DECLARE
    EMP_VAR NUMBER (38.0). -employee
    NUMBER OF ANCESTOR_ID; -relative of the employee
    NUMBER OF LOB_VAR; -LOB
    NUMBER OF DAY_VAR; -date of
    NUMBER OF FORUMID_VAR; -Idforum
    STATUS_VAR VARCHAR2 (20); -Status
    Parents of CURSOR
    IS
    SELECT ancestor_key FROM Z WHERE member_key = EMP_VAR; -This slider will go through all the ancestors of the employee

    Number EMPROWID_VAR; -It's the key to the table Y (destination table)

    BEGIN
    -extract the last line of the table of database variables

    SELECT EMPL_KEY in the EMP_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
    SELECT LOB_KEY in the LOB_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
    SELECT DAY_KEY in the DAY_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
    SELECT IDFORUM in FORUMID_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);
    SELECT STATUS in STATUS_VAR OF X WHERE EMPROW_ID = (SELECT Max (EMPROW_ID) OF X);

    SELECT NVL (Max (EMPROW_ID), 0) + 1 in EMPROWID_VAR OF Y; -initialize the key to the table max + 1 of the existing key Y


    Parents OPEN.

    LOOP
    EXTRACT the parents in ANCESTOR_ID;

    EXIT WHEN parents % NOTFOUND;

    EMPROWID_VAR: = EMPROWID_VAR + 1;
    -the value of the new key for Y
    INSERT w (emprowid_var, lob_var, ancestor_id, day_var, forumid_var, status_var)
    VALUES (EMPROWID_VAR, LOB_VAR, ANCESTOR_ID, DAY_VAR, FORUMID_VAR, STATUS_VAR); -prepare the source for the MERGE statement


    -merge data between 2 tables:
    -If a parent already exists in the destination, to update just idforum and the new status
    -If that parent does not exist in the dest table, will be inserted with the status ' U/R '.

    MERGE TO Y Dest
    USING the W
    WE (Dest.LOB_KEY = Surce.LOB_VAR AND)
    Dest.EMPL_KEY = Surce.ANCESTOR_ID AND
    Dest.DAY_KEY = Surce.DAY_VAR)

    WHEN MATCHED, THEN update to SET (Dest.FORUMID = Surce.FORUMID_VAR,
    Dest.STATUS = Surce.STATUS_VAR)

    WHEN NOT MATCHED THEN INSERT (Dest.EMPROW_ID, Dest.LOB_KEY, Dest.EMPL_KEY, Dest.DAY_KEY, Dest.FORUMID, Dest.STATUS)
    VALUES (Surce.EMPROWID_VAR, Surce.LOB_VAR, Surce.ANCESTOR_ID, Surce.DAY_VAR, Surce.FORUMID_VAR, ' U/R');

    END LOOP;
    END;

    END INSERT_PARENTS;

    When I try to run this procedure (compile) I get this error message:

    Error (53,37): PL/SQL: ORA-01747: invalid column, table.column, or user.table.column specification

    Can you tell me where I am doing wrong? (I'm pretty sure that it's in the Merge statement, but what is it?)

    Thanks in advance.

    Published by: petresion on November 19, 2011 14:02

    without the paintings I never would have found

    MERGE INTO y dest
    USING w surce
    ON (dest.lob_key = surce.lob_var AND dest.empl_key = surce.ancestor_id AND
    dest.day_key = surce.day_var )
    WHEN matched THEN
      UPDATE SET dest.forumid = surce.forumid_var,
                 dest.status = surce.status_var
    WHEN NOT matched THEN
      INSERT ( dest.emprow_id,
               dest.lob_key,
               dest.empl_key,
               dest.day_key,
               dest.forumid,
               dest.status)
      VALUES ( surce.emprowid_var,
               surce.lob_var,
               surce.ancestor_id,
               surce.day_var,
               surce.forumid_var,
               'U/R');
    
  • Procedure that calls another proc throws the error message

    I have a proc returns ref cursor as below

    create or replace

    PROCEDURE PROC_RETURN_CV (P_in_deptno number, varchar2, p_out_info to sys_refcursor p_in_job)

    is

    Start

    Open p_out_info for ' select ename, empno from emp1 where deptno =: = deptno and job: job ' using p_in_deptno, p_in_job;

    end;

    /

    Another Proc calls over proc;

    create or replace

    procedure proc_call_cv is

    v_local_cv sys_refcursor;

    v_rec emp % roWtype;

    Start

    PROC_RETURN_CV(10,'CLERK',v_local_cv);

    LOOP

    SEEK v_local_cv INTO v_rec;

    EXIT WHEN v_local_cv % NOTFOUND;

    DBMS_OUTPUT. PUT_LINE ('EMPNO' | v_rec.empno);

    END LOOP;

    END;

    /

    But when I realize the proc that called the first proc returns error, below

    BEGIN

    PROC_CALL_CV();

    END;

    ORA-01007: variable not in select list

    ORA-06512: at "SCOTT. PROC_CALL_CV', line 7

    ORA-06512: at line 2

    01007 00000 - "variable not in select list.

    Can someone correct me?

    Thank you

    Ann

    You said that the return type is an emp % rowtype - the entire line - all columns

    You return all the columns in the select.

    Either refund * or set a record type

  • Number of conversion date throws the error message.

    Hello

    I'm trying to convert a column number in a date column, but get the following error:

    SQL:

    Select to_date(INV_BALANCE_DT_WID,'dd/mm/yyyy') in the W_INVENTORY_DAILY_BAL_F;

    ERROR:

    Error at startup on line: 19 in the command.

    Select to_date(INV_BALANCE_DT_WID,'dd/mm/yyyy') from W_INVENTORY_DAILY_BAL_F

    Error report-

    SQL error: ORA-01861: literal does not match the format string

    01861 00000 - "literal does not format string.

    * Cause: Literals in the entry must be the same length as literals in

    the string format (with the exception of white space).  If the

    "FX" modifier has been switched on, the literal must match exactly.

    with no extra spaces.

    * Action: Fix format string to match the literal.

    SAMPLE DATA:

    INV_BALANCE_DT_WID - 20140101

    DESIRED OUTPUT:

    17 JUNE 15

    Could you please help me on this?

    Thanks in advance!

    The value is 20140101 then why do you use "dd/mm/yyyy '?

    SQL > SELECT TO_DATE(20140101,'YYYYMMDD')
    2 FROM TWO
    3.

    TO_DATE (2
    ---------
    1 JANUARY 14

    SQL >

    SY.

  • Get-PAF * commands PowerCLI 5.8 R1 throws the error message "State HTTP 400: bad request".

    I've recently updated to PowerCLI 5.8 R1 and wanted to try the new cmdlts of PAF, but however, I go to this topic I seem to get error regardless of what below PAF Get * cmdlet I run:

    Get-SpbmStoragePolicy: 2014-12-11 14:04:50 Get-SpbmStoragePolicy therequest failed stateful HTTP 400: bad request.

    On line: 1 char: 1

    + Get-SpbmStoragePolicy

    + ~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo: NotSpecified: (:)) [Get-SpbmStoragePolicy], VimExreception )

    + FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomatio n.Storage.Commands.Cmdlets.Spbm.GetStorageProfile

    I tried to connect to the VC with the HTTPS setting - but same error Protocol.

    I thought that maybe the snap of storage had not been imported but it seems to be there:

    PowerCLI C:\ > Get-PSSnapin. Select name

    Microsoft.PowerShell.Diagnostics

    Microsoft.PowerShell.Core

    Microsoft.PowerShell.Utility

    Microsoft.PowerShell.Host

    Microsoft.PowerShell.Management

    Microsoft.PowerShell.Security

    Microsoft.WSMan.Management

    VMware.VimAutomation.Core

    VMware.VimAutomation.Vds

    VMware.VimAutomation.License

    VMware.DeployAutomation

    VMware.ImageBuilder

    VMware.VimAutomation.Storage

    I run PS4.0 with PCLI 5.8R1:

    PowerCLI C:\ > Get-VIToolkitVersion

    PowerCLI Version

    VMware vSphere PowerCLI 5.8 Release 1 build 2057893

    ---------------

    Versions of the snap

    VMWare AutoDeploy PowerCLI component 5.5 build 1983942

    VMWare ImageBuilder PowerCLI component 5.5 build 1983942

    License of VMware PowerCLI component 5.5 build 1265954

    VMware Storage PowerCLI component 5.8 build 2057894

    VMware PowerCLI VDS component 5.8 build 2031581

    VMware vSphere PowerCLI component 5.8 build 2031581

    VSphere VMware Update Manager PowerCLI 5.5 build 1302474

    PowerCLI C:\ > $psversiontable

    Value name

    PSVersion 4.0

    WSManStackVersion 3.0

    SerializationVersion 1.1.0.1

    CLRVersion 4.0.30319.18063

    BuildVersion 6.3.9600.16406

    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}

    PSRemotingProtocolVersion 2.2

    I am running PowerCLI on a Win2k8Ent server, not locally on the vCenter.

    Any ideas? Why should he use HTTP? 5.5 and older commands work properly.

    It seems that you use vCenter 5.1, is that correct?

    Please note that the PAF for PowerShell support is for vCenter 5.5 and higher.  Prior to 5.5, the PAF API was not public.

    Alex

  • CVS on ESXi4.1 u1 throws the error message

    Hi all

    In a cluster, I have 4 ESXi host with hardware configurations

    HP Proliant DL360 G6 (ESXi4.1 U2) 2
    CPU Cores 8 x 2.4 GHz processors
    Processor Intel (r) Xeon (R) CPU [email protected] GHZ type


    HP Proliant DL380 G7 (ESXi4.1 U1) 2
    CPU Cores 8 GHz CPUsx2.665
    Processor type:-Intel Xeon E5640 CPU @2. 67 GHz

    but I want to configure enhanced VMotion compatibility, but his error giving. Need re-boot? during the configuration. Screenshot that I have attached. Any Counsellor will be on this will be appreciated.

    Thank you

    vmguy

    No, he complains he has propelled there on the virtual machines that efficiently use the advanced features of the CPU, what it basically says is 'you will be downgrading the processor in the virtual machines' so you'll need to power virtual machines turn off the first and then select CVS then power back on and they will pick up the new CPU settings at startup.

    These will be the virtual machines on the G7 welcomes only without having to turn on the G6

    Paul

  • Admin throws the error message

    I just installed MX7 Server on your laptop.

    The OS is XP Professional SP2.

    When I call the using Admin CF ap http://localhost/CFIDE/administrator/index.cfm.

    Loading the page http://localhost/CFIDE/administrator/index.cfm?configServer=true.

    He asked my Admin password, which he accepts.

    A page is resolved, http://localhost/CFIDE/administrator/enter.cfm.

    This "enter.cfm" flashes back to the login page.

    Any ideas on how to fix it?

    Do not take into account.

    Enabling cookies did the trick.

Maybe you are looking for

  • type the web address in the browser does not

    I type in the web address browser area, I want to go to, and then press ENTER. Firefox browser does not attend the web address, it does not. I type www.wsj.com , then press 'enter' on the keyboard or the link of the cursor on the arrow and the Firefo

  • Satellite C850 - slow fan speed after BIOS update

    Hello So I have my bios Satellite C850-PSKCEV update version 6.80 (I bought my laptop in 2012), about 6 months ago and since then the fan turns at low speed and will never run full speed as before, and therefore, the laptop overheats prematurely and

  • HP ENVY 17-j178nr TouchSmart: Overclocking HP Envy

    I have a HP Envy and I have a few questions about performance. Is - this safe overclock the CPU (which is currently 2.5 GHz) at 3.0 GHz or higher safely? Is this useful to overclocking? How would I go about it overclocking safely? Here is my card I r

  • HP Pavilion 17 t-F000/F100: PCI Express Root complex pilot - HP Pavilion 17 t-F000/F100

    I just reinstalled a fresh copy of Windows 64-bit of 8.1 and have two unknown devices listed. They say they are for the PCI Express Root Complex, the value for them are: ACPI\HPQ6001\3 & 11583659 & 0 ACPI\HPQ6007\3 & 11583659 & 0 I tried following li

  • plugged in, not charging

    Yesterday 10/10/2013 my work fine battery pump, it load and had the fine support. the time of nex, I started my computer my battery level was a 0%. plugged my charger in and the battery icon says it is connected but does not load. I tried solutions D