Problem with binding components of fragments of page in bean managed when rendered as region

I detected a problem when I bind a component in a managed bean for a page fragment which is a view of a TaskFlow exposed to JSF as a region.


This problem happened when I exhibited same TaskFlow as region of two or more instances in the same Joint Strike Fighter. The component that is only returned in the latter region.


JDeveloper 12 c (12.1.2.0) ADF12c.

This is the code:

The page fragment:

<?xml version='1.0' encoding='UTF-8'?>
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <af:panelGroupLayout id="pgl1">
    <af:inputText label="Label 1" id="it1" binding="#{bindingComponentBean.inputText}"/>
    <af:button text="button 1" id="b1"/>
  </af:panelGroupLayout>
</ui:composition>

Bean managed (within the scope of the request)

package com.edisa.test.errors.view.backing;


import oracle.adf.view.rich.component.rich.input.RichInputText;


public class BindingComponentBean {
    private RichInputText inputText;


    public BindingComponentBean() {
    }


    public void setInputText(RichInputText inputText) {
        this.inputText = inputText;
    }


    public RichInputText getInputText() {
        return inputText;
    }
}

TaskFlow

<?xml version="1.0" encoding="UTF-8" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
  <task-flow-definition id="TestTaskFlow">
    <default-activity>test_fragment</default-activity>
    <managed-bean id="__1">
      <managed-bean-name>bindingComponentBean</managed-bean-name>
      <managed-bean-class>com.edisa.test.errors.view.backing.BindingComponentBean</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <view id="test_fragment">
      <page>/fragments/test_fragment.jsff</page>
    </view>
    <use-page-fragments/>
  </task-flow-definition>
</adfc-config>

JSF page

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html>
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="index.jsf" id="d1">
        <af:form id="f1">
            <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
                <f:facet name="center">
                    <af:panelGridLayout id="pgl1" inlineStyle="border: 1px solid #eee;">
                        <af:gridRow marginTop="5px" height="auto" marginBottom="5px" id="gr1">
                            <af:gridCell marginStart="5px" width="50%" id="gc1" inlineStyle="border: 1px solid #eee;"
                                         halign="stretch">
                                <af:panelBox text="Region 1" id="pb1">
                                    <f:facet name="toolbar"/>
                                    <af:region value="#{bindings.TestTaskFlow2.regionModel}" id="r2"/>
                                </af:panelBox>
                            </af:gridCell>
                            <af:gridCell marginStart="5px" width="50%" marginEnd="5px" id="gc2"
                                         inlineStyle="border: 1px solid #eee;" halign="stretch">
                                <af:panelBox text="Region 2" id="pb2">
                                    <f:facet name="toolbar"/>
                                    <af:region value="#{bindings.TestTaskFlow1.regionModel}" id="r1"/>
                                </af:panelBox>
                            </af:gridCell>
                        </af:gridRow>
                    </af:panelGridLayout>
                </f:facet>
                <f:facet name="header"/>
                <f:facet name="end"/>
                <f:facet name="start"/>
                <f:facet name="branding"/>
                <f:facet name="copyright"/>
                <f:facet name="status"/>
            </af:pageTemplate>
        </af:form>
    </af:document>
</f:view>

Component to bind to the support extended to bean bean would be.

In fact, it is solely to support the scope of the bean - to distinguish two or more instances of the page fragment component.

It has the same duration of life as the requestScope, but for different instances of the components parts / declarative, you have separate instances of scope backingBean controlled beans.

http://adfpractice-Fedor.blogspot.com/2012/03/managed-bean-scopes-for-page-fragments.html

Tags: Java

