JSF Portlet doesn't render after EventHandler

I'm trying to set up basic event IPC between 2 JSF portlets in WLP 10.3.2.
Portlet A has a JSP with an inputText and and a commandLink:
<h:inputText value="#{aBean.inputValue}"/>
<h:commandLink action="#{aBean.clickMe}" value="Click Me">
</h:commandLink>Backing action creates the event:
public String clickMe() {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    ActionRequest ar = (ActionRequest)ec.getRequest();
    HttpServletRequest request =
        (HttpServletRequest) ar.getAttribute("javax.servlet.request");
    PortletBackingContext pbc =
        PortletBackingContext.getPortletBackingContext(request);
    pbc.fireCustomEvent("clickMe", inputValue);
    return "";
}Portlet B is configured with Init-Param:
javax.portlet.faces.bridgeEventHander=com.example.event.EventHandlerand Java Processing Event for {urn:com:oracle:wlp:netuix:event:custom}clickMe
EventHandler has:
public EventNavigationResult handleEvent(FacesContext context, Event event) {
    String elExpression = "#{bBean}";
    ELContext elContext = context.getELContext();
    ValueExpression valueExpression = context.getApplication().getExpressionFactory().createValueExpression(
        elContext, elExpression, BBean.class);
    BBean bBean = (BBean)valueExpression.getValue(elContext);
    bBean.setDisplayValue((String) event.getValue());
    return null;//new EventNavigationResult(null, "clickMe");
}It doesn't seem to matter whether or not I return an EventNavigationResult.
If I have both portlets displayed on the same portal page, portlet B is not rendered after the event processing. Only the portlet header displays.
As a workaround, I found that if I set a WLP-Handled Event to Handle Custom Event and Change Window State to normal, the portlet renders correctly. However, this workaround does not work if the portlets are on different portal pages as my usecase requires.
Am I missing something or what do I need to do to get the receiving portlet to render? Anyone have a basic JSF event IPC example working?

I'm trying to set up basic event IPC between 2 JSF portlets in WLP 10.3.2.
Portlet A has a JSP with an inputText and and a commandLink:
<h:inputText value="#{aBean.inputValue}"/>
<h:commandLink action="#{aBean.clickMe}" value="Click Me">
</h:commandLink>Backing action creates the event:
public String clickMe() {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    ActionRequest ar = (ActionRequest)ec.getRequest();
    HttpServletRequest request =
        (HttpServletRequest) ar.getAttribute("javax.servlet.request");
    PortletBackingContext pbc =
        PortletBackingContext.getPortletBackingContext(request);
    pbc.fireCustomEvent("clickMe", inputValue);
    return "";
}Portlet B is configured with Init-Param:
javax.portlet.faces.bridgeEventHander=com.example.event.EventHandlerand Java Processing Event for {urn:com:oracle:wlp:netuix:event:custom}clickMe
EventHandler has:
public EventNavigationResult handleEvent(FacesContext context, Event event) {
    String elExpression = "#{bBean}";
    ELContext elContext = context.getELContext();
    ValueExpression valueExpression = context.getApplication().getExpressionFactory().createValueExpression(
        elContext, elExpression, BBean.class);
    BBean bBean = (BBean)valueExpression.getValue(elContext);
    bBean.setDisplayValue((String) event.getValue());
    return null;//new EventNavigationResult(null, "clickMe");
}It doesn't seem to matter whether or not I return an EventNavigationResult.
If I have both portlets displayed on the same portal page, portlet B is not rendered after the event processing. Only the portlet header displays.
As a workaround, I found that if I set a WLP-Handled Event to Handle Custom Event and Change Window State to normal, the portlet renders correctly. However, this workaround does not work if the portlets are on different portal pages as my usecase requires.
Am I missing something or what do I need to do to get the receiving portlet to render? Anyone have a basic JSF event IPC example working?

