Implementing Navigation within a Portlet (2) - Shorter

Good morning again,
I think that my previous post was too long. So a quicker question:
Is it possible to develop a pdk java based portlet which:
- collects data from the user using a form and processes them?
or is it necessary to have two portlets, one for the form and the other one that retrieves data from the form and process them?
I think that has to be possible using only 1 portlet, so I developed my portlet in this way:
- the form with the submit button calls a jsp file, where there is the java code to process data BUT this solution works only if I deploy my portlet using the OCJ4 and my localhost: when I try to deploy the same portlet on the portal, it doesn't work: when I push Submit, I receive the error message 404.
So I thought that the problem was the impossibility to access at the second file (called simply in the action form tag as action="path/SeconFile.jsp".
For this reason I started to study how to implement navigation in portlet and I studied the examples of Thesaurus. But from those examples I didn't understand if it's possibile to use only one portlet or two protlets. The same problem with events: if I understood well, I can associate an event to the Submit button; when I push it, I can pass the event outputs (which are the user data collected with the form, in my case ) to the page parameters of another page (fired by the event) and these page parameters can be passed to the portlet parameters of a new portlet in this page which processes the data.
Many thanks again for your help,
Barbara
Edited by: Barbie_83 on Jan 28, 2009 1:24 AM

One portlet with two jsp-files in htdocs/myPortlet/ folder
FirstFile.jsp is show page for myPortlet. It contains form with hidden parameter.
Its value may be set to "htdocs/path/SecondFile.jsp"
SecondFile.jsp will be shown after form submitting
And don't forget to add pageParameterName to provider.xml

Similar Messages

  • ER - Problem with ADF Faces filter when running ADF Faces within a portlet

    I am attempting to get ADF Faces to run within Oracle Portal, i.e. within a portlet using the JPDK.
    This, I am sure you are about to tell me, is not something that is fully supported, as yet.
    However, I have been successful in getting MyFaces to run within a portlet, by customizing the form tag.
    MyFaces, it seems, keeps track of the current viewid by storing it in the session, then uses this within the viewhandler and navigationhandler to determine the next view to load, based on the faces-config.xml navigation entries.
    By customizing the form tag it is then possible to retrieve this viewid from the faces context and outputting it in the form's action parameter.
    It is also possible, with a few more customizations, to run JSF RI within a portlet, i.e. by adding a custom viewhandler and loading a session variable with the current viewid from the faces context, then retrieving the viewid and outputting it as the action string in the customized form tag .
    Unfortunately there does not appear to be any way of getting ADF Faces (EA19 version) to run as a portlet, with either the RI or with MyFaces.
    I have configured a basic .jspx document in the <showPage> tags of the provider.xml file.
    This uses only the form tag and a few input tags and works when executed directly within my portlet project in JDeveloper (http://localhost:8988/TestJSFAppContext/faces/htdocs/facesportlet/index.jspx) using a redirectfilter (*.jspx htdocs -> /faces/htdocs).
    It is not possible to run ADF Faces with RI as a portlet since customization of the ADF Faces ViewHandler appears not to be supported.
    When attempting to run this with MyFaces as a portlet, however, I get the following message:
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl verifyFilterIsInstalled
    WARNING: The AdfFacesFilter has not been installed. ADF Faces requires this filter for proper execution.
    I am having difficulty in understanding as to why this is happening but am guessing it must be something to do with either redirect URLs or due to the .jspx files being under /htdocs, i.e. the ADF Faces renderkit is checking that the ADF Faces filter is configured but the check fails since the filter does not execute.
    I have configured the filter in web.xml, as detailed in the documentation:
      <filter>
        <filter-name>adfFaces</filter-name>
        <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>adfFaces</filter-name>
        <servlet-name>ADF Faces Servlet</servlet-name>
      </filter-mapping>
    <servlet>
        <servlet-name>ADF Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>ADF Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>and have modified the provider.xml file as follows:-
          <renderer class="oracle.portal.provider.v2.render.RenderManager">
             <renderContainer>true</renderContainer>
             <renderCustomize>true</renderCustomize>
             <autoRedirect>true</autoRedirect>
             <contentType>text/html</contentType>
      <showPage>/faces/htdocs/facesportlet/index.jspx</showPage>        
             <editPage>/htdocs/facesportlet/FacesportletEditPage.jsp</editPage>
             <editDefaultsPage>/htdocs/facesportlet/FacesportletEditDefaultsPage.jsp</editDefaultsPage>
          </renderer>with the following tags also set:
       <session>true</session>
       <passAllUrlParams>true</passAllUrlParams>In order to ensure that the session stays alive so that the views are retrieved.
    As I say, the page loads OK when run directly within the JPDK project within JDeveloper, with a redirect filter (*.jspx -> /faces/*.jspx) but not when run from within Oracle Portal.
    In fact I have found that this filter is very sensitive, i.e. ADF Faces will not run in any project unless the configuration is exactly as above.
    It seems that the MyFaces team have got around the problem of maintaining session state with redirections but that ADF Faces needs the page URL that is passed in to the filter to be consistent.
    Is there some way around this, i.e. some kind of customization that I can implement to get the filter working?
    Thnks

    I have found a way to go round the problem.
    I use the servlet 2.4/jsp 2.0 route and then
    change the web.xml header to the servlet 2.3/jsp 1.2
    format. Everything then works fine after this!
    Please fix this for production.
    Behnam

  • Exposing a Form-Driven Web Application within a Portlet

    Hi All,
    I'm having a bit of a problem exposing a form-driven Web-Application within a portlet window.
    The web-application I'm working with utilizes the Oracle XSQL servlet and is basically a collection of .XSQL pages which are formatted using .XSL stylesheets that produce output HTML for the client.
    The application contains hyperlinks for navigation, but is largely Form driven.
    The application has already been deployed into an Oracle Application Server 10g container as a J2EE object(.ear file), and is fully functional and accessible over the web.
    In order to expose this application thru a Portlet window I utilized the Url-based provider services that come with the Oracle PDK. This allowed me to set up a simple URL-based provider for the site without any coding whatsoever. I also included inline rendering declarations to force the application response to be rendered within the Portlet window.
    This setup works fine when only hyperlinks are used to navigate thru the application, however, Forms do not appear to work with this setup. Everytime a form is submitted, the data is posted to the Portlet which fails to pass it thru to the underlying web application. Instead the Action="somepage.xsql" parameter is appended to the URL of the Portal itself thus returning a "page not found",etc... error.
    After much OTN searching I have found that the PDK 10.1.2 URL services package does not support Forms for inline rendering. Thus this solution comes close but falls short of what I need.
    I was wondering if anyone can point me to a solution that would:
    1) allow me to display the entire web application within a Portlet window (app only outputs HTML & some client-side javascript, but takes POST requests to the XSQL Servlet)
    2) without modifying it's current Form-driven interface, or any of the application's underlying code for that matter,
    3) and without having to resort to java coding the Portlet interface.
    The URL-Based Provider setup is almost perfect, I just need to find a way to allow forms to pass thru to the underlying application so that it's response can be rendered correctly.
    Current Setup:
    Oracle Application Server (Portal & Wireless) 10.1.2g
    J2EE with OC4J_containers.
    Oracle XSQL Servlet (ver 10)
    Windows 2000 OS

    I tried that, the default "Base URL" provides the "Display Option" attribute but only gives me these 2 options:
    - Full browse window link
    - New browser window link
    I have also tried other items that use "Base URL" (Simple URL, UrlItem, URL) and are all the same thing. The only items I could find (relevant to this need) and provide the option "Item displayed in page area" were:
    - "Page link" item
    - "External Application" portlet
    I even created a fresh Instant Portal to recreate the defaults and add the URL item again, but nothing :(
    Edited by: stics on Apr 29, 2010 4:52 PM

  • Opening a web site within a portlet

    Does anyone know how to open a www link within a portlet?
    Bob Christian

    You would need to use Adaptive Portlets to do that:
    http://www.plumtree.com/edoc/index.asp?pagename=Customizing/Portlets/Adaptive_Portlets/Patterns/Trail_Portlets_AdaptivePortlets_Patterns.htm
    Take a look at the Inline Navigation and Inline Post examples.

  • Can a BC4J-JSP App live within a Portlet

    I've read the posts AND the docs AND still do not have a clear idea if a BC4J-JSP application can live within Portal. I DO NOT WANT to click on a link from Portal and open a * NEW * window, I want the BC4J App to be contained within the Portal.
    Can anyone from Oracle Portal answer this **** AND *** can you show a working example of a BC4J application. HelloWorld.jsp is not a multi-page application.
    Thanks,
    Bill G...

    Hi Bill,
    1. Yes, you can access the userid from your partner app.
    2. Do you want to make your code appear on a portal page, and re-render it within the portlet container, rather than have your application replace the portal page? If this is what your question is, then:
    a) You may run your app in an iframe as Subramanyam has recommended. The first issue with this: ns 4.x doesn't support it. The second one, the request is sent to your app from the browser iframe, it doesn't go through the parallel page engine, thus your application is not being cached along with the page. Also, end users can't access a particular page of your application, they can only bookmark the portal page, which will always display the initial page of your application.
    b) You can run your app as it is, taking advantage of the renderers of PDK, capable to render JSPs. In this case, you need to modify your code, at least the links and forms, so that the portal page URL is used as the target url (extra parameters appended to it, or implemented in hidden fields).
    You find a sample portlet (Flights of Fancy External Application) implemented as a partner application in the PDK.
    This is a PDK article worth to check out: Using PDK-Java to Integrate a Partner Application with Oracle9iAS Portal (V2)
    And finally, you find the Administration Guide, the Appliation Developre's Guide, and the API Reference in the Oracle9iAS Documentation Library under Oracle9iAS Single Sign-On on the Management and Security tab.
    Peter

  • Navigation within a pop-up window.

    Hi,
    I have a question regarding navigation within a pop-up window.
    The pop-up window is generated as below, the component usage is defined in the runtime repository for the main window.
    lo_contracts_popup     = comp_controller->window_manager->create_popup(
        iv_interface_view_name = 'TEST_REPS/MainWindow'
        iv_usage_name          = 'RepsList'
        iv_title               = lv_reps_otr ).
      lo_contracts_popup->set_window_width( '800' ).
      lo_contracts_popup->set_window_height( '500' ).
      lo_contracts_popup->open( ).
    Within the component, there are two views defined and assigned to that window.  If the component is tested by itself navigation is possible in the usual manner using a navigational link,  clicking the button calls the outbound plug, then the inbound plug then the bsp page and then the screen changes to show the new view, this uses the following code
    CALL METHOD op_toamendrep( ).
    Then in the outbound plug:-
      me->view_manager->navigate( source_rep_view = me->rep_view
                                  outbound_plug   = 'ToAmendRepresentative' ).
    However when the same chain of events is actioned in the pop-up, the navigational link is called the plugs are called and the associated BSP code is run through in the debugger, but the actual screen in the pop-up window is still shows the first view, not the second as we would expect.
    Can you please help me to resolve this issue?
    Thanks in advance,
    Gareth Smith

    I had the same issue and I found turning off safai extensions fixed the issue.  Must be an extension that's causing this problem.

  • Response.write within a portlet

    response.write does not work within a portlet.
    is there a custom tag that allows this?
    -- in dire need of help.asap.

    Saad,
    Can you explain what you are trying to accomplish? Thanks.
    russ
    "saad" <[email protected]> wrote in message
    news:[email protected]..
    response.write does not work within a portlet.
    is there a custom tag that allows this?
    -- in dire need of help.asap.

  • Urlservices - possible to stay within the portlet for links?

    I've installed urlservices and managed to get a Perl/CGI-based
    application to show up in a portlet. Sofar so good...
    But I don't like what happens when a user clicks a link inside
    the portlet. The browser is either opening the target url in a
    new browser window or going to the specified url in the same
    browser window - depending on the
    <convertTarget>true/false</convertTarget> in provider.xml.
    I ideally want the CGI application to stay within the portlet!
    Is there any way to do that??

    Hi Mats,
    Inline rendering of portlet links has been enabled in December
    release of URL Services. For more information see release notes.
    Hope it will serve your need.
    Regards,
    Amjad.

  • Calling a Servlet from a JSP within Portal Portlet

    We've created a JSP that calls a Servlet when the form is submitted. The servlet handles the request, does some basic processing and then forwards back to a JSP. This works fine outside of Portal.
    What needs to be done in order for this to work within a portlet in Portal? We can get to the first JSP which is in a portlet, but as soon as we click the submit button (which tries to call the servlet) we get the basic page not found error. We need to click the button, go to the servlet and have the servlet forward back to our portlet.
    I know this is not the ideal way of using Portal however...
    Any ideas?
    Thanks!
    -Teri Kemple
    [email protected]

    I was wondering is there any way I can call a servlet from jsp? There are two scenarios here
    1 - if the jsp is currently being executed/evaluated on the server, then you can use <jsp:include> to "call" a servlet, or <jsp:forward> to cancel the jsp and transfer the control to the servlet.
    2 - if the page is already loaded and running in the client, then the only way to call a servlet is making a HTTP request as from any other html page. Jave code does not execute on the client, so you have to use html/javascript at that point.
    Calling a servlet within another servlet.
    lets say one servlet maintains all dynamic html. I call this servlet from another servlet to create a dynamic page and then insert values into it.Close, but the standard pattern is the reverse of that. What normally happens is you retrieve the values to put in the page, and then call the page, passing in those values. Thats why often you get a servlet/actionbean getting called, which then forwards to a JSP to display the result. The servlet/bean loads all the values required into scope, and then the JSP presents the data.

  • Calling struts application within a portlet

    Can anyone explain step wise procedure to call struts application within a portlet.or refer any tutorial for this.

    Amir,
    this might be because you are using the plain struts taglibs. you should use the pdk-struts taglibs. more specifically, you should use the pdk-struts-html taglib instead of the struts-html lib, as the latter renders URLs for a struts application whereas you need portal-enabled urls, which are provided by the pdk-struts-html lib.
    You can either change the taglib reference in your web.xml file to map the plain sruts-html.tld to the pdk-struts-html.tld (don't forget to include it and its jarfile in your deployment file), or you can add the library to every jsp page and replace the <html:whatever> tags by <pdk-html:whatever> tags. (or your other favourite prefix).
    Regards,
    Benjamin

  • Trace user  on EP6 when navigating within Portal

    Hi Team,
    We have migrated from EP5 to EP6 sp2.
    Our users that are working via the Metaframe XP are experiencing problems when navigating within Portal.
    eg. If the user selects ESS, the screen returns back to the same screen. It was working fine on EP5.
    Users that do not use the Metaframe are working fine on EP6.
    I need to trace the user activity from the time the user
    signs onto Portal and signoff.
    I tried looking at trace files on the OS level and i also
    enabled the HTTP tracing, but had very little joy.
    I suspect it might be a Browser cookie problem.
    Could someone help with this problem.
    Points will be rewarded !!
    Kind Regards,
    Morgan Moodley

    A couple of things you could try
    1) Try clearing the browser cache, as there may still be files hanging around from the EP5 system that the EP6 system doesn't like.
    As for tracing the user activity, you could use a browser sniffing tool and simulate what the user is doing. I personally use HttpWatch, which sits in the IE browser as an icon in the top toolbar. When activated this will detail all requests and responses to and from the browser. I am not too sure how much this information will help with trying to identify the problem, but it could be a start.
    It might also be worth trying to use Firefox and looking in the Javascript console to see if there are any javascript errors
    I hope this helps a little
    Darrell

  • Powerpoint slides within a portlet

    Do you know how to scroll through a series of powerpoint slides every 5 seconds within a portlet that will work in both IE and Netscape?

    Hi Yeuker,
    A bit odd indeed ;)
    Ussualy its best to qualify your parameters inside a portlet, so if eg, you post your portlet twice on a page, your dealerNumber is unique for each portlet instance.
    In your code you do something like this
    String dealerNum = request.getQualifiedParameter("dealerNumber")and
    <input type="text" name="HttpPortletRendererUtil.portletParameter(pr, "dealerNumber")"/>If im not mistaken.
    On the other hand, if you dont quality your parameter, if you have 2 instances of the same portlet on your page, both will read the same dealerNumber value. I use this for some of my java pdk servlet portlets.
    I did have to add <passAllUrlParams>true</passAllUrlParams> to my provider though.
    Hope this helps.

  • Navigating within an app...

    How do I 'go back' a screen within an app?
    For example, I downloaded 'GoodReader' for pdfs. I've loaded some into it, where they sit nicely in the list of PDF's. I touch one to check if it's the version I want, but then, I just want to go back to the list. But there's no 'backward arrow'. Only option seems to be to click the Home button, which only takes me back to the apps icons.
    I know this is simple. But I checked the iPad 'Guide' and nothing speaks to this.
    Thanks,
    Karen

    Well, I'm back again. Now I have the iPad guide open (which was a pdf from GoodReader), and all that happens if I tap it is it gets bigger. The instructions for using the 'Multitasking' bar don't seem to work for me. If I click Home to go back to the GoodReads Icon and touch it, hoping to in that way return to the GR Doc list, all it does is return me back to the iPad guide.
    Earlier I was able to tap twice and bring back an arrow key up top I could tap to get back to the list of docs. But it's not working now.  ?
    I don't understand why the iPad guide doesn't give you touch/tap instructions for navigating within apps--only the basics of how to get Home, bigger, smaller, etc. This is most frustrating.
    Help, anyone?
    Karen

  • Portal Navigator lost Apps portlet in version 3.0.6

    Can anyone tell me what the portlet is (or call is) for the application tab within the navigator is for version 3.0.6 as ours seems to have been deleted and now we can't create any applications. Is there a back door call we can make to create apps?
    Thanks

    Sorry for the brevity of that last post, I had to step out. You should be able to add the applications tab back by clicking on the Customize link at the top of the navigator page and adding a new tab. Then you can add the "Application Navigator" portlet to this area. It's found in the Portlet Repository: Seeded Providers: Oracle Portal area.

  • Keeping a menu/folder within its portlet

    When I post to a page a menu or a folder the first level appears placed in the portlet; however, if I start navigating thru the menu/folder structure then replaces the browser window with the next level. How can I keep it within the original portlet, or in case this is impossible, can it be sent to a different browser window...?
    Thanks.

    in iAS 1.0.2.1 we have the same behavor (ie when we click on submenu it tooks us to a new window)
    The code is done (take look to the Menu Items and Submenus frame), it does perfetly what we want. So why this is not applied to the menu result???
    Any news about that?
    Thanks

Maybe you are looking for

  • How many time can you restore an iphone 5

    Does it affect the iPhone at all  when you do a restore? Is it okay to  restore it as many times as you  want? Or does it wear on the flash  drive/hardware? Thanks

  • SPA112 not picking up firmware

    Hi, about 60-70% of the SPA112s that I have deployed are not requesting firmware even after it picks up a new upgrade rule. The current firmware they are running is 1.2.0 (028). The firmware we are trying to upgrade to is 1.2.1 (004). I have checked

  • SAP Service named SAP SID _ Instance Number is missing in services.msc

    Hi, SAP Service named SAP<SID>_<Instance Number> is missing in services.msc Example : SID = DM0 Instance Number = 01 SAP Service Name = SAPDM0_01 Please help me to resolve the issue. Thanks in Advance. Warm Regards, Sathya

  • New System Autentication

    Hi All, If connected my SAP ERP Development system to Business Objects. In SM59 the connection test is OK, and in /CRYSTAL/RPTADMIN also OK. Now the problem is that I want to connect the Productive system, that is locates in other server, diferent fr

  • Query documentation button on  Portal

    Hello, I want to put the documentation for the report in the 'Documentation Button' available on Portal. Where should I maintain this documentation so that it appears on portal? Also, is there a way to add scroll overs on the fields? As in, if I move