Is it possiable to use "ALI SCRIPTING FRAMEWORK API " in JSR 168 Portlets?

Hi,
Is it possiable to use "ALI SCRIPTING FRAMEWORK API " in JSR 168 Portlets.
With Regards
Dheeraj Sai

If you want to use (let say it's possible) "ALI SCRIPTING FRAMEWORK API" in JSR 168 then these porlets are not "JSR-168" compatible anymore. So you automatically lost the main benefit of JSR-168 portlet - works over different portal vendors.
I guess if you have decided use JSR-168 you did this for reasons. Then stay this way and don't use any proprietary technologies.
By the way, this topic may help:
http://forums.bea.com/bea/message.jspa?messageID=500025455&tstart=0
Edited by Bryazgin at 05/18/2007 6:36 AM

Similar Messages

  • ALI Scripting Framework question: PTPortalPage() - I can't find any example

    I can't successfully create an array or portlet objects using the getPortlets() method of the PTPortalPage object in a portlet using the ALI scripting framework.
    The .zip file containing scripting framework samples (https://codesamples.projects.dev2dev.bea.com/servlets/ScarabDownload/resultpos/-1/nbrresults/0/remcurreport/true/template/ViewAttachment.vm/attachid/5124/filename/ALI_Scripting_Framework_Samples.zip) doesn't have any examples.
    var arrPortlets = new Array(PTPortalPage.getPortlets());
    alert(arrPortlets.length);
    This code says I only have one portlet on the page, but I have 3. Also, I'm unable to loop through the one in returned and turn it into PTPortlet object so that I can get the name and id of the portlet.
    Does anyone have a code sample on how to loop through the portlets on a page using the ali scripting framework's PTPortalPage.getPortlets()?

    Got it. I wouldn't particularly call the return value of the getPortlets() method an array of PTPortal objects - but rather it's just an array of ids.
    var arrIDs = PTPortalPage.getPortlets();
    for (var i in arrIDs)
    var portlet = new PTPortlet.getPortletByID(i);
    alert("pid: " + portlet.id + ", name: " + portlet.name);
    }

  • How can I get selected EXCEL area using java script office API (v 1.0)

    Hello everyone,
    I need to get values of specified area in an excel sheet using java Script Office API. For an example,
    A1:A7 row load into array using JS. 

    And you posted to a C++ forum, not a JavaScript or Excel forum.... why? 
    Visual C++ MVP

  • Does any one develop jsr-168 portlets (jsd portlets) using Jdeveloper ?

    hi
    Thank you for reading my post
    Does any one uses Jdeveloper to build jsr-168 compliant jsf portlets?
    does ADF faces works inside a jsf component or not ?
    Thank you very much

    So we should be hopeful to get a jsr-168 portlet development next few weeks.
    but i think if oracle make its community informed about such processes , it give a big chance to users to select its IDE,..
    Thanks

  • USING APACHE STURUTS BRIDGE WITH ORACLE PORTAL FOR STRUTS - JSR 168 PORTLET

    I am trying to develop a JSR - 168 compliant portlet which uses struts framework.I am using APACHE STRUTS BRIDGE to run the application in my ORACLE 10.1.4 Portal server.While doing the configuration accoring to the documentation given in URL http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
    (apache struts bridge), i was asked to add an <init-param> entery in the portlet.xml file to get the ServletContext.So i need to know where is the ServletContextProvider implementation class which implements ServletContextProvider available in Oracle AS so that i can use that to get the ServletContext and use it furthur.
    Thanks
    Deepak

    you could write your own implementation class for the ServletContextProvider interface and fill in the portlet.xml with the class you class
    It could be written as follows:
    package Edmunds.com.portal.bridges;
    import javax.portlet.GenericPortlet;
    import javax.portlet.PortletRequest;
    import javax.portlet.PortletResponse;
    import javax.servlet.ServletContext;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletRequestWrapper;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpServletResponseWrapper;
    /* note that PortletApplicationImpl is oracle version of portletContextImpl */
    import oracle.webdb.wsrp.server.PortletApplicationImpl;
    import org.apache.portals.bridges.common.ServletContextProvider;
    * PortalServletContextProvider supplies access to the Servlet context of Oralce Portal Portlet.
    public class PortalServletContextProvider implements ServletContextProvider {
    public ServletContext getServletContext(GenericPortlet portlet)
    return ((PortletApplicationImpl) portlet.getPortletContext()).getServletContext();
    public HttpServletRequest getHttpServletRequest(GenericPortlet portlet, PortletRequest request)
    return (HttpServletRequest) ((HttpServletRequestWrapper) request).getRequest();
    public HttpServletResponse getHttpServletResponse(GenericPortlet portlet, PortletResponse response) {
    return (HttpServletResponse) ((HttpServletResponseWrapper) response).getResponse();
    }

  • ALI Scripting - Performance Issues

    We are using ALI scripting to raise events so that other portlets in the page can listen to the events and also passing some data to other portlets using "PTPortlet.setSessionPref" scripting API. In my local testing, the scripting is taking just 0.3 seconds, however when we deployed this code to common portal which has few other portlets, the scripting is taking 5 seconds. Does any one know if there are any known best practices around ALI scripting to avoid performance issues especially to transfer events between portlets?
    Thanks
    Sampath

    Hi, I would like to provide additional information on the performance issue we are facing with ALI scripting. In the code highlighted below, we are using “setSessionPref” methods to set values in session variables using ALI scripting APIs and raising events for IPC.
    var prefName = 'selectionString';
    var prefValue = xmlFile;
    var gpConfigValue = "<%=gpPromptsConfigID%>";
    PTPortlet.setSessionPref(prefName,prefValue);
    PTPortlet.setSessionPref('gpFormObj',frmObj.name);
    PTPortlet.setSessionPref('gpPromptsConfigID', gpConfigValue);
    myportlet$$PORTLET_ID$$.raiseEvent('onSelectionSubmitFormObj',false);
    myportlet$$PORTLET_ID$$.raiseEvent('onSelectionSubmit', false);
    This code does not take lot of time(less than a second) to execute in my local machine however, it takes lof of time (around 5 seconds) in integrated development environment.
    After lot of debugging, I observed that if I change “PTPortalContext.GET_SESSION_PREFS_URL” to point to http://localhost:7001 instead of integrated development environemnt, the processing time is considerably reduced. This code below is inserted automatically by ALUI in every portal page. Does any one know the signficance of the below code automaitcally inserted by ALUI and how it can impact IPC.
    // Define PTPortalContext for CSAPI
    PTPortalContext = new Object();
    PTPortalContext.GET_SESSION_PREFS_URL = 'http://dcdev.pg.com/portal/server.pt?space=SessionPrefs&control=SessionPrefs&action=getprefs';
    PTPortalContext.SET_SESSION_PREFS_URL = 'http://dcdev.pg.com/portal/server.pt?space=SessionPrefs&control=SessionPrefs&action=setprefs';
    Thanks
    Sampath

  • ADF not support Credential Store Framework API

    I have used Credential Store Framework API for securing the websevice. By using servlet and csf api i am able to access the web logic credential store but when i change my servlet code to adf managbean code there is access voilation error.
    java.security.AccessControlException: access denied (oracle.security.jps.service.credstore.CredentialAccessPermission context=SYSTEM,mapName=Elsevier,
    keyName=WebServices read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    at
    During the configurzation of credential store i have done one entry in system-jazn-data.xml (present here domain_home\config\fmwconfig). Hence the below permissions were added:
    <grant>
         <grantee>
         <codesource>
         <url>file:${domain.home}/servers/${weblogic.Name}/tmp/_WL_user/CredentialsStorePOC/-</url>
         </codesource>
         </grantee>
         <permissions>
         <permission>
         <class>oracle.security.jps.service.credstore.CredentialAccessPermission</class>
         <name>context=SYSTEM,mapName=Elsevier,keyName=WebServices</name>
         <actions>read,write,update,delete</actions>
         </permission>
         </permissions>
         </grant>
    My Doubt
    <url>file:${domain.home}/servers/${weblogic.Name}/tmp/_WL_user/CredentialsStorePOC/-</url>
    might be differnent for ADF application as it working fine for servlet appliction
    REF:http://download.oracle.com/docs/cd/E15523_01/core.1111/e10043/devcsf.htm#BABEADIA

    You should refer to the latest documentation:
    http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/toc.htm
    Did you read the packaging requirements?
    Your cwallet.sso must be packaged in the META-INF of your EAR file (see http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/scenario.htm#CHDIGIDG)
    The chapter you are referring to is now chapter 23 (http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/devcsf.htm#BABEADIA).
    HTH,
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Wizard framework API SAMPLE CODE !!!!

    Does somebody have some sample code
    on how to use the wizard framework api
    Thanks

    Yeah, I have it.
    Wizard Framework
    Regards
    Puru
    Award points.

  • Interportlet communication using JSR 168

    Hi All
    We are using JSR 168 portlets . My requirement is invoke the method of Portlet B on some event of Portlet A.
    I need help on the implementation of Interportlet communication using JSR 168
    Thanks

    Hi,
    Go through the below two discussions
    Interportlet communication using JSR 168
    Re: JSR 168 Portlets -- IPC with Custom Events
    Thanks,
    Venkat Sarvabatla

  • How to get latest added file from a folder using apple script

    Hi..
    I am trying to get a latest added file from a folder..and for this i have below script
    tell application "Finder"
        set latestFile to item 1 of (sort (get files of (path to downloads folder)) by creation date) as alias
        set fileName to latestFile's name
    end tell
    By using this i am not able to get latest file because for some files the creation date is some older date so is there any way to get latest file based on "Date Added" column of a folder.

    If you don't mind using GUI Scripting (you must enable access for assistive devices in the Accessibility System Preference pane), the following script should give you a reference to the last item added to any folder. Admittedly not the most elegant solution, but it works, at least under OS X 10.8.2.
    set theFolder to choose folder
    tell application "Finder"
        activate
        set theFolderWindow to container window of theFolder
        set alreadyOpen to exists theFolderWindow
        tell theFolderWindow
            open
            set theInitialView to current view
            set current view to icon view
        end tell
    end tell
    tell application "System Events" to tell process "Finder"
        -- Arrange by None:
        set theInitialArrangement to name of menu item 1 of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
        keystroke "0" using {control down, command down}
        -- Sort by Date Added:
        set theInitialSortingOrder to name of menu item 1 of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1 whose value of attribute "AXMenuItemMarkChar" is "✓"
        keystroke "4" using {control down, option down, command down}
        -- Get the name of the last item:
        set theItemName to name of image 1 of UI element 1 of last scroll area of splitter group 1 of (window 1 whose subrole is "AXStandardWindow")
        -- Restore the initial settings:
        click menu item theInitialSortingOrder of menu 1 of menu item "Sort By" of menu 1 of menu bar item "View" of menu bar 1
        click menu item theInitialArrangement of menu 1 of menu item "Arrange By" of menu 1 of menu bar item "View" of menu bar 1
    end tell
    tell application "Finder"
        set current view of theFolderWindow to theInitialView -- restore the initial view
        if not alreadyOpen then close theFolderWindow
        set theLastItem to item theItemName of theFolder
    end tell
    theLastItem
    Message was edited by: Pierre L.

  • Print All Colors As Black Using VB Script on CS3

    Is there a way to set all colors as black using a script? I have found the TextAsBlack option, but I also need it to work with images on the page. I have not figured out how to set the ink alias within a script (have not been able to find any information on how to so) and the print presets do not seem to include the ink alias setting. Below is what I have so far.
    Thanks,
    Archie
    Rem PRINT FILE
    Rem ----------
    Function myPrintFile (myInDesign, myDocument, myPrintToFile, myFileName)
    With myInDesign.ActiveDocument.PrintPreferences
    .Printer = myPrintToFile
    .TextAsBlack = True
    .ScaleHeight = 98
    .ScaleWidth = 98
    .PagePosition = idPagePositions.idCentered
    .PaperSize = "A4"
    .PrintFile = myFileName
    End With
    myInDesign.ActiveDocument.PrintOut False
    End Function

    I have no clue about the specific params, but from a conceptual point of view you will want to print to a grayscale destination profile (then everything else will simply fall into place).
    Olaf Drümmer

  • Using alias name from view

    Can I create somehow a view like this one:
    CREATE VIEW clerk_view AS
       SELECT employee_id as ei, last_name as ln, department_id as di
       FROM employees
       WHERE job_id = 'PU_CLERK' ;and using this view with aliases, e.g.:
    select * from clerk_view where ln = 'Mickey';
    My Oracle database version is 11.2.0.3
    Best.

    Hi,
    lesak wrote:
    So can you tell me what I'm missing in above CREATE statement? Sorry, no, not without knowing exactly what you're doing. That's why you need to post a complete test script that people can run to re-create the problem. Except for the identifier LN, there's nothing wrong with the code you posted per se , but there could be millions of things wrong with how how you're trying to use it. Even if I could post millions of suggestions, you wouldn';t want to read them all, just to fond the one or two that apply to your case. So way exactly what your case is. Post a complete test script that creates and populates the table (if necessay), calls the view, tries to use the view, and gets the error.
    When I create view in the same way in production and use alias name, I've got following error: ORA-00904. Not everyone who wants to help you has all the error codes memorized. That's why you should post the complete error message.
    So Oracle don't know that my employee_id or other column have also alias name?!Sure, it will know the alias name. That's exactly what aliases are for.

  • Applescript: Problem Using Load Script File. Please Help :-!

    My setup: file 1 is a script object and file 2 is the script that uses the script object in file 1. This seems straightforward, but I'm getting runtime errors when tryig to use the script object, whether looking at its properties or calling its handlers. The whole thing just doesn't work. What am I doing wrong?
    Question 1: Is the 'load script' statement correct in file 2? It took forever and looking at many examples to not get an error in that statement. I don't understand why the path string is 'as alias'.
    Question 2:  When loading a script and specifying its path, is there a way to start with the current path (of the executing script file). All the scripts are stored together, but so far, I've only seen commands for absolute paths or user or desktop, etc. how can I get the path of the currently running script?
    Question 3: Is the cURL syntax ok? I can't even get the script to run to that line, so I don't know if it will even execute.
    Thanks a million, in advance.
    Cheers,
    Mark
    File 1: this is the script library file
    script AR_Redeye
      -- IR Command URLs
              property outside_lights_ON : "http://..."
              property outside_lights_OFF : "http://..."
              on do_command(command_url)
              -- execute the url using cURL
                        set command_status to (do shell script "/usr/bin/curl -s -S  " & command_url) as string
              -- the url (when opened in a web browser) displays 'success' or 'fail'
                        return command_status
              end do_command
    end script
    File 2: The script that calls the handlers in the library file
    set arRedeye to load script (("Macintosh HD:Users:...:AR Redeye Class.scptd") as alias)
    tell arRedeye to do_command("http://...")

    If I may indulge you again, I've cleaned up the scripts according to your advice and made progress, but I am still receiving the following errors:
    Applescript Error:
    «script» doesn’t understand the do_command message.  (see below for where it occurs)
    I also get an error for referencing a property of the script object.
    Might you provide some insight as to why this is occurring?
    Still a little confused.
    Thanks,
    Mark
    =================================
    -- File AR_Redeye.scptd
    -- IR Command URLs
    property outside_lights_ON : "http://redeye..."
    property outside_lights_OFF : "http://redeye..."
    property all_AV_OFF : "http://redeye..."
    property airplay_all_rooms : "http://redeye..."
    on do_command(command_url)
      -- execute the url using cURL
              set command_status to (do shell script "/usr/bin/curl -s -S  " & (command_url as string)) as string
              return command_status
    end do_command
    -- End file
    ==================================
    -- Main Script File
    tell application "Finder" to set appPath to container of (path to me)
    set scriptPath to POSIX path of (appPath as text) & "AR Redeye Class.scptd"
    set arRedeye to (load script scriptPath)
    tell arRedeye to do_command(outside_lights_ON of arRedeye)
    -- the above line returns an error: «script» doesn’t understand the do_command message.
    -- also returns an error related to using the property outside_lights_ON of the arRedeye script object.
    -- Main Script File End

  • Error connecting to portal database using alias

    i am using Connector framework api to connect to portal database.
    in <b>visual administrator -> JDBC connector</b>. I click on <b>runtime</b> tab
    Under <b>Resources</b> i find <b>Data Sources</b> and <b>Drivers</b>.
    Under Data sources I see SAPSR3DB. In Main tab on right hand pane I find many other aliases called SAP/BC_UME and SAP/BC_WDDR etc. Which one do I use in creating a connection.
    IConnectorGatewayService cgService = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService("com.sap.portal.ivs.connectorservice.connector");
    ConnectionProperties cp = new ConnectionProperties(request.getLocale(),request.getUser());
    IConnection connection = cgService.getConnection("SAPSR3DB",cp);
    No system found for alias SAPSR3DB.

    Hi,
    If you want to use the PortalService IConnectorGatewayService you will have to create a JDBC System in the System Landscape of the Portal and create a System Alias with usermapping.
    You can then create a c connection to this JDBC System with the IConnectorGatewayServcie using the specified System alias.
    But if you want to directly connect to the System Database you can also use OpenSQL in your Portalapplication and lookup the Connection using JNDI:
          InitialContext ctx= new InitialContext();
          ds= (DataSource) ctx.lookup("jdbc/SAPSR3DB");
          java.sql.Connection conn= ds.getConnection();
    // user your connection here and close all jdbc objects finally!
    Best regards,
    Stefan Brauneis

  • Catalog manger "search and replace " using xml script

    Hi ,
    we have renamed 6 rpd columns names in rpd & alias is not removed yet .In catalog manager i can search and replace using string .But it takes lot time as they are stored in different reports , which are existing . I am trying to use xml script for replacing them.I got sample script from help file for single column . can anyone help for doing that for multiple strings.I will provide with my inputs .
    my inputs:
    <?xml version="1.0" encoding="utf-8"?>
    <actions>
    <action command="textReplace" oldValue="column 1 " newValue="column one" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 2" newValue="column two" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 3" newValue="column three" ignoreCase="true"/>
    </actions>
    please correct me .

    Given xml content looks okay but just in case check this oldValue="column 1 ", there is additional space at the end.
    I would suggest to extract Analysis report (.csv) using Catalog Manager and find out the list of reports based on those columns.
    This would help you learn with list of reports based on report owners, and then go for the fixing those reports.
    If you go by xml replace you never know the affected reports and you may not confirm until report owners come back to you with issues.
    This might take little bit time but your changes based on proper doc.
    Let me know updates, if helps mark
    Edited by: Srini VEERAVALLI on Feb 19, 2013 3:21 PM

Maybe you are looking for

  • ITunes won't open after moving to new PC; quicktime.cpl corrupt?

    I used PCMover to move my files and applications to my new PC. After this, iTunes 6 wouldn't open. I installed 7.0.2 over 6, but it won't open either. The process starts, then I receive a message saying iTuens has encountered a problem and needs to c

  • Upgrade  from 10.6.7 to 10.6.8 failed on MacBook Pro

    Sometime in the last 24 hours my wife's MacBook Pro (which she bought in December 2010) went through the automatic upgrades for (1) the Mac OS X Update to 10.6.8 and (2) Java for Mac OS X 10.6 update 5. When she tried to boot up her machine this morn

  • MY PASSWORD DOESN'T WORK ON APP STORE

      My pw doesn't work on App store, hlep me please.

  • Displaying Images (thumbnails & larger version)

    I am at a lost as to how to display images for my site. I want to display images in thumbnail format that have rollover to a larger version of that image. I also want the larger image to display on the same page next to the thumbnail. Also, what is t

  • Is the new OS update worth the effort ? ...

    Having a hard time updating my iPad to the OS 4. whatever version. What exactly are the benefits of the new version over the installed version that's already on the iPad? I like it and can use it for everything the way it is, but lots of people seem