Similar Messages

  • Input File on a Popup doesn't render after adding Javascript

    Hi,
    I have a very tricky problem.
    I have added a javascript function on component initialization to validate a "ADF Input file on a Popup". Popup is opened on clicking a link. Unfortunately Popup doesn't seem to render but the javascript function is getting invoked.
    What could be wrong?
    This is my JSPX code:
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1">
    <af:panelWindow id="pw1">
    <af:inputFile label="My File4" id="myFile" binding="#{fileBean.myFile}"/>
    </af:panelWindow>
    </af:popup>
    This is my javascript:
    function ootbValidateFileScript(maxSize) {
    alert("ootbValidateFileScript script invoked maxSize: " + maxSize);
    return true;
    If I avoid the popup and directly put the Input file on the page, everything works fine.
    I strongly feel my Javascript is interfering with normal execution of the Popup. What am I doing wrong?
    Regards,
    PS
    Edited by: user13722524 on Aug 23, 2012 11:16 PM

    Hi,
    As mentioned before javascript is added at component initialization (setter in the bean). something like this:
    public void setMyFile(RichInputFile myFile) {
    this.myFile = myFile;
    myFile.setClientComponent(true);
    ClientListenerSet clientListenerSet = myFile.getClientListeners();
    if (clientListenerSet == null) {
    clientListenerSet = new ClientListenerSet();
    clientListenerSet.addBehavior("new ootbValidateFileScript(99)");
    myFile.setClientListeners(clientListenerSet);
    myFile.setVisible(true);
    Jdeveloper version: 12.1.2.0.0
    Regards,
    PS

  • JSP containing ADF components doesn't render properly after upgrading

    The migration seemed to go OK but when I open the JSP, the design view looks very different. It doesn't render any of the objects in the page and it only shows them as rectangular blocks ( like input text) in a tree view.

    Hi,
    upgrade from which release to which other release ? JSP or JSP with JSF
    Frank

  • Why can't I debug my JSF Portlet application after inserting an IFrame

    Hi,
    1) I created a jsf portlet application
    2) I add a button in my jsf portlet application
    3) I can debug my button's action method
    4) Now I open my jsp editor and add an iframe
    <iframe height="500" id="ifWindow" name="ifWindow"/>
    5) I try to debug my button's action method but the debug cursor never reaches it like in step 3
    6) I added a messageGroup but nothing appears there
    7) I monitored "C:\Program Files\Sun\Creator2_1\SunAppServer8\domains\creator\logs\server.log" and nothing appears there
    Is this a bug in Java Studio Creator or is there a problem with iframe in jsf portlet applications?
    Why can't I debug a jsf portlet application if I put an iframe?
    Has anyone got this to work in their jsf portlet application? What can I do to debug this simple application?
    Thanks,
    Marc

    Hi,
    I figured it out. I can debug my jsf application if I placed the iframe outside the <ui:form> element. If it's inside, I cannot debug the application. Are there any books or tutorials that I can read to get rules like this in JSF development?

  • Why don't responseHeader's works in JSF Portlet

    Hi All,
    I have a JSF portlet where i want to save the contents of my Text area on the click of a button to a word document.(IBM Websphere portal) <h:inputTextarea id="text1" value="#{pc_TextAreaView.textAreaValue}" rows="10" cols="50" /> <h:commandButton id="save" value="Save As Word" action="#{pc_TextAreaView.SaveAsWord}"/> In my page bean i have written the follwoing code but the response.setHeader() doesn't seem to work.I am not getting any pop dialog and i cannot save my file.Please let me know what is wrong in this code snippet.How can i make it work in my portlet.
    public String SaveAsWord() {
      FacesContext context = FacesContext.getCurrentInstance();
      HttpServletResponse response = (HttpServletResponse)context.getExternalContext().getResponse();
      response.setContentType("application/vnd.ms-word");
         response.setHeader("Content-Disposition", "attachment; filename=myfile.doc");
         response.setHeader("Cache-Control", "no-cache");
         try{
         byte[] buf=new byte[4*1024];
         InputStream inStream=new ByteArrayInputStream(textAreaValue.getBytes());
         OutputStream outStream=response.getOutputStream();
         int sizeRead;
         while ( ( sizeRead=inStream.read(buf, 0, buf.length) ) != -1 )
           outStream.write(buf, 0, sizeRead);
         inStream.close();
         outStream.close();
         catch(IOException ex){
          ex.printStackTrace();
         return null;
      }Best Regards,
    Pallavi

    Hi ,
    I am working with jsf 1.2 and jasper 3.0.
    For this problem just try with "aFacesContext.responseComplete();" method. This will work!
    Here is my code for generating pdf file report.
    demoreport.jsp code:
    <h:commandLink immediate="true" actionListener="#{reportGenerator.generateReport}">
                                  <h:outputText value="Generate Report"/>
                             </h:commandLink>Here is bean method: (ReportGenerator.java)
    Note: Services is the user defined class for getting connection obj.
    public void generateReport(ActionEvent actionEvent)
                                       throws ClassNotFoundException, SQLException, IOException,JRException
              Connection connection;
              FacesContext aFacesContext = FacesContext.getCurrentInstance();
              HttpServletResponse response = (HttpServletResponse)aFacesContext.getExternalContext().getResponse();
              ServletContext context = (ServletContext)aFacesContext.getExternalContext().getContext();
              String reportFileName = context.getRealPath("/reports/DemoReport.jasper");
              System.out.println("reportFileName: "+ reportFileName);
              InputStream reportStream = aFacesContext.getExternalContext().getResourceAsStream("/reports/DemoReport.jasper");
              ServletOutputStream servletOutputStream = response.getOutputStream();
              //Class.forName("com.mysql.jdbc.Driver");
              connection = Services.getConnection(); //get the db connection.
              try{
              JasperRunManager.runReportToPdfStream(reportStream,servletOutputStream, new HashMap(),connection);
              catch(JRException lJRException){
                   System.out.println("while run report");
                   lJRException.printStackTrace();
              //connection.close();
              response.setContentType("application/pdf");
              response.setHeader("Content-disposition","attachment; filename=DemoReport.pdf");
              servletOutputStream.flush();
              servletOutputStream.close();
              aFacesContext.responseComplete();
         }Regards,
    Nils

  • JSF Portlet keeps last navigated page

    I have a small JSF application where there is a simple navigation from first displayed JSP pageA to JSP pageB:
    (of course with a managed bean
    <navigation-rule>
    <from-view-id>/portlets/pageA.jsp</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/portlets/pageB.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    As a standalone Web app the first pageA is always redisplayed with the main app url.
    However configured as a JSF portlet, after navigating to pageB, the portlet will always redisplay pageB!
    What configuration am i missing to reset to first pageA when redisplay main portal page?
    thanks.

    on a second thought the behavior i see might be valid due to the fact that i specify in my navigation rule a <from-view-id>, which as soon as i'm on pageB no longer applies, meaning there is no rule from pageB for same outcome, so pageB is still displayed.
    I added an extra rule for pageB and a "Back" button on pageB and now i can go back to initial page.
    for me it is a bit unexpected, due to this view "statefulness", but does make sense, need to better master JSF ...

  • External List Webpart does not render after webpart page is checked in

    Hello,
    I've created an external list based on an external content type the list renders fine.
    I have in turn created a webpart page and added the external list to the webpart page as well as a current user filter.
    I use the filter to filter this list based on a column (username in the external list). I do all this within a publishing site (I don't know if that's contributing to the challenge I'm having).
    before I check in and publish the page I observe the filters are applied
    and it appears everything is ok. However after I check in the page and publish it the page doesn't render and the gears cycles on the page for ages
    It's worked the first time I did it but I had to delete and recreate the page subsequently the page doesn't render and gears animation just keeps playing. Even with the filter disconnected from the webpart it still doesn't render. What could kindly be the
    problem
    thanks

    Hi,
    As I understand, you encountered the issue when you checked in and published the web part page.
    If you do not have to use external list web part, you can change to use business data list web part in the business data. You can edit the web part and choose the external content type you want
    to connect.
    There is a similar case:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/af76e3fd-99f8-4694-bae6-e9ee53d2e66e/external-list-in-publishing-page?forum=sharepointgeneral
    Best regards
    Sara Fan
    TechNet Community Support

  • JSF portlet: namingContainer - duplicate id error

    Hi Experts,
    I am developing a JSF portlets having only a click button. When I click the button, it throws duplicate id exception. If I don't use namingContainer tag, it runs well. Here is the JSP code and exception:
    JSP:
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://bea.com/faces/adapter/tags-naming" prefix="netuix"%>
    <f:view>
         <netuix:namingContainer id="simpleJsfContainer">
              <h:outputText value="Simplest JSF Portlet" />
              <h:form>
                   <h:commandButton id="postbackButton" value="Click here" />
              </h:form>
         </netuix:namingContainer>
    </f:view>
    Exception
    opening /simplejsf/simpleJsf.faces.
    The source of this error is:
    java.lang.IllegalStateException: Client-id : simpleJsf_1 is duplicated in the faces tree. Component : simpleJsf_1, path: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /simplejsf/simpleJsf.jsp][Class: com.bea.portlet.adapter.faces.component.naming.NamingContainerComponent,Id: simpleJsf_1]}
         at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:350)
         at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:365)
         at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:305)
         at org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:122)
         at jsp_servlet._simplejsf.__simplejsf._jsp__tag0(__simplejsf.java:133)
         at jsp_servlet._simplejsf.__simplejsf._jspService(__simplejsf.java:91)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.continueChainNoWrapper(PageFlowPageFilter.java:455)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:432)
         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:284)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:503)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
         at com.bea.portlet.adapter.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:110)
         at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
         at com.bea.portlet.adapter.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:77)
         at org.apache.beehive.netui.pageflow.faces.internal.PageFlowViewHandler.renderView(PageFlowViewHandler.java:203)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
         at com.bea.portlet.adapter.faces.FacesContentStubImpl.render(FacesContentStubImpl.java:354)
         at com.bea.netuix.servlets.controls.content.FacesContent.beginRender(FacesContent.java:420)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
         at jsp_servlet._framework._skeletons._bighorn.__flowlayout._jspService(__flowlayout.java:175)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
         at jsp_servlet._framework._skeletons._bighorn.__gridlayout._jspService(__gridlayout.java:219)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:505)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:432)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
         at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
         at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
         at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251) at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:686) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Could you please tell me what's the problem?
    Thanks
    Tridib
    Edited by: Tridib on 12-Feb-2010 08:48

    Alright. I found it! I changed JSF implementation from MyFaces to Sun Reference implementation 1.1 and it worked! For details about how to set sun implementation as JSF implementation in portal project refer to section 2.2 in [White Paper|http://blogs.oracle.com/tridib_samanta/weblogic-portal-jsf-whitepaper.pdf] .
    Edited by: Tridib on 16-Feb-2010 06:32

  • Edited Elements file doesn't render

    New LR4 user. After editing in Elements the edited file doesn't render in LR although I can see it as it was before editiing? Help please!

    When you say it doesn't render in LR, do you mean you press Save in Elements and the photo never appears in LR? 
    Which version of Elements?  And is LR4 updated to 4.2?

  • Autoquery portlet doesn't see sub-Perspectives

    I have an autoquery portlet that is going after items that have been assigned a sub-perspective (Application/Gemini).
    When configuring the search criteria I can search on perspective, and using the popup I can select the appropriate sub-perspective, but the search doesn't find the item. It returns blank.
    I've tried:
    - Flushing the cache for the page
    - Checking and unchecking the "sub-perspective" check box on the criteria row.
    Any ideas?

    How long after you created the item were you searching for it?
    If you are searching using Oracle Text (see global Search
    Settings), then you must either manually sync the indexes after creating/editing items or wait for the job to run.
    It is possible in this case that you created the item (or assigned the persp to the item) and then searched for the item immediately before syncing the indexes and when you tried later the indexes could have been synced from the job which runs periodically.

  • 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

  • CS4 Media Encoder doesn't render Quicktime at all

    The CS4 Media Encoder will render H.264 and FLV, but doesn't render any form of Quicktime at all.
    The Queue loads the project, pretends to render, but does not show progress frames. Seconds later (way too early!) there is a green checkmark that the render completed successfully. The log file looks successful with essentially the same content as for H.264 and FLV.
    For example this log file shows a 1-minute sequence "rendered" in 30 seconds -- normally takes 3 minutes -- and no .mov was created.
    10/29/2008 7:09:16 AM : Queue Started
    - Source File: C:\DOCUME~1\MARATH~1\LOCALS~1\Temp\happyValleyBeijingMoreHighlights_5.prproj
    - Output File: C:\Documents and Settings\Marathon Runner\Desktop\china\finished\happy valley beijing\more highlights\Sequence 01.mov
    - Preset Used: NTSC DV
    - Video: 720x480, 29.97 [fps], Lower, Quality 100
    - Audio: 48000 Hz, Stereo, 16 bit
    - Bitrate: DV/DVCPRO - NTSC
    - Encoding Time: 00:00:00
    10/29/2008 7:09:45 AM : File Successfully Encoded
    10/29/2008 7:09:46 AM : Queue Stopped

    >always save the project before you export
    Very good advice.
    I would also say, save your project after any edit that you feel you can't afford to lose.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • JSF Portlet input text enter key submission

    Hi,
    I have a portlet having input text fields and having command action button(hx:commandExButton). But I have a requirment when I presss enter key in the input text fields instead of submitng form, I want submit command action button.
    Could you please give the details. how I will do in JSF Portlets (code snipeet).
    Currently I implemented when user press enter key I am calling java script function and submit the form.
    Thanks

    Firstly: why using IBM's hx:commandButton instead of standard RI h:commandButton?
    Well, pressing [enter] somewhere in a inputfield usually invokes the firstnext button in the form. Doesn't this happen in your form? Or is the "wrong" button being invoked?

  • Developing JSF Portlets with WebLogic Portal (Oracle White paper May 2009)

    I have created a simple JSF Portlet following the steps delineated in paragraph 3.1.1 Creating a JSF Enabled WLP Web Project of the white paper mentioned above. I used Workshop for Weblogic 10gR3. When I tried to deploy that very simple portlet and portal I got this error message :
    "!MESSAGE Unable to register J2EE shared library C:\bea\wlportal_10.3\samples\lib\j2ee-modules\wlp-sample-lookandfeel-web-lib.war".
    Clearly the folder and file "samples\lib\j2ee-modules\wlp-sample-lookandfeel-web-lib.war" are not under my "C:\bea\wlportal_10.3". My question is where do I download it? Where does it come from?
    Thanks in advance.

    Maybe you did not include the samples when you installed Oracle WebLogic Portal? Now that this is an Oracle product, samples are not installed or configured by default. This is a change in policy from when WebLogic Portal was a BEA thing, so it takes some getting used to and there are probably plenty of places where documentation and papers could be enhanced to emphasize this.
    In addition, it looks like there might be an error in the white paper with respect to configuring your web app to include samples. I don't see any mention of taking an extra step to include the sample facets in your portal app. This oversight may have been caused by the author working with a pre-release of Oracle WebLogic Portal that had not yet been "Oracle-ized" enough to get the default samples out of there. In the old days, I think the samples were automatically included in your portal web app.
    To get the samples in a new portal web app while you are creating it with the IDE you can click the "Modify..." button on the first dialog. It is next to the "Configuration" text area. This pops up a dialog that lets you select the "Weblogic Portal Samples" facet for your web app.
    To get the samples in an existing portal web app after it has been created, right click the app in the IDE, click "Properties...", click "Project Facets", and select the "Weblogic Portal Samples".
    Sorry, I'm not sure what the remedy is for getting samples into an installed product that was not installed with the samples. Unfortunately, I think that is the problem that you need solved. Sorry about that. Hopefully you are working in a test or dev environment that makes it easy to blow away old installations and start over? If not, then maybe install it with samples someplace else and copy the samples/... dir over to your other install?

  • Question accessing a h:outputText element from Javascript from JSF portlet

    I have a <h:outputText element that I'd like to update the value from javascript.
    However the element is not found in the form. I can access all the other form elements,
    just not <h:outputText elements. Does anyone know how to get around this?
    The code is running in a JSF portlet on WLP 10.3.2, Code snippets below:
    JSP
    <f:view>
    <h:form id="updaterForm">
    <h:panelGroup layout="block" id="pg_geoWrapper">
    <table id="t_geoFields">
    <tr><td><h:outputText id="ot_geoStatus" value="Status:"/></td></tr>
    </table>
    </h:panelGroup>
    </h:form>
    </f:view>
    When a button is clicked the javascript is called
    JAVASCRIPT
    function displayProperComponents(myForm) {
    var statusLabelId = null;
    for(i=0; i<myForm.elements.length; i++) {
    if (myForm.elements.id.indexOf("ot_geoStatus")>=0){
    statusLabelId = myForm.elements[i].id;
    if (document.getElementById(statusLabelId) != null){
    document.getElementById(statusLabelId).innerHTML = '';

    There are more possibilities as well. If you depend it on for example the User's rights/groups, then you can also do for example:
    rendered="#{user.admin}" // getter = public boolean isAdmin()
    rendered="#{user.groupName == 'admin'}" // getter = public String getGroupName()
    rendered="#{user.groupId > 1}" // getter = public int getGroupId()
    rendered="#{fn:contains(user.groups, 'admin')}" // getter = public String[] getGroups() or public List<String> getGroups()
    etc..I think it's after all just a matter of learning about the capabilities of EL a bit more.

Maybe you are looking for

  • Help needed for newbie EJB

    Hi, all I am a newbie in EJB and I am following the example in the URL: http://www.huihoo.com/jboss/online_manual/3.0/ I am working on the 'interest' example in the first chapter. When it come to 'Packaging and deploying the bean', I got some meaage

  • How to copy file from global zone to non-global zone?

    Hi, I'm new in zone. I have installed a zone and I would like to install some programs. Could you please tell me how to copy downloaded file from internet to the new installed zone? Kind regards, Daniel

  • Hp deskjet 990c not printing in colour

    Hello I recently made the switch to a MacBook, however my hp deskjet 990c is now not printing in colour! Additionally, I can't seem to find how to enable double sided printing. Can anyone help me please?! I've attached an image on what happens when I

  • How do I reference cells from a different table/ sheet in the same document

    Say I have a Sheet that contains two Tables: [A] and . Is it possible to cross-reference the content of a cell in Table [A] from Table and use it to create a function in Table ? Eg: =SUM[TableA(K20)]+[TableB(F20:F50)] Could I similarly cross-referenc

  • Print AR invoice from FB70.

    Is it possible to print a Smartform AR invoice output from FB70? I see that there is a standard credit memo SapScript output which can be triggered from fb12 for invoice. Is there something similar that I can do to print AR invoice output from this t