ADF faces update problem

Hi all, I'm using ADF faces + toplink. I have developed a form that first inserts mandatory fields of a record via persistEntity function and later in same page after inserting mandatory fields of record, I want to update empty fields of record that are firstly entered via persistEntity and which are not mandatory fields ... but ... in same page mergeEntity does not work as a result couldn't update the rest of the record in database. Both persistEntity and mergeEntity is binded to same field (<constructor-name.result>) of constructor.
I have watched from logs through processing of unit of work ... there is no update expression in logs like below :
[TopLink Finer]: 2006.05.11 04:30:35.546--ServerSession(1693)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client acquired
[TopLink Finer]: 2006.05.11 04:30:35.546--ClientSession(2557)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--acquire unit of work: 2556
[TopLink Finer]: 2006.05.11 04:30:35.546--UnitOfWork(2556)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--begin unit of work commit
[TopLink Finer]: 2006.05.11 04:30:35.546--UnitOfWork(2556)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--end unit of work commit
[TopLink Finer]: 2006.05.11 04:30:35.546--UnitOfWork(2556)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--release unit of work
please tell me , why mergeEntity does not update the rest of the record after successful insert via persist entity in same page!?
best regards...
--baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hi Frank, thanks for your interest to my problem :-)
I have passed this problem... I'm using session facade there is no problem in this point. I'm using ADF Faces + Toplink + Session Facades model clearly.
The problem is ; there is a database table which contains 30 fields and I want to get user input in one page so first of all I designed a page which gets input for only mandatory fields (not null) after returning successfully insert (a new record), I'm using the same record for other fields which are not mandatory. Because there is a newly created record, by using this record I want to update the rest of record. But mergeEntity method does not function well. I have controlled all of the fields in pageDef of this page. All are exists, but mergeEntity which points the same constructor method with persistEntity in pageDef does not function.
anyway, I passed this problem by means of creating new object and bindings this to mergeEntity method.
best regards...
--baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • [ADF BC | ADF Faces] Updating a table with values updated in transaction

    Summary: A table is based on a view with a bind variable. Based on some action, I update rows in the view so that they no longer satisfy the query. How do I update the table to reflect this?
    I have an ADF Faces page with a multi-select table component on it, mapped to an ADF Business Components view object. The view object has a bind variable (:Status), which is used in the query to only retrieve rows with a specific status.
    The user selects rows in the table that should have their status changed, and then hits a button to perform the action. In the backing bean for the page, the button click is processed and the selected rows are updated to a different status. At this point the transaction is not committed.
    Changing the status of these rows now means that they no longer match the where clause of the view object, yet they still appear in the table.
    My question is, how can I update the table so that rows which don't match the where clause are removed?
    This is a simplified version of the problem I am working on - this needs to work when rows that aren't in the table are being updated so that they now MATCH the where clause and rows may also be added or completely removed.

    Quite an interesting little problem....
    I have created a simple test case to illustrate your scenario - perhaps Steve M could comment...
    My scenario:
    1). create an EO based on the HR.EMPLOYEES table
    2). create an updatable VO based upon the aforementioned EO. Add "COMMISSION_PCT IS NULL" to the where clause.
    3). Add the VO to an app module as usual.
    4). Create an ADF Faces page by dropping the VO from the data control as an ADF table. Show only first name, last name, and commission pct.
    5). Add a command button to the page so I can call various code from the backing bean.
    Now, when I update the commision for the first record to ".1" and press the submit button (the one in the table actions facet), the update "takes" - I assume that it's just in the EO cache at this point. The record still shows on the screen, even though it no longer meets the where clause criteria.
    When I add some code to the command button (#5) to perform a commit - the record STILL shows on the screen after committing to the DB. I can make the record disappear by either (in the same backing-bean method that does the commit)
    a). Re-execute the iterator after the commit
    b). Call "clearVOCaches" on the application module (forces the iterator to re-execute)
    I even tried programmatically adding the where clause back in (via addWhereClause) and re-executing the iterator - no go. I suspect that the only way to do this would be to post the changes to the DB (without committing them) and then re-execute the query. This, however, would be a killer from a scalability perspective.
    John

  • ADF faces logout problem

    Hi.
    I've a problem with ADF faces that I didn't had when I was using the JSF reference implementation. W're using Jboss as a container, but that has nothing to do with this.
    Basicly, the users triggers a logoff by clicking a link that leads to the "logoff" JSF page.
    This page has exactly this content, and nothing more:
    <%-- Tag libraries --%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="/WEB-INF/tlds/refdataportal.tld" prefix="r" %>
    <%
    org.mycompany.Util util = new org.mycompany.Util();
    util.logoff(request);
    response.sendRedirect("Goodbye.jsp");
    // code DOES reach this point
    %>
    The logoff function does this:
    // invalidate faces
    FacesBean.releaseContext();
    // invalidate the current session for good measure
    HttpSession session = request.getSession(false);
    if (session != null)
    session.invalidate();
    // force the old session to go to the eternal fields of session objects
    request.getSession(true);
    The redirect to Goodbye.jsp is needed to force a "JBOSS" logoff as well.
    Goodbye.jsp is a JSP page (** not ** JSF) which a simple goodbye message.
    Anyway, since using ADF I get the stacktrace shown below.
    I did try to call release() on AdfFacesContext, but that didn't help.
    Do note that we actually reach the line "// code DOES reach this point" shown in the logoff JSF page above... so the redirect() statement is executed.
    Anybody knows how to deal with this?
    Remember, it used to work perfectly fine with the reference impl.
    Regards,
    Falco Paul
    12:33:44,580 ERROR [Engine] StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw excep
    tion
    java.lang.IllegalStateException
    at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:382)
    at com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:110)
    at oracle.adfinternal.view.faces.context.AdfFacesPhaseListener._releaseContextIfNecessary(AdfFacesPhaseListener.
    java:129)
    at oracle.adfinternal.view.faces.context.AdfFacesPhaseListener.afterPhase(AdfFacesPhaseListener.java:60)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:356)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:325)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:190)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at com.abnamro.crd.admin.PortalFilter.doFilter(PortalFilter.java:113)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)

    Hi!
    Unfortunally your suggestion didn't work. I did however discover that the exception is only thrown if one uses ADF faces components. There is no error message if reference implementation components are used (even if using the ADF faces renderer class).
    Anyway, this is what I trie:
    I first did a a regular faces responseComplete() call, as I figured that could be the missing action, but again I got the same exception:
    java.lang.IllegalStateException
         com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:382)
         com.sun.faces.context.FacesContextImpl.getExternalContext(FacesContextImpl.java:110)
         oracle.adfinternal.view.faces.context.AdfFacesPhaseListener._releaseContextIfNecessary(AdfFacesPhaseListener.java:129)
         oracle.adfinternal.view.faces.context.AdfFacesPhaseListener.afterPhase(AdfFacesPhaseListener.java:60)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:211)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:356)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:325)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:190)
         oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         com.abnamro.crd.admin.PortalFilter.doFilter(PortalFilter.java:113)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
    Then later I tried this actually calling the faces "sendRedirect" function shown below (that is: prior to calling the logoff() code), but again I got the same Oracle exception (see above).
    // helper method: redirect to some URL (which may be either absolute or relative)
    public synchronized static void redirect(String url)
    ExternalContext external = getExternalContext();
    if (external == null)
    return;
    try {
    external.redirect(url);
    catch (Exception e)
    e.printStackTrace();
    responseComplete();
    So... unfortunally I did still not get much further...
    Regards,
    Falco

  • ADF Faces Dialog problem.

    Hi,
    I am using JDeveloper IDE- 10.1.3.3.
    I have a ADF Faces Dialog (launch Dialog) with a form and several input text components binded to a Backing Bean.
    When Dialog is opened for the second time, the values of the text components loaded with previous values which I have enterd for the first time.
    Scope of the Backing Bean is Request.
    All the launch Dialogs are working in the same way.
    The problem exists when I run the application from Application server(10.1.2.0).
    It works fine from the JDeveloper.
    How to do this ? please help!
    Its very urgent.
    Note: I have different application with similar launch dialog and functionality which works fine on the same Server and JDeveloper.
    Thanks in advance.
    Supravat

    Supravat,
    A sample of the pertinent code from a dialog that persists values would be helpful here.
    -Michael

  • ADF Faces Form problem

    Hi all,
    I'm using JDev. 10.1.3, ADF Faces + Toplink infrastructure to build pages in my system.
    My problem can be solved easily via old jsp architecture but I don't know how to achieve by using ADF Faces.
    I want to create a simple form in ADF Faces just like below;
    <form name="pay_form"
    action="https://www.payformstore.com/servlet/payServlet"
    method="post">
    <input type="hidden" name="clientId" value="ABC45"/>
    <input type="hidden" name="amount" value="5.00"/>
    </form>
    But in ADF Faces, as you know when a form created (af:form or h:form), the included command button in form is only fired to call the method in backed bean of relevant .jspx page. All things there must be achieved are handled in backed bean so I can't use the servlet address in action in simple form
    (https://www.payformstore.com/servlet/payServlet). I tried to use external context to redirect to this address/ servlet (https://www.payformstore.com/servlet/payForm) but servlet does not accept this redirection, it only accepts http post and gives the HTTP 405, method not allowed error.
    So I tried to use simple html <form ..> </form> tag in my adf faces page (.jspx page) in
    <f:verbatim> tag but I can't pass parameter from managed bean to input type hidden fields. (<input type=hidden name="a" value="#{payForm.parameter1}"/>) Also I have used jstl to pass parameter via <c:out ...> to input type hidden field in this simple form but it was useless.
    So please tell me how to create a simple form which has a action parameter and post method with dynamically binded form fields (just like input type hidden or any other fields) in adf faces pages.
    If there will be no answers I may use simple jsp pages in the end.
    best regards....
    --baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi frank, I solved problem in a different way.
    First of all, I have developed the required form by coding with the pure JSP + HTML.
    There is no <HTML>, <BODY> tags in this new jsp file. Before calling this jsp file, I stored the required managed bean into HTTP Session as an object and in this jsp file, the hidden form fields are filled by this session object. In my ADF faces file, I have included this jsp form field with,
    <f:verbatim>
    <jsp:include ...>
    </f:verbatim>
    and there is no problem, Everything is, now, ok!
    thanks for your interest.
    best regards...
    --baris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ADF Faces: localization problem

    Hi,
    after migrating from EA17 to EA19 the localization of my ADF Faces application doesn't work properly on IE anymore. If English is included in the list of languages the application will be English no matter if German is at a higher priority.
    Only when I delete English and make German the only language in my browse will the application be German

    Well, for some reason this phenomenon doesn't occur anymore. I made quite some changes to my application since, so maybe it was my mistake. Sorry.
    In any case the language list I meant was the browser's language setting, both on IE and Firefox

  • ADF Faces Tutorial problem

    Hello, I am trying to get into ADF Faces and therefore I am trying to do the SRDemo.
    Since I dont hace Oracle, I am trying it in MySQL 5.0. I created the squema with success.
    When I try to do the TopLink maps from DB tables, JDeveloper "hangs" in the "Java Object Generation" progress dialog. At the bottom of JDeveloper, it reads TopLink Mappings project. I even tried to create a mapping at a time and the same thing happens.
    Can somebody help me please?
    nene

    Hi,
    I found 3 bug entries describing a similar issue. All three bugs are fixed in 10.1.3 production. There is a specific TopLink help list on OTN, that I sugget you try this question
    TopLink/JPA
    Frank

  • ADF FACES: font problems on readOnly selectOneChoice

    The output text from an af:selectOneChoice with readOnly="true" is a different font than with readOnly="false" and different than af:inputText with readOnly="true".
    Looking at the generated html, the output from a readOnly selectOneChoice has no class associated with it. The other text elements are given class="x4" (which I think equates to a styleClass of OraFieldText).
    Also, I can't change the font by specifying a styleClass on the af:selectOneChoice - it appears to have no effect on the output html.
    This seems like a bug.
    Thanks.

    You're right that when the selectOneChoice is in readOnly mode, its selectedItem does not have a styleClass associated with it and that setting a styleClass on the readOnly selectOneChoice does not set the styleClass on its selectedItem. This is a bug. Thanks for pointing it out.
    However, you said:
    "Also, I can't change the font by specifying a styleClass on the af:selectOneChoice - it appears to have no effect on the output html."
    In my tests, setting the styleClass attribute on the af:selectOneChoice tag does result in correct markup with a styleClass set on the actual HTML Select control (although, the label doesn't get the user defined styleClass, which is correct behavior). Are you seeing output that doesn't match this?
    Regards,
    Matt Lee
    ADF Faces Team

  • ADF Faces: Newbee problem with table

    Hello,
    I try to generate a table like in the demo app:
    <af:form>
    <af:table allDetailsEnabled="true" var="row"
    bandingInterval = "2"
    banding = "row"
    value="#{projectView.currentProjects}" rows="5">
    <af:column sortable="true" sortProperty="proj_name">
    <f:facet name="header">
    <af:outputText value="#{bundle.proj_name}"/>
    </f:facet>
    <af:outputText value="#{row.proj_name}"/>
    </af:column>
    <af:column sortable="true" sortProperty="proj_descr">
    <f:facet name="header">
    <af:outputText value="#{bundle.proj_descr}"/>
    </f:facet>
    <af:outputText value="#{row.proj_descr}"/>
    </af:column>
    <f:facet name="detailStamp">
    <af:panelGroup type="vertical">
    <af:outputText value="Name: #{row.proj_name}"/>
    <af:outputText value="Descr: #{row.proj_descr}"/>
    <af:outputText value="Volume: #{row.proj_volume}"/>
    <af:outputText value="Area: #{row.proj_area}"/>
    </af:panelGroup>
    </f:facet>
    </af:table>
    </af:form>
    The currentProjects method returns a database query as a list of beans. The content of the beans is displayed. My problem is, when I click on e.g. 'Next' or 'All Details' nothing happens and I get javascript errors like this:
    Error: _submitPartialChange is not defined
    Source File: http://localhost:8080/timerec/faces/ADFbrowseProjects.jsp
    Line: 25
    I´m using EA 13. What am I doing wrong?
    Thanks, Axel

    The problem you're encountering is that the table view is being re-initialized whenever the underlying table model changes. Thus, the navigation appears to do nothing. The demo code doesn't "appear" to do anything special because the af:table value property is bound to a managed bean, periodicTable, that has session scope. Thus the table is built only once and the value binding is simply returning the same java object every time.
    For you to accomplish the same thing, your code will need to return the SAME OBJECT (since I can't see the source code I don't really know if it's using object identity or equals()) each time unless your underlying data has actually changed.
    I'm struggling with the same thing. I'm working with a small table and it's just easier to manage concurrency issues by pulling the data out of the database every time instead of building the logic to detect a change, but I'm having to build that due to this behavior.

  • ADF Faces skins problems using libraries

    Hi,
    I have been trying to use the tutorial on the following website:
    http://www.oracle.com/technology/products/jdev/101/howtos/adfskins/index.html
    This shows you how to create skins and things. The only problem is that I cannot see the view that is shown in the screenshot. I.e. I get a load of garbled gabage showing me the tags in the document instead of whats visually there.
    I realise this is a problem with the library but everytime I try and set up the JSF and ADF libraries in the JSP Tag libraries of Tools->Manage Libraries I click the Execute Tags in JSP Visual Editor it lets me do it but then I click refresh on the window with sample.jspx in it and JDeveloper just dies.
    The libraries I am using I have downloaded and followed the instructions on
    http://www.oracle.com/technology/products/jdev/howtos/10g/jsf_howto/jsf.html
    To do the JSF libraries and I have followed the same instructions for the ADF libraries. If anyone has any idea I would be glad of the help
    Cheers
    Daniel

    I tried the same example and it is working fine with me. May I know the JDeveloper version you are using?

  • ADF Faces - Weblogic: Problems about rendering ADF pages

    Hi! We have an application that we have generated 2 EAR for installation with 2 different contexts (consequently, it have 2 different address), and after the installation, the main page of an application is showing correctly and the other application show problems in the rendering. The two applications have the same pages. We had to do it to accomplish a request from our customer. Anybody have any idea how to solve that?

    Hi
    You must setting web descriptor of each application for solve it, like this:
    <weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
    <session-descriptor>
           <cookie-path>/youAppName</cookie-path>
      </session-descriptor>     
    ...Thanks,
    Felipe

  • ADF faces frames problem tree menu  encode called instead of decode

    Sorry , till now i have no investigated the problem completely
    Message was edited by:
    K.Penev

    Sorry , but it's difficult to be achieved - i must send you the whole system.
    I have noticed some of the circumstances when the problem appears;
    I dont know , how it is connected but it is a fact:
    When execute rollback on opening dialog window (in prepareModel);
    If i set some view object attributes and close dialog
    If i make a new record and commit
    I forget to mention also that the View Objects used in the dialog window which i open is located in different application module then the main page content.
    The interesting here is that i have another similar situation (opening dialog with own app module)which in the most of the time work (but also sometimes appear the same problem)?!?
    Sorry that i cannot be more precise , but It 's very difficult to catch from where exactly the problem comes.
    Is it possible on return from dialog and release some appl module into the pool , the menu page somehow to be destroyed and as result encode to be called instead of decode?
    Message was edited by:
    K.Penev

  • ADF Faces: Update Tree Contents

    Does anyone know how to update the contents of a Tree component.

    To be more specific, I want to be able to refresh the tree contents CRUD (Create, Read, Update, Delete) operations are performed on the tree nodes.
    Currently I provide a tree model by extending ChildPropertyTreeModel.
    On every CRUD operation I create a new model, but the tree does reflect the contents of the new model.
    How do can I make the tree refresh it's contents?

  • Adf faces demo problem

    I've installed adffacesdemo in to my local Jdeveloper instance. When I try to run the index.jspx file, it's giving a warning message about http port conflict and suggest to click OK for auto port assignment. I clicked OK for auto port resolution, but it fails to start to WLS and gives the following error. any ideas are appreciated. I'm using Jdev11.1.1.3.0. any ideas are apperciated.
    HTTP port conflict detected. The HTTP port will be reassigned to port 7102.
    <Aug 23, 2010 3:17:44 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Aug 23, 2010 3:17:44 PM PDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Aug 23, 2010 3:17:44 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    Process exited.
    Thanks,
    Surya
    Edited by: sgodavar on Aug 23, 2010 3:42 PM

    Thanks Frank. I did a clean start of WLS and this time there is no port conflict, but it failed to deploy the application. any idea about this error(sorry for long error stack message). I'm a newbie for Jdev, any ideas are appreciated.
    *** Using port 7101 ***
    "C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\bin\startWebLogic.cmd"
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.3.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\OracleBI\web\bin;C:\OracleBI\web\catalogmanager;C:\OracleBI\SQLAnywhere;C:\Program Files\Java\jdk1.5.0_15\bin;C:\OracleBI\server\Bin;C:\ADE\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\emacs\bin;c:\PROGRAM FILES\TERATERM;C:\CYGWIN\BIN;c:\Program Files\WinZip;\\StCifsRR1.us.oracle.com\packages\windows\packages\farm\farm;\\StCifsRR1.us.oracle.com\packages\windows\packages\farm\sfe\generic;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80 "-Dhttp.nonProxyHosts=*oraclecorp.com|*oracle.com|localhost|localhost.localdomain|127.0.0.1|::1|sgodavar-pc.us.oracle.com|sgodavar-pc" -Dhttps.proxyHost=www-proxy.us.oracle.com -Dhttps.proxyPort=80 "-Dhttps.nonProxyHosts=*oraclecorp.com|*oracle.com|localhost|localhost.localdomain|127.0.0.1|::1|sgodavar-pc.us.oracle.com|sgodavar-pc" -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Ddomain.home=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\FMWCON~1 -Doracle.server.config.dir=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.security.jps.config=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\sgodavar\APPLIC~1\JDEVEL~1\SYSTEM~1.60\DEFAUL~1\oracle\store\gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
    <Aug 24, 2010 10:34:24 AM PDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 16.0-b13 from Sun Microsystems Inc.>
    <Aug 24, 2010 10:34:25 AM PDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >
    <Aug 24, 2010 10:34:28 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Aug 24, 2010 10:34:28 AM PDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Aug 24, 2010 10:34:28 AM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 24, 2010 10:34:28 AM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00008. Log messages will continue to be logged in C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <Aug 24, 2010 10:34:28 AM PDT> <Notice> <Log Management> <BEA-170019> <The server log file C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <Aug 24, 2010 10:34:36 AM PDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Aug 24, 2010 10:34:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Aug 24, 2010 10:34:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Aug 24, 2010 10:35:22 AM PDT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application BrowseEditApp is not versioned.>
    <Aug 24, 2010 10:35:53 AM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Aug 24, 2010 10:35:53 AM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00006. Log messages will continue to be logged in C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <Aug 24, 2010 10:35:53 AM PDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Aug 24, 2010 10:35:55 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Aug 24, 2010 10:35:55 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Aug 24, 2010 10:35:55 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 24, 2010 10:35:55 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 144.25.110.215:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Aug 24, 2010 10:35:55 AM PDT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <Aug 24, 2010 10:35:56 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Aug 24, 2010 10:35:56 AM PDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    IntegratedWebLogicServer startup time: 98297 ms.
    IntegratedWebLogicServer started.
    [Running application adffacesdemo on Server Instance IntegratedWebLogicServer...]
    [10:35:58 AM] ---- Deployment started. ----
    [10:35:58 AM] Target platform is (Weblogic 10.3).
    [10:36:02 AM] Retrieving existing application information
    [10:36:03 AM] Running dependency analysis...
    [10:36:03 AM] Deploying 2 profiles...
    [10:41:57 AM] Wrote Web Application Module to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\adffacesdemo\adffacesdemoWebApp.war
    [10:42:00 AM] Wrote Enterprise Application Module to C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\adffacesdemo
    [10:42:00 AM] Deploying Application...
    <Aug 24, 2010 10:42:44 AM PDT> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application C:\Documents and Settings\sgodavar\Application Data\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\adffacesdemo\adffacesdemoWebApp.war. Please make sure that the annotations are valid. The error is org.apache.myfaces.trinidad.webapp.ResourceServlet>
    <Aug 24, 2010 10:42:44 AM PDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1282671732296' for task '0'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'adffacesdemo-adffacesdemo-context-root''
    weblogic.application.ModuleException: Failed to load webapp: 'adffacesdemo-adffacesdemo-context-root'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: org.apache.myfaces.trinidad.webapp.ResourceServlet
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         Truncated. see log file for complete stacktrace
    >
    <Aug 24, 2010 10:42:44 AM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'adffacesdemo'.>
    <Aug 24, 2010 10:42:44 AM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Failed to load webapp: 'adffacesdemo-adffacesdemo-context-root'
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
         at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: org.apache.myfaces.trinidad.webapp.ResourceServlet
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         Truncated. see log file for complete stacktrace
    >
    [10:42:44 AM] #### Deployment incomplete. ####
    [10:42:44 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application adffacesdemo due to error deploying to IntegratedWebLogicServer.
    [Application adffacesdemo stopped and undeployed from Server Instance IntegratedWebLogicServer]

  • URGENT: ADF Faces table updating issue.

    I have a project that uses JSF, ADF Faces, EJB 3.0, and the ADF binding framework.
    In this project, I have a page with a databound ADF Faces Table. The table has a number of read-only columns and two read-write columns. I also have an Edit button that allows the user to pop up a dialog box to edit the selected row of the table. When the user clicks OK in the dialog box, the data is passed back to the main page and the table is updated.
    Everything works correctly for the read-only columns. For the read-write columns, however, the table data does not get updated following an edit. This is what I have found:
    1. The table row data gets passed in to the Edit dialog correctly.
    2. The data gets passed back correctly.
    3. The model gets updated correctly (up to and including the database).
    4. Looking at the iterator in the debugger shows the correct, updated data.
    5. When the table row is getting redrawn, the getter calls for the read-write columns return the updated data.
    6. As mentioned above, the read-only columns get updated correctly.
    7. Updating the read-write columns directly from the table works correctly.
    So, the problem appears to be in the GUI layer. I suspect that, somehow, the submitted values of the read-write columns are not getting set properly, but I cannot figure out how to do this.
    Note that clicking on the Edit button results in a partial submit. In the return listener, I add a call to AdfFacesContext.getCurrentInstance().addPartialTarget(getRecipientTable()) in order to redraw the table (getRecipientTable() is the bound value of the ADF table).
    Please help! We are so close to production and we need to fix this.
    Thanks,
    Ara

    Hi,
    I don't have a testcase for this, so I just come up with ideas to try
    1. refresh the parent container of the table. It seems that the input text components are not triggered to refresh if the refresh is on the table.
    2. If using ADF, make sure the update is performed directly on theiterator (which automatically is the case if you use a ADF bound form for this)
    3. Check if executing the table iterator and then setting back the current row makes a difference
    Frank

Maybe you are looking for