Access Iterator binding from a region

Hi,
Using JDEV 11.1.1.5.0
I've created a ADF Tree dynamically from a single table(Using recursive concept) in center region. User can select the required elements from ADF tree and then click on Command button. So far, I've achieved till this part.
The pending part is, two regions(Bottom & Right) need to refresh at a time with button click.
Now I need to display selected elements in bottom region. Also need to provide the selected nodes information to do some calculation in the right region at a time.
Following is the jspx code:
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:panelSplitter id="ps1" orientation="vertical">
<f:facet name="first">
<af:panelGroupLayout id="pgl1">
<af:panelSplitter id="ps3">
<f:facet name="first">
<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
id="pgl4">
<af:panelFormLayout id="pfl1">
<af:region value="#{bindings.dynamicRegion1.regionModel}"
id="r1"/>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="second">
<af:panelGroupLayout id="pgl5">
<af:panelFormLayout id="pfl2">
<af:commandButton text="Update" id="cb1"/>
          <af:outputText value="Select Folders or Files" id="ot1"/>
<af:region value="#{bindings.dynamicRegion2.regionModel}"
id="r2"/>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
</af:panelSplitter>
</af:panelGroupLayout>
</f:facet>
<f:facet name="second">
<af:panelGroupLayout id="pgl2">
<af:outputText value="Selected Files" id="ot1"/>
          <!-- Need to extract the selected nodes here.-->
</af:panelGroupLayout>
</f:facet>
</af:panelSplitter>
</af:form>
</af:document>
</f:view>
Some how, i could not able proceed further on this.
Can you provide hint on this usecase to proceed further.
Thanks,
Samba.

Finally able to communicate between two regions with the help of programmatic contextual event approach. Now I need to iterate through the dynamic tree in my event controller and then display the selected documents in bottom region. Following is the code for source fragment in which first region contains dynamic tree and second region contains selected documents list.
<f:facet name="first">
     <af:panelGroupLayout layout="scroll"
                              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                              id="pgl4">
     <af:commandButton text="Update" id="cb1"
                              actionListener="#{pageFlowScope.EventPublisherBean.doAction}"
                              action="selected_documents"/>
     <af:region value="#{bindings.dynamicRegion1.regionModel}"
                    id="r2"/>
     </af:panelGroupLayout>
</f:facet>
<f:facet name="second">
     <af:panelLabelAndMessage label="Documents Selected" id="plam1">
     <af:panelGroupLayout id="pgl2">
     <af:region value="#{bindings.selecteddocs1.regionModel}" id="r3"/>
     </af:panelGroupLayout>
     </af:panelLabelAndMessage>
