PDK portlet and JSF

Is there a way to use jsf in pdk portlets? Or a least does someone have experience writing some kind of wrapper provider for jsr168 portlet.
thanks for advance

Have you tried one of the following (just toughts):
a) Just bundle the portlet-bridge-jsf.jar from Jdev (JDEV_HOME\adfp\lib\)
b) Use the JSF/Portlet Bridge from dev.java.net (https://jsfportletbridge.dev.java.net/public/Download.html)
c) Use portlets-bridges-jsf (http://portals.apache.org/bridges/multiproject/portals-bridges-jsf/index.html)
d) MyFaces comes with a portlet-bridge (http://wiki.apache.org/myfaces/UsingPortletUtil)
e) Use Spring-Portlet-MVC (Springframework 2.0.3), and use JSF as the View technology
So, there are a lot of possible solutions out there, just have to find out, what helps you most. (I'M myself on the Spring-Portlet-MVC path, and hope that I get ADF-Faces working, somehow. All on Java 1.4 and on Oracle iAS10gR2).

Similar Messages

  • Struts and JSF Integration in OPDk-java based portlet

    Hi,
    thanks in advance for your help.
    I'm developing a PDK java based portlet. For some reasons I cannot use the JSF bridge but I would like to integrate Struts and Jsf in my portlet, using Struts to manage actions and navigation and JSF (with ADF Faces components) for the view. I'm using the Strus-Faces library.
    When I try to submit my portlet form, I receive the error "request URL not found on this server". I'm posting some exstracts of my code.
    It's made of three pages: the main one "Integration1ShowPage", "error" and "result". The MainAction.java displays my mainPage, where there's a form. To keep it easy, when the user submits this form, the ActionName returns "success" and the "result" page should be displayed.
    The MainAction works properly: the portlet is displayed but when I tried to submit the form I receive
    The requested URL /provaDeploy/htdocs/integration1/integration1ShowPage.do was not found on this server.Could you please suggest me something?
    Many many thanks,
    B.
    <struts-config>
    <action-mappings>
      <action path = "/mainAction" type = "strutsjsfintegration1.MainAction">
        <forward name = "success" path = "/faces/htdocs/integration1/integration1ShowPage.faces"/>
      </action>
      <action path = "/nameAction" name = "nameForm"
      input = "/faces/htdocs/integration1/integration1ShowPage.faces" scope = "request"
      type = "strutsjsfintegration1.NameAction">
        <forward name = "success" path = "/faces/htdocs/integration1/result.faces"/>
        <forward name = "failure" path = "/faces/htdocs/integration1/error.faces"/>
        <forward name = "again" path = "faces/htdocs/integration1/integration1ShowPage.faces"/>
      </action>
    </action-mappings>
    <controller>
      <set-property property = "processorClass"
       value="org.apache.struts.faces.application.FacesRequestProcessor"/>
       </controller>
    <message-resources parameter="definitiveStrutsPortlet.ApplicationResources"/>
    </struts-config>

    Hi,
    have a look at this whitepaper for how to use JavaScript in ADF.
    http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf
    This link here (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html --> see sample 71) shows an integration sample between a Java Applet and ADF. Its a similar use case to yours
    Frank

  • Can I use JavaScript HTML Portlet and PDK Portlets

    Can I use JavaScript HTML Portlet and PDK Portlets?
    My Script works fine with the an HTML portlet but it always gives a an Error Message in the status bar is that normal...
    Other then that I have JavaScript in my PDK portlet page it does not work.. it is the the same javascript I use for in my HTML portlet which works in HTML portlets..

    You'll have to place your JavaScript in the header section of your Portal page. To do so, use HTML/UI templates. For more information, refer to the How to Design and Build Compelling Portal Interfaces whitepaper.
    Good luck,
    Peter

  • JDeveloper setup steps for pdk java and portlet container - ver 10.1.2

    Hi fellows,
    Can someone please point to some really not-confusing guide to setting up pdk java and portlet containers on jdeveloper 10.1.2.
    Problem is, I went through several documentation links and they keep pointing around to steps that are followed if you wish to have a stand-alone OC4J. JDeveloper 10.1.2 also had a preconfigured OC4J with it. I wish to make use of that and configure it for Oracle Portal editings for version 10.1.2.
    thank you for your help.

    I have some documentation that I tried following:
    For PDK-Java installation, here is the link to documentation.
    http://www.oracle.com/technetwork/middleware/ias/installing-089002.html
    However, what is confusing is what to do if you just wish to use the preconfigured OC4J container that comes with Jdeveloper 10.1.2.
    Experts, can you please clear this out please?
    Thanks!

  • OracleAS - NULL ProviderSession after 15 minutes (Using Oracle PDK Portlet)

    We have recently deployed an oracle pdk portlet java application (developed in JDeveloper 10.1.2.1) to an OC4J on a server running OracleAS 10g (9.0.4).
    We are currently facing issues where our ProviderSession becomes null after 15 minutes.
    In our jsp's we implement the following:
    PortletRenderRequest pReq = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    ProviderUser pUser = pReq.getUser();
    ProviderSession pSession = pUser.getSession(false); In our provider.xml file within our JDeveloper project/portlet we have set the following tag: <session>true</session>. In the provider itself, under the User/Session Information section, we have selected the User option, set the Login Frequency to Once Per Session and checked the box labeled 'Require portal user specific session information'.
    In our web.xml file within our JDeveloper project/portlet we have set the following tag: <session-config><session-timeout>35</session-timeout></session-config>
    As long as we stay within our portlet we don't seem to lose our ProviderSession, but after 15 minutes, if we try to access the portal page (to switch the language on the page for instance) the ProviderSession is null. This operation always works when we are under this 15 minute limit.
    We have tried to change opmn.xml (increasing OC4J start timeout from 900 seconds to 1200 seconds),
    modplsql conf (PlsqlIdleSessionCleanupInterval, changed from 15 to 30 minutes) and we have also tried disabling the Global Inactivity Timeout variables, but no luck as of yet.
    Any help would be much appreciated !
    Thanks

    HI
    i am also facing same problem with session but in simple portlet with ajax implementation.
    i am setting session in portlet jsp with following code using oracle application server portal 10g.
    (here portlet jsp means which is included from portlet.)
    session.setAttribute("map",map);(here session is implicit object )
    i want to call ajax jsp from portlet jsp with below code.(i.e setting session in portlet jsp and accessing in ajax jsp)
    var url = "<%=renderRequest.getContextPath()%>/AjaxProcessRequest.jsp?q=" + random;
    var pars = '&namespace=<portlet:namespace/>' +'&imagesPath=' + '<%=imagesPath%>';
    var myAjax = new Ajax.Updater(
    {success: 'emailbody'},
    url,
    method: 'get',
    parameters: pars,
    onFailure: reportError,
    evalScripts: true
    i am accessing map object from session in my AjaxProcessRequest.jsp as shown in below code.
    Map map=(Map)session.getAttribute("map"); (here session is implicit object )
    here map object is getting null from session.
    Please help on this if u know about this session.
    Regards
    Raju

  • JSF datatable - any difference with JSF 1.1 and JSF 1.2

    Hi All,
    In my project there are lot of Datatables, which retrieve data from the database and display it to the user. For each datatable, the columns are not fixed. I want to create some kind of component that can be reusable.
    It is basically a JSF portlet. Now i have to use RAD 6. RAD 6 supports only JSF1.1. I have to migrate this to RAD7 in the near future. Are there any differences between the Datatable in JSF 1.1 and JSF 1.2?
    I had this approach in mind.
    a) Create the datatable programmatically and put the contents to panelgrid. This way the jsp code will be minimized. Is it a good option.? Are the APIs same in both the versions?
    b) Is it possible to create a custom datatable which can take some key as input. Then based on the key the datatable can be populated with as many columns as desired.
    Please let me know if there are any other good options.
    ~Anitha.

    Hi guys,
    my code goes like this..
    for (int j = 0; j < size; j++) {
                   UIColumn column = new UIColumn();
                   dataTable.getChildren().add(column);
                   HtmlOutputText header = new HtmlOutputText();
                   header.setValue(periodHeader[j]);
                   column.setHeader(header);
                   HtmlOutputText output = new HtmlOutputText();
                   output.setValue(new Double(periodLiability[j]));
                   ValueBinding vb1 = FacesContext.getCurrentInstance()
                             .getApplication().createValueBinding(
                                       ("#{liability.periodLiability["+j+"]}"));
                   output.setValueBinding("value", vb1);
                   column.getChildren().add(output);
    this code gives me the number of headers i need. But, it doesnt render the columns. I have an array of Double (periodLiability) which stores few values of Double type. I want to show thesee values inthe dataTable Column.
    Please help me..

  • JSF Datatable - Any difference with JSF1.1 and JSF 1.2

    In my project there are lot of Datatables, which retrieve data from the database and display it to the user. For each datatable, the columns are not fixed. I want to create some kind of component that can be reusable.
    It is basically a JSF portlet. Now i have to use RAD 6. RAD 6 supports only JSF1.1. I have to migrate this to RAD7 in the near future. Are there any differences between the Datatable in JSF 1.1 and JSF 1.2?
    I had this approach in mind.
    a) Create the datatable programmatically and put the contents to panelgrid. This way the jsp code will be minimized. Is it a good option.? Are the APIs same in both the versions?
    b) Is it possible to create a custom datatable which can take some key as input. Then based on the key the datatable can be populated with as many columns as desired.
    Please let me know if there are any other good options.
    ~Anitha.

    Doublepost. Please don't use the back button to edit a topic, you're going to repost it. Use the edit button. Continue here: [http://forums.sun.com/thread.jspa?threadID=5336694].

  • Problem Deploying Oracle PDK Portlet to Oracle Application Server 9.0.4.0

    I have a big issue trying to deploy a pdk portlet I have created in JDeveloper (10.1.2). The application is very simple, it consists of 2 JSP's (call them Select.jsp and Display.jsp) and 1 Java Class (Call it DoEverything.java).
    The architecture of the system is VERY simple. The Select.jsp is a simple drop down list that is embedded in an html form, with the options in the drop down populated by a method call from DoEverything.java. Once the user selects an option and hits submit, he is sent to the Display.jsp, which is a simple html table that is populated by another method call from DoEverything.java. (Basically the whole system is a simple "view" of a given table in a DB based on the option selected in Select.jsp).
    The system works perfect in JDeveloper, where I created it using the Oracle PDK Java Portlet wizard. However I'm running into a problem when I try and take it over to the Application Server. The main documentation I have been following is the: Oracle® Application Server Portal Developer's Guide and in particular the section 6.6.2.4.1 Creating a Connection to Oracle Application Server Containers for J2EE where it explains how to connect to the App. Server. The line "The steps that follow describe the procedure for deploying to a standalone instance of Oracle Application Server Containers for J2EE. For information about deploying to a full Oracle Application Server instance, please refer to the Oracle JDeveloper online Help system." is the one that is bothering me the most as I am trying to deploy to a full instance of the Oracle Application Server, but I cannot find anywhere that walks me through this in the online JDeveloper help.
    Anyway, currently we ftp the appropriate JSP's, Java Class, provider.xml and provider properties files to their respective directories on the Application Server, register the provider and reboot the Http Server. (This has worked before except for the fact that when the user selected an option from the Select.jsp and the request was then sent over to the Display.jsp based on the form action the Display.jsp wasn't recognized. We figured the provider.xml file needed to be edited in this case in order to know where Display.jsp was being kept). In any event nothing seems to be working at the moment and my main concern is that it maybe we should be deploying as EAR/WAR (both of which I'm not super familiar and my second main concern is that it seems most people use JavaBeans and Struts and all sorts of different API's whereas here I just have a fairly simple Java Class back end that connects to the database and creates an object based on the attributes contained in the database (1 object for 1 unique row in the DB) and I want to be sure that the way I have developed this should still work with the Oracle AS. I'm hoping its just a matter of getting the directory structure straightened out and editing the provider.xml file to include all the JSP's.
    Sorry for the long post, but if you could address my two main concerns and possible give me or point me towards a good thorough walk through of deploying a simple system (oracle pdk java portlet) like I have developed to the App. Server it would be greatly appreciated !
    Thanks a lot.

    Basically I started to develop this system inside Oracle AS and then when it came time to passing a request to a new page, it crapped out on me on the App. Server. So instead of trying to fix the problem there and then I continued to develop outside Portal and inside Jdeveloper. After a week or two once all my stuff worked perfectly I try and take it back into Portal but only the first JSP of all my Portlets would show up, because as soon as I would submit a form and the action directed me to a new page and Portal would be lost/confused. Obviously I shouldn't have done it that way but none the less...
    So now I'm reading through the documentation you pointed me towards and it seems I have to qualify my parameters and then "attach" them to the url which the form will pass to the actioned page. I'm importing numerous classes (...urlUtils, etc) in order to qualify the parameters and then build this url without affecting any parameters currently present that my portlet does not own.
    What I'm rambling towards here is all this separation of logic and presentation and the whole nine, implies different people can develop different parts of a 'system' mostly independant of one another...so in my situation I shouldn't in huge trouble yet, since underlying everything is a working system. My issue is with oracle and the App Server. If I take my code which works great outside of the App. Server and I fully qualify parameters and make sure my form actions are constructed using the UrlUtils in order to fully qualify them as well, and then I make sure page parameters are mapped to the proper portlet parameter values....should my system work on the App Server (assuming everything is done properly)....or am I still missing something.

  • Can we call a pdk portlet from other pdk portlet

    Hi friends,
    Can i call a pdk portlet from other pdk portlet when an event happens.
    Scenario:
    I have a pdk portlet with 10 html links. When anyone clicks on a link then a new portlet should be displayed in the same page.
    Is it possible to call one portlet from others.
    Please help me out with ur ideas or any workarounds.
    Thanks & Rgds,
    Dhanu

    Neeraj,
    Let me state my requirements very clear to u.
    1)I have a search portlet at top right corner.
    2)Below there is a region with 3 tabs(say A, B, C).
    3)When anyone searches for anything in the search portlet then the results should be displayed in new search tab(say D).
    4)If any one navigates to other tab(ie A or B or C) then the search tab(ie D) should not be displayed.
    This is my requirement. Can u please suggest me with how this can be achieved. I am just a beginner to Oracle portals10.1.4 and i am using JPDK to create portlets.
    Please do reply ASAP.
    With thanks & Rgds,
    Dhanu

  • Problems with Nov PDK - omniportlet and samples

    Hiya,
    I have deployed the Novemeber PDK, OmniPortlet and WebClipping Portlets. I have done a manual installation inyo a 9iAS install. I have followed the instruction provided. The problem I have is that I'm not able to return the test page for these portlets eg http://server_name:7777/portalTools. can anyone please assist in diagnosing where I have gone wrong.
    Thanks
    Daryl

    Hello,
    Could you explain what happen exaclty ? do you have any error (screen, logs, ...)
    Regards
    Tugdual

  • Portlet - dataUrl JSF

    Hi,
    I have a requirement to make an AJAX call to a JSF Portlet to retrieve some data. I coed as per the steps given in Weblogic portal JSF whitepaper (page 90).
    But when i make the AJAX call to the dataUrl, i get the data with the mark-up as a portlet and not just the data. Also, the page called by AJAX has the following contentType set to "application/json;charset=UTF-8".
    How do I just get the data and not the entire markup?
    Thanks.
    Venkat

    RayDeCampo wrote:
    JSF was designed to support portlets, so you are OK on that side. If that were true, then why the need for bridges?
    http://jsfportletbridge.java.net/
    http://myfaces.apache.org/portlet-bridge/index.html
    http://www.jboss.org/portletbridge

  • Apache Jetspeed-2 Portal and JSF

    I'm in the process of trying to get a JSF1.1, Spring1.2.5 & Hibernate 2.0 based portlet working with the Apache Jetspeed-2 (2.0-M3) portal container.
    The example JSF demo applications supplied with the portal container work fine, however, having configured the various xml file as per the example I get the following error msg.
    I would be grateful if anyone who has experience of Jetspeed2 and JSF could shed any light on this.
    Unfortunately I cannot supply the various xml or log files but I get the following message in the portlet when displayed in the browser.
    "The requested resource (/container) is not available"

    Hello,
    Just put the portlet war file into "webapps/jetspeed/WEB-INF/deploy"

  • JSR 168 Portlets with JSF Content

    Is there any news on the possibility of achieving this.
    Should I go ahead and do it myself using MyFaces and the Apache Portals JSF Bridge?  (or try and leverage the WebSphere JSF tooling using the Apache Portals JSF Bridge)?   Or use the Sun JSF-Portlet Bridge?
    Thanks,
    Don

    Don,There is a JSR-168 / JSF portlet bridge that I tested on our portal a few months ago that worked pretty well. It required a lot of changes to the faces-config.xml file and the addition of a bridge jar. I think it also had some drawbacks in regards to the use of sub-views in a JSF page.If you are not tied to using JSR-168, a better solution might be the new JSF filter, which is similar to what we do with .NET Web controls. It allows JSF applications to run as portlets and refreshes the portlet using in-place-refresh (AJAX). This filter is simple to set up, well documented, and can be found at: http://portal.plumtree.com/portal/server.pt?space=CommunityPage&cached=true&parentname=CommunityPage&parentid=0&in_hi_userid=63776&control=SetCommunity&CommunityID=2758&PageID=5913under the name "Java Portlet Tools".Let me know which solution you are interested in. The JSF / JSR-168 bridge is available from Sun as development source code but you will probably want to use some of the helper classes that I wrote for it. These classes are not publically available, but I can send you a jar if that's what you need.Andy
    ------- Don Brady wrote on 6/2/05 9:11 AM -------Is there any news on the possibility of achieving this.Should I go ahead and do it myself using MyFaces and the Apache Portals JSF Bridge? (or try and leverage the WebSphere JSF tooling using the Apache Portals JSF Bridge)? Or use the Sun JSF-Portlet Bridge?Thanks,Don

  • Trouble with PDK portlet event

    Hi everybody!
    I have a problem with my PDK portlet (Portal 10.1.4).
    When rising event with some event parameter more than 1 time, my browser go to strange link like "http://myhost:myport/portal/event/portal/page_path/tab_name".
    First time it works fine, it passes parametere to the page, than page passes parameter to omni portlet. When i click it second time i get an incorrect link.
    Does anybody now anything about this problem?

    It's strange, but in opera it goes to another URL. Something like
    "http://host.domain/portal/page/<u>null</u>/page_path?page_params&values"
    It answers "Request does not include Database Access Descriptor (DAD) information or the specified DAD is invalid."...
    I watched throw the sources of first(before rised action) and second (after) variants of my page and there is another interesting thing i have found:
    First time it has no information in omniportlet. That's cause no parameters passed there. So if we watch the source we'll find nothing.
    Second time <FORM> named like "form_11038_OMNIPORTLET_11722825_0" appears. It contains text and 1 href. That's cause one parameter were passed.
    But it has no </FORM> tag at all !!!!! so it identifies form of my portlet as a part of itself !!!
    So this new form (omniportlet) causes the error.
    Can anybody help me with this error??? Or it's oracle bug???
    PS. I apologise for my english.

  • Can i make portlet by JSF or ADF

    Hi All
    can I make portlet by JSF or ADF ?
    if I can , what do I need to deply it
    which version of infrastructure and middle-tier to deply it?
    do I need web-cetener OR SOA Suite ?
    thanks

    Good question !
    I would also like to know what is required to build and run an AJAX-enabled JSF page inside an Oracle portlet. There seem to be a few options for each component:
    JDeveloper ? 10.1.3.2 with WebCenter /or 11g preview
    JSF ? Oracle ADF Faces 11g tech preview /or Apache Trinidad 1.2.1
    OC4J portlet container ? 10.1.3.2 /or 11g preview
    Portal Faces Bridge ? which version ...
    Portal Server ? which version ...
    WSRP protocol ? v1 /or v2 ...
    This is a great start:
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/demo/adf_faces_rc_demo.html
    which says you can run the ADF Faces 11g preview on the OC4J 11g preview, either standalone or embedded in the JDev 11g preview, but it doesn't mention portlets.
    These are also good links for older JSF-in-a-portlet:
    http://blogs.oracle.com/shay/2007/02/02#a315
    http://www.oracle.com/technology/products/jdev/viewlets/1013/portletize_jsf_pages_viewlet_swf.html
    but are based on JDev 10.1.3.2 WebCenter, and don't mention the new Rich Client AJAX-enabled technology previews.
    This is good for Trinidad integration:
    http://www.oracle.com/technology/products/jdev/howtos/1013/trinidad/trinidad.html
    but is also based on 10.1.3.2 and does not mention portlets.
    I suppose it comes down to the availability of a Portal Faces Bridge library for the new preview, and whether there are any dependencies on the WSRP protocol and the Portal Server ????
    Mik

Maybe you are looking for

  • Maximum file size for iDisk's public folder?

    I was wondering whether there is a max size for files in the idisk's public folder. When syncing my 68 MB zip file, the file on the iDisk shows 0MB. When uploading files externally via Safari, any file above 1 MB shows as 0MB. What are the restrictio

  • Photo Album inconsistency

    One of two albums in MobileMe Gallery online does not appear on the iPhone "Photo Album" section but appears in the iPhone MobileMe Al bum menu to which photos can be sent.Indeed photos sent this way appear in the correct Album but do not appear on t

  • Cannot open file folder in download window. when RT click "open containing folder" it is not highlighted.

    Recently when I try to access my folders in my Download window I cannot access them. I tried right clicking to open "open containing folder" but it is not highlighted. Any suggestions...Thanks

  • Macbook turns on when magsafe power adapter plugged in please help

    I have had my macbook for 2 months now and have had no problems until now. When ever i connect the magsafe power adaptor the macbook just turns it self on. thans Reece

  • Wide report, no printer

    Crystal Reports XI Hi, I want to create a wide report for export to Excel. I don't want to print a paper copy. How can I specify a wide "page"? If I select a printer I am limited by paper size that it supports (I've got an A3 printer but even landsca