ADF 10g:HttpServletRequest.getSession vs ExternalContext.getSession

Hi all,
I'm reviewing some code in our application and I would like to confirm my understanding of how to properly use session attributes on the view layer.
In my servlet doFilter method I get my session using:
HttpSession session = servletRequest.getSession(true);
I also came across this blog post:
http://andrejusb.blogspot.com/2012/01/how-to-access-session-scope-in-adf-bc.html
which calls getSession from FacesContext.getCurrentInstance().getExternalContext.getSession
http://docs.oracle.com/cd/E17802_01/j2ee/j2ee/javaserverfaces/1.2/docs/api/javax/faces/context/ExternalContext.html#getSession(boolean)
Am I correct in my understanding that according to the javadoc, the getExternalContext.getSession returns the same HttpSession object as in HttpServletRequest.getSession?
Many thanks
Wes

Hi,
yes, this is correct
Frank

Similar Messages

  • NoSuchMethodError: HttpServletRequest.getSession()

    I've installed Oracle 8i AS on NT4. It comes with Apache JServ v1.0 - apparently complient with Servlet API v2.0 - and JVM v1.1.
    I've checked Servlet API v2.0 on Sun's site and HttpServletRequest.getSession() is definitely there! So why do I get the following error in jserv.log?
    [26/01/2001 14:33:36:453 GMT] java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest: method getSession()Ljavax/servlet/http/HttpSession; not found
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java)
    at org.apache.jserv.JServConnection.run(JServConnection.java)
    at java.lang.Thread.run(Thread.java:479)
    Thanks in advance for your help.
    JMR
    null

    The issue was with some HTTP port change and not with the above code.

  • How to Hide JBO Exceptions in JSF Pages in ADF 10g

    Hi All,
    How to hide the JBO Exceptions in ADF 10g, for example JBO-27122: SQL error during statement preparation. I have been used the same customizing error handler which was specified in bcadfdevguide. But the method reportexception which will call disableappendcodes is not doing anything in my case.
    I want to show some decent errors instead of JBO errors to the user, appreciate if you help me on this.
    thank you.

    Hi Jobinesh,
    Thanks for the reply, actually i am looking to show the user our own customized error instead of JBO errors, i don't know whether the method skipexception will skip it or i can override it to show customized exceptions. and registering the customerrorhandler in databindings is different from registering the customphaselistener class in faces-config.xml which was usually done in 10g.
    But in my case, even though i followed everything what was specified in dev guide, i am not getting the result. Hence this post in forums :)
    Thanks.

  • What are the differences between oracle adf 10g and adf 11g

    Could you please let me know what are the diff b/w oracle adf 10g and 11g, i tried in many user guides but i could not find it.
    Thanks in advance,
    Poli Reddy P

    893771 wrote:
    Hi all,
    I would like to know what the differences between Oracle and other NoSQL database are.
    When and why should we use Oracle?I suggest that you start here:
    http://www.oracle.com/technetwork/database/nosqldb/overview/index.html
    Is Oracle NoSQL database link with Big Data Appliance?Yes, Oracle NoSQL Database will be a component of the Big Data Appliance.
    Can we use map-reduce on a single personal computer? How should we install Oracle NoSQL database to use map reduce on a single personal computer?Yes, I believe you can run M/R on a single computer. Consult the various pieces of documentation available on the web. You may run Oracle NoSQL Database on the same computer that you are running M/R on, but it is likely that they will compete for CPU and IO resources and therefore performance may suffer.
    Do we also have eventual consistency with Oracle NoSQL database? Yes.
    Can we lose data if master node fails?If you run Oracle NoSQL Database with the default (recommended) durability settings, then if the master fails, a new one will be elected and data is not lost.
    Are transactions ACID with Oracle NoSQL database? How can we prove it?Yes, each operation is executed in an ACID transaction. The API has the concept of "multi" operations which allow the caller to perform multiple operations on sets of records with the same major key, but different minor keys. Those operations are also performed within a transaction.
    Charles Lamb

  • Migration of  ADF 10g application to ADF 11g(Portlet Customization Error)

    Hi,
    Currently we are doing a migration of ADF/Webcenter 10g appication to 11g(11.1.1.6) and in the current 10g application portlet is used which contains the file based content and can be customized using a specific role say(admin).
    We have almost done the migration using the Jdeveloper 11.1.1.6 and most of the pages along with the portlet content are coming similar to the 10g look and feel but whenever we want to do portlet customization using the specific role we are getting the below exception. The content is file based system and the details of the versions are as below
    10g Environment:
    OC4J version. Oracle Containers for J2EE 10g (10.1.3.5.0)
    JDK version- java version "1.5.0_06"
    Webcenter and it’s version : Webcenter 10g(10.1.3.5.0)
    ADF version. Oracle ADF 10g
    Jdeveloper 10.1.3.3.0
    11g Environment: Currently I am using Jdeveloper 11.1.1.6 with Integrated weblogic server
    webcenter extension used: oracle.webcenter.framework_bundle/oracle.webcenter.customization_bundle
    Error which I am getting during portlet customization:
    [2013-02-20T14:47:42.162+05:30] [DefaultServer] [ERROR] [] [oracle.portlet.binding] [tid: [ACTIVE].ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: portaladmin] [ecid: 39e706a46ad531be:31f43ddc:13cf6ad5231:-8000-0000000000000386,0] [APP:TEST_DEV#V2.0] An error has occured for Portlet Binding portlet3.[[
    java.lang.NullPointerException
    at oracle.adfinternal.model.portlet.binding.PortletModelImpl.getRequireIframe(PortletModelImpl.java:907)
    at oracle.adfinternal.model.portlet.binding.ActivityPortletModelWrapper.getRequireIframe(ActivityPortletModelWrapper.java:71)
    at oracle.adf.model.portlet.binding.PortletBinding.prepareRenderPhase(PortletBinding.java:455)
    at oracle.adf.model.portlet.binding.PortletBinding._refresh(PortletBinding.java:377)
    at oracle.adf.model.portlet.binding.PortletBinding.refresh(PortletBinding.java:969)
    at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3273)
    at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:561)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:82)
    at oracle.adf.controller.v2.lifecycle.Lifecycle$9.execute(Lifecycle.java:224)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$1000(ADFPhaseListener.java:23)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$5.before(ADFPhaseListener.java:402)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:64)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:352)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    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:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Any hellp or suggestion will be helpful for me to resolve this issue.
    Thanks in Advance
    Chetan

    Hi,
    given its a WebCenter question, you want to post it to the Webcenter forum: WebCenter Portal
    Frank

  • Embedding OBIEE  in ADF 10g

    Hi,
    I have a requirement to show fairly complex graphs on an ADF page. We are exploring various options. One of those is OBIEE. I want to know if it is possible to 'embed' OBIEE output on an ADF 10g page.
    I believe ADF 11g natively supports some graphing features, however, my requirement is to use ADF 10g. Any pointers.

    Hi Manav,
    have a look at my screen cast here http://www.freewebalbum.com/blogs/faces/bjanko/blogs.jsp?blog=bjanko20070629162305
    the best way to review the limitations is to try graph wizard in JDeveloper
    but firs of all the biggest disadvantage of graphs in JDeveloper 10g is the fact the graph is not JSF component. it is just Servlet producing images so you have to use
    small trick to use them in ADF Faces application
    regards,
    Branislav

  • Dependent SelectOneListBox in ADF 10g

    hi,
    can anyone tell me the steps for Dependent SelectOneListBox in ADF 10g and atleast give a sample code work out

    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
              xmlns:afi="http://xmlns.oracle.com/adf/industrial/faces"
              xmlns:adfp="http://xmlns.oracle.com/adf/faces/portlet"
              xmlns:aj="http://java.sun.com/blueprints/ajaxtextfield">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document title="Service Extensions">
          <af:form>
            <af:panelPage title="Create Service Request">
              <f:facet name="menu1"/>
              <f:facet name="menuGlobal"/>
              <f:facet name="branding"/>
              <f:facet name="brandingApp"/>
              <f:facet name="appCopyright"/>
              <f:facet name="appPrivacy"/>
              <f:facet name="appAbout"/>
              <af:panelForm maxColumns="2" rows="3" width="60%">
                <af:selectOneListbox value="#{bindings.SrVOPartyId.inputValue}"
                                     label="#{bindings.SrVOPartyId.label}"
                                     autoSubmit="true" id="PartyList">
                  <f:selectItems value="#{bindings.SrVOPartyId.items}"/>
                </af:selectOneListbox>
                <af:selectOneChoice value="#{bindings.SrVOCustAccountId.inputValue}"
                                    label="#{bindings.SrVOCustAccountId.label}"
                                    partialTriggers="PartyList">
                  <f:selectItems value="#{bindings.SrVOCustAccountId.items}"/>
                </af:selectOneChoice>
                <af:inputText value="#{bindings.PartyId.inputValue}"
                              label="#{bindings.PartyId.label}"
                              required="#{bindings.PartyId.mandatory}"
                              columns="#{bindings.PartyId.displayWidth}"
                              rendered="false">
                  <af:validator binding="#{bindings.PartyId.validator}"/>
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.PartyId.format}"/>
                </af:inputText>
                <af:inputText value="#{bindings.CustAccountId.inputValue}"
                              label="#{bindings.CustAccountId.label}"
                              required="#{bindings.CustAccountId.mandatory}"
                              columns="#{bindings.CustAccountId.displayWidth}"
                              rendered="false">
                  <af:validator binding="#{bindings.CustAccountId.validator}"/>
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.CustAccountId.format}"/>
                </af:inputText>
                <af:inputText value="#{bindings.Invtoryitemid.inputValue}"
                              label="#{bindings.Invtoryitemid.label}"
                              columns="#{bindings.Invtoryitemid.displayWidth}">
                  <af:validator binding="#{bindings.Invtoryitemid.validator}"/>
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.Invtoryitemid.format}"/>
                </af:inputText>
                <af:inputText value="#{bindings.SerialNumber.inputValue}"
                              label="#{bindings.SerialNumber.label}"
                              required="#{bindings.SerialNumber.mandatory}"
                              columns="#{bindings.SerialNumber.displayWidth}">
                  <af:validator binding="#{bindings.SerialNumber.validator}"/>
                </af:inputText>
                <af:inputText value="#{bindings.Summary.inputValue}"
                              label="#{bindings.Summary.label}"
                              required="#{bindings.Summary.mandatory}"
                              columns="#{bindings.Summary.displayWidth}">
                  <af:validator binding="#{bindings.Summary.validator}"/>
                </af:inputText>
                <f:facet name="footer">
                  <af:panelGroup layout="vertical">
                    <af:objectSpacer width="10" height="20"/>
                    <af:panelButtonBar>
                      <af:commandButton actionListener="#{bindings.process.execute}"
                                        text="process"
                                        disabled="#{!bindings.process.enabled}"
                                        action="CreateSr"/>
                    </af:panelButtonBar>
                  </af:panelGroup>
                </f:facet>
              </af:panelForm>
            </af:panelPage>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    page Definition
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="10.1.3.42.70" id="CreateSrPageDef"
                    Package="userinteface.pageDefs"
                    MsgBundleClass="userinteface.pageDefs.CreateSrPageDefMsgBundle">
      <parameters/>
      <executables>
        <iterator id="SrVOIterator" RangeSize="10" Binds="SrVO"
                  DataControl="srAMDataControl"/>
        <invokeAction Binds="ExecuteWithParams" Refresh="renderModel"
                      id="InvokeActionExecuteWithParams"/>
        <invokeAction Binds="Create" id="invokeCreate" Refresh="renderModel"
                      RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"/>
        <iterator id="SerialnumbersIterator" Binds="Serialnumbers" RangeSize="-1"
                  DataControl="srAMDataControl"/>
        <variableIterator id="variables"/>
        <iterator id="CustomersIterator" RangeSize="-1" Binds="Customers"
                  DataControl="srAMDataControl"/>
        <invokeAction id="InvokeActionExecuteWithParams1" Binds="ExecuteWithParams1"
                      Refresh="renderModel"/>
        <iterator id="AccountsIterator" RangeSize="-1" Binds="Accounts"
                  DataControl="srAMDataControl"/>
      </executables>
      <bindings>
        <action id="Create" RequiresUpdateModel="true" Action="41"
                IterBinding="SrVOIterator" InstanceName="srAMDataControl.SrVO"
                DataControl="srAMDataControl"/>
        <action IterBinding="SerialnumbersIterator" id="ExecuteWithParams"
                InstanceName="srAMDataControl.Serialnumbers"
                DataControl="srAMDataControl" RequiresUpdateModel="true"
                Action="95">
          <NamedData NDName="itemid"
                     NDValue="${bindings.SrVOInvtoryitemid.inputValue}"
                     NDType="oracle.jbo.domain.Number"/>
        </action>
        <attributeValues id="PartyId" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="PartyId"/>
          </AttrNames>
        </attributeValues>
        <attributeValues id="CustAccountId" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="CustAccountId"/>
          </AttrNames>
        </attributeValues>
        <attributeValues id="Invtoryitemid" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="Invtoryitemid"/>
          </AttrNames>
        </attributeValues>
        <attributeValues id="SerialNumber" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="SerialNumber"/>
          </AttrNames>
        </attributeValues>
        <attributeValues id="Summary" IterBinding="SrVOIterator">
          <AttrNames>
            <Item Value="Summary"/>
          </AttrNames>
        </attributeValues>
        <methodAction id="process" InstanceName="CreateSRDC"
                      DataControl="CreateSRDC" MethodName="process"
                      RequiresUpdateModel="true" Action="999"
                      IsViewObjectMethod="false"
                      ReturnName="CreateSRDC.methodResults.CreateSRDC_process_result">
          <NamedData NDName="P_CREATESR_REC_CUST_ACCOUNT_ID"
                     NDValue="${bindings.PartyId}" NDType="java.math.BigDecimal"/>
          <NamedData NDName="P_CREATESR_REC_PARTY_ID"
                     NDValue="${bindings.CustAccountId}"
                     NDType="java.math.BigDecimal"/>
          <NamedData NDName="P_CREATESR_REC_SERIAL_NUMBER"
                     NDValue="${bindings.SerialNumber}" NDType="java.lang.String"/>
          <NamedData NDName="P_CREATESR_REC_INVENTORY_ITEM_ID"
                     NDValue="${bindings.Invtoryitemid}"
                     NDType="java.math.BigDecimal"/>
          <NamedData NDName="P_CREATESR_REC_SUMMARY" NDValue="${bindings.Summary}"
                     NDType="java.lang.String"/>
          <NamedData NDName="P_SR_NOTES_TBL_P_SR_NOTES_TBL_ITEM"
                     NDType="[Ljava.lang.Object;"/>
        </methodAction>
        <list id="SrVOPartyId" IterBinding="SrVOIterator" StaticList="false"
              ListOperMode="0" ListIter="CustomersIterator">
          <AttrNames>
            <Item Value="PartyId"/>
          </AttrNames>
          <ListAttrNames>
            <Item Value="PartyId"/>
          </ListAttrNames>
          <ListDisplayAttrNames>
            <Item Value="PartyName"/>
          </ListDisplayAttrNames>
        </list>
        <action IterBinding="AccountsIterator" id="ExecuteWithParams1"
                InstanceName="srAMDataControl.Accounts"
                DataControl="srAMDataControl" RequiresUpdateModel="true"
                Action="95">
          <NamedData NDName="pid" NDValue="${bindings.SrVOPartyId.inputValue}"
                     NDType="oracle.jbo.domain.Number"/>
        </action>
        <list id="SrVOCustAccountId" IterBinding="SrVOIterator" StaticList="false"
              ListOperMode="0" ListIter="AccountsIterator" NullValueFlag="1"
              NullValueId="SrVOCustAccountId_null">
          <AttrNames>
            <Item Value="CustAccountId"/>
          </AttrNames>
          <ListAttrNames>
            <Item Value="CustAccountId"/>
          </ListAttrNames>
          <ListDisplayAttrNames>
            <Item Value="AccountNumber"/>
          </ListDisplayAttrNames>
        </list>
      </bindings>
    </pageDefinition>if i select a value in selectoneListBox the SelectChoiceBox should populate according to values selected in the Selection can anyone please help me
    i have gone thru this link http://www.scribd.com/doc/2633296/ADF-Learning-6-Dependent-List-Boxes
    and followed the link
    Edited by: Naveenapps on Sep 12, 2009 5:09 AM

  • Extracting date in ADF 10g

    I have question in extracting in ADF 10g.
    I am working in a project, I am using ADF 10g, I am creating pages. One of this pages I need to make search by using the Month and the Year.
    The problem is I have the date in one column such as( Jan 16, 2009).
    The Questions is How can I extracting the Month and Year .
    thanx

    Hi,
    You can use this statement
    select DISTINCT EXTRACT(YEAR from A_DATE) from 'table Name'
    Thanks

  • WL 10.3.5 and ADF 10g - JSP Error

    I'm deploying a ADF 10g (10.1.3.5) app, into a WebLogic 11g (10.3.5), but on test all the jsp throw the same exception:
    <Jun 28, 2012 5:51:34 PM BRT> <Error> <HTTP> <BEA-101017> <[ServletContext@542462705[app:wl module:/siep_wl path:/wl spec-version:2.5]] Root cause of ServletException.
    com.sun.faces.el.impl.ElException: Encountered "? \", expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||", "?", "not", "?", "!", "?", "-", "?", "empty", "?", "true", "?", "false", "?", <INTEGER_LITERAL>, "?", <FLOATING_POINT_LITERAL>, "?", <STRING_LITERAL>, "?", "null", "?", "(", "?", <IDENTIFIER>]
    at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:309)
    at com.sun.faces.el.impl.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:219)
    at com.sun.faces.application.ApplicationImpl.checkSyntax(ApplicationImpl.java:805)
    at com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:312)
    at oracle.adf.view.faces.webapp.UIXComponentTag.createValueBinding(UIXComponentTag.java:358)
    at oracle.adf.view.faces.webapp.UIXComponentTag.setProperty(UIXComponentTag.java:139)
    at oracle.adfinternal.view.faces.taglib.core.data.CoreTableTag.setProperties(CoreTableTag.java:183)
    at oracle.adf.view.faces.webapp.UIXComponentTag.setProperties(UIXComponentTag.java:127)
    at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1027)
    at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
    at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
    at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:89)
    Anyone could help?

    Just a thought; have you installed the Server Extension: 'Oracle ADF runtime' (particular version no.) to the WLS server where you are trying to deploy the ADF apps?
    Thanks...

  • SelectInputText error when migrating to https - ADF 10g

    This is a follow-on of this thread in the JHeadstart forum:
    LoV opening error when migrating to https
    ADF/JDev 10.1.3.2 build 4066
    The app works fine in IE8 and Firefox when using HTTP. It also works in Firefox using HTTPS.
    However, in IE8, the LOV window does not popu up for an af:selectInputText component. The server log does not provide any clues.
    Does anyone know if HTTPS in ADF 10g is not supported for IE8?
    Thanks,
    Peter

    Oracle Support had a similar idea: upgrade to 10.1.3.5 because it is certified for IE8 whereas 10.1.3.2 is not.
    However, we edited the mod_osso.conf for that OC4J instance and added the following in the Location tag for the problem application:
    OssoSendCacheHeaders off
    The LOVs now appear in IE8 under HTTPS.
    Thanks for the input, Steven; you were of course right about this not being related to JHS. We'll keep the upgrade solution in mind in case of other unexplained problems with IE8.
    Regards,
    Peter

  • ADF 10g on JBOSS, how is the performance & stability ?

    Hi All,
    We are considering to use JBOSS for our ADF 10g APplication, has anybody here using it ? how is the performance & stability ?
    Thank you,
    xtanto

    think it's this one New beta bios for s939 K8N Neo2 Platinum added (7025NMS.151) see syar's comment in next post.
    If there are any more recent betas than that try them, the link to syar's d/load page is in thread.
    don't know - check the threads
    don't think so - check the threads
    luck

  • ADF 10g support for Internet Explorer 8

    hi
    Working with Oracle support (in SR 7732252.994) we first reached this conclusion ...
    "Microsoft Internet Explorer 8 is not a supported for the ADF Faces applications built using JDeveloper 10.1.3.5.0"
    When I subsequently asked ...
    "Will there be a JDeveloper 10g release (post 10.1.3.5.0) that will support IE8 ?"
    ... the answer was ...
    "Jdeveloper 10.1.3.5 is the last release in the Jdeveloper 10g branch and there will be no more releases after 10.1.3.5.
    Therefore, there will be no support for IE 8 in the Jdeveloper 10g branch."
    question
    (q1)What is supposed to happen to ADF 10g production applications deployed in an environment that allows little control over the browser that is used (extranet/internet)?
    many thanks
    Jan Vervecken

    Thanks for your reply Shay.
    We plan to officially support IE8 with the next patch release to JDeveloper 11g - currently planned for later this year.That matches what I wrote in my initial post in this forum thread about IE8 support.
    We usually only certify browsers after they officially go production.That does not really answer my question (q1) in this forum thread.
    It is more like, how can I assess that Oracle will support any successor(s) of IE8 or successor(s) of any currently supported browsers for ADF 11g applications in the future? How long will Oracle support "commonly used browsers" for an ADF 11g application I build today, so how long will I be able to use that application?
    How do I answer such questions for ADF 11g applications that should be deployed on the internet (where, as some extranet environments, you typically have not that much (or no) control over which browsers your users use ... although some would like to argue with that, see forum thread "ADF Faces RC browser support and browser market share")?
    (By the way, do you have any feedback for the forum thread "ADF 10g support for Internet Explorer 8"?)
    regards
    Jan

  • Unable to create Tree (af:tree  and af:menuTree) using ADF 10G

    Hi All,
    I have tried creating a tree af:menuTree and af:tree using ADF 10G (JDeveloper 10.3.1.4) and i am unable to see the output on the screen.
    Can you please guide me on this.
    Some searchs on OTN suggested that it is not supported in 10G. If this is so, can you suggest any workaround?
    Thanks,
    Ram

    Hi Michael,
    **Here is the code I used for Menu Tree
    <afh:cellFormat valign="top">
    <af:menuTree var="node" value="TEST">
    <f:facet name="testNode">
    <af:commandMenuItem text="testCM" action="#{node.action}"/>
    </f:facet>
    </af:menuTree>
    </afh:cellFormat>
    **Here is the code I used for Tree
    <afh:cellFormat valign="top">
    <af:tree id="productCategoriesTree" value="testTree" var="node" >
    <f:facet name="nodeStamp">
    <af:panelGroup >
    <af:outputText rendered="#{node.ParentCategoryId eq null}" value="#{node.CategoryName}" inlineStyle="color:#FF8000;font-weight:bold;"/>
    <af:outputText rendered="#{node.ParentCategoryId ne null}" value="#{node.CategoryName}"/>
    </af:panelGroup>
    </f:facet>
    </af:tree>
    </afh:cellFormat>
    Kindly advice.
    Thanks in advance,
    Ram

  • Is HttpServletRequest.getSession() atomic?

    Can I assume that this method execution is atomic?
    I.e., suppose there are two HTTP requests from the same user
    calling this method without synchronization.
    Both requests are from the same user, but have no HttpSession associated
    with them, so a new session must be created.
    Can I assume, that one of the requests will create a new session and the other
    will just obtain the reference to the HttpSession object?
    Can it happen that 2 new sessions will be created?

    By the same user, I assume you mean two browser
    windows opened
    on the same machine.Yes
    I would expect the following:
    Browser #1 connects to your application URL resulting
    in the creation
    of a new HttpSession.
    Browser #2 connecting to the same URL will have its
    own HttpSession establishedYes, but here you talk about two different users, i.e., two different browsers
    (no parent-child relationship)
    >
    The only other behavior I'm familiar with is: IF....
    Browser #1 connects, creates HTTPSession then the
    window spawns a new window (i.e. <cntrl> N)
    then Browser #2 will be created with the same session
    id, in its browser header and will
    be communicating to the same session created by
    Browser #1Right! (And why is that?)
    Anyway, we cannot be sure how the two HTTP requests will arrive at the server.
    They can arrive simultaneously and in that case the method getSession() will be called
    by 2 threads without synchronization.
    The question is - whether SUN has foreseen this scenario.
    Another possible scenario - a user that clicks his mouse too fast and creates
    many HTTP requests in the same session.
    Thanks for replying.

  • How to create an editable table in ADF 10g??

    Hi,
    I want to create a editable table using the Jdev 10g.. so that i can do read and write on the table. Can anyone tell me how i can create it...
    thanks in advance

    Hi,
    using ADF BC and ADF, one of the options when dragging a ViewObject from the data control palette is ADF Table. This creates an updateable table
    Frank

Maybe you are looking for