JSF 2.0 portlet development

Hi there,
I'm new in the world of J2EE and I'm trying to develop JSF 2.0 portlets to run on JBoss Portal 2.7.
Unfortunately no JSF 2.0 portlet bridge standard exists (only for JSF 1.2), JBoss Portlet bridge still only supports JSF 1.2 and I didn't find any tutorial to make even a "Hello World" JSF 2.0 portlet.
The only thing I found is the project portletfaces, a JSF 2.0 portlet bridge, but it can only make it work on Liferay (for wich it is optimized), not on JBoss Portal (or even GateIn). Unfortunately for my project I absolutely need to use JBoss Portal...
Can anyone help me? Is it mandatory to use a portlet bridge for JSF 2.0 portlet development? Am I screwed?
Thanks a lot!
Nicolas!

802101 wrote:
Hi gimbal2, thank you for your answer :)
So yeah, you confirm what I thought: it's to soon, better wait the maturity of the thing
However, I still have this question: is it possible to develop portlets WITHOUT using a portlet bridge ? Don't I just have to add a few config files (like portlet.xml, jboss-web.xml) and it is on?
Thanks a lotOf course you can. The bridge is there for interoperability between portlets and other (mostly JSF-based) frameworks. There is nothing stopping you from creating portlets without the bridge and you should just do that until you find you actually need it. My development take on 'management by exception' :)

