Calling a page without the portal wrap

I have a portlet with a form in it.
The form:
<netui:form action="toggleFavourite" onSubmit="return toggleFavourite(this)">
If the user has JavaScript DISABLED, the form works like an ordinary form - the page submits itself.
If the user has JavaScript ENABLED, the "toggleFavourite()" function is called, which submits the form entirely in JavaScript by extracting the target of the form, and calling it in script. This means that the page doesn't have to be reloaded.
When using the non-JavaScript method, I obviously need the form to submit, and come back with my portal page, including the portlet I submitted from (i.e. exactly as it normally does in WebLogic portals).
Whe submitting using JavaScript, I don't need the response to include any of the header/footer/pages/other portlets - I just want to return the single page referenced by the Page Flow (i.e. the page specified in the Forward action).
Is there anything I can add/change in the URL that's submitted in JavaScript to specifically tell the portal server to ONLY return the content within the specific JSP referenced in the Forward action?
The reason I'm asking this, is that it's a lot slower pulling down the entire portal page, than it would be to just return that single portlet content.
I hope I've explained this clear enough, but feel free to ask questions.

Nearly there.
I can now generate a URL to the portlet, along with parameters to pass in. All that's left to do is trigger the action to make use of the parameters.
It's beginning to sound very much like a bodge job - like we're trying to do something that hasn't been catered for. I've actually managed to get something working now, using a different bodge. I want to call the current portlet, calling the action "toggleFavourite". I therefore now do this:
PortletPresentationContext portCtx = PortletPresentationContext.getPortletPresentationContext(request);
String paramName = portCtx.getInstanceLabel();
paramName += "_actionOverride";
String paramValue = portCtx.getPortletUri();
paramValue = paramValue.substring(0, paramValue.lastIndexOf("/")+1);
paramValue += "toggleFavourite";
StandalonePortletURL url = StandalonePortletURL.createStandalonePortletURL(request,response);
url.addParameter("_nfpb","true");
url.addParameter(paramName, paramValue);
String postbackURL = url.toString();
I then have a form elsewhere in the page, and use JavaScript to take the parameters from the form, and append them to the URL generated above.
It's working, but it's not pretty!
Sounds like 9.2 will be the only clean option.