</f:facet>
Following is the sample handleEvent method. Here able to get the source region components information & able to set the values in target regions.
public void handleEvent(Object payload){
ActionEvent actionEvent = (ActionEvent)payload;
UIComponent component = (UIComponent)actionEvent.getSource();
UIComponent parent = (UIComponent)component.getParent();
String parentId = parent.getId();
System.out.println("PARENT ID:"+parentId);
System.out.println("Component ID:"+component.getId());
FacesContext context = FacesContext.getCurrentInstance();
ELContext elContext = context.getELContext();
Application app = context.getApplication();
ExpressionFactory expFactory = app.getExpressionFactory();
ValueExpression valueExp = expFactory.createValueExpression(elContext, "#{pageFlowScope.SubscriberBean}", Object.class);
SubscriberBean bean = (SubscriberBean)valueExp.getValue(elContext) ;
bean.setFName("YYYYY");
AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
adfContext.addPartialTarget(bean.getFnameField());
can you give a hint to iterate through dynamic tree binding to get information of selected tree nodes?
Once we got the selected nodes of tree, how can we print the results on to target region?
Thanks,
Samba
Edited by: 949171 on Oct 14, 2012 12:12 AM

Similar Messages

  • Accessing a binding from inside a servlet

    Hey all,
    So I'm attempting to access a binding from a servlet instead of using the ApplicationModule approach which is recognized as a bad idea (http://blogs.oracle.com/jdevotnharvest/2010/11/when_to_use_createrootapplicationmodule_in_oracle_adf.html). However, when the code is executing in the servlet the line BindingContent.getCurrentBindingsEntry() returns null! I think there's something missing in my configuration that's causing ADFm to not recognize the servlet as having a binding file. Anything stand out?
    So inside of a servlet I have the following:
    public class RSSNewsServlet extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer)bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("AllPapers1Iterator");
    Row [] rows = dciter.getAllRowsInRange();
    Web.xml:
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>NewsServlet</servlet-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>NewsServlet</servlet-name>
    <servlet-class><path-to-servlet>.RSSNewsServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>NewsServlet</servlet-name>
    <url-pattern>/servlet/news.rss</url-pattern>
    </servlet-mapping>
    newsServletPageDef.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.56.60" id="newsServletPageDef"
    Package="<path-to-pagedefs>pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="AllPapers1" RangeSize="25"
    DataControl="GatewayNewsAppModuleDataControl"
    id="AllPapers1Iterator"/>
    </executables>
    <bindings>
    <tree IterBinding="AllPapers1Iterator" id="AllPapers1">
    <nodeDefinition DefName="<path-to-model>AllPapers"
    Name="AllPapers10">
    <AttrNames>
    <Item Value="PapId"/>
    <Item Value="PapTitle"/>
    <Item Value="PapPublishDate"/>
    <Item Value="PapExpireDate"/>
    <Item Value="PapAuthor"/>
    <Item Value="PapType"/>
    <Item Value="PapIssueDate"/>
    <Item Value="PapFileName"/>
    <Item Value="PapUserName"/>
    <Item Value="PapPostedDate"/>
    <Item Value="PapModifiedDate"/>
    <Item Value="PapNeverExpire"/>
    <Item Value="PapFile"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>
    DataBindings.cpx:
    <pageMap>
    <page path="/servlet/news.rss" usageId="MyAlmacTemplate_view_newsServletPageDef"/>
    </pageMap>
    <pageDefinitionUsages>
    <page id="MyAlmacTemplate_view_newsServletPageDef"
    path="com.almac.aurora.gateway.pageDefs.newsServletPageDef"/>
    </pageDefinitionUsages>

    when the code is executing in the servlet the line BindingContent.getCurrentBindingsEntry() returns null!The method BindingContext.getCurrentBindingsEntry() returns from the requestScope the variable with key "bindings". When using ADF Faces this variable is set at ADF Faces' Prepare Model phase (by the PageLifecycleImpl.prepareModel() method). But when using a plain servlet this variable is not set (because the ADF Faces' page lifecycle is not executed) and this is the reason why you get a null result. As a workaround you can use the following code in your servlet:
    BindingContext bctx = BindingContext.getCurrent();
    DCBindingContainer pagedef = bctx.findBindingContainerByPath(request.getServletPath());
    bctx.setCurrentBindingsEntry(pagedef); // Invoke this method only if for some reason you need the "bindings" variable set in the environmentDimitar

  • Access jspx page from af:region

    hi
    jdeveloper 11.1.2.3
    i have a jspx and inside it there is dynamic bounded task flow , how can i refresh parent page from this dynamic region.
    tnanks

    Hello,
    The "RefreshCondition" attribute into Property Inspector of af:region, you could set the condition (EL expression) to refresh only
    the region (returns true) or the parent page (returns false).
    http://suneesh-adf.blogspot.com/2013/09/refreshing-adf-region.html
    rfh.

  • How to access the files from HTML region

    Hi,
    Which command or query should we use , if I want to access any file like i have a excel file stored in shared components/static files .

    See this example:
    http://apex.oracle.com/pls/otn/f?p=31517:15
    it explains how.
    Also, read this:
    http://www.oracle.com/technology/products/database/application_express/html/3.1_new_features.html#02
    Declarative BLOB Support
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Access Parent Page Binding From Region

    Hello
    I'm using JDev 11.2 and i have a task flow which I call from a parent page- and to pass parameters to it.
    Is there a way for me to access the parent page bindings from a region in the taskflow?
    Thanks for you time
    Talya

    You shouldn't be directly accessing a containing page values from a task flow. This will create a situation where your task flow is only usable in a single page.
    Instead define parameters to your task flow and pass those from the containing JSF.

  • How to access listbox binding data from a button which is not part of listbox in xaml page

    Hi
    I have the below listbox and its bdining as below
     <ListBox x:Name="listMyPosts" ItemsSource="{Binding Path=MyPostsDataSource}" Grid.Row="0"  >
               <ListBox.ItemTemplate >
                          <DataTemplate >                                      
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Text="{Binding
    NewPostText ,Mode=TwoWay}"/>
                                            <TextBlock Text="{Binding
    NewPostSender}"/>
                                        </StackPanel>                                      
                                </DataTemplate>
                </ListBox.ItemTemplate>
               <Button content="Send Post" command ="Binding SendClickCommand} />
      </ListBox>
    And i am assining postsViewmodel
    private PostsViewModel _PostsViewModel ;
    public Conversation()
    InitializeComponent();
    _PostsViewModel = new PostsViewModel ();
    this.DataContext = _PostsViewModel ;
    public ObservableCollection<PostsModel> MyPostsDataSource
    get
    if (_MyPostsDataSource== null)
    _MyPostsDataSource= GetMyPosts();
    return _MyPostsDataSource;
    set
    this._MyPostsDataSource = value;
    RaisePropertyChanged("MyPostsDataSource");
    is that possible to access listbox binding data from the ViewModel's SendClickCommand property ?
    Krrishna

    If you need to pass to the command selected item, try this
    <Button Сontent="Send Post"
          Сommand ="{Binding SendClickCommand}"
          CommandParameter={Binding ElementName=listMyPosts,
    Path=SelectedItem}/>
    msdn

  • Access CDF MetaData from Region Template

    How can I access the MetaData of a CDF from the Region Template?
    I have read that I can use DOC_INFO, but this does not seem to work. I tried:
    DOC_INFO.dDocAccount and got nothing.
    I tried:
    executeService("DOC_INFO")
    DOC_INFO.dDocAccount
    Thank you in advance for any help.
    _t                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    If you're looking for the CDF that's assigned to the region template, use:
    <!--$#active.[metadata field name]-->
    For example, <!--$#active.xDescription-->
    If you're trying to get from a different CDF, use:
    <!--$dDocName="[Content ID]"-->
    <!--$executeService("DOC_INFO_BY_NAME")-->
    <!--$#active.[metadata field name]-->
    For example,
    <!--$dDocName="CONTENT123456"-->
    <!--$executeService("DOC_INFO_BY_NAME")-->
    <!--$#active.xDescription-->

  • Accessing the Binding Layer from Java

    Dear All
    How can i Accessing the Binding Layer from Java code i need details document for it becuase i have complex binding object (object inside object)
    Regards
    Mohd.Weshah

    i know but my case is complicated :
    Dear All
    i have generate a human task based task flow and i create a page with payload object . i have an empiterator whcih include the following attributes :
    - id
    - name
    - telephone
    - department (Complex object) it include another attributes - dept and dept Name
    my question i want to fill the empiterator by java code and fill all attributes including complex object (department ) from java code (my backing bean). \
    you can download a document that describe my problems by images and details :
    [http://www.4shared.com/account/document/fTREP1mv/ADF_Question__2_.html]
    Regards
    Wish79

  • Content Presenter Iterator Binding Definition is invalid

    Hi,
    I am using jdeveloper version 11.1.1.6.0.
    My use case is I drag and dropped the content from content server on the page as a region (taskflow).
    <taskFlow id="doclibcontentpresenter1"
                  taskFlowId="/oracle/webcenter/doclib/view/jsf/taskflows/presenter/contentPresenter.xml#doclib-content-presenter"
                  activation="deferred"
                  xmlns="http://xmlns.oracle.com/adf/controller/binding"
                  Refresh="ifNeeded">
          <parameters>
            <parameter id="taskFlowInstId"
                       value="${'8e33ee57-9e3b-4fcf-8eeb-faada4c97591'}"/>
            <parameter id="datasourceType" value="${'dsTypeSingleNode'}"/>
            <parameter id="datasource"
                       value="#{AfSplBlkActionBean.documentContentId}"/>
            <parameter id="templateCategory" value="${''}"/>
            <parameter id="templateView" value="${''}"/>
            <parameter id="maxResults" value="${''}"/>
          </parameters>
        </taskFlow>
         where value attribute is dynamic string formation to bring english or chinese content from the content server depending upon the current locale.
    like EN_TEST and ZH_TEST .
    Now there is also some script in my jspx page to show some of the region of the page to show selected divs.
    Randomly after some attempts but not regularly I got following exception what this exception means .What is solution to get rid out of this exception.
            <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Object name oracle_webcenter_doclib_view_jsf_taskflows_presenter_presenterSingleViewPageDef_oracle_webcenter_doclib_view_jsf_taskflows_presenter_contentPresenter_xml_doclib_content_presenter of type Iterator Binding Definition is invalid.
    oracle.jbo.InvalidObjNameException: JBO-25005: Object name oracle_webcenter_doclib_view_jsf_taskflows_presenter_presenterSingleViewPageDef_oracle_webcenter_doclib_view_jsf_taskflows_presenter_contentPresenter_xml_doclib_content_presenter of type Iterator Binding Definition is invalid.
         at oracle.adf.model.binding.DCBindingContainerState.validateStateFromString(DCBindingContainerState.java:573)
         at oracle.adf.model.binding.DCBindingContainerState.validateStateFromString(DCBindingContainerState.java:504)
         at oracle.adf.model.binding.DCBindingContainerState.validateToken(DCBindingContainerState.java:683)
         at oracle.adf.model.binding.DCBindingContainer.validateToken(DCBindingContainer.java:5048)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:120)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:359)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:274)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:472)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         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 alfaaesar.portal.pages.filter.AnonymousSessionFilter.doFilter(AnonymousSessionFilter.java:47)
         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.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.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.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
         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.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)

    I had this issue sometime ago and was directly related with the way of do you are navigating between this page and other pages.
    The problem is that the pageDef is not being read OK cause a problem of ADF Security filter in WebCenter Portal Application.
    In my case, i was in a environment SSO enabled (kerberos) and different ways to navigate in the same page (pprnav and goLink).
    Try change your navigation to af:commandLinks with pprnav. With this way you prevent the "random" fails of using goLinkPrettyUrl.
    PD: If you need a official explanation of this issue open a SR in Oracle My Support.
    Regards.

  • How to get iterator values from a managed bean ?

    Due to a bug in selectOneChoice i'm not able to get the label list i want to display directly from an iterator when the value binding is a managed bean.
    To solve the problem i would like to create a managed bean that contains that list and use it as the selectItems to display.
    I would like that the values in that managed bean loaded from the a data control iterator.
    My question is :
    1) is it possible to access the iterator values from a managed bean, i mean without any reference to a page definition
    2) how to do ? is it documented somewhere ? any example ?
    Thank you

    I got it also with this code:
    package view.managedBeans;
    import classification.bean.ClassificationDocument;
    import classification.castor.ClassificationLanguage;
    import java.io.FileNotFoundException;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Hashtable;
    import java.util.List;
    import java.util.Locale;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.model.SelectItem;
    import oracle.adf.model.generic.DCGenericDataControl;
    import org.exolab.castor.xml.MarshalException;
    import org.exolab.castor.xml.ValidationException;
    public class ClassificationLanguageList {
    private java.util.List<SelectItem> supportedLanguages = new ArrayList();
    public ClassificationLanguageList() throws FileNotFoundException,
    MarshalException,
    ValidationException {
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding vb = ctx.getApplication().createValueBinding("#{data.ClassificationDocumentDataControl}");
    DCGenericDataControl classificationDocumentDataControl = (DCGenericDataControl)vb.getValue(ctx);
    ClassificationDocument classificationDocument = (ClassificationDocument)classificationDocumentDataControl.getDataProvider();
    ClassificationLanguage[] classificationLanguage = classificationDocument.getClassification().getClassificationLanguageList().getClassificationLanguage();
    for (int counter = 1; counter < classificationLanguage.length; counter++) {
    SelectItem language = new SelectItem();
    language.setValue(classificationLanguage[counter].getClassificationLanguageCode());
    language.setLabel(classificationLanguage[counter].getClassificationLanguageLabel());
    supportedLanguages.add(language);
    public void setSupportedLanguages(java.util.List<SelectItem> supportedLanguages) {
    this.supportedLanguages = supportedLanguages;
    public java.util.List<SelectItem> getSupportedLanguages() {
    return supportedLanguages;
    }

  • Cast error trying to access tree binding

    JDeveloper version 11.1.2.1.0
    java.util.ArrayList cannot be cast to oracle.jbo.uicli.binding.JUCtrlHierBinding
    Hi All
    I'm using code from ADF Code Corner (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/78-man-expanding-trees-treetables-354775.pdf) to try and programmatically set the tree node disclosure level when the page is initially rendered. The tree's DisclosedRowKeys property is set to #{viewScope.FieldPickerHandler.newDisclosedTreeKeys}. The code for the handler method that's causing the problem is below. First you can see that I have commented out Frank's original code on lines 5, 6 & 8 because for some reason this did not find the tree component (always returned null). So instead I have set the tree component's Binding property to #{viewScope.FieldPickerHandler.jsfTree} to make the component instance available in the handler and this seems to work. However when the code hits line 16 I get the class cast exception at the head of this post.
    One significant variation from the Code Corner example is that my tree is based on a POJO model that is populated programmatically from a VO (as posted by Lucas Jellema http://technology.amis.nl/blog/2116/much-faster-adf-faces-tree-using-a-pojo-as-cache-based-on-read-only-view-object-showing-proper-leaf-nodes-again) hence my root node set, and each node's child set, is declared as "List<FieldPickerNode> nodes = new ArrayList<FieldPickerNode>();".
    Does the way the POJO tree is constructed make it incompatible with the Code Corner node expansion approach? Can anyone suggest how I can modify my handler bean code to work with the POJO tree?
    Thanks
    Adrian
    PS The tree's Value property is set to #{viewScope.FieldPickerHandler.treemodel} where treemodel is a managed property of the bean - I guess this mean my tree is not ADF-bound?
    1 public RowKeySetImpl getNewDisclosedTreeKeys() {
    2 if (newDisclosedTreeKeys == null) {
    3 newDisclosedTreeKeys = new RowKeySetImpl();
    4
    5// FacesContext fctx = FacesContext.getCurrentInstance();
    6// UIViewRoot root = fctx.getViewRoot();
    7 //lookup thetree component by its component ID
    8// RichTree tree = (RichTree)root.findComponent("t1");
    9 //if tree is found ....
    10 if (jsfTree != null) {
    11 //get the collection model to access the ADF binding layer for
    12 //the tree binding used. Note that for this sample the bindings
    13 //used by the tree is different from the binding used for the tree
    14 //table
    15 CollectionModel model = (CollectionModel)jsfTree.getValue();
    16 JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
    Edited by: blackadr on 03-Nov-2011 17:56

    Hello Frank et al
    Still struggling valiantly to create a POJO tree that uses the ADF binding layer. Rather than referencing the treemodel directly from the component I have now added a method to my model class that returns the set of root nodes as an ArrayList:
    public List<FieldPickerNode> getRootNodes() {
    if (treemodel == null) {
    treemodel = initializeTreeModel();
    return rootNodes;
    and my FieldPickerNode class also now has a method to return its children as an ArrayList. The model class is managed in view scope. So I drag the rootNodes collection from the Data Controls panel into my panel collection and get the option to create it as an ADF tree. Great. I add the method to get the children as an accessor and the bindings end up looking like this:
    <iterator Binds="root" RangeSize="25" DataControl="FieldPickerModel" id="FieldPickerModelIterator"/>
    <accessorIterator MasterBinding="FieldPickerModelIterator" Binds="rootNodes" RangeSize="25"
    DataControl="FieldPickerModel" BeanClass="view.picker.FieldPickerNode" id="rootNodesIterator"/>
    <tree IterBinding="rootNodesIterator" id="rootNodes">
    <nodeDefinition DefName="view.picker.FieldPickerNode" Name="rootNodes0">
    <AttrNames>
    <Item Value="nodeID"/>
    </AttrNames>
    <Accessors>
    <Item Value="children"/>
    </Accessors>
    </nodeDefinition>
    </tree>
    The tree component looks like this:
    <af:tree value="#{bindings.rootNodes.treeModel}" var="node"
    selectionListener="#{bindings.rootNodes.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    </af:tree>
    To my untrained eye this all seems to look ok but when I run the page I get two null pointer errors in the browser and a couple thousand lines of repeated stack in the log viewer. In the early stages of the log there's a message "<BeanHandler> <getStructure> Failed to build StructureDefinition for : view.picker.FieldPickerModel" which I feel can't be good but is in the depths of the framework so difficult for me to debug (am in the process of requesting the ADF source). I've shown the message below with a few lines of context either side.
    Can you think of any other lines of enquiry I can follow to progress this? For example are there other attributes or methods that I need to add to my tree model classes in order to support the ADF binding?
    For background, the reason I started pursuing the POJO tree in the first place was because for large hierarchies the VO driven tree is unacceptably slow given that it fires SQL for each individual node disclosure. Linking the tree model directly to the component demonstrates just how quick the POJO approach is but I would like to have it go through the ADF bindings so I have more scope to customise the tree behaviour.
    Any pointers or help you (or anyone) can give would be very much appreciated.
    Adrian
    <ADFLogger> <end> Refreshing binding container
    <DCExecutableBinding> <refreshIfNeeded> [40] DCExecutableBinding.refreshIfNeeded(338) Invoke refresh for :rootNodesIterator
    <DCIteratorBinding> <refresh> [41] DCIteratorBinding.refresh(4438) Executing and syncing on IteratorBinding.refresh from :rootNodesIterator
    <ADFLogger> <begin> Instantiate Data Control
    <BeanHandler> <getStructure> Failed to build StructureDefinition for : view.picker.FieldPickerModel
    <MOMParserMDS> <parse> [42] MOMParserMDS.parse(226) No XML file /view/picker/picker.xml for metaobject view.picker.picker
    <MOMParserMDS> <parse> [43] MOMParserMDS.parse(228) MDS error (MetadataNotFoundException): MDS-00013: no metadata found for metadata object "/view/picker/picker.xml"
    <DefinitionManager> <loadParent> [44] DefinitionManager.loadParent(1508) Cannot Load parent Package : view.picker.picker
    <DefinitionManager> <loadParent> [45] DefinitionManager.loadParent(1509) Business Object Browsing may be unavailable

  • SRDemo do not handle ApplicationPoolExc on page visit with iterator binding

    I have a problem that I am able to reproduce in SRDemo as well. My goal is to be able to always present a user friendly
    message to users should database go down while they are surfing the site. In SRDemo, if I visit a page whose page definition has no iterator bindings, a user
    friendly message is presented to user if database is down. However, if I visit a page with iterator binding, an ApplicationPoolException stack trace is
    presented to user instead of a user friendly message.
    In the case of page with no iterator binding, the ApplicationPoolException is caught property in the SRDemoPageLifeCycle
    resulting in user friendly error presented to user.
    In the case of page with iterator binding, the ApplicationPoolException is not caught in the SRDemoPageLifeCycle and hence
    ApplicationPoolException stack trace is presented to user.
    For the working case of page with no iterator binding, the stack trace is as follows:
    [312] Created root application module: 'App.AppModule'
    [313] Locale is: 'en_US'
    [314] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
    [315] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [316] Creating a new pool resource
    [317] Trying connection/2: url='jdbc:oracle:thin:@192.168.1.101:1521:ORCL' ...
    [318] DBTransactionImpl.initTransaction: Login failed
    [319] java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    192.168.1.101:1521:ORCL
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:293)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:154)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:189)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:326)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:911)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1156)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5891)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:120)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:194)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:454)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:343)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7763)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4074)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2161)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
         at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
         at ui.MyDCJboDataControl.beginRequest(MyDCJboDataControl.java:32)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
         at oracle.adf.model.BindingContext.get(BindingContext.java:457)
    *     at oracle.adf.model.BindingContext.findDataControl(BindingContext.java:308)*
    *     at ui.frameworkExt.RSPageLifecycle.proactivelyWarnDemoUserIfConnectionNotSetupCorrectly(RSPageLifecycle.java:350)*
    *     at ui.frameworkExt.RSPageLifecycle.prepareModel(RSPageLifecycle.java:334)*
    *     at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)*
    *     at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)*
    *     at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)*
    *     at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:327)*
    *     at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:90)*
    *     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)*
    *     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)*
    *     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)*
    *     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)*
    *     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)*
    *     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)*
    *     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)*
    *     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)*
    *     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)*
    *     at ui.servlets.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:32)*
    *     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)*
    *     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)*
    *     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)*     at ui.servlets.gzip.GZIPFilter.doFilter(GZIPFilter.java:20)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:619)
    [320] A dead application module instance was detected
    [321] The application module instance was removed from the pool
    [322] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
    For the non working case of page with iterator binding, the stact trace is as follows:
    [312] Created root application module: 'App.AppModule'
    [313] Locale is: 'en_US'
    [314] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
    [315] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [316] Creating a new pool resource
    [317] Trying connection/2: url='jdbc:oracle:thin:@192.168.1.101:1521:ORCL' ...
    [318] DBTransactionImpl.initTransaction: Login failed
    [319] java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    192.168.1.101:1521:ORCL
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:293)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:154)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:189)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:326)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:911)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1156)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5891)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:120)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:194)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:454)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:343)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7763)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4074)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2161)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
         at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
         at ui.MyDCJboDataControl.beginRequest(MyDCJboDataControl.java:32)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
         at oracle.adf.model.BindingContext.get(BindingContext.java:457)
    *     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)*
    *     at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)*
    *     at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)*
    *     at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)*
    *     at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)*
    *     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)*
    *     at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)*
    *     at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)*
    *     at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)*
    *     at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)*
    *     at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)*
    *     at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)*
    *     at oracle.adf.model.BindingContext.get(BindingContext.java:483)*
    *     at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)*
    *     at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)*
    *     at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:265)*
    *     at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)*
    *     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)*
    *     at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)*     at ui.servlets.gzip.GZIPFilter.doFilter(GZIPFilter.java:20)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:619)
    [320] A dead application module instance was detected
    [321] The application module instance was removed from the pool
    [322] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
    I am aware of the following link but I don't know how to handle the ApplicationPoolException in beginRequest method
    like Steve is refering to. Any idea? I am seeking a consistent solution to handle ApplicationPookException for both page modes with and without iterator
    bindings.
    Exception JBO-26061 (JDBC connection Error) not being handled by SRDemo
    I am using JDeveloper 10.1.3.2.
    Thanks

    Hi
    You can set a default in the item attributes. Just click on the item in the application builder page and scroll down until you see default. You can specify it in a number of ways defined by a drop down.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)

  • Apex Application inserting into two tables from two regions in a page

    Hey Guys,
    Fairly new to apex like two days. So please bare with me. I am using apex 4.0.2.00.07.
    I have a page with two regions. The first region has only one row and I have no problems accessing it and inserting those values into the table this is what I used to access one column from that one row APEX_APPLICATION.G_F03(1)
    The second region is an interactive report, to which I have managed to add a checkbox and a textbox.
    1)So if a checkbox has been checked off the row should be inserted
    2) if the textbox has been entered it should replaceone of the values.
    My question is how to access the second region? I started a loop based on the rows in the collection but that is as far as I got.
    FOR idx IN 1..l_collectionTable_name
    loop
    end loop
    Any help would be greatly appreciated?
    Thank you
    Edited by: Aj05 on Aug 2, 2012 2:10 PM

    Hi Phil I used the following code
    <cfquery name="qArrivalDates" datasource="rayannesql">
    SET NOCOUNT ON
    INSERT INTO booking (book_made, book_checkin_date,
    book_checkout_date, book_adults, book_children)
    VALUES('#FORM.book_made#','#FORM.book_checkin_date#','#FORM.book_checkout_date#','#FORM.bo ok_adults#','#FORM.book_children#')
    SELECT SCOPE_IDENTITY() AS theNewId;
    SET NOCOUNT OFF
    </cfquery>
    <cfquery name="qArrivalDates" datasource="rayannesql">
    INSERT INTO Customer( firstname, lastname, address, address2,
    city, state, postalcode, country, phone, mobile, email, notes)
    Values (#qArrivalDates.theNewId# '#FORM.firstname#',
    '#FORM.lastname#', '#FORM.address#', '#FORM.address2#',
    '#FORM.city#', '#FORM.state#', '#FORM.postalcode#',
    '#FORM.country#', '#FORM.phone#', '#FORM.mobile#', '#FORM.email#',
    '#FORM.notes#' )
    </cfquery>
    When I tried to complete the form, I got the following error
    Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][SQL Native Client][SQL Server]Incorrect syntax
    near 'Fred'.
    The error occurred in
    C:\Inetpub\wwwroot\rayanne\customerinsertsql.cfm: line 16
    14 : <cfquery name="qArrivalDates"
    datasource="rayannesql">
    15 : INSERT INTO Customer( firstname, lastname, address,
    address2, city, state, postalcode, country, phone, mobile, email,
    notes)
    16 : Values (#qArrivalDates.theNewId# '#FORM.firstname#',
    '#FORM.lastname#', '#FORM.address#', '#FORM.address2#',
    '#FORM.city#', '#FORM.state#', '#FORM.postalcode#',
    '#FORM.country#', '#FORM.phone#', '#FORM.mobile#', '#FORM.email#',
    '#FORM.notes#' )
    17 : </cfquery>

  • Default range size for iterator binding

    I noticed that the default range size for an iterator binding is 10. Is there a way to have no default? Right now I have to change it programatically by setting it to the value returned from the getEstimatedRowCount() method.

    I assume you are looking for a way to set the default range size at design time? Currently, there is no way to do this, but if you are looking for another solution at runtime, you can use
    getBindingContainer().findIteratorBinding(<IteratorName>).setRangeSize(num)
    for the component you are using the iterator in. For example, in a data page, this would mean overriding the DataPage base class.
    Hope this helps,
    Lynn Munsinger
    Java Tools Team

  • Error: Binding from workflow to workitem aborted

    Hi ,
    I am getting an error in binding which I am not able to resolve. Let me try to explain the scenario first.
    1) In the workflow a container element is existing with the name ZBUS2081 which is having reference to object type BUS2081.
    2) BUS2081 is having an <b>attribute</b> "Company code" which is again having reference to object type BUS0002. BUS0002 has a key field "CompanyCodeId" which is having reference to database table T001-BUKRS.
    3) In a particular step of the workflow there is a binding between ZBUS2081.Companycode.CompanyCodeId ->CCODE where CCODE is a task container element having dictionary reference T001-BUKRS.
    4) When the workflow is executing it is giving error in this particular step. The error description are "Binding from workflow to workitem aborted"         "ZBUS2081.Companycode.CompanycodeId of binding assignment is not available    " Error when determining attribute COMPANYCODE of object"
    5) When I check the container in the technical details I see that ZBUS2081.Companycode.CompanycodeId is set to a value. I also checked the corresponding database table for the invoice document and found that this value is existing.
    Can anybody please help me on this as to why this binding error is occuring?
    Thanks in advance,
    Abhishek

    Hi Kjetil,
    the workflow started when a document is parked. Its triggering event is BUS2081-Parked. Even I was thinking in the same lines that may be the workflow is trying to access database information which has not been updated at that moment.
    When I checked the attribute Companycode of object BUS2081 I even found that the source is set to "Database field" and not "Virtual".
    But when I check the workflow container ZBUS2081.Companycode.CompanycodeId is having the correct value. This means the data <b>has</b> been fetched correctly from the database.
    Hence I feel if we cannot use an attribute with object reference directly in the binding, rather use a container operation to assign the value to another workflow container element and then use this element in the binding.
    Any inputs from any body to confirm this are welcome.
    regards,
    Abhishek

