Portlet Header action Refresh

I have created my first JSR-168 portlet and consumed it in the JSF page. Everything looks good with my AJAX stuff except my JavaScript does not get called when clicking on the "Refresh" action from the portlet header menu. My portlet calls the JavaScript when the page loads. It works correctly when I reload the entire page as well. However, when I use the portlet header to refresh, the script does not get called, and therfore, does not dispaly HTML content. What am I missing? Is there somewhere I need to tell in the code to call particular JavaSriipt for this action?

I have JavaScript triggered by the onLoad event. Whatever the "Refresh" action triggers, I need to kick off my JavaScript the same way as onLoad event. I just do not know where to make the connection between refresh action and my JavaScript call to the onLoad event.

Similar Messages

  • Portlet header

    I have created my first JSR-168 portlet and consumed it in the JSF page. Everything looks good with my AJAX stuff except my JavaScript does not get called when clicking on the "Refresh" action from the portlet header menu. My portlet calls the JavaScript when the page loads. It works correctly when I reload the entire page as well. However, when I use the portlet header to refresh, the script does not get called, and therfore, does not dispaly HTML content. What am I missing? Is there somewhere I need to tell in the code to call particular JavaSriipt for this action?

    I have JavaScript triggered by the onLoad event. Whatever the "Refresh" action triggers, I need to kick off my JavaScript the same way as onLoad event. I just do not know where to make the connection between refresh action and my JavaScript call to the onLoad event.

  • How to add links to portlet header ?

    I want to add a print link to the portlet header, along with Customize, Help, About etc
    Is there any way to do this ? (Using PDK, java or pl/sql)

    Andrew,
    From web providers' perspective, you should be able to do this. Constructing the portlet header involves constructing the title link & then adding the action parameter links for all the modes that have been enabled using the provider.xml. The title part is constructed by the method renderTitle() in oracle.portal.provider.v2.render.DefaultContainerRenderer while action parameters (i.e. "Customize","help" etc) are rendered by renderActions(). This method internally invokes renderAction() which by default would render the locale specific text for that mode. So to fulfil your requirement you will have to create your own Container Renderer by extending the DefaultContainerRenderer and overriding the method renderActions() to incorporate one more link on the header.
    Having said that, all the links on the portlet header are mapped to a unique mode. I don't think that you should be creating a new mode for this (would involve extending a lot of JPDK framework classes), but am not aware of how the flow will happen once the "print' is clicked by the user. Perhaps, JPDK gurus can throw some light on this.
    Regards,
    Abhinav

  • Changing Portlet header text dynamically

    I trying to change the Portlet header text depending on the value of a selected page parameter. e.g. I selected the FTSE 100 stocks link on a page and I want the portlet to display the list of stocks and the banner to say "FTSE 100" similarly if I pick the NASDAQ link I want the same portlet to list the NASDAQ stocks and the banner to say "NASDAQ". I have the stocks changing using dynamic pages and page parameters but I can't seem to get at the portlet banner title variable. I working on the latest portal release.

    Hi Lisa,
    It just so happens that the "Portlet Wizard" in JDeveloper creates the default edit view to modify the page title. Here is the code it created:
    <pre>
    // Get the PortletRenderRequest and Writer
    PortletRenderRequest pr = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    PrintWriter out = pr.getWriter();
    // Display a greeting
    String userName = pr.getUser().getName();
    out.println("<p>Hello " + userName + ".</p>");
    out.println("<p>This is the <b><i>Edit</b></i> render mode!</p>");
    // Customize the portlet title
    String actionParam = PortletRendererUtil.getEditFormParameter(pr);
    String action = request.getParameter(actionParam);
    String title = pr.getParameter("filebrowse_title");
    NameValuePersonalizationObject data = null;
    try
    data = (NameValuePersonalizationObject)PortletRendererUtil.getEditData(pr);
    catch(AccessControlException ae)
    throw new ServletException(ae);
    catch(PortletNotFoundException pnfe)
    throw new ServletException(pnfe);
    // Cancel automatically redirects to the page, so
    // will only recieve OK or APPLY
    if (action != null)
    data.setPortletTitle(title);
    try
    PortletRendererUtil.submitEditData(pr, data);
    catch(AccessControlException ae)
    throw new ServletException(ae);
    return;
    // Otherwise just render the form
    title = data.getPortletTitle();
    out.println("<table border='0'><td width='20%'>");
    out.println("<p align='right'>Title:</p></td><td width='80%'>");
    out.println("<input type='TEXT' name='filebrowse_title' value='" + title + "'>");
    out.println("</td></table>");
    </pre>
    I hope this helps!!!
    -Sean

  • How can I add an image above my portlet header ?

    Hi,
    Currently I am writing a portlet.I would like to add an image above the portlet header just like the standard portlets have.
    Does somebody know how I should realise this ?
    thanks
    Jerome

    Please take a look at FAQ at: http://technet.oracle.com:89/cgi-bin/ubbmisc.cgi?action=getannounce&ForumNumber=66&Start=2451891.99&End=2452276&Session=

  • Portlet Header Customization

    Is it possible to substitute icons for the text specified in the portlet header for help, about, etc.?
    If yes, how is this accomplished?

    Hi,
    Its possible to replace the default text items like "Customize", "help" etc. with images in the rendered portlet. The above texts are a part of the portlet header that gets constructed by the Portlet Container. Constructing the portlet header involves constructing the title link & then adding the action parameter links for all the modes that have been enabled using the provider.xml. The title part is constructed by the method renderTitle() in oracle.portal.provider.v2.render.DefaultContainerRenderer while action parameters (i.e. "Customize","help" etc) are rendered by renderActions(). This method internally invokes renderAction() which by default would render the locale specific text for that mode. So your requirement is to change the default behaviour of this method to render images as links for respective modes in place of the default text.
    You can achieve this by creating your own Container Renderer by extending the DefaultContainerRenderer and overriding the method renderAction(). While implementing the method, you can use a switch construct to add different images for different modes.

  • Portlets don't refresh sometimes...

    Hi,
    When I first deployed a new WSRP portlet, it worked. However, when I redeployed it and went to view it on the portal page, it wouldn't refresh. I put that aside to work on something else (it's been almost a week since then), and today, magically, I redeployed the portlet numerous times and it refreshed without any problems! However, then I had to add some libraries to my portlet provider instance and restart it, and now portlets aren't refreshing again.
    Any ideas what could be happening? I've even tried refreshing the portlet repository and restarting the entire set of app server instances (via Restart All) and that didn't help. It's not browser cache either.
    Thanks,
    -mm

    Well my experiance is that I dont have to refresh the provider everytime.
    I have got my development environment setup like this:
    My pc running JDeveloper
    test server A running OC4J
    test server B running Oracle Portal
    From my pc I deploy to test server A, on test server B I added a remote provider. I only
    need to refresh this if I edit something in the provider.xml. If I change some java code in my
    portlet All I need to do is deploy it to test server A.
    But this is all for PDK, not JSR168, not sure where WSRP fits in, its calling portlets remotely,
    but what standard is it.
    And about adding libraries, I've also done that, adding libraries to my OC4J server. You'll need
    to restart the instance to get the libraries loaded. Btw, you can also check your instance logfiles.
    On my first try adding libraries I discovered through the log that I put them in the wrong path.

  • SSL web service task SOAP header Action was not understood..

    Hi all,
    While I create  web service task to consum a wcf service using SSL and execute the task it give the following error: But the same WCF service is deployed in nonSSL (basicHTTPBinding) , it works well and the results are received. Could any one suggest
    what is missing?
    Error: 0xC002F304 at Web Service Task, Web Service Task: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: The Web Service threw an error during method execution. The error is: SOAP
    header Action was not understood..
     at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
       at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
       at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
    Task failed: Web Service Task
    SSIS package "Package.dtsx" finished: Success.
    Regards
    Venkatesh G

    Can you provide more information? Are you using BasicHttpBinding with transport security? If you access the service from a console client instead of SQL Server Web Service Task, does it work?
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    If you have feedback about forum business, please contact
    [email protected] But please do not ask technical questions in the email.

  • Removing customization link from portlet header.

    Hi,
    Could u suggest me out of the 2 ways to remove customization link from portlet header.I am using the default stock prices portlet in my page.
    Where and how should i change the provider.xml file.
    If not this how can I setShowEdit(False) which is one of the methods in MutablePortlet interface.How can i find this code related to Stock portlet.I mean where can we have access this code where the provider API's are used for some of the readymade portlets that oracle provides.
    I am using release 1 of oracle portal.
    Thanx
    Vipul

    Hi,
    I see two things that you could try :
    first try to set the security level at the portlet level, then allow users to display your portlet, not to customize it. I know it's possible with tabs, maybe it can apply to you.
    Else you also can modify the package of your portlet (or the provider.xml file if it's not the package). You should read the pl/sql code and find the variable concerning the customization link in the rendering part. It may be set to 'tru', just set it to 'false' and recompile.
    I've done it when installing some portlets and it works : that way I could translate the portlet in franch, remove the help link, remove the detail link, and so on...
    Hope this helps,
    Gael.

  • "SOAP header Action was not understood."

    Guys ,
    I am trying to get the UserProfile Details from a SharePoint Server that is configured to use https and NTLM authentication. I am doing this within a Windows Form Application on MS Visual Studio 2010.
    I am using the following custom binding:
    <customBinding>
    <binding name="Service1Binding">
    <transactionFlow />
    <textMessageEncoding />
    <httpsTransport authenticationScheme="Ntlm" />
    </binding>
    </customBinding>
    And as for the end point it is:
    <client>
    <endpoint address="https://<ServerLocation>/userprofileservice.asmx"
    binding="customBinding" bindingConfiguration="Service1Binding"
    contract="UserProfileService.UserProfileServiceSoap"/>
    </client>
    My code for making the connection is:
    UserProfileService.UserProfileServiceSoapClient client = new UserProfileService.UserProfileServiceSoapClient();
    client.ClientCredentials.UserName.UserName = "<UserName>";
    client.ClientCredentials.UserName.Password = "<Password>";
    client.GetUserProfileByName("<User name to serach for>");
    I keep getting the exception: "SOAP header Action was not understood"
    I am new to WCF and would appreviate if you could point me to the source of the problem.
    Thanks
    Jamil

    Hello, what SOAP version does the service use? Try to configure textMessageEncoding.messageVersion to either Soap11Addressing10 or Soap12Addressing10 to see if the problem is solved.Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    Windows Azure Technical Forum Support Team Blog

  • Portlet header vs Page header

    I'm working with a report that I have displayed in a portlet,
    actually, the customization form is displayed in a portlet. I
    want to display the resulting report in the same portlet, but
    since that looks to be pretty difficult, I'm willing to settle
    for showing it in a new page. But, I'd like to have the same
    type of header on the report results page. If I set the user
    interface for the report to have a header, the report
    cutomization form will also have that interface inside the
    portlet which just looks stupid. Can someone tell me how I can
    get a different interface, or at least a different header, or no
    header, on a report customization form in a portlet while having
    a header on the report itself in its own page?
    I'd appreciate any thoughts that someone has on this.
    Nate Baxley

    The page style allows you to define only one color for the portlet header. You could try adding some HTML portlets to your page that override the style used for the portlet header.
    Regards,
    Jerry

  • Portlet header title as a link

    Is it possible to make portlet headers title as a link and would be defined with my chosen URL?
    I've noticed that linking (whwn editing region) is used only for Customize, Help, About, Collapse/Restore...

    You can achieve this if you create portlets programmatically. When you draw the portlet header you can specify what links are available from that header (i.e. details/title, customize, help, and about).

  • How to make portlet header not clickable?

    Hi,
    I published a page as a portlet and placed it on another page. I enabled the region where the portlet resides in to show the portlet header. Now I found out that if I click the portlet header, the orignial page of the portlet is shown. I don't want to show it to my users, but do want to keep the portlet header and make it non-clickable. Is there a way to do that? Any help will be appreciated.
    I'm using version 10g.
    Thanks,
    Yaxu

    Hi,
    You have to disable the "Show Details Link on Portlet Header" box for the region where you display the page as portlet.
    It's at the end of the "Edit Region" Main page where you can set which links you want to display.
    Alex

  • OSB set cookie with Transport Header action

    I am trying to set a cookie using the Transport Header action in the OSB. The thing is that it seems to need some special format?
    When I trying to set a simple cookie with params like: Defined:http,cookie with value xs:string('test') it returns a General runtime error: error: Unexpected element: CDATA.
    I tried looking for an example of someone setting a cookie using this but I can't find anything!
    Can anyone enlighten me on how this functionality works?
    Best regards!

    I'm still confused. The Transport Header seem to want a cookie-values xml so I created a variable which holds my cookie like this:
    <http:cookie-values xmlns:http="http://www.bea.com/wli/sb/transports/http">
         <http:value>MyCookie=%7BBC09751C%2D1F79%2D45A7%2DBC8E%2D3865D71A1888%7D</http:value>
    </http:cookie-values>If I insert my variable into the header, the callout works but when I look in the outbound it seems to flatten the xml into this:
    <tran:headers       xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
         <tran:user-header       name="Cookie" value="MyCookie=%7BBC09751C%2D1F79%2D45A7%2DBC8E%2D3865D71A1888%7D"/>
         <http:Content-Type>
         application/soap+xml; action="http://www.mycomp.com/Login"
         </http:Content-Type>
         <http:Cookie>
         &lt;http:cookie-values xmlns:http="http://www.bea.com/wli/sb/transports/http">
      &lt;http:value>MyCookie=%7BBC09751C%2D1F79%2D45A7%2DBC8E%2D3865D71A1888%7D&lt;/http:value>
    &lt;/http:cookie-values>
         </http:Cookie>
         </tran:headers>Only the http:cookie-values tag is colored black so i suspect there is a CDATA in front of it of some sort but it looks like it adds a user-header with the same value which looks correct!
    Can anyone tell me how this works?
    Edited by: 860367 on 14-feb-2012 15:56
    Edited by: 860367 on 14-feb-2012 15:59

  • Help with an action refreshing script

    Hi,
    Ive been compiling a script to remove specific actions and load them up again. I work in a team where the action sets are updated regulary and this will make it easier to refresh. The script works great when run from the extendscript, but when called from a photoshop action it can remove the specified set but then does not load it up again. It throws no errors or anything.
    Below is the script, any help or ideas would be much appreciated!
    var checkstat = false;
    var w = new Window ("dialog", "Action Refresh");
    var stringOptions = [];
    stringOptions[0] = "EFFICIENCY";
    stringOptions[1] = "BANNERS & TEMPLATES";
    var imagename = w.add ("statictext", undefined, "Please select the action set you would like to refresh.");
    w.dropdownlist  = w.add("dropdownlist", undefined,"Baseline");
    var item
    for (var i=0,len=stringOptions.length;i<len;i++)
      {item = w.dropdownlist.add ('item', "" + stringOptions[i]);     
    w.dropdownlist.onChange = function() {
       //Save the selected value in a variable to be used later
       checkstat = stringOptions[parseInt(this.selection)];
    w.dropdownlist.selection = w.dropdownlist.items[0] ;
    w.buttonGrp = w.add ("group");
    var cancelbutton = w.buttonGrp.add ("button", undefined, "Cancel");
    cancelbutton.onClick = function() {   
       w.close(0);
        checkstat = false;
        return checkstat;
    w.buttonGrp.add ("button", undefined, "OK");
    w.show();
    if (checkstat == false){}
    else{
    try{
    delAction(checkstat); //Delete a specific action based on its name
    catch(e){}
    app.load(File("Z:/Editing/Actions & Templates/SITECORE/RETOUCHING ACTIONS/" + checkstat + ".atn")); //Load the action based on it's name from a pre-specified path
    function delAction(aName) {
        var idDlt = charIDToTypeID( "Dlt " );
        var desc1 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        var ref1 = new ActionReference();
        var idASet = charIDToTypeID( "ASet" );
        ref1.putName( idASet, aName );
        desc1.putReference( idnull, ref1 );
        executeAction( idDlt, desc1, DialogModes.NO );

    So can you suggest what I should do to get the following outcome?  I am new to this...
    I need the fields for Listing Agent Commission and Selling Agent Commission.
    If Listing Agent is checked, need $35.00 deducted from Listing Commission Share to make the Listing Agent Commission.
    If Selling Agent is checked, but listing agent is not, I need the $35.00 deducted from Selling Commission Share to make the Selling Agent Commission.
    If Both are checked, I only need the $35.00 deducted from the Listing Commission Share, and the Selling Commission Share should Equal the Selling Agent Commission.
    If neither are checked, both fields should be 0.00.

Maybe you are looking for

  • I "have" to buy a remote just to watch a DVD from my new iMac?

    I can't even play a DVD on my new computer? I tried to look up "Front Row" tutorial on Apple's site. Well, I get over 230 topics, none of which relate to the "Front Row Application". This is pretty upsetting if I have to buy extra equipment just to w

  • Help need on find

    Hi All, I am new to Unix. I have a requirement to find a Particular word "HTTP" or "URL" or "WEBSITE" in unix box. There are n types of files which can have these words. i am able to do this using find . -exec egrep -il "HTTP" '{}' \; or find . -exec

  • Change outgoing mail subject

    Hi Guru's, I need to change the subject of the outgoing standad mail template dynamically by the comlaint id which i get it through the refernce field of the mail. or is there any way through which the refernce id can be copied in the mail subject. T

  • I have several firefox "temp" files in my Windows file (using Vista). Most are .txt files. Can I delete them?

    Most are titled as KB2898...

  • Got leopard 10.5.4, But wont INSTALL!!!!!

    I got leopard today. its 10.5.4 and i restarted it and it made me choose a language and i chose it and then it said that it couldnt install. i know i meet the requirements i talked to apple many times to check. i bought it off of ebay and the guy sai