Similar Questions

  • problem with bind variables in the SQL query view object

    Hi all

    I use JDev 11.1.2.4.0.

    I have a problem with bind variables in the SQL query view object.

    This is my original SQL

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE t.nctuser_id = '20022' 
          AND to_char(t.insertdate,'YYYYMMDD') in ('20130930','20130929')
    group by t.legertype_id
    

    In my view .xml object query tab, I am writing this

    SELECT sum(t.TIME) , t.legertype_id
    FROM LEDGER t
    WHERE   t.nctuser_id = '20022'
        AND to_char(t.insertdate,'YYYYMMDD') in :dddd
    group by t.legertype_id
    

    Davis here is a variable of Type liaison: String, updatable and necessary.

    I try to deal with Davis as ('20130930 ', ' 20130929') hoping the view object, run as my original SQL.

    But failed. The view object retrieves 0 line after that I run.

    Why?

    Thank you! ('2original SQL0130930', '20130929') ('20130930 ', ' 20130929')

    A variable binding cannot be used as this is why you must use years table. Check decompilation binary ADF: using oracle.jbo.domain.Array with ViewCriteria to see a solution.

    Timo

  • Unique problem with selction on the table (Query Page)

    Unique problem with selction on the table (Query Page)

    I have a VO data Bulletin Board, with a transitional attribute for selction unique column.
    My requirement is that I need to identify the line that was selected in the table.

    I associated with fireAction singleSelection column, such that whenever the user selects the line
    I'm looking for that VO using some rowIterator.
    But when running the loop of the transient VO that is mapped to the singleSelection variable is the show as "n" / NUll
    for all the lines...

    So how do you identify the selected line in singleSelection to a table.

    -Sasi

    In the property inspector of the element for which you've put firePartialAction, you can find a property named "parameters". That mention primary key as your setting.

    You can get the arameter using pageContext.getparameter ();

    -Anand

  • Problems with the style of the Web page in dreamweaver

    Hello

    I have problems with the basic design of my page, where my upper bar isn't at the height, it should be.

    Here's my code for css stylesheet (if you're wondering what's happening with the colors, I tried to add different colors and so it would be easier to see where the different divs):

    @charset "utf-8";
    /* CSS Document */
    #page{
     background:#600;
     position:absolute;
     top:0px;
     left:0px;
     width:1024px;
     height:768;
    }
    #top{
     background:#90F;
     position:absolute;
     top:0px;
     left:0px;
     width:1024px;
     heigth:142px;
     }
    #header{
     background:#0F0;
     position:absolute;
     top:142px;
     left:0px;
     width:1024px;
     height:158px;
    }
    #bottom{
     background:#C90;
     position:absolute;
     top:300px;
     left:0px;
     width:1024px;
     height:468px;
    }
    #venstre{
     background-color:#FFF;
     position:absolute;
     top:28px;
     left:33px;
     width:608px;
     height:357px;
    }
    #hoyre{
     background-color:#FFF;
     position:absolute;
     top:28px;
     left:667px;
     width:323px;
     height:430px;
    }
    
    


    and here is my html code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Untitled Document</title>
    
    <link href="Stilark.css" rel="stylesheet" type="text/css" />
    
    </head>
        
    <body>
    
    <div id="page">
    
         <div id="top">
        
         </div>
        
         <div id="header">
     
         </div>
        
         <div id="bottom">
          
              <div id="venstre">
              
              </div>
            
              <div id="hoyre">
      
              </div>
       
         </div>
    
    </div>
        
    </body>
    
    </html>
    
    

    Hello

    Look here, it's just a spelling mistake in your tips to #top. You should not write "gth" is better "ght":

    heigth:142px;

    height: 142px;

    Hans G.

  • Problems with Bind Variables

    SELECT co.ref_num, co.forename, co.surname, co.dob, a.address, a.postcode,
           co.ni_num
      FROM address a, contact co
     WHERE co.ref_num = a.ref_num
       AND (:1 IS NULL OR co.forename = :2)
       AND (:3 IS NULL OR co.surname = :4)
       AND (:5 IS NULL OR a.postcode = :6)
       AND (:7 IS NULL OR a.address = :8)
       AND (:9 IS NULL OR co.dob = :10)
       AND (:11 IS NULL OR co.ni_num = :12)
    With a jdbc connection, we use a web front end for a new management system. The SQL above runs since a search screen. We meet a few serious problems with bind variable and execution plans. When the above query is sent by the database 'AND' clauses could evaluate as follows:
    AND ('Tim' IS NULL OR co.forename = 'Tim')
       AND ('Clarke' IS NULL OR co.surname = 'Clarke')
       AND ('' IS NULL OR a.postcode = '')
       AND ('' IS NULL OR a.address = '')
       AND ('25051981' IS NULL OR co.dob = '25051981')
       AND ('' IS NULL OR co.ni_num = '')
    We cannot dynamically assign 'AND' conditions so they are sent through to the database. This translates FTS 99% of the time as the execution plan never prescribed any of the available indices.

    Someone has suggestions on how to better 'control' bind variables?

    Hello

    Don't you think that 'OR' Conditions are necessary to check for Null, where the binding variable is NULL or not.

    I think that rather than running the query from the front to FB, try to convey the values of some MS and run this query in the procedure, the extraction from the point of view Design coding application. Never fire the query of the frontal part.

    To come to the problem.

    SELECT co.ref_num, co.forename, co.surname, co.dob, a.address, a.postcode,
    Co.ni_num
    ADDRESS, contact co
    WHERE co.ref_num = a.ref_num
    AND (: 1 co.forename IS NULL or =: 2)
    AND (: 3 co.surname IS NULL or =: 4)
    AND (: 5 a.postcode IS NULL or =: 6)
    AND (: 7 a.address IS NULL or =: 8)
    AND (: 9 co.dob IS NULL or =: 10)
    AND (: 11 co.ni_num IS NULL or =: 12)

    Use the procedure.

    Fact exits of the indexes on the tables and stats are updated...?
    Try to predict explain it. ??

    -Pavan Kumar N

  • Hello, I have a problem with Mozilla Firefox 14 and now also Firefox 15. When I click on .html files on my desktop, firefox will open a new window twice. Where is the th

    Hello, I have a problem with Mozilla Firefox 14 and now also Firefox 15. When I click on .html files on my desktop, firefox will open a new window twice. Where is the problem? Thank you

    That may be a problem with the DDE.

    Try to undo and redo Firefox as default browser.

    Make a different browser like IE browser by default and then let Firefox do it again.

    See:

  • Problem with the format of the values in the command prompt (when you use multiple values)

    Hi all

    I have problem with the format of the values in the command prompt when you use multiple values.

    Value is year (2009) and when I use it in the drop-down list that is formatted, all right, as 2009, but when I use several values I get number as 2009,00. I put in year column format number with 0 decimal places and save by default in the year column. Year is formatted well anywhere in the query, such as 2009. Why is - what happens at the command prompt when you choose multiple values in prompt dashboard?

    Thank you

    I think the YEAR Data Type could be defined DOUBLE RPD.

    Use the CAST function in the formula (fx) and the output from test.

    CAST (INT YEAR)

    Hope, it will help you.

  • Problem with the history of Firefox, saved Pages &amp; Cookies.

    Hey guys, I have a problem with my Mozilla, whenever I have turn off my computer after using it. When I turn it back on, all my history, cookies, saved pages have disappeared. It's like, I connect to facebook, after that I turned on my computer again. I have to connect again and again and again. I don't really know what is happening to her. Hope I can get solutions.

    Well, I'm going to the button more options (sound on the button next to the address bar) and to the safety bar to the section of history and privacy. It says that I have not visited this site so far here. that I have. So yes, home pages, Favorites still work.

    Sorry, it was definitely a wrong answer, this should work

    Tools > Options > privacy

    http://img232.imageshack.us/img232/4928/clearcachew.PNG

  • Problem with the syntax to call a page Apex

    I display 5 faces changing mood of a table. Each face has a link stored in the table. The link should go to a page in the same application and pass a parameter to this page when the face is selected.

    Somewhere, there is a problem with the syntax of the link, can anyone please help me out with the correct syntax, please.

    The error that I get when I select a face, is the following:

    Screenshot (34).png

    The link entry in the table is the following: http://apex.enciva.co.uk/pls/apex/f?p=842:1: & SESSION.: P1_MOODID:1

    and the code to display the faces, is as follows:

    DECLARE

    BEGIN

    FOR (IN) c1

    SELECT Hmauin,

    mntitle, mnlink

    OF MOODYFACES

    WHERE NVL ((mnfilename) dbms_lob.getlength, 0) > 0

    AND mnactive = 'yes '.

    ORDER BY HMAUIN

    ) LOOP

    HTP.prn ("< a class ="dock-item"HREF ="'|) C1. MNLINK | "" ">

    < img src = "f? p = & APP_ID.: & APP_PAGE_ID.: & APP_SESSION.:APPLICATION_PROCESS = GET_IMG1:NO:P141_MNID:' | C1. HMAUIN | "" "alt =" "/ >

    < span > ' | C1.mntitle | / span > < /a > ');

    END LOOP;

    END;

    Any answer will appreciated.

    Thanks fac586, spawn the link works perfectly.

  • Problem with the Code for the form Page

    I have a problem with a page of form to http://www.enonumc.com/PrayerRequest.html in the month passed, the form created an email that worked perfectly, providing all the information to a specified address.

    Recently (last week), we have received an application form email that still had the information for each of the observations labels, but no info after the sign = for the top three submissions. I always get the news option (name, e-mail address, phone number), but none of the drop-down choice list of the box, the text in text box in the prayer request box, or choice of rather we must respond or not.

    Any suggestions of what has happened with the code?

    You can start with code 50 or so on the page validation errors.

    [Valid] Validation of the markup of http://www.enonumc.com/PrayerRequest.html - W3C Markup Validator

    As to why the form processing script doesn't work well, maybe something has changed on your web server.   Ask your hosting provider.

    Nancy O.

  • Problem with the icon reminder on the page with Acrobat Reader DC

    When I add a reminder to a PDF, I have two problems. One is that when I go to print the document with the comments, the position of the note of sticky notes on the printed page change where I placed it (I try to place the bottom of the projection arrow type down the text that I am to comment on). The second problem is that I can't change the size of the sticky note in the page. When I searched for solutions, I got the answer that I can resize by grabbing the bottom right or bottom left, but that has no effect on the size. I am relatively new to using sticky notes in DC, for any suggestions would be welcome.

    Very well. I solved the problem of size. Display of the Page edition/preferences/and select the default value of 96 pixels (for some reason, I got that that 500). The size was much smaller. Then when printing, sticky note icons remained where they were supposed to be.

  • Problems with the phone and Desktop Web page layouts

    Hi all

    I was hoping that someone could help with a problem with my website sciencenewsbreak.com. I have two office and put phone in page each has its own master page. When viewing my site for example on the desktop and using the navigation menu all my pages come up with available funds, all good. However, if I have a specific page using google search "3 aug science newsbreak" or "newsbreak science 28 July... My phone set charges upward, not my office layout. This is not uniform as pages for July 31 and August 1 appear as correct desk combination. This occurs using safari or chrome. Also when looking for a July 27 google shows a result but link to said page page is not found.

    I add a new page to home/today ' hui every day and I am just by clicking the + button to the left of my last page page

    Screen Shot 2015-08-09 at 2.16.42 pm.png

    Does anyone know whats going on. heeeeeeeelp please

    See you soon

    Garry

    Google indexes the same items in various ways, caused by the fact that you have two separated from each identical item versions that are duplicates - the only difference is the presentation which is displayed according to a mechanism of screen/detection javascript by Muse (which, coincidentally, is generally considered a bad method to deal with different screens and devices).

    You must all least tell Google which version is the main (the so-called canonical version), otherwise Google indexing algorithms will decide that based on their best estimate. This is the reason why the search results are so confused.

    Read this info to learn more about the canonical meta tag: use of the canonical - URL search Console Help

    In any case, apart from this question, I also noticed your pages the support phone on my Nexus 7 Android tablet version, and it looks terrible: the desktop version should be displayed on the landscape orientation.

    Your Web site should be turned into a responsive design for one. Two, as you update your content on a daily basis, Muse and static html pages are about the worst imaginable solutions (even more so when it comes with a lot of content that must be seen on a variety of devices and screens!).

    This case calls desperately for a sensitive designed dynamic site, whose content is well ranked in a content management system. The obvious solution that comes to mind: Wordpress.

  • Serious problems with the 6.16 update: reboot page &amp; chat

    First of all, I want to mention before, if there is no problem with Skype, it would make my computer all freeze where I by force to restart my system. If she didn't answer I could not force the program to close and would be forced to stop and start again.

    An hour or two there is something like it happened and so I restart my computer. Restart Skype updated during this time. When he came I went to my main group chat and it froze my computer, forcing me to do a hard cock down. For the next couple hours, it's the same thing. Even when I tried to disable my internet so I couldn't even open Skype. It is only now, 4 hours later that I am able to access Skype and the rest of the features on my computer, something I wasn't able to do.

    With this update, the display for the bubbles of text is not something I like. Timestamps are gone even if I still have the box checked to have these timestamps. I can't scroll to see previous messages and certain user setting have been forgotten or reset. I'm not happy about all of this change suddenly that I'm already rather on the fence with how much I love Skype.

    I'd like a way to return to the old interfaces without suffering a decline in quality with calls and video.

    The cat new UI is provided with the 6.16.64.105 version only. You can uninstall this 'special' version and install the 6.16.0.105 version with the old chat UI window.

    http://download.Skype.com/MSI/SkypeSetup_6.16.0.105.msi

  • Problem with Binder

    There is something wrong with my hyperlink social media, when I publish my Web site that that work not, but they do not work in preview mode.

    It only my twitter I seem to have problems with. I'm very new with Muse and could really do with some help.

    Hi, you can publish the site to a temporary site of the BC for us to have a look on.

    Or if it's the Twitter feed widget displays do not, then you might want to check this.

    http://forums.Adobe.com/message/4725856#4725856

    Thank you

    Vinayak

  • Problems with binding on scrollPosition atribute

    Hello

    I'm having some trouble to implement the binding between a painting and a list.

    When I scroll vertically through the Web, the list scrolls, but the elements make as it should.

    The canvas are the same size from the list.

    I created a quick example to show what the problem is.

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
         layout="absolute"
         backgroundColor="0xFFFFFF"
         creationComplete="addRandomItems()">
         
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.utils.ObjectUtil;
                   
                   private function addRandomItems():void {
                        var provider:ArrayCollection = new ArrayCollection();
                        
                        for (var i:int = 0; i < 100; i++){
                             var o:Object = new Object();
                             var children:Array = [];
                             var incYear:int = 0;
                             
                             incYear += i % 2 == 0 ? 1 : 0; 
                             
                             o.description = "Teste " + i ;
                             
                             for (var j:int = 0; j < 3; j++){
                                  var xyz:Object = new Object();
                                  
                                  do {
                                       xyz.startDate = new Date(2008 + incYear , Math.random()*10, Math.random()*31);
                                       xyz.endDate = new Date(2008 + incYear, Math.random()*11, Math.random()*31);
                                       xyz.color = Math.random() * 0xFFFFFF;
                                       
                                       if (xyz.startDate.date == 31 && xyz.startDate.month == 11){
                                            xyz.startDate.date++;
                                       }
                                       
                                       if (xyz.endDate.date == 31 && xyz.endDate.month == 11){
                                            xyz.endDate.date++;
                                       }
                                  } while (ObjectUtil.dateCompare(xyz.startDate, xyz.endDate) != -1 );
                                  
                                  children.push(xyz);                              
                             }
                             
                             o.children = children;
                             provider.addItem(o);
                        }
                        descriptionList.dataProvider = provider;
                   }
              ]]>
         </mx:Script>
         
         <mx:List id="descriptionList"
              x="10" 
              y="10" 
              height="738"
              width="300"
              rowHeight="25"
              labelField="description" 
              horizontalScrollPolicy="off" 
              verticalScrollPolicy="off" 
              verticalScrollPosition="{viewer.verticalScrollPosition}"/>
         
         <mx:Canvas id="viewer" x="318" y="10" width="840" height="738">
              <mx:Canvas height="2500" width="2500" />
         </mx:Canvas>
         
         
    </mx:Application>
    

    Kind regards

    Fredy.

    Hi, Freddy

    Here is the solution:

    On the Web, create the updateComplete (event) method.

    private void updateComplete(evt:ScrollEvent):void {}

    If (evt.direction == ScrollBarDirection.VERTICAL) {}
    var p: Number;
    % = (100 * viewer.verticalScrollPosition) / viewer.maxVerticalScrollPosition;
    descriptionList.verticalScrollPosition = (descriptionList.maxVerticalScrollPosition * %) / 100;
    descriptionList.dataProvider.refresh ();

    }
    }

    When you scroll the canvas, the list scrolls.

    The problem is because the viewer.verticalScrollPosition is greater than the list.

    You must make a percentage.

    Thank you!

Maybe you are looking for