Maybe you are looking for

  • XML PDS Error 63001

    I developed a Report which proces an XML document based on the following schema: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://palaciohierro.com.mx/mde/ebre" xmlns="http://palaciohierro.com.mx/mde/ebre" xmlns:xsd="http://

  • Can I use a MacBook like a Mac Mini? How would I power it on?

    Is it possible to use a MacBook like a Mac Mini when I'm at home, with it plugged into a monitor? I've seen pictures of people using theirs when the MacBook is closed, but how would you power it on? If it's turned off, can it be powered on with the r

  • How to Re-classify cost from Project to Cost Center.

    There is a Project X   -  Its owner is Cost Center YYYYY. There is pressure to close Project X but we have commitments to the amount 4 milllion. We were thinking if there is a way to compensate this 4 million to Cost Center  YYYYY..., and close the p

  • Error when trying to download Desktop Software for my 8700g

    Hi Folks, I am new to blackberry and these forums. I have a 8700g. I am trying to download the 4.2 desktop software and after filling up the form i get this error. You don't have permission to access "http://swdownload-us.rim.com.edgesuite.net/swdown

  • Reading XML with Flex

    Ok I've gone through Ed's awesome Flex tutorial in the wiki but for some reason I simply can't nail this one.      <mx:Label y="10" text="Craig's Movie List" id="lblTitle" enabled="true" horizontalCenter="0" fontSize="19" fontFamily="Arial" fontWeigh