Example JSF Portlet Project for WebLogic Portal 10.3.2

Hi,
does anyone have an example JSF Portlet Project for WebLogic 10.3.2 using the default JSF implementation 1.2.
I tried to implement the example of the document "Developing JSF Portlets with WebLogic" but I always get a ClassCastException.
java.lang.ClassCastException: com.bea.portlet.container.RenderRequestImpl
Thx in advance
Edmund

My approach was to programmatically redirect to the page again with _nfpb=false. I do this in the handlePostbackData() method in the portlet's backing file.
redirectUrl = redirectUrl.replaceAll("_nfpb=true", "_nfpb=false");          
PortletBackingContext.getPortletBackingContext(request).sendRedirect(redirectUrl);
Matthias Rohe
[email protected]
Edited by: user7964913 on 29.09.2010 04:06

Similar Messages

  • Resetting the JSF Portlet State in weblogic portal 10.3 and JSF1.2

    Hi ,
    I have a Registration JSF Portlet. It has two pages, “Registration home Page" and " Registration confirm Page". After I,enter the Registration details on " Registration home Page" and click submit, I will get a " Registration confirm Page". Add this JSF Portlet on a page in weblogic portal 10.3. Now visit some other page and comeback to the page on which I added the JSF Portlet, I will see that it is showing " Registration confirm Page", i.e the state is retained.
    My problem is... I want to see " Registration home Page " everytime you visit the page. how can be achieved in weblogic portal 10.3.
    Can any one help me out with this problem ..
    Thanks,
    Ram

    My approach was to programmatically redirect to the page again with _nfpb=false. I do this in the handlePostbackData() method in the portlet's backing file.
    redirectUrl = redirectUrl.replaceAll("_nfpb=true", "_nfpb=false");          
    PortletBackingContext.getPortletBackingContext(request).sendRedirect(redirectUrl);
    Matthias Rohe
    [email protected]
    Edited by: user7964913 on 29.09.2010 04:06

  • IPC in JSF portlet 1.2 weblogic portal 10.3.2

    Hi,
    I'm using weblogic potal 10.3.2 JSF Portlet (Portlet 2.0 - JSR 329).
    i implement inter portlet communication through event handling.
    a Portlet A fire custom event, portlet B listen to event.
    how can portlet B listen to event and call other jsf page or invoke face an action?
    (i use Invoke Face Action but it isn't allowable in JSF 1.2 Portlet - JSR 329)
    many thanks!

    hi, i have resolved my problem. i'm using IPC to pass parameter form portlet A to portlet B. In Portlet B, i'm using PhaseListener to manage RESTORE_VIEW phase. And in this phase, i create ViewRoot.

  • Help me to add some libraries for WebLogic Portal project

    My Web portal project (10.3.2) that was created with Oracle Enterprise pack for Eclipse with some custom configurations:
    - Beehive controls
    - Beehive netUI
    - Struts 1.2
    - WebLogic Control Extension 10.2
    - full feature for "WebLogic portal"
    - "Portal application controld 10.3.2" and "Portal framework beehive adapter" support in WebLogic Portal (optional)
    I need these packages to process some user and group informations:
    - com.bea.p13n.controls.ejb.usermgmt
    - com.bea.p13n.controls.userInfoQuery
    - com.bea.portal.tools.security.group
    - com.bea.portal.tools.security.user
    My problem is impossible to import these package (except: com.bea.p13n.controls.ejb.usermgmt). I've read carefully API Javadoc for these package informations but it cannot help anymore.
    Anybody can tell me what libraries should be added to project to solve my problem ?
    Thank in advance.
    Ps:
    This is my screenshot for project configuration:
    http://i284.photobucket.com/albums/ll10/docphongm41/screenshot/screenshot.png

    Thank Kevin.
    I've fix my problem by adding some jar files, such as war-classes.jar which can be found in workspace/.metadata/.plugin/oracle.eclipse.tools.weblogic/libraries/wlp-tools-ugm-web-lib_10.3.2_10.3.2/1/WEB-INF/lib
    So, I can use UserID class in my source code without any error notification on Eclipse. Everything sound to be okay, but it isnt. When I initialize an UserID object in my pageflow controller class like this:
    UserID uid = new UserID("::security:user");
            String uname = uid.getUserName();I'll get an exception:
    com.bea.netuix.nf.UIControlException: com.bea.portlet.adapter.scopedcontent.ActionLookupFailedException: java.lang.NoClassDefFoundError: com/bea/portal/tools/security/user/UserIDI don't know why JVM cannot found my imported class though I've already added library and imported this class to the source.

  • Can integrate JSF 2.0 in weblogic portal 10.3.2 ?

    Hello all,
    I am working on JSF 1.2 in weblogic portal 10.3.2. But i want to integrate JSF version 2.0 into weblogic portal 10.3.2. Is it possible ? And if it is possible so can you tell me how to do it or give me a link which will tell me how to do it ?
    Thanks in advance!

    Well weblogic Portal does not officially support JSF2.0. For that matter none of Oracle products have moved on to JSF2.0.
    Technically since WLP with version 10.3.2 supports JSR 301 standards. This shoudl be possible.
    Steps:
    1. In the Weblogic Portal Web Project --> Build Path libraries remove the JSF libraries. Remove the JSF library entry from weblogic.xml.
    2. Now add JSF2.0 impl & api from mojarra.
    3. You will also have to change the portlet bridge. WLP uses myfaces portlet bridge :http://myfaces.apache.org/portlet-bridge/2.0/downloads.html
    NOTE - This is currently in alpha version.
    Guess this should do it.
    Venkat

  • OEPE support for Weblogic Portal 10.3.0?

    Hi,
    I was referred to this forum by Konstantin:
    replace Oracle Workshop for Weblogic with OEPE?
    Does anyone know if Oracle Enterprise Pack for Eclipse has tooling support for developing portlets/portals for Weblogic Portal 10.3.0?
    Kevin

    Thanks for your reply, Brad. It is WLP 10.3.
    Unfortunately, since other components of the Oracle stack that we use are unsupported by OEPE, OEPE isn't going to be an option for us:
    OEPE support for ODSI 10gR3?
    OEPE support for OSB 10gR3?

  • ADF Support for weblogic portal

    Hi
    How we can use adf tags and functionality and develop portlet for weblogic portal . What are the required Jar files needs to be imported for that.

    One possibility, if you still want to use WLP on the consumer side, is to develop the ADF views/taskflows in a WebCenter portlet producer app, then consume them as portlets over WSRP in WLP. http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e10148/jpsdg_intro_portlets.htm#CIHDEBBJ has information about making portlets in WebCenter, and there's documentation at http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14235/chap_webcenter_interop.htm#i1006380 about the interop between WebCenter and WLP.
    Greg

  • Need WLST for Weblogic portal domain 9.2.2.

    Hi,
    I am very much in-need of it. Can you please provide me the Need WLST for Weblogic portal domain 9.2.2.
    Actually, we are using weblogic 9.2.2 version.
    Actually, I created a portal domain configiuration using configuration wizard and the same I documented with screen shots.
    Now I need the wlst for the same configuration which i created the doc for.
    Please can you help me out doing this.
    If you are ok, then I will share you my doc, so that you can help me out easily.
    Please please please................
    Thanks in Advance..

    You have a few options to build a WLST script from the admin/config operations that you have performed in your development environment using console.
    OPTION 1: (WLST Recording)
    Check the below video. (The only drawback is that this video talks about the WLST recording feature which is available only on WLS10.0. Ofcourse, if you have a 10.0 installation you can still use this feature and then make some small modifications to the generated script to make it suitable for 9.2)
    http://www.youtube.com/watch?v=luhBaviP2uM
    OPTION 2: (Converting the configuration to a script)
    After you have configured your entire domain using the console, you run the configToScript command as per the below documentation (To run this you need to invoke WLST and then run the command with appropriate arguments such as path to the config.xml file etc)
    http://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/reference.html#wp1154848
    Then you can use the generated script to create similar domains in your Test AND Production environments.
    Arun

  • Regarding New for weblogic portal

    hi every one.
    My name is krishnarjun yada. I am the new for weblogic portal applicatons and i have a training on next weak. But i don't know much more about on portal.I mean which topics are there and how to work. I have knowledge on WebspherePortalServer. Please guide me anyone it's very need for me.
    Please reply to <email address removed by moderator> ASAP.

    *** moderator note ***
    I've removed your email address from the post because a) you are likely to get lots of spam in your email by publishing it in public and b) responses to issues should be posted on the forum, as this is not a personal support service where people should be contacting you directly.
    Also please note that this is a forum of volunteers doing their own jobs, and leading their own lives, so to request help "ASAP" or "Urgently" etc. is not appropriate and considered very rude by many people.  Such urgent issues suggest a live system that has got problems and a company is losing money or people's lives are at risk, in which case the issue should be raise via My Oracle Support (MOS) which is the paid-for support channel for Oracle.
    The description of your issue, wanting to know more about a product before your training, is not an urgent issue. (Surely the point of the training is to learn it?)
    *** end of moderator note ***

  • Is there any Certifications for Weblogic Portals ?

    Hi
    Is there any Certifications for Weblogic Portals ?
    like RHCE, JCP, MCSE ...
    Thanks & Regards,
    Siva VP,
    [email protected]

    Check out this link:
    http://certification.bea.com/certification/dev_certification.jsp

  • Need to add as a WSRP Connection in JDev for Weblogic Portal JSF Portlets.

    I am trying to register WLP 10.3.4 JSF Portlets as a WSRP connection in JDev Webcenter 11.1.1.6 Portal Framework application . The below are steps:
    -Created Simple WLP Application with JSF Portlets and deployed them on WLS 10.3.4 domain.
    -The WSDL url available is http://localhost:7003/TEST_WEB_PORTAL/producer?wsdl
    -Now Open JDev and created WCP Framwork app
    -Under Application Resource, right click on Connections -> New Connection -> WSRP Producer.
    -Click Next on step1 -> Enter WSDL URL on Step 2 and then click next on next 3 screens.
    -It tries to register but ended up with below exception:
    3-Dec-2012 12:48:03 oracle.adfdtinternal.model.portlet.wizards.registration.wsrp.WSRPProducerRegUtil registerProducer
    WARNING:
    oracle.portlet.client.persistence.PersistenceException: oracle.mds.core.ConcurrentMOChangeException: MDS-00165: metadata Object "/oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml" has changed
    MDS-00512: failure to create document /oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml because file C:\Oracle\PS5\mywork\testSR3-6514764665\mds\oracle\adf\portlet\WsrpPortletProducer0\portletDefs\portletPortletproducer\markupTypes\markupType0_texthtml.pxml already exists
         at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.commit(MDSPersistenceContext.java:473)
         at oracle.portlet.client.beanimpl.persistence.PersistenceBeanContext.commit(PersistenceBeanContext.java:128)
         at oracle.portlet.client.adapter.simple.SimpleAdapter.commit(SimpleAdapter.java:465)
         at oracle.adfinternal.model.portlet.manager.PortletProviderManager.commit(PortletProviderManager.java:1487)
         at oracle.adfinternal.model.portlet.manager.PortletProviderManager.registerPortletProvider(PortletProviderManager.java:1647)
         at oracle.adfinternal.model.portlet.manager.PortletProviderManager.registerPortletProvider(PortletProviderManager.java:597)
         at oracle.adfdtinternal.model.portlet.wizards.registration.wsrp.WSRPProducerRegUtil.registerProducer(WSRPProducerRegUtil.java:308)
         at oracle.adfdtinternal.model.portlet.wizards.registration.wsrp.WSRPProducerRegistrationWizard$1.doWork(WSRPProducerRegistrationWizard.java:863)
         at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:161)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.mds.core.ConcurrentMOChangeException: MDS-00165: metadata Object "/oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml" has changed
    MDS-00512: failure to create document /oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml because file C:\Oracle\PS5\mywork\testSR3-6514764665\mds\oracle\adf\portlet\WsrpPortletProducer0\portletDefs\portletPortletproducer\markupTypes\markupType0_texthtml.pxml already exists
         at oracle.mds.core.UpdateableMOContent.constructConcurrentMOChangeException(UpdateableMOContent.java:1376)
         at oracle.mds.core.UpdateableMOContent.saveMOContent(UpdateableMOContent.java:1143)
         at oracle.mds.core.MDSTransaction.flushChangesToPTrans(MDSTransaction.java:851)
         at oracle.mds.core.MDSTransaction.internalCommit(MDSTransaction.java:2928)
         at oracle.mds.core.MDSSession.flushChanges(MDSSession.java:1022)
         at oracle.mds.core.MDSSession.flushChanges(MDSSession.java:850)
         at oracle.portlet.client.persistenceimpl.mds.MDSSessionWrapper.flushChanges(MDSSessionWrapper.java:61)
         at oracle.portlet.client.persistenceimpl.mds.MDSPersistenceContext.commit(MDSPersistenceContext.java:456)
         ... 10 more
    Caused by: oracle.mds.persistence.DocumentExistsException: MDS-00512: failure to create document /oracle/adf/portlet/WsrpPortletProducer0/portletDefs/portletPortletproducer/markupTypes/markupType0_texthtml.pxml because file C:\Oracle\PS5\mywork\testSR3-6514764665\mds\oracle\adf\portlet\WsrpPortletProducer0\portletDefs\portletPortletproducer\markupTypes\markupType0_texthtml.pxml already exists
         at oracle.mds.internal.persistence.file.Fil
    I have followed the steps given in the http://docs.oracle.com/cd/E26806_01/wlp.1034/e14235/chap_webcenter_interop.htm#BABGIIIJ for preventing User Authentication error by creating user of PortalSystemAdministrator group but did not help.
    Please let me know if anyone have faced this exception or any pointers.
    Thanks
    Kamal Gulati

    Hi,
    I tried creating a simple JSF portlet and I can able to register and it is working Fine, but my teammet got the same issue like you :) . While Analyzing what I found is , the location where we created the portlet in weblogic portal. If you created your portlet directly under WebContent folder then this issue is coming up, so try to create the portlet in a folder inside the WebContent folder, say create a folder with name portlets under webcontent and create the JSF portlet inside that portlets folder.
    Now start the server and register the same in WebCenter, you will not get that exception. I am going to raise a ticket with Oracle about this issue and get the root cause.
    Thanks
    Karthikeyan

  • Ant build script for WebLogic Portal 10.3 projects

    Hi Friends,
    I am going thru this document http://download.oracle.com/docs/cd/E12840_01/wlw/docs103/guide/ideuserguide/build/conUseCustomAntBuild.html#metadata about building ant script for my portal project. The document does not state few things clearly. Can you please help me to understand.
    It says:
    To Build an EAR File Using the Ant Script:
    1. Generate the Ant script for each project in the EAR.
    2. Generate the Ant script for the EAR project.
    3. Configure the execution environment of your shell by executing wl.home/common/bin/commEnv.sh
    4. Change to the Eclipse directory for the EAR project.
    5. Execute the desired target in the EAR project's Ant script as follows:
    ant build archive -Dworkspace=workspacepath
    A) When I generate ant script, workshop generates build.xml file in each project directory and that includes EAR project as well. Then, point 2 is not clear, how do I generate another ant script (build.xml) for the EAR project?
    B) I do not understand, "change to the eclipse directory for the EAR project". Does it mean, change to the directory of EAR project folder which has build.xml?
    C) in step-5, execute the desired target, when I execute it, how it will know where are other build.xml files for other projects?
    Regards,
    JT

    Hi Greg,
    I moved little bit but then got stuck with new kind of error.
    a. First of all, my application has a 'data' project (.usr) file. When I try to generate ant scripts (build.xml), it says that 'data' project is not compatible with Workshop ant scripts. However, Workshop inbuilt EXPORT->EAR is able to build the projects without any error.
    b. So, I thought, let's put a dummy build.xml file under 'data' project directory. This let ant build to proceed further. However, now it fails with error that <web project>/build.xml (line no. 122). Which is nothing but memory declaration (memoryMaximumSize="1024m"). The error says, 'unable to launch apt compiler', I am not able to understand what is it? The other projects' (ejb, controls etc.) build.xml has this declaration but they did not give this error, they built fine.
    <web project>/build.xml
    <target name="build" depends="init" description="compiles the source files; does not package the results">
    <if>
    <isreference refid="apt.factory.path"/>
    <then>
    <mkdir dir="${apt.src.output.dir}"/>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <apt
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    preprocessdir="${apt.src.output.dir}"
    classpathref="java.classpath"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false"
    memoryMaximumSize="1024m"/>
    </then>
    </if>
    </for-each-java-src-path>
    </then>
    </if>
    Regards,
    JT
    Edited by: user6917422 on Apr 1, 2009 9:29 PM
    Edited by: user6917422 on Apr 1, 2009 9:57 PM

  • Problem in creating a build.xml for weblogic portal application

    Team ,
    I am facing problem in creating the build.xml using weblogic.BuildXMLGEN tool .
    a) Below is the structure of my portal application
    SrcCode
    --- .metadata (eclipse plugins folder)
    --- B2BApp ( Ear Content)
    --- b2bPortal ( portal related file(controllers,jsp)
    --- b2bsrc     (java src)
    b) Now I executed below utility to generate the build.xml "
    java weblogic.BuildXMLGen -projectName B2BApp -username weblogic -file build.xml -password welcome1 F:\srcCode"
    c) Based on the above step , build.xml got generated .
    d) when I execute "ant compile" target from the command prompt , I see the below exception
    ant compile
    Buildfile: build.xml
    compile:
    +[wlcompile] [JAM] Warning: failed to resolve class AbstractJspBacking+
    +[wlcompile] [JAM] Error: unexpected exception thrown:+
    +[wlcompile] com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\b2b\dmr\Picker\PickerController.java at line 58.+
    e) I suspect , the problem is bcoz of classpath issues , as I generated build.xml donot have the references to dependent lib's.As build.xml looks like below :
    +<target name="compile" description="Only compiles B2BApp application, no appc">+
    +<wlcompile srcdir="${src.dir}" destdir="${dest.dir}">+
    +<!-- These referenced libraries were not found -->+
    +<!-- <library file="p13n-core-web-lib" /> -->+
    +<!-- <library file="jersey-web-lib" /> -->+
    +.....+
    +....+
    Please help me to reslove these issues .
    PS: I able to deploy the application using 10.3.2 weblogic workshop ( i.e inbuilt eclipse )

    i JaySen ,
    thanks for your response. As mentioned we added all the necessary library within the -librarydir but still we see the same error :
    +[JAM] Error: unexpected exception thrown:+
    com.bea.util.jam.internal.javadoc.JavadocParsingException: Parsing failure in F:\b2bNew\b2bPortal\src\portlets\typeAhead\TypeAheadController.java at line 70.  Most likely, an annotation is declared whose type has not been imported.
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.getAnnotationTypeFor(JavadocTigerDelegateImpl_150.java:410)
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:176)
    at com.bea.util.jam.internal.javadoc.JavadocTigerDelegateImpl_150.extractAnnotations(JavadocTigerDelegateImpl_150.java:152)
    at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.addAnnotations(JavadocClassBuilder.java:404)
    at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.populate(JavadocClassBuilder.java:359)
    ===================
    a) this is a upgrade project [ upgrading from wlp 8.1.4 to 10.3.2 ]
    i.e we are using weblogic portal 10.3.2 version.
    b) Searched some sites/forums regarding the above error, and it says something related to "jwsc" ant task [ i.e while compiling a webservice(JWS) ], but we see this error while compiling a normal controller(jpf) class :(
    c) we are using "ant compile" target which internally calls wlcompile task , while executing wlcompile this error is thrown .
    Help Appreciated
    Thx,
    Sarat

  • Open Source- WebAnalytics - for weblogic Portal Appliccation

    Hi All,
    I am using Weblogic portal 10.2
    I have developed a site , in portal 10.2
    I want to integrate webanalytics to my application.
    Did any one intergrated Open source Webanalytics for portal application
    I can see "AWstats" , but if you have used other than this let me know..
    Thanks & Regards
    Srinivas

    Hi,
    I tried creating a simple JSF portlet and I can able to register and it is working Fine, but my teammet got the same issue like you :) . While Analyzing what I found is , the location where we created the portlet in weblogic portal. If you created your portlet directly under WebContent folder then this issue is coming up, so try to create the portlet in a folder inside the WebContent folder, say create a folder with name portlets under webcontent and create the JSF portlet inside that portlets folder.
    Now start the server and register the same in WebCenter, you will not get that exception. I am going to raise a ticket with Oracle about this issue and get the root cause.
    Thanks
    Karthikeyan

  • Problems with Inter-Portlet Communication in Weblogic Portal 10.3

    Hi,
    I'm developing a web application using Weblogic Portal 10.3.
    The requirement is that the work requests have to be stored in a workbasket which can be submitted by the user at the end.
    The user can create multiple request of same form.
    Consider a scenario that the user creates 5 instances or work request in a single form. No he moves back to the 2nd request and modifies it. While modifying the 2nd request a validation message is thrown. Now the user navigates to Workbasket directly by selecting the Workbasket from the menu item.
    Now when the user selects any one of the 5 requests, he is able to view the same validation message which is thrown as said in the above scenario. This is happening only when the user navaigates from the workbasket. If the user switches between the request, the problem is not simulated.
    Someone please help me how this can be avaoided.
    More Information:
    Weblogic Portal 10.3
    JSF 1.2
    Spring
    Message is thrown using the FacesMessage in JSF and is displayed in the screen using the following JSF tag.
    <h:messages globalOnly="true" rendered="#{! empty facesContext.maximumSeverity}" styleClass="liststylenone"/>

    Hi,
    Could someone pls explain which cache is used to cache portlet content and in which form the content is cached?

