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?

Similar Messages

  • Problem with Portlet Backing Context

    Hi,
    I am having problem with Portlet Backing context.
    I have on portlet and one JPF associated with this portlet.
    Now in JPF action method i have Portlet Backing context object, using this object
    i tried to get the previous portlet state using portletCtx.getPreviousWindowState().
    But It always gives me null.
    can anyone help me out ? its very urgent.
    or you can suggest me anyother option to do this....
    Thanks,
    Vijay Patel

    Vijay -
    You might want to post this to the Portal newsgroup.
    Regards,
    Kunal
    "vijay patel" <[email protected]> wrote:
    >
    Hi,
    I am having problem with Portlet Backing context.
    I have on portlet and one JPF associated with this portlet.
    Now in JPF action method i have Portlet Backing context object, using
    this object
    i tried to get the previous portlet state using portletCtx.getPreviousWindowState().
    But It always gives me null.
    can anyone help me out ? its very urgent.
    or you can suggest me anyother option to do this....
    Thanks,
    Vijay Patel

  • JSF problems with Javascript

    Hi everyone!!
    The situation is this: I have a datable with one of its columns make an h:commanLink, which has two f:params, its actionListener is a function of a ManagedBean. This is JSF, not MyFaces. In IE, When the link is pressed, it shows a javascript error: " 'elements.idVar' is null or it's not an object ", however in Firefox, it works perfectly. I have been looking for the problem and it have to do with this:
    </form><a href="# onclick="clearFormHiddenParams_formResultado('formResultado');document.forms['formResultado'['formResultado:_idcl'].value='formResultado:dtTablaResultados:0:_id10';document.forms['formResultado']['idVar'].value='37';document.forms['formResultado']['idMun'].value='168'; document.forms['formResultado'].submit(); return false;"><span id="formResultado:dtTablaResultados:0:itColumna3" title="AREA COSECHADA EN CULTIVOS PERMANENTES">1,230</span></a></td>
    </tr>
    <tr class="standardTable_Row2">
    <td><span id="formResultado:dtTablaResultados:1:itColumna1" style="text-align:center;" title="C&oacute;digo Municipio">718</span></td>
    <td><a href="javascript:void(0)" onclick="javascript:window.opener.opener.showLink('SASAIMA')"><span id="formResultado:dtTablaResultados:1:itColumna2_l" title="Municipio">SASAIMA</span></a></td>
    <td><form id="formResultado:dtTablaResultados:1:_id9" method="post" action="/ConsultaEstadisticasGeo/resultadoConsulta.jsf" enctype="application/x-www-form-urlencoded">
    <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id39:_id41" /><input type="hidden" name="formResultado:dtTablaResultados:1:_id9" value="formResultado:dtTablaResultados:1:_id9" /><input type="hidden" name="idVar" /><input type="hidden" name="idMun" /><input type="hidden" name="formResultado:_idcl" />
    <script type="text/javascript">
    <!--
    function clearFormHiddenParams_formResultado_dtTablaResultados_1__id9(curFormName) {
    var curForm = document.forms[curFormName];
    curForm.elements['idVar'].value = null;
    curForm.elements['idMun'].value = null;
    curForm.elements['formResultado:_idcl'].value = null;
    //-->
    </script>
    the way JSF manage the params. The error, acdording to the message shonw by IE is in this line: curForm.elements['idVar'].value = null;
    The code of the JSP is this:
    <h:commandLink     actionListener="#{consultaEstadisticasMB.detalleEstadistica}">
         <f:param name="idVar" value="#{consultaEstadisticasMB.idColumna3}" id="idVar" />
         <f:param name="idMun" value="#{registro[0]}" id="idMun" />
         <h:outputText title="#{consultaEstadisticasMB.columna3}" id="itColumna3" value="#{registro[2]}" />
    </h:commandLink>
    Waht can i do? (Not using MyFaces, because I can�t do that)
    Thanks for your answers!!

    I have run into this same problem with javascript and the colon. I am not sure if the colon is a valid character for a javascript identifier (one would think the RI developers would have checked it out though!?!).
    Anyway, my workaround is to search through the Javascript DOM for the widget you want to obtain a reference to, using part of its id. After all, you know its id, you just can't use it as a javascript reference. In your Javascript code, do something like:
        var inputWidgets = document.getElementsByTagName("input");
        var targetInput;
        for(var i = 0; i < inputWidgets.length; i++)
           var inputId = inputWidgets.id;
    if(inputId.indexOf("yourInputId") != -1)
    targetInput = inputWidgets[i];
    break;
    It's a lot of effort to just get a reference to a form widget....but it works (I pasted in the code and changed it a bit, so it might not work as is, but at least it demonstrates the idea).

  • Problem with portlets with XSLT generating dynamic portal compatible links

    Hi,
    We're using XSLT to transform XML data to HTML in a portlet. The problem is that
    the XML contains headlines and we need to create links to the complete article,
    which has to be displayed in the same portlet. How do I create a portal comaptible
    link with XSLT? In the JSP you can use the netui tag library like:
    <netui:anchor action="..">
    link
    <netui:parameter name="id" value="{id}"/>
    </netui:anchor>
    but how can I achieve this with XSLT? We tried generating the xsl with a jsp,
    but this doesn't work since the data entered in the value attribute of the netui:parameter
    tag will be encoded causing the XSL transformer to fail.
    Is there an easy solution to this? Or can XSLT only be used with very simple content?
    Ard

    We're trying to display some news headlines, clicking a headline has to invoke
    an action to display the complete article in the same portlet (using pageflow).
    When displaying the articles we use XSLT like (this is a JSP generating XSLT):
    <?xml version="1.0"?>
    <%@ page contentType="text/x-xslt"%>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <xsl:template match="items">
    <xsl:apply-templates select="item"/>
    </xsl:template>
    <xsl:template match="item">
    <nobr>
    <%-- ###### Here we need an action link, with the title as a request parameter
    ###### --%>
    <xsl:value-of select="@title"/>
    </nobr>
    </xsl:template>
    </xsl:stylesheet>
    The XML is like:
    <items>
    <item title="some title"/>
    <item title="some other title"/>
    </items>
    We need to generate a portal compatible link which invokes an action (show_details)
    with the title of the article as a request parameter.
    I know how to do this in a JSP, but since the data is in XML we like to do this
    with XSLT.
    Can you help?
    Subbu Allamaraju <subbuATBeaDOTCom> wrote:
    Could you elaborate (perhaps with some xsl snippet generated by jsp)
    the
    failures you were getting with xslt?
    Subbu
    Ard van der Scheer wrote:
    Hi,
    We're using XSLT to transform XML data to HTML in a portlet. The problemis that
    the XML contains headlines and we need to create links to the completearticle,
    which has to be displayed in the same portlet. How do I create a portalcomaptible
    link with XSLT? In the JSP you can use the netui tag library like:
    <netui:anchor action="..">
    link
    <netui:parameter name="id" value="{id}"/>
    </netui:anchor>
    but how can I achieve this with XSLT? We tried generating the xsl witha jsp,
    but this doesn't work since the data entered in the value attributeof the netui:parameter
    tag will be encoded causing the XSL transformer to fail.
    Is there an easy solution to this? Or can XSLT only be used with verysimple content?
    Ard

  • JSF Problem with events

    4 comboboxes need to be used in several JSF pages.
    This cbo are stored in the jspf file :
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <f:subview id="cboSearch">
        <p>
            <h:selectOneMenu id="cboSites" value="#{searchFormMB.siteChoisi}"
                              onchange="submit()" valueChangeListener="#{searchFormMB.eventCboSitesChanged}">
                <f:selectItems id="siteItem" value="#{searchFormMB.siteItems}"/>
            </h:selectOneMenu>
        </p>
        <p>
            <h:selectOneMenu id="cboPeriodes" value="#{searchFormMB.periodeChoisie}"
                             onchange="submit()" valueChangeListener="#{searchFormMB.eventCboPeriodesChanged}">
                <f:selectItems id="periodeItem" value="#{searchFormMB.periodeItems}"/>
            </h:selectOneMenu>
        </p>
        <p>
            <h:selectOneMenu id="cboPersonnels" value="#{searchFormMB.auteurChoisi}"
                             onchange="submit()" valueChangeListener="#{searchFormMB.eventCboPersonnelsChanged}">
                <f:selectItems id="personnelItem" value="#{searchFormMB.personnelItems}"/>
            </h:selectOneMenu>
        </p>
        <p>
            <h:selectOneMenu id="cboEssais" value="#{searchFormMB.essaiChoisi}" binding="#{searchFormMB.cboEssai}"
                             onchange="submit()" valueChangeListener="#{searchFormMB.eventCboEssaiChanged}">
                <f:selectItems id="essaiItem" value="#{searchFormMB.essaiItems}"/>
            </h:selectOneMenu>
        </p>
    </f:subview>The problem is with the last cbo (id="cboEssais") since "#{searchFormMB.eventCboEssaiChanged}" is called for the active page and for all previous pages. That means it is called once for the first page visited, twice for the second page visited, three time for the third page visited, ...
    Any idea about this problem ? Thanks

    When i change page valueChangeListener fired at stage RENDER_RESPONSE 6 and when cbo is change valueChangeListener fired at stage PROCESS_VALIDATIONS 3.
    In both cases the number of successive fires (call of valueChangeListener) is equal to the number of (re)visited pages since beginning of the session.

  • Problem with portlet addin

    Hopefully someone can help me with the following problem, I'm trying to setup a demo of portlets for a customer.
    I've downloaded the latest portlet wizard addin that supports JSR 168. But after following the installation instructions it did not work for me.
    When clicking the finisch button on the Java Portlet wizard the following exception occurs:
    Exception occurred during event dispatching:
    oracle.xml.parser.v2.XMLDOMException: Node does not exist.
    org.w3c.dom.Node oracle.xml.parser.v2.XMLAttrList.removeNamedItemNS(java
    .lang.String, java.lang.String)
    XMLAttrList.java:711
    I've tried this with jdev 9.0.3.2 and 9.0.3.3.

    Hello Jelco,
    Did you install the Java Web Service Developer Pack 1.3 or 1.2 ?
    My guess is you are using the 1.3 and this is the reason why you have get this error.
    Sun provide access to all previous downoad in the archive section:
    http://java.sun.com/webservices/archive.html
    If you installed 1.3 could you please install 1.2 and let me know ?
    Regards
    Tugdual

  • Problems with Portlet projects

    Hi,
    Started using Java Studio Enterprise recently (now that it's free) since I am developing portlet applications for an organization running the enterprise system in production use.
    The IDE is great (love the UML stuff) but I've run in to a couple of problems that are really slowing me down.
    When I run a portlet project in the Application Server (using the Harness portlet provider/Portal Server simulator) I noticed that every request made to the Portlet is duplicated. So if I have a line like...
    System.out.println("Portlet: doView()");
    ... in the Portlets doView method I get this in the server log:
    [#|2006-01-13T12:09:27.093+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=31;|
    Portlet: doView()|#]
    [#|2006-01-13T12:09:27.109+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=31;|
    Portlet: doView()|#]
    Why is this happening and what can I do about it? I first noticed this when I was using a DAO from a portlet and all my sql statements got executed twice!
    The other thing that's annoying me is that when i shutdown the ide, my datasource reference is whiped out from my web.xml file. So everytime I start Studio Enterprise I have to manually edit the web.xml file to get my datasource working. I have configured my datasource with the IDE (new File > Sun Resource -> JDBC resource...).
    Any ideas?

    Unfortunately this is a bug in in JSE 8.0. It will be fixed in the currently developed JSE 8.1, but for now there exists a work-around (quoting our portlet builder engineer):
    1. Go to folder <userdir>/config/ps/Harness
    (e.g.: "C:\Documents and Settings\<username>\.jstudio\Ent8\config\ps\Harness")
    2. Open jsp file "PSSimTarget.jsp" in
    <userdir>/config/ps/Harness/web/desktop/default/harness/PSSimTarget.jsp
    3. Find next lines at the top of the file:
    <i18n:set
    var="locale"><%=ProviderHarness.getHarness(request,response,pageContext).getLocaleString()%></i18n:set>
    <i18n:setLocale value="${locale}" scope="session"/>
    <i18n:setBundle basename="i18n.Bundle" var="myBundle"/>
    4. Replace it with next lines:
    <%
    HttpSession httpsession = request.getSession();
    ProviderHarness tmpObj =
    (ProviderHarness)httpsession.getAttribute("desktop.Simulator.ProviderHarness");
    if (tmpObj == null) {
    %>
    <i18n:set var="locale"><%=ProviderHarness.getHarness(request,response,pageContext).getLocaleString()%></i18n:set>
    <%
    %>
    <i18n:setLocale value="${locale}" scope="session"/>
    <i18n:setBundle basename="i18n.Bundle" var="myBundle"/>
    Every time when you start studio with new userdir, you should change PSSimTarget.jsp to avoid double requests.

  • JSF PROBLEM With Weblogic

    hello All,
    If I Put this Code in Our JSF File then Weblogic Server Will Go Down.i don't know what the problem in this Code .
    if Any one know please reply me.
    thanks
    reetesh
    <h:panelGroup style="width:30%">
                                  <t:div styleClass="recommendationListDiv">
                                       <h:outputLink styleClass="listicon-book" value="#">
                                            <f:verbatim>Business Plans Made Simple</f:verbatim>
                                       </h:outputLink>
                                       <t:htmlTag value="br"></t:htmlTag>
                                       <h:outputLabel value="#{appMsg.author}" styleClass="subheader"
                                            rendered="true"></h:outputLabel>
                                       <h:outputLabel value="reetesh1 yadav">
                                       </h:outputLabel>
                                       <t:htmlTag value="br"></t:htmlTag>     
                                       <jsp:include page="help.jsp"></jsp:include>
                                       <h:outputLabel value="#{appMsg.publisher}" styleClass="subheader"
                                            rendered="true"></h:outputLabel>
                                       <h:outputLabel value="reetesh1 yadav">
                                       </h:outputLabel>
                                       <h:outputLabel value="#{appMsg.publisher}" styleClass="subheader"
                                            rendered="true">
                                       </h:outputLabel>
                                       <h:outputLabel value="reetesh1 yadav">
                                       </h:outputLabel>
                                  </t:div>
                             </h:panelGroup>

    Logs?

  • JSF problem with h:selectOneMenu

    Hi Friends,
    First of all i would like to thank u all for ur previous valuable suggestions. I got stucked up with a problem.
    I have a dropdown list in which i have only 2 values 'Remodeling' and 'New'. When the user selects the option 'Remodeling' , i need to render a group of checkboxes.I tried lot many ways but didn't work.
    Could anyone plz help me out on this. Below is my sample code:
    Code to display drop down list
    <h:selectOneMenu value="#{gfmCoverageABean.constructionType}" valueChangeListener="#gfmCoverageABean.onConstructionTypeChange}">
    <f:selectItems id="typeOfConstructionProject" value="#{gfmCoverageABean.typeOfConstructionProjectList}" />
    </h:selectOneMenu>
    Code to render checkbox when drop down option selected is 'Remodeling'
    <h:outputLabel id="foundationLbl" for="foundation" value="#{PolicyLabels['GfmCoverageADetails.Foundation']}"
    rendered="#{gfmCoverageABean.constructionType eq 'Remodeling'}"/>
    <ig:checkBox id="foundation" value="#{gfmCoverageABean.gfmCoverageView.foundation}"
    rendered="#{gfmCoverageABean.constructionType eq 'Remodeling'}"/>
    Problem here is my checkbox is not getting displayed on any case.
    Thanks
    vijay

    Hello Vijay
    Displaying group of Checkboxes
    Use Value Change Listener and Create and panel Grid and render it to false
    in SelectOneMenu when the value is change it calls valueChangeListener
    there u check the event value if it is ur choice render panel grid to true simple.
    <h:selectOneMenu value="#{Bean.selectedCategories}"
              valueChangeListener="#{Bean.processValueChange}" onchange="this.form.submit();">
                   <f:attribute name="optionClasses" value="option1, option2" />
                   <f:selectItem itemLabel="Please select Industry" />
                   <f:selectItems value="#{Bean.selectCategories}" />
              </h:selectOneMenu>
    <h:panelGrid id="chkBox" binding="#{Bean.panel}" rendered="false">
    private HtmlPanelGrid panel = new HtmlPanelGrid();
    ///generate setter and getter
    public void processValueChange(ValueChangeEvent ae) throws Exception
              if(ae.getNewValue().equals("URChoice")){          
    getPanel().setRendered(true);
    This will solve the problem

  • JDeveloper 9i & JSF(Problem with FormTag class) ???

    I experiment with JSF Tehnology in JDeveloper 9i, and form my simple jsp page which looks like this:
    <HTML>
    <HEAD> <title>Hello</title> </HEAD>
    <%@ taglib uri="html_basic.tld" prefix="h" %>
    <%@ taglib uri="jsf_core.tld" prefix="f" %>
    <body bgcolor="white">
    <h:form id="testForm" formName="MyTestForm">
    </h:form>
    </body>
    </HTML>
    I got this compile error: " Error(8): formName is not a property
    of com.sun.faces.taglib.html_basic.FormTag "
    I looked in html_basic.tld and tag "formName" is regular declared, but class FormTag realy have no property "formName"... I am new in this tehnology and I need help! Anybody can help me?

    Just remove the formName attribute.
    erik

  • Problem with portlet

    i created a page and inserted 2 same portlet. The top portlet shows "internal server error" and the bottom portlet works fine.
    The portlet requires to access the database before displaying the pages

    I'm new to oracle 10g, so i'm not very sure what you mean.
    I currently deploy the application to AS oracle 10g server.using JSP to develop the form with java bean.
    When i look at the application.log, the error msg is "no provider session"
    and as usual, when i run the form, it shows "internal server error 500"
    May i know how can i move the forum to Portal Forum

  • JasperReports + ADF JSF: Problems with report on Lifecycle.PREPARE_MODEL_ID

    Hi people!
    I have created a report using Jasper and iReports. Then i have coded the call to this report in two different places: In the Application Module, i obtain the JasperPrint and fill it with data. Then in my backing bean, i created a method that calls it through OperationBinding.execute() , and exports it using JRPdfExporter, using as output: FacesContext.getCurrentInstance().getExternalContext().getResponse().getOutputStream(). In other words, i am exporting the print to a PDF Stream and flushing it to the HttpServletResponse under the current Faces Context.
    This works just fine when i call the method with a command button, it runs the code and displays the PDF on the page. Yet, i need a different approach: When i click the button, i want to launch a Dialog Window which will show the actual report. So i did some modifications to my code: I created a new page and the navigation case to redirect to it (dialog:showReport). Then i created a managed bean implementing the PagePhaseListener interface, and coded the beforePhase method to run the report creation when it enters the Prepare Model Phase.
    Now, when i run the application, the dialog is displayed, and it goes through the whole method (i saw it by debugging). It even shows the Adobe logo while starting Acrobat Reader. But the dialog page never shows anything... it stays blank forever, and does not allow me to right-click it and display the HTML Source Code (the context menu is blocked).
    Do you know why the report is not displayed on the Prepare Model phase? I have tried the Prepare Render also, but to no avail. Also, after calling the ExportReport method for the response, i have changed the outputStream to a file and exported right after. To my surprise, the PDF is correctly generated on the file! How can i display the report in a pop-up window? Has anyone developed a similar solution?
    I'd appreciate any response whatsoever.
    Thanks in advance for your time!
    Thiago Souza

    Hello Frank,
    Although I do not have code as in Rade's code, I still have the same problem.
    Following is the scenario where this exception occurs:
    We have 2 web-apps in single application. The home page is not a secure jsp. Home page has links to web-app 1 and web-app 2.
    1. From home page access web app 1. This prompts login page (SSO login page). User logs in.
    A new session is created in web-app 1.
    2. Come back to home page and access web app 2 (this creates new session in web-app2).
    3. Come back to home page and Access web app 1. Hit logout from within web-app 1. (SSO logout code kicks in See below).
    This shows SSO logout page, with "Return" button. Clicking on this button takes the user back to home page.
    NOTE that this SSO logout code only invalidates the session in web app 1. The session created in web-app 2 is still there.
    4. Now click on web-app 2. This throws the exception.
    HttpSession session = request.getSession(false);
    session.invalidate(); // THIS INVALIDATES ONLY SESSION FROM WEB_APP 1 try {
    String return_url = "/webapp1/index.jsp";
    response.setHeader( "Osso-Return-Url", return_url);
    response.sendError( 470, "Oracle SSO" );
    } catch(Exception e) {
    log.error("exception = " + e.getMessage());
    This exception will not occur if you access web-app1 then logout. Then access web-app2 then logout. You can do these operations any number of times.
    Message was edited by:
    avpavan

  • JSF: Problem with checkboxes using Tomcat

    Hello,
    I m using Java Sun Creator and I�ve noticed a very strange behavior of checkboxes while running my project with Tomcat (I tried 5.5 and 6.0).
    On my JSP I have a tabSet component with 3 tabs. the second tab (the first tab in order is selected per default ) displays some boolean values using checkboxes. I set these values using SessionBean properties in an action method that navigates me to the page with the tabSet component. When deploying the application with JSC the values are correct after loading the page and when I select the second tab after that.
    When I start the application with Tomcat, the values are correct after loading the page (I�ve checked it displaying the values in a messageGroup), but when I select the second tab, which should show me these selected checkboxes, all of them and even the session bean properties have the value "false" (I see the result in the messageGroup too)?! I had to include my code to the prerender method of the tabSet-page to get the correct values but that has another bad side-effects!
    Does anybody have an explanation for this issue?

    More info,
    we add all drivers we use for the different databases we support, in this case we use classes12.jar and postgresql-8.2-504.jdbc3.jar
    I just let u know that becouse maybe exists conflicts between these two libraries. Could it be?
    thanks

  • Use JSF with Portlet JSR 168 Specification

    Hi
    I need to know.... is possible run JSF application with Portlet Specification JSR 168, using Pluto Portal and Apache Tomcat ???
    Best Regards
    Mauricio

    Hi,
    the Apache Jetspeed2 - Project has a bridge,
    that is designed to work with MyFaces.
    http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed-2/portals-bridges/myfaces/
    Hope it helps you.
    Regards,
    Matthias

  • Very big problem with JSF about FORM and "id=" for HTML form's elements and

    I have discovered a very big problem with JSF about FORM and "id=" for HTML form's elements and java instruction "request.getParameterNames()".
    Suppose you have something like this, to render some datas form a Java Beans :
    <h:dataTable value="#{TablesDb2Bean.myDataDb2ListSelection}" var="current" border="2" width="50%" cellpadding="2" cellspacing="2" style="text-align: center">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:outputText id="nameTableDb2" value="#{current.db2_name_table}"/>
    </h:column>
    </h:dataTable>
    Everything works fine...
    Suppose you want to get the name/value pairs for id="nameTableDb2" and #{current.db2_name_table} to process them in a servlet. Here is the HTML generated :
    <td><span <span class="attribute-name">id=<span class="attribute-value">"j_id_jsp_1715189495_22:0:nameTableDb2">my-table-db2-xxxxx</span></td>
    You think you can use the java instructions :
    Enumeration NamesParam = request.getParameterNames();
    while (NomsParam.hasMoreElements()) {
    String NameParam = (String) NamesParam.nextElement();
    out.println("<h4>"++NameParam+ "+</h4>);
    YOU ARE WRONG : request.getParameterNames() wants the syntax *name="nameTableDb2" but JSF must use id="nameTableDb2" for "<h:outputText"... So, you can't process datas in a FORM generated with JSF in a Servlet ! Perhaps I have made an error, but really, I wonder which ?
    Edited by: ungars on Jul 18, 2010 12:43 AM
    Edited by: ungars on Jul 18, 2010 12:45 AM

    While I certainly appreciate ejb's helpful responses, this thread shows up a difference in perspective between how I read the forum and how others do. Author ejb is correct in advising you to stay inside JSF for form processing if form processing is what you want to do.
    However, I detect another aspect to this post which reminds me of something Marc Andreesen once said when he was trying to get Netscape off the ground: "there's no such thing as bad HTML."
    In this case, I interpret ungar's request as a new feature request. Can I phrase it like this?
    "Wouldn't it be nice if I could render my nice form with JSF but, in certain cases, when I REALLY know what I'm doing" just post out to a separate servlet? I know that in this case I'll be missing out on all the nice validation, conversion, l10n, i18n, ajax, portlet and other features provided by JSF".
    If this is the case, because it really misses the point of JSF, we don't allow it, but we do have an issue filed for it
    https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=127
    If you can't wait for it to be fixed, you could decorate the FormRenderer to fix what you want.
    I have an example in my JSF book that shows how to do this decoration. http://bit.ly/edburnsjsf2
    Ed

Maybe you are looking for

  • Address book and Sim Card

    Is there a way to completely delete all contacts from my sim card?  Also, how can I add my phone numbers from my address book to the sim card all at once instead of one by one? 

  • Not enough memory to initialize the system??

    Hi, I am trying to write a little MIDlet but have experienced some trouble with starting the MIDlet. I use the phone S55 and the MIDlet has about 12KB. There are about 9 displayables all extending List but one, which is just a string item. All runs f

  • Relation between temp tablespace and index creation

    Hi, I have my Oracle database (11gR1) on windows 2008 server R1 64 bit.. This is my development database. i have one table which has more than 2 billion rows , the problem i m facing here is while creating the index on this table i m getting temp seg

  • I can't delete a keyword plus Lightroom now automatically displays keyword folders

    Lightroom has suddenly started behaving oddly with regard to keywords and I can't seem to find reference to it anywhere, even if it is "switch" that I have accidentally turned on. In my set up, I have, for example, the keyword "Portrait" stored under

  • Hiding Document versions from End user

    Hi I am in EP6 SP2 Patch 4 Hotfix 7 and CM Patch 4 Hotfix 4. We are utilising the "Version Management" feature within Content Management. After enabling "versioning" feature for the folder, I am able to upload multiple versions of the same document a