VE development with BEA Portal

Does anyone have experience integrating VE and/or MapPoint web services into a portal application We are looking into the feasibility of using VE or MP for locator services in a web site built with BEA Portal using Java as the underlying language base.


Answer this question

VE development with BEA Portal

  • Azael

    John,

    Thanks for the response.

    Anyone out there have experience with integrating VE into a portlet created with BEA Portal using Java

  • kennm

    Yes my current project integrates VE into a DotNetNuke (ASP.NET2) portal. I highly recommend an approach of writing webservices for all your server side functionlaity and then wrapper pages that are call using ajax, they call the web service and produce the javascrip to be executed. This architecture allows you to move to a point where the pages are calling the web services directly. I really like the idea of letting the client do as much of the presenation formating as possible in javascript.

    VE is javascript so it doesn't matter what technology you use server side.

    The issues you are going to face are:

    1) Need to reference the VE javascript file, ideally you want to do this in the <head> tag once. Else you may get a footer undefined (may have been fixed), fixed by declaring var footer = null;

    2) You need to ensure that the page has completly loaded before you start using the map. I use this and also wrap a try catch around the map load with a loop to give it some extra trys else tell the user what happened.
    //delays function to be run on window load.
    function addLoadEvent(func)
    {
    var oldonload = window.onload;
    if (typeof window.onload != 'function')
    { window.onload = func; }
    else
    { window.onload = function()
    { oldonload(); func(); }
    }
    }

    3) Be careful with your nesting, I have a div (position:relative) with a div (position:relative) with a div (position:absolute) and the map div in there. It works fine but see point 4. I guess the issue here is portals can do some wierd things, I'd try to stay away from tables if possible.

    4) The map x,y co-ordinates can be out. Due to the nesting of html element the VE function gettop() etc maybe wrong. This can be fixed by you own function that uses standard DOM approaches to determine the actual top and left of the control.

    John.



  • VE development with BEA Portal