Similar Messages

  • Workshop IDE for WebLogic Platform - JSF Portlet Development

    Hello,
    I am trying to develop JSF based portlets using BEA Workshop for WebLogic Platform IDE. The capabilities of the IDE in terms of JSF is like a simple text editor. Since the IDE is eclipse based, I wanted to to use some Third Party Plugin for JSF development.
    I evaluated the following:
    1. Workshop Studio for JSF
    2. MyEclipse PlugIn for JSF
    Problem 1:
    Workshop Studio for JSF is a separate product and cannot be installed as an plugin over the Workshop IDE.
    Is this acheivable?
    Problem 2:
    I created a Portal application Workspace through Workshop for Platform and opened the same using Workshop Studio for JSF. It crashed saying some runtime exceptions.
    Problem 3:
    MyEclipse PlugIn for JSF doesnt integrate properly with Workshop IDE. The Faces navigational flow view is not working properly.
    Questions:
    1. What is BEA's recommendation for JSF development?
    2. Can you guide me how other developers are using the IDE for JSF development?
    Thanks and regards,
    Pazhanikanthan. P

    Hi Pazhanikanthan,
    Unfortunately, in the current release the JSF features cannot be used to create JSF portlets.
    Please check the following URL for additional information on JSF portlet creation
    http://e-docs.bea.com/wlp/docs92/portlets/building.html#wp1062147
    If you are planning on building JSF web applications, you can always evaluate and purchase a copy of Workshop for JSF or Workshop Studio.
    if you are planning on building JSF based pportlets, you will need to sue the tooling provided by Workshop for WebLogic 9.2
    Applications built in Workshop for WebLogic cannot be imported into Workshop Studio. On the other hand, you can always create a webapp in Workshop Studio,a nd then import it into Workshop for WebLogic as a component.
    hope this helps.
    cheers
    Raj
    If you have additional questions specific to portlet development, please post to the portal newsgroup at http://newsgroups.bea.com/bea/forum.jspa?forumID=2044

  • Weblogic Portal 10.3.5 using JSF 1.2 portlets with ADF faces

    We are developing Portal site using Weblogic Portal 10.3.5 with JSF portlet 1.2 and ADF faces (ADF Application runtime 11.1.1.5 ). But the JSF portlets not supporting ADF faces. Please let me know how we use ADF faces in JSF portlet 1.2 in Weblogic Portal.

    Hi Murthy,
    We did a detailed analysis.
    (1) How do we add ADF taskflows, JSF in to weblogic portal desktop/pages? Do we create portlet out of JSF, and display on desktop/page? If this is the case, what about ADf task flows?
    --> Taskflows can be deployed as WSRP2.0 portlets. Note 2 options are there JSF page as portlet or taskflow itself as portlets.
    (2) How do we integrate weblogic user profiles and UUP (unified user profiles) with ADF and JSF?
    --> ADF Security can use Weblogic Server realm as the security provider. Entitlements in WLP will have to be provided based on Weblogic Server roles. In case you are using external LDAP then both can be integrated withe external LDAP
    (3) Can anybody shed some light which this better?
    (a) weblogic portal with JPF (Java page flows), NetUI --Legacy approach
    Pros:
    -Easy Development
    -Well tested integrated
    Cons:
    -Future support
    -Enhancements may not be available
    -Not really portable or standards based
    (b) weblogic portal with ADF, JSF?
    Pros:
    -If your on Oracle stack then great
    -Standards based
    Cons:
    -JSF Portlet bridge issues
    -ADF Faces does not work on IE6!
    Well what we are going for is JSR 286, Trinidad components (Supports IE6), JSF.
    Difficult choice.
    Venkat

  • JSF in a portlet problem

    I have a page with a dropdown JSF element in it. I have tried doing this two ways. The first way in a JSF Web Application, the second in a portlet.
    I have a valuechangelistener on the dropdown and I call submit() in onChange. The goal is to process some stuff and add it to another dropdown on the page when it is refreshed. In the JSF Web Application the dropdown is submitted and the value is still selected upon refresh and everything looks good. (The new stuff is there)
    However, when the page refreshes in the portlet it goes back to its default value and I don't get my changes. I see the the query to get the new stuff is being run put the page goes back to its defaults. It seems like the page is getting refreshed twice in the portlet situation and everything I want is getting cleared out. I see that the intialize of the JSF Page java class is getting called there twice in the logs for the portlet situation but onece for the JSF Web Applicaion.

    Hello Edmund,
    The "jsf-naming" tag library you are importing is from the WLP "native" JSF 1.1 portlet bridge, which uses an entirely different way to render JSF as portlets than the new JSR329 JSF 1.2 to Java Portlet 2.0 bridge that you are using (the "GenericFacesPortlet"). Unfortunately, the jsf-naming tags are not compatible with the JSR329 bridge.
    I'm not a JSF expert, so unfortunately I can't suggest an equivalent way of doing what you want to do, but I am sure it is possible. Hopefully someone else on here with JSF expertise can help you out.
    Kevin

  • Design patterns in portlet development

    Hello,
    I am a student at the Technical University in Munich, Germany and I am working on a university project on design patterns for portlets.
    The focus of my work is researching the best practices when developing a web portlet, especially which design patterns are the most suitable for portlets development.
    For example, the MVC pattern is one of the most popular design patterns for portlets.
    I am writing to you to ask which design patterns are used in the development of your portlets from the SAP Enterprise Portal.
    - What design patterns do you use for your portlets?
    - Do you use MVC among others?
    - Do you have your own design patterns?
    - Do you use any templates or guidelines for portlet development that involve design patterns?
    I am looking forward to your answer. Any answer would help with the research, as experts’ interviews are part of my work in the project.
    I appreciate any references you consider to be related to my search.
    Thank you,
    Julia Alexandrescu
    Department of Informatics
    Technical University Munich
    Email: [email protected]

    Hi raaj,
    I have a query related to this.
    I am a beginner to portlets.
    Say I have an existing struts application.What all do i need to modify or add to make a .portlet file out of it so as to make it deployable in Weblogic 8.1 SP3?
    Is adding a portlet.xml enough?
    if yes, what would the portlet.xml look like?
    Do i need to add a separate class as well?
    I couldnt get any sufficient answers from other forums.
    Can you please help?
    Thanks & Regards,
    Nishant

  • Consuming a Portlet developed With Web center

    Hi,
    Please suggest if a portlet developed using web center can be consumed in any kind of web application(irrespective of tehnology..say.. asp.net)
    Thanks & regards

    HI,
    see
    http://blogs.oracle.com/middleware/entry/calling_web_services_using_adf_11g
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/webservices/ws.html
    http://www.devx.com/java/Article/35429/1954

  • Testing a portlet developed in JDeveloper.

    Dear All,
    I am using JDeveloper to build the portlets with the help of PDK Software patched to JDeveloper. I want to test the portlets developed by me on the Standalone OC4J Server. Currently i dont have the access to the OracleAS application server, so i have to do all the testing on the OC4J itself.
    Any little help would be of very use.
    Thanks in advance.

    A portal server such as OracleAS portal is required to run portlets.

  • Portlet development with pure Ajax without the Plumtree Web Control

    Has anybody successfully using pure Ajax for portlet development. We've tried to test a little ajax code sample out, and it worked outside of the portal but when we put in the portal it would not work. We are trying this approach because we are having problems with our Plumtree Web Control 2.2.
    Please help.
    The following is our code
    Test.aspx
    <script type="text/javascript" language="javascript"> var http_request = false; function makeRequest(url) {        if (window.XMLHttpRequest) { // [url=http://www.sitepoint.com/print/%5C%22/glossary.php?q=M#term_31%5C%22]Mozilla[11], Safari,... http_request = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE            http_request = new ActiveXObject("Microsoft.XMLHTTP");        } http_request.onreadystatechange = alertContents; http_request.open('GET', url, true); http_request.send(null); } function alertContents() {        if (http_request.readyState == 4) {            if (http_request.status == 200) {                alert(http_request.responseText);            } else {                alert('There was a problem with the request.');            } } } </script> Make a request
    test.htm file:
    I'm a test.
    When we run it outside the portal we get the alert message "I'm a test".
    But wehn we run it inside the portal we get the message "'There was a problem with the request."

    Absolutely, here's some code:
    function UpdateDealerInfo(d) {    dealerNumber = d.split(':')[0];
    document.getElementById('s_dealer').innerText = dealerName + ' (' + dealerNumber + ')'; var ajax = new ActiveXObject('Microsoft.XMLHTTP'); var urlASMX = "<pt:url pt:href='http://portletserver/webservice.asmx/WSServiceMethod' xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>"; ajax.open ('POST', urlASMX, true)
    ajax.setRequestHeader ('Content-Type', 'application/x-www-form-urlencoded');
    ajax.onreadystatechange = function () {
    if (ajax.readyState == 4) {      var strResponseXml = ajax.responseXML;      var xmldoc = new ActiveXObject('MSXML.DOMDocument');
    xmldoc.async = false; xmldoc.load (strResponseXml); // read an element from the xml document var demoStock = xmldoc.documentElement.selectSingleNode('//DemoStock').text;
    // update the element in the portlet (aspx/html) document.getElementById('s_demo').innerText = demoStock
    var body = 'dealerNumber=' + dealerNumber;
    ajax.send (body); }

  • Pl/sql portlet development; MODE_SHOW_EDIT_DEFAULTS

    Hiya, I've got my cool portlet up and running (provider and all), now I need to make it customizable.
    I'm having a hard time understanding the preference-stuff and how to utilize it.
    I understand to the point where we either show the portlet contents (MODE_SHOW) or one of the other options. specifically MODE_SHOW_EDIT_DEFAULTS.
    * How do I render the input form for updating the prefs? The input and the buttons for instance. What should be the target for the form?
    * where exactly are preferences stored and how? ok, I think I've got this bit. The preference path and name. Both have to be "initialized" in the register procedure of the portlet (and deleted in the deregister procedure). But at what point/what procedure do we save them after updating the defaults? How to define the default values, are they automatically overwritten when we save the form values?
    * when user clicks a button (apply) what to do then?
    I'm looking for a simple tutorial(s) or explanation of the basics, so I can get started. Portlet development guide examples went over my head (not very easy to understand), nor are they very plentiful.
    I looked at the example files (site_index_portlet), and had a hard time understanding those too... bit too complicated for a beginner.
    Thanks,
    Edited by: Baguette on 26-Apr-2009 23:48

    You could take a look at this, here you should find all the information you need to make your portlet customizable :
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_pdk_plsql.htm#CHDFDCFJ

  • Portlet development tips page on oracle wiki

    http://wiki.oracle.com/page/Webcenter+Interaction+Portlet+Development
    mostly .net specific.

    sweet! A development page is a great idea for the Wiki!

  • Portlets developed in JDev 10.1.2 and using JSF

    Hi,
    Is it possible in JDeveloper 10.1.2 to create a portlet that uses the standard JSF libraries (not using Oracle ADF Faces libraries etc...), which can then be consumed by Oracle Portal 10.1.4, without having to use the JSF-Portlet bridge that is part of the WebCentre Suite ?
    The reason I ask is that I would like to develop portlets in JDeveloper 10.1.2 using JSF but I don't have a WebCentre Suite license. I don't think there is much point in moving to JDeveloper 10.1.3.2 to develop my portlets as I would still be in the same situation, I would ultimately need a WebCentre Suite license in order for them to be consumed by Oracle Portal 10.1.4, or am I missing something ?
    Thanks.

    Is it possible in JDeveloper 10.1.2 to create a portlet that uses the standard JSF libraries (not using Oracle ADF Faces libraries etc...), which can then be consumed by Oracle Portal 10.1.4, without having to use the JSF-Portlet bridge that is part of the WebCentre Suite ?
    The JSF Portlet Bridge is available separately.
    https://jsfportletbridge.dev.java.net/

  • Best portlet development (IDE & portal)?

    Hi;
    What�s the best system for developing a portlet (portal, IDE, JSF/?, etc)? My requirements are:
    1. I have to create a portlet that runs on any portal. We will test on WebLogic, WebSphere, & JBoss at a minimum.
    2. It does need to support WSRP � and we will test it working via that on Microsoft�s portal.
    3. There is no legacy code.
    4. It can require java 1.5.
    ??? � thanks - dave

    Hi Umberto,
    Did you have a chance to take a look at the Portal Developer's Guide?
    The Building Java Portlets chapter walks you through the steps you need to take.
    Good luck,
    Peter

  • NetBeans 6, portlet development made easy?

    Couple years ago, I developed a JSF portlet in Sun Studio Creator. I was not satisfied with SSC, but it did its job, the development was rapid and the portlet is still running.
    I was rather disappointed when I installed NetBeans 6.1, downloaded all PortalPack plugins and tried to do a simple Hello World example. After an hour of downloading different jars and browsing people's blogs, I gave up.
    Is there any way how to easily in a few simple steps create a JSF Portlet in NetBeans? Or is it better to create all of the config files yourself?

    >
    ...Below is from the Launch tab:>What exactly is a 'launch tab'? Are you talking about some NetBeans window?
    The reason I ask is that the 'JNLP file' shown, is complete rubbish. It is a bunch of symbols pretending to be a JNLP file. The fundamental problem is that it is invalid (and hence it is not the 'JNLP format' it claims to be).
    How any particular Java implementation deals with an invalid JNLP file is quite unpredicatable.*
    Please people, do not just 'presume' that you (or your IDE) can write a valid JNLP file. Instead - validate it against a DTD or XSD.
    After all.. Garbage in, Garbage out!
    * And to the poster who mentioned that adding the first Jar line twice solved the problem. That is a dangerous and fragile kludge. If it works in some specific microversion of Java, it might (probably will) break in the next.
    Edit 1 - Highlit the most major error in that file using 'code' tags. Hopefully that will make the basic problem more obvious..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" "/>Edited by: AndrewThompson64 on May 21, 2008 9:20 AM
    Edit 2 - Added possible alternatives..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs='C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api' "/>
    <j2se version="1.5+" java-vm-args='-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" '/>The hard coded path, as well as the use of unescaped backslashes (e.g. '\' as opposed to '\\') also looks suspiciously wrong, but since I only deploy off the internet, I am not entirely sure.
    Edited by: AndrewThompson64 on May 21, 2008 9:26 AM

  • JSF 2.0 Portlet Bridge

    Dear Experts,
    I have a JSF 2.0 application and was trying to expose it as remote Portlet.
    I don't think we have Portal Bridge from Oracle for JSF2.0. What is the alternative? Please provide pointers.
    I know there are different implementations and it is being done for Liferay Faces project however I want to try it for Webcenter. Kindly help
    Thanks

    Dear Experts,
    Please let me know if anyone has come across such situation.
    Thanks

  • JSF Problem with portlet

    Hello. I am using jsf 1.2 with struts 2 (for portlet support) in weblogic. Jsf is used trough struts 2 jsf-plugin. In weblogic i am getting this error :
    >
    javax.portlet.PortletException
    at com.bea.portlet.container.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:143)
    at org.apache.struts2.portlet.result.PortletResult.executeRenderResult(PortletResult.java:200)
    at org.apache.struts2.portlet.result.PortletResult.doExecute(PortletResult.java:91)
    at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:185)
    at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:355)
    Truncated. see log file for complete stacktrace
    javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/jsp/view/index.jsp
    index.jsp:16:26: No property editor found for the bean "javax.el.ValueExpression".
    <h:panelGrid columns="3">
    ^-^
    index.jsp:17:29: No property editor found for the bean "javax.el.ValueExpression".
    <h:outputText value="Employee Id:" />
    ^------------^
    index.jsp:22:26: No property editor found for the bean "javax.el.ValueExpression".
    <h:outputText value="Back" />
    ^----^
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:247)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    Truncated. see log file for complete stacktrace
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/jsp/view/index.jsp
    index.jsp:16:26: No property editor found for the bean "javax.el.ValueExpression".
    <h:panelGrid columns="3">
    ^-^
    index.jsp:17:29: No property editor found for the bean "javax.el.ValueExpression".
    <h:outputText value="Employee Id:" />
    ^------------^
    index.jsp:22:26: No property editor found for the bean "javax.el.ValueExpression".
    <h:outputText value="Back" />
    ^----^
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:296)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:200)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:164)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:391)
    Truncated. see log file for complete stacktrace
    >
    My JSP file :
    >
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <f:view>
    <html>
    <!-- todo: make header variable -->
    <head>
    <title>JSF Integration Examples</title>
    </head>
    <body>
         <h1>Modify Employee</h1>
         <h:form>
              <h:panelGrid columns="3">
              <h:outputText value="Employee Id:" />
              </h:panelGrid>
              <h:outputLink>
                   <h:outputText value="Back" />
              </h:outputLink>
         </h:form>
    </body>
    </html>
    </f:view>
    I don't have any faces-config and my web.xml looks like :
    >
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app id="bookmark-portlet">
    <!-- JavaServer Faces Servlet Configuration, not used directly -->
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>JspSupportServlet</servlet-name>
    <servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- JavaServer Faces Servlet Mapping, not called directly -->
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.action</url-pattern>
    </servlet-mapping>
    </web-app>
    Does someone know why i get this error?

    Someone with any solution?

Maybe you are looking for

  • How do sync my iPad with another computer?

    How do I sync my iPad with my new computer?  I have imported all my songs, books, apps, etc. but did not do it by dragging over the old iTunes folder because the file structure is different and I did not want to mess up the new file structure with th

  • Where are the AP resource sites?

    While this discussion board has been a fantastic resource for AP issues, I have not found much support elsewhere on the web. A few initially promising sites seemed to have "dried up" regarding new content, especially APN, Bagelturf, and Rob Gailbrait

  • Help with bug fix

    hey peeps i am running the following code to call a seperate gui from a seperate call but i get this error what does it mean? and how can i fix it C:\Documents and Settings\suresh\Desktop\ass\Mailc.java:107: non-static method setVisible(boolean) cann

  • Ejbgen:ejb-ref

    I am using Weblogic 8.1 server and Workshop. I have a session EJB that I would like to make talk to a remote session EJB, which is deployed on a different server. I know how talk to a local EJB using ejbgen:ejb-local-ref, but I want to understand wha

  • Playback isssues(somebody reply!!)

    Hi, I recently updated my ipod, can't remeber the name(the one to play purchased movies) and since I updated it all the videos on my ipod became mpg-4 audio files and they no longer play as video files, any help?