Similar Messages

  • Calling another page in the portal

    Hi,
    I have created two pages p1 & p2 in Portal.
    I want to access p2 form p1 ,is there any way for that.if it is possible programitically ,I would appreciate some sample code.
    Thanks
    Ravi

    Hie
    You can do this bye placing a url component created in your DB provider or using the go method (go('Address');)in success event of your form portlet on the page or use the &lt;a href="page address"&gt;Link Text&lt;/a&gt; as your field in your sql report which you will place it in your page as a portlet.

  • Test PCUI without the Portal??

    Hi there,
    i have a question. I am not famliar with BSP applications. So i hope you can help me.
    We have the SAP CRM PCUI in our Portal.
    So i wanna test now the BSP Application without the Portal.
    I went to Content-Administration and in the iView of the PCUI
    There i can see such things:
    Applicationparameter: appl=CRMM_ACCOUNT&blview=ZMMB_V_ACC&sap-syscmd=nocookie
    Business Server Page (BSP) Application CRM_BSP_FRAME
    Startsite  entrypoint.do
    Then i go to the CRM on ABAP side and called the SE80
    There i found the package: CRM_BSP_PCF
    And in there the BSP Application: CRM_BSP_FRAME
    When i wanna test this Application a new window opens where i can choose the .do file.
    I choose the entrypoint.do
    The IE opens and a error occurs:
    No Application Was Transferred to the Framework
    Exception-Klasse CX_CRM_BSP_GENERAL
    Fehlername 
    Programm CL_CRM_BSP_FRAME_MAIN=========CP
    Include CL_CRM_BSP_FRAME_MAIN=========CM001
    ABAP-Klasse CL_CRM_BSP_FRAME_MAIN
    Methode DO_REQUEST
    Zeile 55 
    Langtext -
    So how can i test the application from the ABAP side?
    Can someone help here?
    Regards
    Edited by: Bjoern Bayerschmidt on Feb 16, 2010 8:27 AM

    Hi,
    This kind of error because of the inconsistency in the Field group customizng. Keep a breakpoint in the exception and back track to the class. Or keep a breakpoint in class CL_CRM_BSP_FRAME_DETAIL method READ_FIELDGROUP. Here you should be able to find the fieldgroup responsible for the exception. Later you can correct the fieldgroup. You can also run the consistency check for the suspected fieldgroup in trx crmc_blueprint.
    The best option is to identify the fieldgroups in the application where you are encountering the dump and then check the fieldgroups. In most cases, there is no issue with fieldgroup, it is more to do with layout generation. Please regenerate the layout for the field group.
    Please do let me know in case of any issues.
    Thanks & regards,
    Bhavya

  • Accessing a Collaboration room without the Portal masthead

    Hi,
    I have the URL to the Collaboration room I created.
    I want to provide the link to the room to the user and it should open in the same window.When Iam trying to open it in the samw window in the content area, I am again getting the  coll. room opened with the Portal masthead(welcome area,navigation etc.,).Is there a way to create a link to the room without the portal header?
    I assure to reward points to all those who help me.
    Thanks & Regards,
    Vasu.

    Hi Rabih,
    Finally, I solved it on my own.
    Here is the soln.,
    First create a copy of the Default framework page and edit it. Untick the visible checkbox for Portal masthead, toplevel navigation and detailed navigation.Save it.
    Create a URL for accessing this link like irj/servlet/pcd...
    Now coming to the coll. room URL, create a URL iview with the above URL and pass the Collaboration connector as parameter to the URL iview.
    It worked for me.
    If u need further clarification,mail me at [email protected]
    If the above answer is helpful, consider rewarding points.
    Thanks,
    Vasu.

  • How to delete a Page in the portal

    Hello gurus,
    Could you please tell me how to delete a Page in the portal?
    Thanks in advance for any helps.
    Regards,
    Niki Nguyen

    I've tried that procedure, but it keeps giving me a message below, so it won't allow me to delete the Page, what is the next step?  Please advice.
    MESSAGE:
    An error occurred. Objects could not be deleted.
    Objects in the selected folder or object are currently locked
    Thanks in advance for any helps.
    Regards,
    Niki

  • How can I print a Safari page without the links being printed and cover other text?

    How can I print a Safari page without the links being printed and covering other text?

    Try printing the page as PDF.
    From your Safari menu bar click File > Print > Save As PDF then print the PDF file.
    If you don't want to do it that way, reset the print system.
    Mac OS X: How to reset the printing system

  • Bug or feature : Using portlets with edit mode on a page in the portal

    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (or a
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portlet on
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons the browser
    can load.
    hope someone can help me out,
    Lodewijk

    Can you please post this question to weblogic.developer.interest.portal
    newsgroup.
    Thanks
    "Lodewijk Spijker" <[email protected]> wrote in message
    news:3f165945$[email protected]..
    Hi,
    i am using Workshop 8.1 (GA release july) and i have discovered a bug (ora
    feature) with respect to the beta version.
    i have created a simple portlet with a view mode and an edit mode. When i
    place the portlet on the very first page of a one book portal, it works
    perfectly. However, i have a book with three pages and placed the portleton
    the second page. Now when i put the portlet in edit mode, by clicking the
    edit button, i am directed to the first page of the portal and the portlet
    will not show.
    Inspection learned that the URL generated for the edit button, didn't
    contain the _pagelabel parameter. When i added the parameter manually it
    works fine.
    A final remark is that the buttons in the titlebar have no icons thebrowser
    can load.
    hope someone can help me out,
    Lodewijk

  • How to call required page after the am.invokermethod is called.

    Hi All,
    I have a serch page which search the table ABC and returns the results(Standard functionality). I results table will have update icon. Now when the update icon, i will pass param mid = 100, is clicked I need to check the table MST whether it has records with mid=100. If yes, i need to display the details by calling the MSTPG page. If no, need to call other page called MSTTEMPPG.
    So, How do i check the record exists in the table or not and call the appropriate page.
    If i use am.invokermethod(), it call the procedure and executes but this method doesnot return values.so that based on the return value i can call the required page.
    Thanks,

    Thanks Senthil for the response.
    I Just wanted to keep the question simple and that is not all the requirement.
    I know the switcher bean concept i'm sure that it may not meet my requirements.lets keep it a side.
    But sure the second point you mentioned. To redirect to page based on the return value should help me can you elobrate / how do i call a page from the AM.
    1) Does am.invokermethod() - returns a value.
    2) If no, The procedure AM invokes should have the redirect method - what is the method and how do i call the page from AM
    Thanks
    Ganesh.

  • List of pages in the portal

    Hi,
    Can anybody tell me how to get the list of all pages in the portal using.
    Thanks in advance.

    To access the DesktopDefinitionManager EJB, look it up in JNDI such as:
    import com.bea.netuix.application.manager.persistence.DesktopDefinitionManagerHome;
    import com.bea.netuix.application.manager.IDesktopDefinitionManager;
    import com.bea.p13n.management.ApplicationHelper;
    import com.bea.netuix.application.manager.CustomizationContext;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    // Access the DesktopDefinitionManager EJB
    InitialContext context = new InitialContext();
    String lookupName = DesktopDefinitionManagerHome.LOOKUP_NAME;
    String applicationName = ApplicationHelper.getVersionedAppName();
    if((applicationName != null) && (applicationName.length() > 0))
    lookupName = applicationName + "." + lookupName;
    Object home = context.lookup(lookupName);
    home = PortableRemoteObject.narrow(home, DesktopDefinitionManagerHome.class)
    IDesktopDefinitionManager portalManager = ((DesktopDefinitionManagerHome)home).create();
    The DesktopInstanceManager is in the PortalCustomizationManager EJB-- this can be accessed using the same code as above, but replacing "DesktopDefinition" with "PortalCustomization" everywhere.
    Kevin
    Edited by: kfrender on Jun 5, 2009 9:08 AM

  • Is it possible to right down comments directly on a page without the sticky notes?

    Is it possible to right down comments directly on a page without the sticky notes?

    However, you will be able to do this with updates to iOS 5 which will be released this fall. You will still have to use your computer to update to iOS 5, but all incremental updates after that will not require your computer.

  • Can i call a Workbook trought the portal?

    Hi all,
    i have to call a workbook trought the portal, when i put the workbook en in the Rol, this just can be seen from the Browser. but im the portal doesnt appear,  now my task is put these reports (workbooks) that the users can execute them trought the portal, how can i do this? help

    this is what i got and what i need,
    i got a web template like a panel buttons, where behind each button is a web report,  but there is one report that is needed in a workbook,  i got the button for this report, the problem is how can i call this workbook trough the web template???
    trough javascript???
    trough html???
    trough FM ??
    i got a FM RSAH_LAUNCH_EXCEL , this FM just need the ID WORKBOOK and ID QUERY, this can fixed because this button is for this report, but now what can i do to make this...., help

  • You have attempted to access a secure page without the appropriate authorization. I have used this website every week and today received this error message. I can access it with Internet Explorer.

    I received an error message after attempting to log in to a website. Access prohibited. You have attempted to access a secure page without the appropriate authorization.
    I access this website at least twice a week and now I get this error message. I am able to access this website through Internet Explorer. Is there something I can do to fix this problem, so I can use Firefox?

    Maybe:<br />
    Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852

  • A fu the whole page without the need to drag higeach tune ?

    To drag a full page if itunes to a playlist is it possible to highlight the whole page without the need to highlight and drag each tune by usinf Ctrl?

    CTRL+A, or Edit > Select All. 
    Either one will highlight everything in the current view, after which you can drag them all at once.

  • How to directly insert pictures inside a wiki page without the need to enter the picture's properties

    I am working on a publishing site collection using the enterprise wiki template. Add when I want to add a new Picture from my Pc to the wiki page, I will be prompted with the following dialog:-
    So can anyone advice how i can bypass this dialog and directly add the imag to the wiki page?
    i tried modifying the "Images" content type by hiding the above fields, but still i will be prompted to enter the following :-

    Hi,
    According to your post, my understanding is that you want to directly insert pictures inside a wiki page without the need to enter the picture's properties.
    Per my knowledge, you can use javascript to bypass Edit Properties Page while uploading pictures.
    Here are some similar articles for your reference:
    How to bypass Edit Properties
    Page while uploading documents in a document library
    How to bypass Edit Properties Page while uploading documents in a
    SharePoint and .NET: How to bypass Edit Properties Page or Skip EditForm.aspx Page while uploading documents in a document library
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    I attached a .doc file to the message and it appeared as an icon, so I did not have to convert it. I attached a .jpg image — it appeared as a full image, but when I Command+clicked the image, the view as icon window did not appear on the screen. Likewise, I again checked the Mail Menu Bar, and did see 'View as icon.' Side note: I routinely use Mavericks Mail in Classic Mode, so I decided to try both modes. Same results in both modes. I checked my Mail Preferences, but couldn't find anything there, either. I'll continue to look around, but this has me stumped. Thanks for your assistance.  

Maybe you are looking for

  • Any Way to Show All Reminders in Notification Center?

    I am wondering if anybody can help me here. I keep a list of ongoing items in the Mac Reminders App. However, since I typically don't assign an Alarm/Reminder to these items, they do not show up in the Mac OS X Notification Center. I'm wondering if t

  • ADF How to Download BLOB File from Database Column

    Hi, We have one blob Database Column in which we use for storing attachments(eg Image,.doc or.zip) . We are able to upload attachments. How can I build page which will access that particular record and will be able to download attachment in it. It sh

  • Can't post pics on forum with firefox but can with Internet explorer

    I can't post pictures/images on a certain forum when using firefox but when using Internet explorer on the same forum it works. Any solutions please?

  • Creating CUBE through OLAP DML

    Hi We have a relational database in which we had build cubes . Now we want to convert this into multi dimensional database format . Is it possible to make cubes through OLAP dml and are these cubes accessible via OLAP access packs . Amar

  • Crystal Reports and APEX

    Hi all, I am developing a consignment tracking application with Application Express. So far the user can create new consignments and track existing ones. Now some of our customers wants to print vouchers. Because they are used to Crystal Reports they