Maybe you are looking for

  • PDF within IE acting differently between Reader 9x and 11x

    We are in the process of upgrading from Reader 9x to 11x. In testing users have found that when they try to open multiple PDF's from a single webpage within Internet Explorer, 11x opens only one at a time, closing the current one and opening a new on

  • No Audio on AVI Files

    When I play my AVI movie files from my Casio Exilim camera on Quicktime, I can only see the video with no audio. But I can hear the audio on my PC with Windows Media player if I put them on a flash drive and transfer them to my PC. Is there a codec o

  • Debugging core file through disassemble code

    My program got cored and in the same frame I ran cmd given below and got the o/p dbx> dis 0x0008a754: hellworld+0x0024: or %l1, %g0, %o2 0x0008a758: hellworld+0x0028: st %g0, [%fp - 0x4] 0x0008a75c: hellworld+0x002c: st %g0, [%fp - 0x8c] 0x0008a760:

  • Mail--Unable to add folders.

    Instruction manual says to go to list of mailboxes, then tap on EDIT, then add box or folder. I DON'T have the edit option. Advice?

  • Mac Pro 2.67 has frozen, curser moves to no effect

    screen has frozen, curser moves but cannot activate anything, tried restarting with Install CD 1/press D but cannot get to Hardware Test. had just used Disk Utilities to check status of the four drives and all found to be OK. Had Iphoto, Mail,Pages a